:root {
  --navy: #0f1041;
  --navy-2: #202260;
  --red: #ac312d;
  --red-dark: #86231f;
  --ink: #172235;
  --muted: #5d6878;
  --line: #d9dee7;
  --surface: #ffffff;
  --background: #f4f5fa;
  --error: #a62b2b;
  --success: #176b45;
  --radius: 14px;
  --shadow: 0 16px 50px rgba(8, 27, 49, .11);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Inter, Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.header-shell { width: min(100% - 40px, 1120px); margin-inline: auto; }
.utility-bar { background: var(--navy); color: #fff; font-size: .75rem; font-weight: 680; letter-spacing: .045em; }
.utility-bar .header-shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 35px; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 3px solid var(--red); box-shadow: 0 6px 22px rgba(15,16,65,.08); }
.site-header .header-shell { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 104px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; }
.brand-logo { display: block; width: min(360px, 52vw); height: auto; }
.main-site-link { flex: 0 0 auto; border: 1px solid var(--navy); border-radius: 4px; padding: 10px 16px; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .075em; text-decoration: none; text-transform: uppercase; }
.main-site-link:hover { background: var(--navy); color: #fff; }

main { width: min(100% - 32px, 940px); margin: 0 auto 64px; }
.intro { padding: 52px 6px 30px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.08; }
.intro > p:not(.eyebrow) { max-width: 720px; margin: 16px 0; color: var(--muted); font-size: 1.05rem; }
.intro-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--navy-2); font-size: .88rem; font-weight: 650; }
.intro-notes span::before { content: "•"; margin-right: 8px; color: var(--red); }

.form-card { overflow: hidden; background: var(--surface); border: 1px solid #e0e4eb; border-top: 5px solid var(--red); border-radius: 12px; box-shadow: var(--shadow); }
.progress-wrap { padding: 24px clamp(20px, 5vw, 50px) 20px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.progress-copy { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 10px; color: var(--muted); font-size: .82rem; font-weight: 700; }
#step-name { color: var(--navy); }
.progress-track { height: 7px; overflow: hidden; background: #e2e6ec; border-radius: 99px; }
.progress-track span { display: block; width: 25%; height: 100%; background: var(--red); border-radius: inherit; transition: width .25s ease; }

form { margin: 0; }
.form-step { display: none; min-width: 0; margin: 0; padding: 34px clamp(20px, 5vw, 50px) 22px; border: 0; }
.form-step.is-active { display: block; animation: fade-in .2s ease; }
.form-step legend { display: contents; color: var(--navy); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 820; letter-spacing: -.02em; }
.step-intro { margin: 5px 0 26px; color: var(--muted); }
.field-grid { display: grid; gap: 20px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .group-label { display: block; margin: 0 0 7px; color: var(--navy); font-size: .91rem; font-weight: 720; }
.optional { margin-left: 5px; color: var(--muted); font-size: .78rem; font-weight: 500; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea { width: 100%; border: 1px solid #bfc6d1; border-radius: 9px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(172,49,45,.14); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(166,43,43,.1); }
.choice-group { margin: 28px 0; }
.choice-group.compact { display: grid; gap: 9px; }
.choice-group.compact .group-label { margin-bottom: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.check-card:hover { border-color: #adb6c4; background: #fbfcfe; }
.check-card:has(input:checked) { border-color: var(--red); background: #fff5f4; }
.check-card input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.check-card span { font-size: .91rem; }
.choice-group.group-invalid { padding: 10px; border: 1px solid var(--error); border-radius: 11px; }
.field-error { margin: 7px 0 0; color: var(--error); font-size: .82rem; font-weight: 650; }
.conditional-section { margin-top: 30px; padding: 24px; border: 1px solid #e2b9b7; border-radius: 10px; background: #fff7f7; }
.conditional-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 14px; margin-bottom: 20px; color: var(--navy); font-size: 1.35rem; font-weight: 800; }
.conditional-heading small { align-self: center; color: var(--red-dark); font-family: inherit; font-size: .75rem; }
.notice-box { margin: 26px 0 18px; padding: 18px 20px; border-left: 4px solid var(--red); background: #f4f5fa; }
.notice-box h2 { margin: 0 0 5px; color: var(--navy); font-size: 1.12rem; }
.notice-box p { margin: 0; color: var(--muted); font-size: .88rem; }
.acknowledgment { margin: 18px 0; }
.character-count { margin-top: 5px; color: var(--muted); font-size: .78rem; text-align: right; }
.form-alert { margin: 24px clamp(20px, 5vw, 50px) 0; padding: 13px 15px; border-radius: 9px; background: #fbe9e9; color: var(--error); font-weight: 650; }
.form-alert.success { background: #eaf6ef; color: var(--success); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 22px clamp(20px, 5vw, 50px) 34px; }
.button { min-height: 46px; border: 1px solid transparent; border-radius: 8px; padding: 11px 24px; cursor: pointer; font-weight: 760; transition: transform .1s, background .15s; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { border-color: #bfc6d1; background: #fff; color: var(--navy); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
footer { padding: 32px 20px; border-top: 4px solid var(--red); background: var(--navy); color: #d6d7e6; font-size: .78rem; text-align: center; }
footer p { margin: 4px 0 12px; }
footer strong { color: #fff; font-size: .88rem; letter-spacing: .04em; }
footer a { color: #fff; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 650px) {
  .header-shell { width: min(100% - 24px, 1120px); }
  .utility-bar .header-shell { justify-content: center; min-height: 32px; }
  .utility-bar span { display: none; }
  .site-header .header-shell { min-height: 82px; gap: 12px; }
  .brand-logo { width: min(250px, 66vw); }
  .main-site-link { padding: 8px 9px; font-size: .66rem; }
  main { width: min(100% - 20px, 940px); margin-bottom: 35px; }
  .intro { padding: 34px 4px 24px; }
  .two-col, .choice-grid { grid-template-columns: 1fr; }
  .form-actions { position: sticky; bottom: 0; z-index: 4; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(8,27,49,.06); }
  .button { flex: 1; padding-inline: 14px; }
  .conditional-section { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
