:root {
  --quiz-navy: #082f3a;
  --quiz-teal: #2f5a69;
  --quiz-red: #c33040;
  --quiz-cream: #f7f4ed;
  --quiz-line: #dce4e5;
  --quiz-shadow: 0 28px 80px rgba(10, 39, 48, .14);
}

* { box-sizing: border-box; }

.quiz-page { margin: 0; background: #f8f7f3; }

.quiz-main {
  position: relative;
  min-height: calc(100svh - 101px);
  overflow: clip;
  isolation: isolate;
  padding: clamp(28px, 5vw, 72px) 24px;
}

.quiz-backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.quiz-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,244,237,.9)),
    radial-gradient(circle at 20% 20%, rgba(47,90,105,.14), transparent 42%);
}
.quiz-orb { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .75; }
.quiz-orb--one { width: 420px; height: 420px; right: -170px; top: -210px; background: rgba(195,48,64,.12); animation: quiz-float 9s ease-in-out infinite; }
.quiz-orb--two { width: 320px; height: 320px; left: -160px; bottom: -130px; background: rgba(47,90,105,.14); animation: quiz-float 11s ease-in-out infinite reverse; }
.quiz-wave {
  position: absolute;
  width: 140%;
  height: 220px;
  left: -20%;
  bottom: -150px;
  border: 1px solid rgba(47,90,105,.12);
  border-radius: 50%;
  box-shadow: 0 -28px 0 rgba(47,90,105,.025), 0 -56px 0 rgba(47,90,105,.018);
}

.quiz-layout {
  width: min(1240px, 100%);
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.22fr);
  border: 1px solid rgba(18,36,46,.08);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--quiz-shadow);
}

.quiz-story {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 4.5vw, 64px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #0c3e49 0%, #082f3a 58%, #06252d 100%);
}
.quiz-story::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -150px;
  right: -130px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.018);
}
.quiz-story__copy { position: relative; z-index: 1; }
.quiz-eyebrow,
.quiz-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.quiz-eyebrow { color: #f1a4ad; }
.quiz-kicker { color: var(--quiz-red); }
.quiz-story h1 {
  max-width: 420px;
  margin: 0 0 20px;
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: .98;
}
.quiz-story__copy > p:last-of-type { max-width: 520px; margin: 0; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.58; }
.quiz-benefits { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.quiz-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-weight: 600; }
.quiz-benefits span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #f1a4ad;
  font-size: 11px;
}

.quiz-story__photos { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 78px 78px; gap: 10px; min-height: 166px; }
.quiz-photo { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); }
.quiz-photo--main { grid-row: 1 / 3; }
.quiz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.quiz-story:hover .quiz-photo--main img { transform: scale(1.04); }

.quiz-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(28px, 4.5vw, 58px); background: rgba(255,255,255,.98); }
.quiz-progress { margin-bottom: clamp(28px, 4vw, 46px); }
.quiz-progress__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: #60727a; font-size: 14px; font-weight: 700; }
.quiz-progress__track { height: 6px; overflow: hidden; border-radius: 999px; background: #e9eeee; }
.quiz-progress__track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--quiz-teal), var(--quiz-red)); transition: width .45s cubic-bezier(.2,.8,.2,1); }

.quiz-stage { min-height: 520px; display: flex; flex: 1; flex-direction: column; }
.quiz-welcome { margin: auto 0; animation: quiz-enter .5s both; }
.quiz-welcome__badge,
.quiz-question__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4f4;
  color: var(--quiz-teal);
  font-size: 13px;
  font-weight: 700;
}
.quiz-welcome h2,
.quiz-question h2,
.quiz-lead h2,
.quiz-results h2 { margin: 0; color: var(--quiz-navy); font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
.quiz-welcome > p:not(.quiz-kicker):not(.quiz-fine-print) { max-width: 650px; margin: 20px 0 28px; color: #586c74; font-size: 18px; line-height: 1.55; }
.quiz-primary,
.quiz-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.quiz-primary { border: 1px solid var(--quiz-red); background: var(--quiz-red); color: #fff; box-shadow: 0 12px 24px rgba(195,48,64,.2); }
.quiz-primary:hover,
.quiz-primary:focus-visible { transform: translateY(-2px); background: #a92332; box-shadow: 0 16px 28px rgba(195,48,64,.25); }
.quiz-primary:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.quiz-secondary { border: 1px solid var(--quiz-line); background: #fff; color: var(--quiz-navy); }
.quiz-secondary:hover,
.quiz-secondary:focus-visible { border-color: var(--quiz-teal); color: var(--quiz-teal); transform: translateY(-1px); }
.quiz-fine-print { margin: 16px 0 0; color: #75858b; font-size: 15px; line-height: 1.5; }

.quiz-question { display: flex; flex: 1; flex-direction: column; animation: quiz-enter .38s both; }
.quiz-question__intro { margin-bottom: 28px; }
.quiz-question__intro p { max-width: 700px; margin: 14px 0 0; color: #63757d; font-size: 16px; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; border: 0; }
.quiz-option {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  overflow: hidden;
  border: 1px solid var(--quiz-line);
  border-radius: 15px;
  background: #fff;
  color: var(--quiz-navy);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.quiz-option::after { content: ""; position: absolute; width: 12px; height: 12px; right: 16px; top: 16px; border: 2px solid #9eb0b5; border-radius: 50%; transition: .18s ease; }
.quiz-option:hover,
.quiz-option:focus-visible { border-color: #9ab2b8; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,54,64,.08); }
.quiz-option.is-selected { border-color: var(--quiz-red); background: #fff8f8; box-shadow: 0 0 0 3px rgba(195,48,64,.09); }
.quiz-option.is-selected::after { border-color: var(--quiz-red); background: var(--quiz-red); box-shadow: inset 0 0 0 3px #fff; }
.quiz-option__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #edf3f3; color: var(--quiz-teal); font-size: 21px; }
.quiz-option__copy { min-width: 0; padding-right: 18px; }
.quiz-option__copy strong { display: block; font-size: 17px; line-height: 1.2; }
.quiz-option__copy small { display: block; margin-top: 4px; color: #728188; font-size: 13px; line-height: 1.25; }
.quiz-other { margin: -8px 0 20px; }
.quiz-other label { display: block; margin-bottom: 6px; color: var(--quiz-navy); font-weight: 700; }
.quiz-other input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--quiz-line); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; }
.quiz-nav__hint { color: #78878c; font-size: 13px; }

.quiz-lead { animation: quiz-enter .38s both; }
.quiz-lead__intro { margin-bottom: 24px; }
.quiz-lead__intro p { max-width: 680px; margin: 14px 0 0; color: #63757d; font-size: 16px; }
.quiz-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.quiz-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.quiz-field--full { grid-column: 1 / -1; }
.quiz-field label { color: var(--quiz-navy); font-size: 14px; font-weight: 700; }
.quiz-field input,
.quiz-field select,
.quiz-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--quiz-line); border-radius: 9px; background: #fff; color: var(--quiz-navy); font-size: 16px; }
.quiz-field input,
.quiz-field select { height: 48px; }
.quiz-field textarea { min-height: 88px; resize: vertical; }
.quiz-field small { color: #77868c; }
.quiz-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.quiz-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; color: #65767d; font-size: 13px; line-height: 1.4; }
.quiz-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--quiz-red); }
.quiz-consent a { color: var(--quiz-red); }
.quiz-form__actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 14px; margin-top: 5px; }
.quiz-error { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 9px; background: #fff0f1; color: #8e1e2b; font-weight: 700; }
.quiz-submit-status { display: inline-flex; align-items: center; gap: 9px; }
.quiz-submit-status::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: quiz-spin .7s linear infinite; }

.quiz-results { animation: quiz-enter .45s both; }
.quiz-results__intro { margin-bottom: 24px; }
.quiz-results__intro p { max-width: 690px; margin: 14px 0 0; color: #63757d; font-size: 16px; }
.quiz-results__note { margin: 0 0 18px; padding: 11px 13px; border-left: 3px solid var(--quiz-red); border-radius: 0 8px 8px 0; background: #fff7f7; color: #6d4c51; }
.quiz-results__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quiz-result-card { overflow: hidden; border: 1px solid var(--quiz-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(16,54,64,.07); transition: transform .2s ease, box-shadow .2s ease; }
.quiz-result-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,54,64,.12); }
.quiz-result-card__image { width: 100%; position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; background: #e9eeee; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.quiz-result-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.quiz-result-card:hover img { transform: scale(1.045); }
.quiz-result-card__rank { position: absolute; left: 10px; top: 10px; display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgba(8,47,58,.92); color: #fff; font-weight: 800; }
.quiz-result-card__gallery-label { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 999px; background: rgba(8,47,58,.9); color: #fff; font-size: 12px; font-weight: 800; }
.quiz-result-card__body { display: block; padding: 15px; color: inherit; text-decoration: none; }
.quiz-result-card__tier { color: var(--quiz-red); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.quiz-result-card h3 { margin: 5px 0 7px; font-size: 24px; }
.quiz-result-card p { min-height: 42px; margin: 0 0 12px; color: #65767d; font-size: 14px; line-height: 1.45; }
.quiz-result-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.quiz-result-card__meta span { padding: 4px 8px; border-radius: 999px; background: #edf3f3; color: var(--quiz-teal); font-size: 12px; font-weight: 700; }
.quiz-result-card__link { display: inline-flex; align-items: center; gap: 7px; color: var(--quiz-red); font-weight: 800; }
.quiz-result-card__body:hover .quiz-result-card__link,
.quiz-result-card__body:focus-visible .quiz-result-card__link { text-decoration: underline; text-underline-offset: 3px; }
.quiz-results__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quiz-success { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #196349; font-weight: 800; }
.quiz-success::before { content: "✓"; display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e3f5ed; }
.quiz-noscript { margin: auto 0; padding: 20px; border-radius: 12px; background: #fff4f4; color: #79212c; }

.quiz-guide { position: relative; width: min(1360px, 100%); margin: 32px auto 0; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--quiz-line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 16px 48px rgba(10,39,48,.08); }
.quiz-guide .quiz-kicker { color: var(--quiz-red); }
.quiz-guide h2 { max-width: 780px; margin: 0; color: var(--quiz-navy); font-family: var(--brand-font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; text-transform: uppercase; }
.quiz-guide__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 20px; }
.quiz-guide__grid p { margin: 0; color: #596e77; font-size: 17px; line-height: 1.65; }
.quiz-guide a { color: var(--quiz-red); font-weight: 700; text-underline-offset: 3px; }

@keyframes quiz-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes quiz-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,18px,0); } }
@keyframes quiz-spin { to { transform: rotate(360deg); } }

@media (min-width: 821px) {
  .quiz-main { padding-block: clamp(16px, 2.4vh, 28px); }
  .quiz-layout { min-height: min(650px, calc(100svh - 140px)); }
  .quiz-story { gap: 20px; padding: clamp(28px, 4vh, 48px); }
  .quiz-story h1 { margin-bottom: 14px; font-size: clamp(42px, 3.4vw, 58px); }
  .quiz-story__copy > p:last-of-type { font-size: 16px; line-height: 1.45; }
  .quiz-benefits { gap: 8px; margin-top: 18px; }
  .quiz-benefits span { width: 30px; height: 30px; }
  .quiz-story__photos { grid-template-rows: 64px 64px; min-height: 138px; }
  .quiz-card { padding: clamp(24px, 4vh, 44px); }
  .quiz-progress { margin-bottom: clamp(20px, 3vh, 32px); }
  .quiz-stage { min-height: clamp(430px, calc(100svh - 280px), 500px); }
  .quiz-question__intro { margin-bottom: 22px; }
}

@media (min-width: 821px) and (max-height: 820px) {
  .quiz-layout { min-height: calc(100svh - 132px); }
  .quiz-story { justify-content: center; }
  .quiz-story__photos { display: none; }
  .quiz-stage { min-height: 420px; }
}

@media (max-width: 1040px) {
  .quiz-main { padding: 24px; }
  .quiz-layout { grid-template-columns: minmax(270px, .68fr) minmax(470px, 1.32fr); }
  .quiz-story { padding: 36px 30px; }
  .quiz-story h1 { font-size: 44px; }
  .quiz-story__photos { grid-template-columns: 1fr 1fr; grid-template-rows: 110px; }
  .quiz-photo--main { grid-row: auto; }
  .quiz-photo:last-child { display: none; }
  .quiz-results__grid { grid-template-columns: 1fr; }
  .quiz-result-card { display: grid; grid-template-columns: 180px 1fr; }
  .quiz-result-card__image { aspect-ratio: auto; min-height: 190px; }
}

@media (max-width: 820px) {
  .quiz-main { min-height: auto; padding: 14px; }
  .quiz-layout { min-height: 0; display: block; border-radius: 20px; }
  .quiz-story { min-height: 270px; padding: 30px 24px; }
  .quiz-story h1 { max-width: 540px; margin-bottom: 14px; font-size: clamp(38px, 11vw, 56px); }
  .quiz-story__copy > p:last-of-type { font-size: 16px; }
  .quiz-benefits { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 22px; }
  .quiz-benefits li { align-items: flex-start; gap: 7px; font-size: 13px; }
  .quiz-benefits span { width: 28px; height: 28px; }
  .quiz-story__photos { display: none; }
  .quiz-card { padding: 28px 22px; }
  .quiz-stage { min-height: 500px; }
  .quiz-welcome { margin: 16px 0 auto; }
  .quiz-guide { margin-top: 20px; }
  .quiz-guide__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .quiz-main { padding: 0; }
  .quiz-layout { border: 0; border-radius: 0; box-shadow: none; }
  .quiz-story { min-height: 250px; border-radius: 0 0 24px 24px; }
  .quiz-story__copy > p:last-of-type { display: none; }
  .quiz-benefits { grid-template-columns: 1fr; margin-top: 18px; }
  .quiz-benefits li:nth-child(n+3) { display: none; }
  .quiz-card { min-height: 580px; padding: 26px 18px 34px; }
  .quiz-progress { margin-bottom: 28px; }
  .quiz-stage { min-height: 0; }
  .quiz-welcome h2,
  .quiz-question h2,
  .quiz-lead h2,
  .quiz-results h2 { font-size: 36px; }
  .quiz-welcome > p:not(.quiz-kicker):not(.quiz-fine-print) { font-size: 16px; }
  .quiz-primary,
  .quiz-secondary { min-height: 50px; padding-inline: 20px; }
  .quiz-welcome .quiz-primary { width: 100%; }
  .quiz-options { grid-template-columns: 1fr; gap: 10px; }
  .quiz-option { min-height: 70px; }
  .quiz-option__copy strong { font-size: 16px; }
  .quiz-nav { align-items: stretch; }
  .quiz-nav__hint { display: none; }
  .quiz-nav .quiz-primary,
  .quiz-nav .quiz-secondary { flex: 1; }
  .quiz-form { grid-template-columns: 1fr; }
  .quiz-field--full,
  .quiz-consent,
  .quiz-form__actions,
  .quiz-error { grid-column: 1; }
  .quiz-form__actions { flex-direction: column-reverse; }
  .quiz-form__actions button { width: 100%; }
  .quiz-result-card { display: block; }
  .quiz-result-card__image { min-height: 0; aspect-ratio: 4 / 3; }
  .quiz-results__actions { display: grid; }
  .quiz-guide { margin-top: 14px; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .quiz-guide__grid p { font-size: 16px; }
}

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