:root {
  --navy: #11283a;
  --navy-2: #193b52;
  --blue: #2f627d;
  --gold: #c69b4a;
  --gold-soft: #ead7ae;
  --cream: #f7f4ed;
  --paper: #fffdfa;
  --ink: #17242c;
  --muted: #66747c;
  --line: #dce2e4;
  --green: #3f7c67;
  --red: #ad3f3f;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(17,40,58,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.5 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { width: min(1120px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font: 700 22px Georgia, serif; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 17px; letter-spacing: .08em; }.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.secure-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.secure-note span { color: var(--green); font-size: 10px; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { position: relative; min-height: 460px; padding: 68px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; color: white; background: linear-gradient(125deg, #0e2738 0%, #1b455b 100%); border-radius: 30px; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 1; max-width: 690px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, legend { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { max-width: 680px; margin: 0; font-size: clamp(46px, 6vw, 70px); line-height: 1; font-weight: 500; }
.hero-copy > p:last-child { max-width: 620px; margin: 25px 0 0; color: rgba(255,255,255,.75); font-size: 17px; }
.hero-card { position: relative; z-index: 1; flex: 0 0 245px; padding: 7px 21px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; backdrop-filter: blur(5px); }
.hero-card div { padding: 14px 0; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }.hero-card div:last-child { border-bottom: 0; }
.hero-card strong { min-width: 42px; color: var(--gold-soft); font: 500 25px Georgia, serif; }.hero-card span { color: rgba(255,255,255,.7); font-size: 11px; }

.questionnaire-shell { margin: 72px 0 0; padding: 54px 60px 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.questionnaire-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; font-weight: 500; }
.step-label { margin: 0 0 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.progress { height: 5px; margin: 24px 0 40px; background: #e7e9e7; border-radius: 10px; overflow: hidden; }
.progress span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, var(--gold), #dbbb79); border-radius: inherit; transition: width .35s ease; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; color: var(--navy); font-size: 30px; font-weight: 500; }
.step-intro { margin: 8px 0 30px; color: var(--muted); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #384952; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"] { width: 100%; height: 50px; padding: 0 15px; color: var(--ink); background: white; border: 1px solid #ccd4d8; border-radius: 10px; outline: 0; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,98,125,.12); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.suffix-input { display: flex; align-items: center; background: white; border: 1px solid #ccd4d8; border-radius: 10px; overflow: hidden; }
.suffix-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,98,125,.12); }
.suffix-input input[type="number"] { border: 0; box-shadow: none; }.suffix-input span { padding-right: 15px; color: var(--muted); font-size: 12px; }
.error { min-height: 17px; display: block; padding-top: 4px; color: var(--red); font-size: 11px; }
.consent { margin-top: 20px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; color: var(--muted); background: #f2f4f3; border-radius: 12px; font-size: 12px; cursor: pointer; }.consent input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--navy); }
.consent-error { margin-left: 18px; }

.question-list { display: grid; gap: 22px; }
.question { padding: 23px; border: 1px solid var(--line); border-radius: 16px; }
.question > p { margin: 0 0 15px; color: var(--navy); font-size: 15px; font-weight: 700; }.question > p > span { width: 28px; height: 28px; margin-right: 9px; display: inline-grid; place-items: center; color: var(--blue); background: #e9f0f3; border-radius: 50%; font-size: 11px; }
.choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span { height: 100%; min-height: 67px; padding: 12px 10px; display: flex; align-items: center; justify-content: center; color: #50606a; background: #fafaf8; border: 1px solid #dfe4e5; border-radius: 10px; text-align: center; font-size: 11px; line-height: 1.35; transition: .15s ease; }
.choice-grid label:hover > span { border-color: #9cb0ba; }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(47,98,125,.2); }
.choice-grid input:checked + span { color: white; background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 7px 18px rgba(17,40,58,.14); }
.range-choices label > span { align-items: flex-start; flex-direction: column; }.range-choices strong { display: block; margin-bottom: 3px; }
.hypothetical-note { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }

.form-actions { margin-top: 30px; display: flex; justify-content: flex-end; gap: 10px; }
.button { min-height: 46px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.button-primary { color: white; background: var(--navy); }.button-primary:hover { background: var(--navy-2); }
.button-secondary { color: var(--navy); background: white; border: 1px solid var(--line); }
.button-gold { color: var(--navy); background: var(--gold-soft); }.button-gold:hover { background: #e4ca92; }

.results { border-top: 0; }
.result-heading { padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 35px; color: white; background: linear-gradient(125deg, var(--navy), var(--navy-2)); border-radius: 20px; }
.result-heading h2 { font-size: clamp(36px, 5vw, 56px); }.result-heading p:last-child { max-width: 650px; margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.score-ring { --score: 50%; width: 130px; height: 130px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; flex-direction: column; background: conic-gradient(var(--gold) var(--score), rgba(255,255,255,.13) 0); border-radius: 50%; position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; background: var(--navy-2); border-radius: 50%; }.score-ring strong, .score-ring span { position: relative; z-index: 1; }.score-ring strong { font: 500 39px/1 Georgia, serif; }.score-ring span { margin-top: 4px; color: rgba(255,255,255,.6); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.result-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-grid article { padding: 22px; background: #f7f8f6; border-radius: 14px; }.result-grid article > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.result-grid article > strong { display: block; margin-top: 7px; color: var(--navy); font: 500 23px Georgia, serif; }.result-grid article > small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }
.meter { height: 6px; margin-top: 15px; background: #dfe4e2; border-radius: 10px; overflow: hidden; }.meter i { display: block; height: 100%; width: 50%; background: var(--green); border-radius: inherit; transition: width .4s ease; }
.result-note { margin-top: 15px; padding: 15px 18px; color: #4e5e66; background: #edf3f1; border-left: 3px solid var(--green); border-radius: 8px; font-size: 12px; }
.email-panel { margin-top: 15px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #eee8db; border-radius: 14px; }.email-panel strong, .email-panel span { display: block; }.email-panel strong { color: var(--navy); font-family: Georgia, serif; font-size: 19px; }.email-panel span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.text-button { margin: 18px auto 0; display: block; padding: 5px 0; color: var(--blue); background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; cursor: pointer; }

.disclosures { margin: 60px 0 50px; padding: 28px 32px; color: var(--muted); background: #edece7; border-radius: 18px; }.disclosures h2 { color: var(--ink); font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .04em; }.disclosures p { margin: 10px 0 0; font-size: 10px; line-height: 1.6; }
footer { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 25px 0 35px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; flex-direction: column; padding: 52px 40px; }.hero-card { width: 100%; flex-basis: auto; display: grid; grid-template-columns: repeat(3,1fr); }.hero-card div { padding: 13px; display: block; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }.hero-card div:last-child { border-right: 0; }.hero-card span { display: block; margin-top: 4px; }
  .questionnaire-shell { padding: 44px 35px; }.choice-grid { grid-template-columns: 1fr; }.choice-grid label > span { min-height: 48px; justify-content: flex-start; text-align: left; }.result-grid { grid-template-columns: 1fr 1fr; }.result-grid article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }.site-header { min-height: 70px; }.secure-note { display: none; }
  .hero { min-height: 0; padding: 42px 24px 25px; border-radius: 23px; }.hero h1 { font-size: 45px; }.hero-card { grid-template-columns: 1fr; }.hero-card div { display: flex; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .questionnaire-shell { margin-top: 44px; padding: 31px 18px; border-radius: 22px; }.questionnaire-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.progress { margin: 20px 0 31px; }.field-grid { grid-template-columns: 1fr; gap: 13px; }.field.full { grid-column: auto; }
  .question { padding: 17px 14px; }.question > p { display: flex; align-items: flex-start; }.question > p > span { flex: 0 0 auto; }.form-actions { justify-content: space-between; }
  .result-heading { padding: 28px 21px; align-items: flex-start; flex-direction: column; }.score-ring { width: 110px; height: 110px; }.result-grid { grid-template-columns: 1fr; }.result-grid article:last-child { grid-column: auto; }.email-panel { align-items: stretch; flex-direction: column; }.email-panel .button { width: 100%; }
  footer { gap: 8px; flex-direction: column; }
}

@media print {
  body { background: white; }.site-header, .hero, form, .progress, .step-label, .email-panel, .text-button, footer { display: none !important; }.questionnaire-shell { margin: 0; padding: 0; border: 0; box-shadow: none; }.results[hidden] { display: none; }.results:not([hidden]) { display: block; }.result-heading { color: var(--ink); background: white; border: 1px solid var(--line); }.score-ring { color: white; }.disclosures { margin-top: 25px; }
}
