:root {
  --main: #164478;
  --accent: #007aff;
  --bg: #f5f8fc;
  --text: #1f2937;
  --border: #d7e0ea;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(22, 68, 120, 0.12);
}

h1, h2, h3 {
  color: var(--main);
  line-height: 1.4;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1::before,
h2::before,
h3::before {
  content: "";
  display: inline-block;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}

h1::before {
  width: 16px;
  height: 16px;
}

h2::before {
  width: 14px;
  height: 14px;
}

h3::before {
  width: 12px;
  height: 12px;
}

p {
  margin: 0.5em 0 1em;
}

form {
  margin-top: 24px;
}

label {
  font-weight: 700;
  color: var(--main);
}

select,
textarea {
  width: 100%;
  max-width: 760px;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--main);
}

.error,
.error-message {
  color: #c62828;
  font-weight: 700;
  margin-top: -10px;
  margin-bottom: 16px;
}

footer,
center {
  display: block;
  margin-top: 40px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    padding: 16px 10px;
  }

  .page {
    padding: 20px;
  }

  select,
  textarea {
    max-width: 100%;
  }
}
