:root {
  --navy: #082d67;
  --ink: #11213d;
  --blue: #1f5ead;
  --blue-light: #e8f0fb;
  --paper: #fbfaf7;
  --warm-white: #f4f1ea;
  --line: #d9dee7;
  --muted: #62708a;
  --gold: #c89b57;
  --error: #b42318;
  --shadow: 0 22px 50px rgba(20, 43, 80, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 5px;
  background: white;
  color: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.top-rule { height: 8px; background: var(--gold); }

.site-header {
  width: min(1160px, calc(100% - 48px));
  min-height: 110px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; width: 172px; }
.brand img { display: block; width: 100%; height: 76px; object-fit: contain; object-position: left center; }
.header-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding: 82px max(24px, calc((100vw - 1160px) / 2));
  min-height: 400px;
  background: var(--navy);
  color: white;
}
.hero::before {
  position: absolute;
  right: -6vw;
  bottom: -180px;
  width: min(55vw, 690px);
  height: min(55vw, 690px);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  content: "";
}
.hero::after {
  position: absolute;
  right: 8%;
  top: 0;
  width: 2px;
  height: 150px;
  background: var(--gold);
  content: "";
}
.hero-copy, .hero-aside { position: relative; z-index: 1; }
.hero-copy { max-width: 670px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow span { width: 23px; height: 2px; background: var(--gold); }
.eyebrow.dark { color: var(--blue); }
.hero h1, .survey-heading h2, .optional-name h3, .success-message h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.hero h1 { max-width: 700px; font-size: clamp(3.8rem, 8vw, 6.75rem); line-height: .9; }
.hero h1 em { color: #dce9ff; font-style: italic; }
.hero-intro { max-width: 570px; margin: 28px 0 0; color: #e5ebf6; font-size: 1.07rem; }
.hero-aside {
  align-self: flex-end;
  width: min(300px, 31vw);
  padding: 24px 0 0 28px;
  border-top: 1px solid rgba(255,255,255,.5);
}
.star-mark { position: absolute; top: -47px; left: 27px; color: var(--gold); font-size: 1.6rem; }
.hero-aside p { margin: 0; color: #edf3fb; font-size: .94rem; }
.survey-facts { display: flex; gap: 17px; margin-top: 18px; color: white; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.survey-facts span + span { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.45); }

.survey-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto 86px; display: flex; align-items: stretch; background: white; box-shadow: var(--shadow); }
.survey-rail { width: 86px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 56px 0 44px; background: var(--blue-light); color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.survey-rail div { width: 1px; flex: 1; margin: 16px 0; background: #b8cae5; }
.survey-content { flex: 1; min-width: 0; padding: 56px clamp(24px, 5vw, 78px) 70px; }
.survey-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.survey-heading h2 { max-width: 600px; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; }
.required-note { flex: none; margin: 0 0 4px; color: var(--muted); font-size: .78rem; }
.required-note b, legend b { color: var(--error); }

.progress-wrap { margin: 28px 0 13px; }
.progress-copy { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .76rem; }
.progress-copy strong { color: var(--ink); font-weight: 700; }
.progress-track { overflow: hidden; height: 5px; margin-top: 9px; border-radius: 99px; background: #e8edf4; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }

form { margin-top: 5px; }
.question { margin: 0; padding: 29px 0 31px; border: 0; border-bottom: 1px solid var(--line); }
.question legend { width: 100%; padding: 0; color: var(--ink); font-size: 1.03rem; font-weight: 710; line-height: 1.4; }
.question-number { display: inline-block; min-width: 40px; margin-right: 12px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; vertical-align: 0.14em; }
.helper-text { margin: 8px 0 17px 52px; color: var(--muted); font-size: .82rem; }
.choices { display: grid; gap: 11px; margin: 21px 0 0 52px; }
.choices.five-up { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choices.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.stacked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 14px; border: 1px solid #d3dce9; border-radius: 4px; background: white; color: #2a3a56; font-size: .9rem; transition: border-color .16s, background .16s, box-shadow .16s; }
.choice:hover { border-color: #85a7d7; background: #fbfdff; }
.choice:has(input:checked) { border-color: var(--blue); background: #eff5fd; box-shadow: inset 3px 0 0 var(--blue); }
.choice input:not(.inline-input) { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); flex: none; }
.choice-other { flex-wrap: wrap; }
.choice-other .inline-input { width: 100%; height: 32px; margin: 2px 0 0 27px; padding: 2px 0; border: 0; border-bottom: 1px solid #99a8bf; border-radius: 0; background: transparent; color: var(--ink); font-size: .84rem; }
.choice-other .inline-input:disabled { display: none; }
.choice-other .inline-input::placeholder { color: #8390a6; }
textarea, .optional-name input { display: block; width: calc(100% - 52px); margin: 20px 0 0 52px; padding: 15px; resize: vertical; border: 1px solid #cdd7e4; border-radius: 4px; background: #fff; color: var(--ink); }
textarea::placeholder, .optional-name input::placeholder { color: #7d8aa0; }
textarea:focus, .optional-name input:focus { border-color: var(--blue); outline: 3px solid rgba(31,94,173,.16); outline-offset: 0; }
.error-message { display: none; margin: 12px 0 0 52px; color: var(--error); font-size: .82rem; font-weight: 650; }
.question.has-error .error-message { display: block; }
.question.has-error .choices { outline: 1px solid var(--error); outline-offset: 7px; border-radius: 3px; }

.optional-name { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: end; margin-top: 40px; padding: 31px 34px; border-radius: 4px; background: var(--warm-white); }
.optional-name .eyebrow { margin-bottom: 11px; }
.optional-name h3 { font-size: 1.8rem; line-height: 1.05; }
.optional-name p { max-width: 520px; margin: 11px 0 0; color: #526077; font-size: .9rem; }
.optional-name label { display: block; color: var(--ink); font-size: .87rem; font-weight: 720; }
.optional-name label span { color: var(--muted); font-weight: 500; }
.optional-name input { width: 100%; margin: 8px 0 0; }
.form-footer { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding-top: 32px; }
.form-footer p { max-width: 590px; margin: 0; color: #536177; font-size: .88rem; }
.form-status { display: none; width: 100%; max-width: none !important; margin: 0 0 18px !important; padding: 11px 13px; border-radius: 3px; font-size: .88rem !important; }
.form-status.is-error { display: block; border: 1px solid #f3b7b0; background: #fff2f0; color: var(--error); font-weight: 650; }
.submit-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 205px; padding: 15px 18px 15px 22px; border: 0; border-radius: 3px; background: var(--navy); color: white; font-weight: 760; transition: background .16s, transform .16s; }
.submit-button:hover { background: #0e3e87; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .7; transform: none; }
.submit-button span:last-child { font-size: 1.35rem; line-height: .8; }

.success-message { max-width: 650px; margin: 68px auto 10px; padding: 60px 20px; text-align: center; }
.success-star { margin-bottom: 12px; color: var(--gold); font-size: 3.8rem; line-height: 1; }
.success-message .eyebrow { justify-content: center; }
.success-message h2 { margin-top: 14px; font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: .96; }
.success-message > p:not(.eyebrow):not(.success-signoff) { max-width: 530px; margin: 22px auto 0; color: var(--muted); }
.success-signoff { margin: 35px 0 0; color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

footer { display: flex; justify-content: space-between; width: min(1160px, calc(100% - 48px)); margin: 0 auto 40px; color: #68758a; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
footer p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 850px) {
  .hero { gap: 38px; padding-top: 66px; padding-bottom: 62px; }
  .hero-aside { width: min(260px, 34vw); }
  .choices.five-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .optional-name { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .top-rule { height: 6px; }
  .site-header { width: min(100% - 32px, 1160px); min-height: 91px; }
  .brand { width: 150px; }
  .brand img { height: 66px; }
  .header-label { max-width: 115px; text-align: right; font-size: .62rem; }
  .hero { display: block; min-height: 0; padding: 54px 24px 62px; }
  .hero::before { right: -140px; bottom: -240px; width: 480px; height: 480px; }
  .hero::after { right: 24px; height: 75px; }
  .hero h1 { font-size: clamp(3.65rem, 16vw, 5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-aside { width: auto; margin: 53px 0 0 26px; padding-left: 20px; }
  .survey-shell { width: 100%; margin: 0 0 54px; box-shadow: none; }
  .survey-rail { display: none; }
  .survey-content { padding: 42px 22px 52px; }
  .survey-heading { display: block; padding-bottom: 23px; }
  .survey-heading h2 { font-size: 2.45rem; }
  .required-note { margin-top: 18px; }
  .progress-copy { display: block; }
  .progress-copy strong { display: block; margin-top: 2px; }
  .question { padding: 25px 0; }
  .question legend { font-size: 1rem; }
  .question-number { display: block; margin: 0 0 7px; }
  .choices, textarea, .helper-text, .error-message { margin-left: 0; }
  .choices.five-up, .choices.two-up, .choices.stacked { grid-template-columns: 1fr; }
  .choice { min-height: 46px; }
  .optional-name { margin-top: 28px; padding: 28px 21px; }
  .form-footer { display: block; }
  .form-footer p { margin-bottom: 24px; }
  .submit-button { width: 100%; }
  footer { display: block; width: calc(100% - 44px); margin-bottom: 28px; }
  footer p + p { margin-top: 8px; }
}
