:root {
  color-scheme: light;
  --brand: #1f72c9;
  --brand-dark: #145ba8;
  --text: #1d2633;
  --muted: #657285;
  --line: #dbe5ef;
  --danger: #d64545;
  --surface: #ffffff;
  --input: #f3fbf4;
  --page: #f4f8fc;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(31, 114, 201, 0.11), rgba(244, 248, 252, 0) 300px),
    var(--page);
}

.page-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.hero {
  padding: 26px 8px 22px;
  text-align: center;
}

.eyebrow,
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.hero h1 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.form-card {
  padding: 22px;
  border: 1px solid rgba(219, 229, 239, 0.85);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(34, 73, 116, 0.12);
}

.intro h2 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 22px;
}

.intro p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.field strong {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input,
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 104px;
  padding: 12px 13px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6c7b8c 50%),
    linear-gradient(135deg, #6c7b8c 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 114, 201, 0.13);
}

.field.is-invalid input {
  border-color: var(--danger);
  background: #fff7f7;
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.submit-button {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:hover {
  background: var(--brand-dark);
}

.privacy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .form-card {
    padding: 18px;
  }

  .hero h1 {
    font-size: 30px;
  }
}
