@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #16233A;
  --navy-soft: #223350;
  --orange: #E68A2E;
  --orange-dark: #C56E1A;
  --cream: #FBF7F1;
  --card: #FFFFFF;
  --border: #E4DED3;
  --text: #1E2430;
  --text-muted: #6B7280;
  --success-bg: #EEF6EC;
  --success-text: #35682B;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

header.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 48px 20px 40px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1.brand .accent { color: var(--orange); }

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 15.5px;
  max-width: 560px;
  margin: 0 auto;
}

.callout {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(230,138,46,0.14);
  border: 1px solid rgba(230,138,46,0.35);
  border-radius: var(--radius);
  font-size: 14px;
  color: #fff;
  text-align: left;
}

.callout strong { color: var(--orange); }

form {
  margin-top: -28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 8px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(20,30,50,0.04);
}

.card h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.card .sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field .hint {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
}

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

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 14px;
}

.choice:hover { border-color: var(--orange); background: #FFF8F0; }

.choice input { margin-top: 2px; flex-shrink: 0; }

.choice.selected {
  border-color: var(--orange);
  background: #FFF3E4;
}

.learn-note {
  display: none;
  margin-top: 4px;
  padding: 14px 16px;
  background: #FFF3E4;
  border: 1px solid rgba(230,138,46,0.4);
  border-radius: 10px;
  font-size: 13.5px;
  color: #6B4A1E;
}

.learn-note.visible { display: block; }

.call-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.call-highlight h2 { color: #fff; }
.call-highlight .sub { color: rgba(255,255,255,0.75); }
.call-highlight .field label { color: #fff; }
.call-highlight input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.call-highlight input::placeholder { color: rgba(255,255,255,0.45); }

.submit-bar {
  text-align: center;
  padding: 8px 0 0;
}

button.submit {
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 15.5px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

button.submit:hover { background: var(--orange-dark); }
button.submit:active { transform: scale(0.98); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-bar .footnote {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.error-banner {
  display: none;
  background: #FDECEC;
  color: #A12C2C;
  border: 1px solid #F3B9B9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.error-banner.visible { display: block; }

/* success state */
#successView {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

#successView.visible { display: block; }

#successView .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

#successView h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 12px;
}

#successView p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  font-size: 15px;
}

.required-mark { color: var(--orange); }
