:root {
  --navy-950: #061224;
  --navy-900: #0b1f3a;
  --navy-800: #123054;
  --navy-700: #1d426c;
  --gold-500: #c8a14a;
  --gold-400: #d9bb72;
  --gold-100: #f5ecd5;
  --cream: #fbfaf6;
  --white: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --border: #dfe4ec;
  --border-strong: #c8d0dc;
  --danger: #b42318;
  --success: #177245;
  --shadow: 0 24px 60px rgba(6, 18, 36, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.site-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 38vw) 1fr; }
.brand-panel {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 8%, rgba(200,161,74,.22), transparent 30%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 52%, #102d50);
  color: var(--white); display: flex; flex-direction: column;
}
.brand-lockup, .mobile-header { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px; border: 1px solid rgba(217,187,114,.55); border-radius: 16px;
  display: grid; place-items: center; flex: 0 0 auto; color: var(--gold-400); font-weight: 800; letter-spacing: -.04em;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 4px rgba(255,255,255,.025);
}
.brand-mark.small { width: 44px; height: 44px; border-radius: 13px; background: var(--navy-900); }
.brand-name { margin: 0; font-weight: 750; letter-spacing: -.02em; }
.brand-tagline { margin: 3px 0 0; color: rgba(255,255,255,.66); font-size: .78rem; }
.panel-copy { margin: auto 0 48px; max-width: 620px; }
.panel-copy h1 { margin: 12px 0 20px; font-size: clamp(2.2rem, 4vw, 4.7rem); line-height: 1.01; letter-spacing: -.06em; }
.panel-copy > p:last-child { margin: 0; color: rgba(255,255,255,.72); line-height: 1.7; max-width: 52ch; }
.eyebrow { margin: 0 0 10px; color: var(--navy-700); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-400); }
.step-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step-indicator { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: rgba(255,255,255,.46); }
.step-indicator > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: .8rem; font-weight: 750; }
.step-indicator div { display: grid; }
.step-indicator strong { font-size: .88rem; }
.step-indicator small { margin-top: 3px; font-size: .72rem; }
.step-indicator.active { color: var(--white); }
.step-indicator.active > span { border-color: var(--gold-400); background: var(--gold-500); color: var(--navy-950); }
.step-indicator.complete { color: rgba(255,255,255,.72); }
.step-indicator.complete > span { background: rgba(255,255,255,.13); color: var(--gold-400); }
.panel-note { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.62); font-size: .78rem; line-height: 1.5; }
.panel-note span { color: var(--gold-400); }
.panel-note p { margin: 0; }

.form-area { min-width: 0; display: flex; justify-content: center; padding: clamp(24px, 6vw, 88px); background: linear-gradient(180deg, #fff, var(--cream)); }
.form-wrap { width: min(840px, 100%); align-self: center; }
.mobile-header, .mobile-progress { display: none; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.045em; color: var(--navy-950); }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.form-step { animation: stepIn .32s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.field-grid { display: grid; gap: 24px; }
.field-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-group { min-width: 0; }
.field-group.full-width { grid-column: 1 / -1; }
.top-gap { margin-top: 26px; }
label, legend { color: var(--navy-950); font-weight: 700; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 12px; }
.required, .consent-item b { color: var(--gold-500); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; margin-top: 9px; padding: 15px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--white); color: var(--ink); outline: 0; transition: border-color .16s, box-shadow .16s, background .16s;
}
textarea { resize: vertical; min-height: 124px; line-height: 1.55; }
select { min-height: 52px; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(29,66,108,.11); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(180,35,24,.09) !important; }
.field-hint { margin: 8px 2px 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.field-error { min-height: 0; margin: 6px 2px 0; color: var(--danger); font-size: .76rem; font-weight: 650; }
.field-error:empty { display: none; }
.choice-row { display: grid; gap: 10px; }
.choice-row.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: grid; place-items: center; min-height: 50px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--white); color: var(--ink); font-weight: 650; cursor: pointer; transition: .16s; }
.choice-card input:checked + span { border-color: var(--navy-800); box-shadow: 0 0 0 2px var(--navy-800); background: #f4f7fb; color: var(--navy-900); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(29,66,108,.22); outline-offset: 2px; }
.category-grid { display: grid; gap: 14px; }
.category-card { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); cursor: pointer; transition: .18s; }
.category-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 10px 25px rgba(11,31,58,.07); }
.category-card input { position: absolute; opacity: 0; }
.category-number { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: #755811; font-weight: 800; }
.category-card strong { align-self: end; font-size: 1.02rem; color: var(--navy-950); }
.category-card small { align-self: start; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.category-card:has(input:checked) { border-color: var(--navy-800); box-shadow: 0 0 0 2px var(--navy-800); background: #f8fafc; }
.category-card:has(input:checked)::after { content: "✓"; position: absolute; right: 18px; top: 18px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--white); font-size: .75rem; }
.option-stack { display: grid; gap: 10px; margin-top: 10px; }
.check-option, .radio-option { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--white); color: var(--ink); font-weight: 550; line-height: 1.4; cursor: pointer; }
.check-option input, .radio-option input { margin: 3px 0 0; accent-color: var(--navy-900); flex: 0 0 auto; }
.check-option:has(input:checked), .radio-option:has(input:checked) { border-color: var(--navy-700); background: #f6f8fb; }
.review-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.review-group { padding: 22px 24px; }
.review-group + .review-group { border-top: 1px solid var(--border); }
.review-group h3 { margin: 0 0 15px; color: var(--navy-900); font-size: .95rem; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; }
.review-item { min-width: 0; }
.review-item.full { grid-column: 1 / -1; }
.review-item small { display: block; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.review-item p { margin: 5px 0 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.notice-card { margin-top: 24px; padding: 21px 22px; border: 1px solid #ead9ae; background: #fffaf0; border-radius: var(--radius-lg); }
.notice-card h3 { margin: 0 0 10px; color: #58420d; }
.notice-card ul { margin: 0; padding-left: 20px; color: #6a561f; font-size: .84rem; line-height: 1.6; }
.consent-list { margin-top: 24px; display: grid; gap: 11px; }
.consent-item { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); font-size: .84rem; line-height: 1.55; cursor: pointer; }
.consent-item input { margin: 4px 0 0; accent-color: var(--navy-900); }
.consent-item:has(input:checked) { border-color: var(--navy-700); background: #f7f9fc; }
.form-actions { margin-top: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.button { min-height: 52px; padding: 14px 23px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 780; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy-900); color: var(--white); box-shadow: 0 10px 24px rgba(11,31,58,.18); }
.button.primary:hover { background: var(--navy-800); box-shadow: 0 14px 30px rgba(11,31,58,.22); }
.button.secondary { background: #eef2f6; color: var(--navy-900); }
.button:focus-visible { outline: 3px solid rgba(29,66,108,.25); outline-offset: 3px; }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.submit-button .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 14px 0 0; text-align: right; color: var(--danger); font-size: .84rem; font-weight: 650; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.success-state { padding: clamp(28px,5vw,56px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); text-align: center; animation: stepIn .4s ease both; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ee; color: var(--success); font-size: 2rem; font-weight: 900; }
.success-state h2 { margin: 0 auto 14px; max-width: 16ch; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.04; letter-spacing: -.05em; color: var(--navy-950); }
.success-state > p:not(.eyebrow) { max-width: 56ch; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }
.success-summary { margin: 0 auto 28px; max-width: 560px; padding: 18px; border-radius: 14px; background: #f5f7fa; color: var(--navy-900); line-height: 1.55; }
.form-footer { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.form-footer p { margin: 0; }

@media (max-width: 980px) {
  .site-shell { display: block; }
  .brand-panel { display: none; }
  .form-area { display: block; padding: 0 22px 38px; }
  .mobile-header { display: flex; margin: 0 -22px 28px; padding: 18px 22px; background: var(--navy-950); color: var(--white); }
  .mobile-progress { display: block; margin-bottom: 30px; }
  .progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 750; }
  .progress-track { height: 5px; margin-top: 9px; overflow: hidden; background: #e6eaf0; border-radius: 999px; }
  .progress-track span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg,var(--gold-500),var(--navy-700)); border-radius: inherit; transition: width .25s ease; }
  .form-wrap { margin: 0 auto; }
}

@media (max-width: 620px) {
  .form-area { padding-left: 18px; padding-right: 18px; }
  .mobile-header { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .field-grid.two-column, .review-grid { grid-template-columns: 1fr; }
  .field-group.full-width, .review-item.full { grid-column: auto; }
  .choice-row.three { grid-template-columns: 1fr; }
  .category-card { grid-template-columns: 46px 1fr; padding: 18px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 2rem; }
  .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 30px -18px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(251,250,246,.95); border-top: 1px solid var(--border); backdrop-filter: blur(12px); }
  .form-actions .button { flex: 1; }
  .form-footer { display: grid; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
