@font-face {
  font-family: "Open Sans Local";
  src: local("Open Sans"), local("Arial");
  font-weight: 400;
}

@font-face {
  font-family: "Open Sans Local";
  src: local("Open Sans Bold"), local("Arial Bold");
  font-weight: 800;
}

:root {
  --green: #002147;
  --green-dark: #000a1e;
  --green-soft: #e2edf4;
  --gold: #fed488;
  --gold-soft: #aec7f6;
  --cream: #fffdf8;
  --paper: #e2edf4;
  --text: #1d241f;
  --muted: #626c64;
  --line: rgba(68, 71, 78, 0.18);
  --shadow: 0 22px 55px rgba(0, 10, 30, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 4px;
  background: #002147;
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Open Sans Local", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body[data-quiz-state="active"] {
  background: #e2edf4;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #f0b228;
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.top-strip {
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
}

.top-strip .container,
.logo-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip .container {
  min-height: 46px;
}

.top-strip p {
  margin: 0;
}

.top-strip strong,
.eyebrow,
.section-kicker {
  color: var(--gold-soft);
}

.top-strip a {
  font-weight: 800;
}

.logo-strip {
  background: #e2edf4;
  border-bottom: 1px solid var(--line);
}

.logo-strip .container {
  justify-content: center;
  width: min(calc(100% - 20px), var(--max));
  min-height: 68px;
}

.logo-strip img,
.minimal-footer img {
  width: 184px;
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  background: #002147;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.button-phone {
  background: #fed488;
  color: #002147;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #e2edf4;
  color: #002147;
  padding: 46px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(226, 237, 244, 0.98), rgba(226, 237, 244, 0.94));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
  min-height: 0;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 760px;
}

.hero-copy-active {
  gap: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  text-transform: none;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(0, 33, 71, 0.82);
  font-size: 16px;
}

.hero .section-kicker {
  color: #465f88;
}

.section-kicker-flag {
  display: inline-block;
  width: auto;
  height: 12px;
  margin-left: 0.16em;
  vertical-align: -0.06em;
}

.hero-flag-wrap {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
}

.hero-flag-wrap img {
  width: min(100%, 172px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 33, 71, 0.08));
}

@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(247, 200, 67, 0.4);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 22px 8px rgba(247, 200, 67, 0.22);
  }
}

.hero-start-button {
  min-width: 220px;
  margin-top: 10px;
  border: 1px solid #e0b93b;
  border-radius: 5px;
  background: #f7c843;
  color: #002147;
  font-size: 18px;
  animation: gentle-pulse 2.5s ease-in-out infinite;
}

body[data-quiz-state="active"] .hero {
  min-height: 100vh;
  padding-bottom: 40px;
}

body[data-quiz-state="active"] .hero-inner {
  gap: 18px;
  align-content: start;
}

body[data-quiz-state="active"] [data-pre-quiz-state],
body[data-quiz-state="active"] [data-pre-quiz-content] {
  display: none !important;
}

body[data-quiz-state="pre"] [data-active-quiz-state] {
  display: none !important;
}

.promise-row,
.awards,
.quiz-section,
.results,
.minimal-footer {
  padding: 58px 0;
}

.promise-row,
.awards {
  padding-top: 44px;
}

.promise-row,
.awards,
.quiz-section,
.results,
.minimal-footer {
  background: var(--paper);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.promise-grid article {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.promise-grid img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.promise-grid strong {
  font-weight: 800;
  text-transform: uppercase;
}

.promise-grid p,
.awards p,
.quiz-copy p,
.results-disclaimer,
.minimal-footer p {
  margin: 0;
  color: var(--muted);
}

.awards-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.awards h2,
.quiz-copy h2,
.results h2 {
  margin: 8px 0 14px;
  color: var(--green);
  font-size: clamp(32px, 4vw, 52px);
}

.award-logos {
  display: grid;
  grid-template-columns: 120px 1fr 132px;
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.award-logos img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

.award-logos img:nth-child(2) {
  width: min(100%, 330px);
  max-height: 76px;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
}

.quiz-copy {
  display: grid;
  gap: 14px;
}

.quiz-copy ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding-left: 20px;
  font-weight: 800;
}

.quiz-card {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-quiz-card {
  margin-top: 4px;
  text-align: left;
}

body[data-quiz-state="active"] .hero-quiz-card {
  margin-top: 0;
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress {
  height: 10px;
  overflow: hidden;
  background: rgba(0, 33, 71, 0.12);
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: #002147;
}

.quiz-stage {
  display: grid;
  gap: 10px;
}

.quiz-form {
  gap: 16px;
}

.quiz-fields {
  display: grid;
  gap: 14px;
}

.quiz-field {
  display: grid;
  gap: 8px;
}

.quiz-label {
  color: #002147;
  font-size: 14px;
  font-weight: 800;
}

.quiz-stage h3 {
  margin: 0 0 6px;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.quiz-stage p {
  margin: 0 0 10px;
  color: var(--muted);
}

.quiz-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(0, 33, 71, 0.22);
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.quiz-stage textarea.quiz-input {
  min-height: 120px;
  resize: vertical;
}

.quiz-choice {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(0, 33, 71, 0.18);
  padding: 0 16px;
  background: #f8fbfd;
  color: #002147;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.quiz-choice:hover {
  border-color: #002147;
  background: #eef6fb;
}

.quiz-choice:focus-visible {
  border-color: #002147;
  background: #eef6fb;
}

.quiz-submit {
  justify-self: start;
  min-width: 180px;
  border: 1px solid #e0b93b;
  border-radius: 5px;
  background: #f7c843;
  color: #002147;
}

.quiz-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(0, 33, 71, 0.22);
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.consent input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.results {
  background: var(--green-dark);
  color: #fff;
}

.results h2 {
  color: #fff;
}

.results-disclaimer {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.result-slider {
  overflow: hidden;
}

.result-track {
  display: flex;
  transition: transform 180ms ease;
}

.result-card {
  flex: 0 0 100%;
  min-height: 250px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f8f9fa;
  color: #191c1d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.result-card p,
.result-card span {
  margin: 0;
  color: rgba(25, 28, 29, 0.82);
}

.result-card span {
  display: block;
  margin: 2px 0 10px;
  color: #002147;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 1;
  color: #002147;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.slider-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 33, 71, 0.18);
  background: #f8f9fa;
  color: #002147;
  font-size: 24px;
  cursor: pointer;
}

.minimal-footer {
  padding: 24px 0 28px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.thank-you-main {
  min-height: calc(100vh - 68px);
}

.thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 88px;
  text-align: center;
}

.thank-you-card p + p {
  margin-top: 18px;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.footer-top,
.footer-bottom {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-top p {
  text-align: right;
  font-size: 12px;
  max-width: 300px;
  line-height: 1.45;
}

.footer-disclaimer {
  margin: 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0;
}

.footer-bottom {
  margin-top: 28px;
}

@media (max-width: 920px) {
  .hero-inner,
  .awards-inner,
  .quiz-layout {
    grid-template-columns: 1fr;
  }

  body[data-quiz-state="active"] .hero {
    padding-top: 30px;
  }

  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 561px) and (max-height: 760px) {
  .hero {
    padding: 34px 0 42px;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-flag-wrap img {
    width: min(100%, 150px);
  }

  .promise-row {
    padding-top: 34px;
  }
}

@media (max-width: 560px) {
  .top-strip .container,
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .logo-strip .container {
    width: min(calc(100% - 16px), var(--max));
    min-height: 60px;
  }

  .logo-strip img {
    width: 164px;
  }

  .hero {
    padding: 46px 0 56px;
  }

  body[data-quiz-state="pre"] .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 61px);
  }

  body[data-quiz-state="pre"] .hero-inner {
    width: 100%;
  }

  body[data-quiz-state="pre"] .hero-copy {
    gap: 40px;
  }

  body[data-quiz-state="pre"] .hero p {
    line-height: 1.62;
  }

  body[data-quiz-state="pre"] .hero-flag-wrap {
    margin-top: 0;
  }

  body[data-quiz-state="pre"] .hero-start-button {
    min-width: 0;
    width: 100%;
    justify-self: stretch;
  }

  body[data-quiz-state="active"] .hero {
    padding: 18px 0 0;
    min-height: calc(100vh - 61px);
  }

  body[data-quiz-state="active"] .hero-inner {
    gap: 10px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .hero-flag-wrap img {
    width: min(100%, 144px);
  }

  .award-logos {
    grid-template-columns: 76px minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .award-logos img {
    max-height: 62px;
  }

  .award-logos img:nth-child(2) {
    width: min(100%, 210px);
    max-height: 50px;
  }

  .lead-form,
  .quiz-card,
  .result-card {
    padding: 22px;
  }

  .quiz-submit {
    width: 100%;
    justify-self: stretch;
  }

  .thank-you-main {
    min-height: calc(100vh - 60px);
  }

  .thank-you-card {
    padding: 48px 12px 64px;
  }

  .footer-top p {
    text-align: center;
  }

  .footer-top img {
    margin: 0 auto;
  }

  .footer-disclaimer {
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 420px) and (max-height: 700px) {
  body[data-quiz-state="active"] .hero {
    padding-top: 12px;
  }

  body[data-quiz-state="active"] .hero-inner {
    gap: 8px;
  }

  body[data-quiz-state="active"] .quiz-card {
    gap: 10px;
    padding: 18px;
  }

  body[data-quiz-state="active"] .quiz-stage,
  body[data-quiz-state="active"] .quiz-form,
  body[data-quiz-state="active"] .quiz-fields {
    gap: 10px;
  }

  body[data-quiz-state="active"] .quiz-stage h3 {
    margin-bottom: 2px;
    font-size: 23px;
  }

  body[data-quiz-state="active"] .quiz-stage p {
    margin-bottom: 4px;
  }

  body[data-quiz-state="active"] .quiz-choice {
    min-height: 50px;
    padding: 0 14px;
  }
}

@media (min-width: 769px) and (max-height: 900px) {
  .hero {
    padding: 30px 0 32px;
  }

  h1 {
    font-size: clamp(28px, 3.8vw, 42px);
  }

  .hero p {
    font-size: 14px;
    max-width: 580px;
  }

  .hero-flag-wrap img {
    width: min(100%, 130px);
  }

  .hero-start-button {
    margin-top: 4px;
  }

  .promise-row {
    padding-top: 24px;
    padding-bottom: 100px;
  }
}

@media (min-width: 1920px) {
  .hero-start-button {
    min-width: 300px;
    min-height: 68px;
    font-size: 22px;
    margin-top: 32px;
    padding: 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-start-button {
    animation: none;
  }
}
