:root {
  --ink: #0a344b;
  --ink-soft: #456370;
  --muted: #58727b;
  --paper: #fff8ed;
  --paper-soft: #fffdf8;
  --mist: #eef8fa;
  --sea: #006ca8;
  --sea-dark: #064f7b;
  --night: #033657;
  --gold: #c58d3a;
  --gold-text: #875817;
  --line: rgba(10, 52, 75, .14);
  --shadow-soft: 0 18px 52px rgba(6, 44, 66, .10);
  --shadow-card: 0 28px 82px rgba(6, 44, 66, .14);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(214, 237, 248, .70), transparent 31%),
    radial-gradient(circle at 90% 22%, rgba(0, 108, 168, .10), transparent 31%),
    linear-gradient(180deg, #f8fcfd 0%, var(--paper) 44%, var(--mist) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

.hidden {
  display: none !important;
}

.app {
  min-height: 100vh;
}

.quiz {
  display: grid;
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100svh - 40px);
  margin: 20px auto;
  padding: 24px 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, .78), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 237, .94), rgba(237, 248, 251, .88));
  box-shadow: var(--shadow-card);
}

.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 14px 38px rgba(3, 54, 87, .07);
  backdrop-filter: blur(14px);
}

.topbar img {
  width: 192px;
  height: auto;
}

.text-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 108, 168, .18);
  border-radius: 7px;
  color: var(--night);
  background: rgba(255, 255, 255, .58);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.text-button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 108, 168, .38);
  background: rgba(255, 255, 255, .88);
}

.progress {
  width: min(320px, 48vw);
  margin: 14px auto 0;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.progress > div {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 52, 75, .14);
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--sea));
  transition: width .25s ease;
}

.quiz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: clamp(28px, 4vw, 46px);
  align-items: center;
  padding: 34px 2px 20px;
}

.question-zone {
  max-width: 720px;
}

.eyebrow,
.band-label,
.card-kicker {
  margin: 0 0 14px;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--gold-text), transparent);
}

.question-zone h1 {
  max-width: 690px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
}

.accent {
  color: var(--gold-text);
  font-style: italic;
}

.question-help {
  max-width: 600px;
  margin: 20px 0 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.answers {
  display: grid;
  max-width: 740px;
  gap: 11px;
}

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

.answers.count-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.answers.count-5 .answer {
  grid-column: span 2;
}

.answers.count-5 .answer:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.answers.count-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.answers.count-8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.answer {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 17px 14px 15px;
  border: 1px solid rgba(10, 52, 75, .14);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .82), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(239, 249, 252, .76));
  box-shadow:
    0 14px 36px rgba(0, 83, 135, .08),
    inset 0 -1px 0 rgba(197, 141, 58, .16);
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.answer:hover,
.answer.selected {
  transform: translateY(-3px);
  border-color: rgba(0, 108, 168, .42);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .92), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(222, 242, 249, .88));
  box-shadow:
    0 22px 52px rgba(0, 83, 135, .14),
    inset 0 -2px 0 rgba(197, 141, 58, .32);
}

.answer.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sea-dark);
  font-size: 13px;
  font-weight: 700;
}

.answer-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 108, 168, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.answer-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(31%) sepia(81%) saturate(803%) hue-rotate(167deg) brightness(86%) contrast(101%);
}

.answer-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.photo-note {
  display: flex;
  min-height: 390px;
  align-items: end;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 54, 87, .04), rgba(3, 54, 87, .44)),
    var(--bg, url("assets/photos/hero.jpg")) center / cover;
  box-shadow: 0 24px 70px rgba(0, 83, 135, .17);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .30);
}

.photo-note p {
  margin-bottom: 10px;
  color: #ffe0a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.photo-note strong {
  display: block;
  max-width: 280px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.nav-link,
.nav-primary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link {
  border: 1px solid rgba(10, 52, 75, .14);
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
}

.nav-primary {
  border: 1px solid rgba(217, 238, 245, .52);
  color: #fff;
  background: linear-gradient(135deg, #0078b8, #005d96 52%, var(--night));
  box-shadow: 0 16px 38px rgba(0, 83, 135, .22);
}

.nav-primary:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.nav-link:hover,
.nav-primary:not(:disabled):hover {
  transform: translateY(-2px);
}

.question-loader {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 237, .48);
  backdrop-filter: blur(5px);
}

.question-loader span {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(0, 108, 168, .18);
  border-top-color: var(--sea);
  border-radius: 50%;
  animation: spin .72s linear infinite;
}

.quiz.is-changing .question-zone,
.quiz.is-changing .photo-note {
  opacity: .18;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
}

.result {
  min-height: 100vh;
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 237, 248, .58), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 67%, #fbf4e8 100%);
}

.result-hero,
.choices-band,
.result-editorial,
.itinerary-cta-band,
.alternative-section,
.carnet-preview,
.result-footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.result-hero {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
  grid-template-rows: auto auto 1fr;
  gap: 24px 34px;
  align-items: start;
  margin-top: 20px;
  padding: 24px 28px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 77% 28%, rgba(255, 255, 255, .42), transparent 22%),
    linear-gradient(90deg, rgba(255, 248, 237, .99), rgba(255, 248, 237, .90) 44%, rgba(255, 248, 237, .25) 70%, rgba(255, 248, 237, .08)),
    var(--hero, url("assets/photos/ile-martinique.jpg")) center right / cover;
  box-shadow: var(--shadow-card);
}

.result-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 90px 20px 20px auto;
  width: min(38%, 445px);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .02));
  pointer-events: none;
  backdrop-filter: blur(1px);
}

.result-topbar {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
}

.result-intro,
.profile-card,
.compatibility-card,
.result-proof-card {
  position: relative;
  z-index: 1;
}

.result-intro {
  grid-column: 1;
  grid-row: 2;
  max-width: 590px;
  padding-top: 8px;
}

.result-intro h1 {
  font-size: clamp(46px, 4.8vw, 66px);
  line-height: 1;
}

.result-intro h1 .accent {
  display: block;
  margin-top: 10px;
  color: var(--gold-text);
  font-size: .48em;
  line-height: 1.15;
}

.result-intro > p:last-child {
  max-width: 560px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.profile-card,
.result-proof-card,
.compatibility-card {
  padding: 24px 26px;
  border-radius: var(--radius);
}

.profile-card {
  grid-column: 1;
  grid-row: 3;
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, .74);
  background: rgba(255, 253, 248, .90);
  box-shadow: var(--shadow-soft);
}

.profile-card h2 {
  font-size: 31px;
  line-height: 1.08;
}

.profile-card h3 {
  margin-top: 6px;
  color: var(--gold-text);
  font-size: 21px;
  font-style: italic;
  line-height: 1.18;
}

.profile-card p:last-child {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.62;
}

.result-proof-card {
  grid-column: 2;
  grid-row: 2;
  min-height: 205px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 22px 62px rgba(0, 83, 135, .13);
  backdrop-filter: blur(15px);
}

.result-proof-card span,
.compatibility-card span,
.tradeoff-card > span,
.alternative-conditions > span,
.carnet-columns span {
  display: block;
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.result-proof-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.2vw, 33px);
  font-weight: 500;
  line-height: 1.08;
}

.result-proof-card p {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.58;
}

.compatibility-card {
  display: grid;
  min-height: 205px;
  grid-column: 2;
  grid-row: 3;
  align-content: center;
  border: 1px solid rgba(215, 247, 235, .62);
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .28), transparent 36%),
    linear-gradient(135deg, rgba(19, 117, 101, .94), rgba(0, 108, 168, .88) 55%, rgba(3, 54, 87, .96));
  box-shadow: 0 26px 68px rgba(3, 54, 87, .23);
}

.compatibility-card span {
  color: rgba(255, 232, 190, .96);
}

.compatibility-card strong {
  display: block;
  margin: 12px 0 8px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.04;
}

.compatibility-card i {
  max-width: 260px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.compatibility-reading {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.compatibility-reading b {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.compatibility-reading small,
.compatibility-disclaimer {
  max-width: 280px;
  color: rgba(255, 255, 255, .80);
  font-size: 12px;
  line-height: 1.45;
}

.compatibility-disclaimer {
  margin-top: 12px;
}

.choices-band {
  margin-top: 20px;
  padding: 24px 28px 26px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow-soft);
}

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

.choice-item {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .66);
}

.choice-item span {
  display: block;
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.choice-item strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.result-editorial,
.alternative-section,
.carnet-preview {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .82), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 237, .92), rgba(235, 249, 252, .82));
  box-shadow: var(--shadow-card);
}

.result-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 46px);
}

.result-editorial-copy h2,
.alternative-copy h2,
.carnet-preview h2 {
  margin-bottom: 15px;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.06;
}

.alternative-copy h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.alternative-score {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 108, 168, .18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, .64);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.result-editorial-copy > p:last-child,
.alternative-copy > p:last-child,
.carnet-preview > div:first-child > p:last-child,
.carnet-closing p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.tradeoff-card {
  display: grid;
  min-height: 230px;
  align-content: center;
  padding: 28px;
  border: 1px solid rgba(10, 52, 75, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-soft);
}

.tradeoff-card strong {
  display: block;
  margin: 10px 0 15px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.tradeoff-card ul,
.alternative-conditions ul,
.carnet-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tradeoff-card li,
.alternative-conditions li,
.carnet-columns li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.tradeoff-card li::before,
.alternative-conditions li::before,
.carnet-columns li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-text);
  box-shadow: 0 0 0 4px rgba(197, 141, 58, .13);
}

.itinerary-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(215, 247, 235, .50);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 108, 168, .96), rgba(3, 54, 87, .98));
  box-shadow: 0 24px 66px rgba(3, 54, 87, .20);
}

.itinerary-cta-band .band-label {
  color: #ffd899;
}

.itinerary-cta-band strong {
  display: block;
  max-width: 630px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}

.alternative-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
}

.alternative-conditions {
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .54);
}

.alternative-conditions > span {
  margin-bottom: 14px;
}

.carnet-preview {
  padding: clamp(28px, 4vw, 46px);
}

.carnet-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.carnet-columns article {
  min-height: 250px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--shadow-soft);
}

.carnet-columns span {
  margin-bottom: 16px;
}

.carnet-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .56);
}

.carnet-closing p {
  max-width: 700px;
  font-size: 15.5px;
}

.cta,
.cta-glass,
.email-row button,
.share-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(217, 238, 245, .52);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0078b8, #005d96 52%, var(--night));
  box-shadow: 0 18px 44px rgba(0, 83, 135, .22);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.itinerary-cta-band .cta {
  flex: 0 0 auto;
  color: var(--night);
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.cta:hover,
.cta-glass:hover,
.email-row button:hover,
.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 23px 52px rgba(0, 83, 135, .27);
}

.result-footer {
  padding: 24px 20px 8px;
  text-align: center;
}

.result-footer img {
  width: 74px;
  height: auto;
  margin: 0 auto;
  opacity: .88;
}

.result-footer p {
  margin: 8px 0 5px;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.result-footer span {
  color: var(--ink-soft);
  font-size: 15px;
}

.email-panel {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 54, 87, .28);
  backdrop-filter: blur(8px);
}

.email-dialog-open {
  overflow: hidden;
}

.email-capture {
  position: relative;
  width: min(540px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 32px 90px rgba(3, 54, 87, .26);
}

.email-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .84);
  font-size: 25px;
  line-height: 1;
}

.email-capture h2 {
  max-width: 420px;
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.email-help,
.email-status,
.email-capture label,
.email-row input,
.email-row button {
  font-family: var(--sans);
}

.email-help {
  max-width: 430px;
  margin: 0 48px 18px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.email-capture label {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.email-row input {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(10, 52, 75, .24);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.email-capture .form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.email-capture .email-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.email-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.email-consent a {
  color: var(--deep);
  font-weight: 700;
}

.email-status {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.email-status[data-state="pending"] {
  background: rgba(214, 237, 248, .78);
}

.email-status[data-state="error"] {
  color: #6f2727;
  background: #fff0ed;
}

.thanks-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 38px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 237, 248, .66), transparent 35%),
    linear-gradient(180deg, var(--paper), var(--mist));
}

.thanks-card {
  width: min(580px, 100%);
  padding: 42px 38px 38px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.thanks-card img {
  width: 210px;
  height: auto;
  margin: 0 auto 28px;
}

.thanks-card h1 {
  margin-bottom: 12px;
  font-size: clamp(50px, 6vw, 72px);
  line-height: .95;
}

.thanks-card > p:not(.band-label) {
  max-width: 410px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.share-copy,
.share-status {
  color: var(--ink-soft);
  font-size: 15px;
}

.share-status {
  display: block;
  min-height: 24px;
  margin-top: 11px;
}

.thanks-return {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.answer:focus-visible,
.nav-link:focus-visible,
.nav-primary:focus-visible,
.text-button:focus-visible,
.cta:focus-visible,
.cta-glass:focus-visible,
.email-close:focus-visible,
.email-row input:focus-visible,
.email-row button:focus-visible,
.share-button:focus-visible,
.thanks-return:focus-visible,
#question-title:focus-visible,
#destination-title:focus-visible {
  outline: 3px solid #f0b85f;
  outline-offset: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .quiz,
  .result-hero,
  .choices-band,
  .result-editorial,
  .itinerary-cta-band,
  .alternative-section,
  .carnet-preview,
  .result-footer {
    width: min(100% - 32px, 760px);
  }

  .quiz {
    min-height: calc(100svh - 28px);
    margin: 14px auto;
    padding: 18px;
  }

  .topbar img {
    width: 166px;
  }

  .quiz-grid {
    display: block;
    padding-top: 30px;
  }

  .photo-note {
    display: none;
  }

  .answers.count-4,
  .answers.count-6,
  .answers.count-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .answers.count-5 .answer,
  .answers.count-5 .answer:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .answers.count-5 .answer:last-child {
    grid-column: 1 / -1;
  }

  .result-hero {
    display: block;
    min-height: auto;
    margin-top: 14px;
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(255, 248, 237, .99), rgba(255, 248, 237, .95) 62%, rgba(255, 248, 237, .74)),
      var(--hero, url("assets/photos/ile-martinique.jpg")) center top / cover;
  }

  .result-hero::after {
    content: none;
  }

  .result-intro {
    margin-top: 32px;
  }

  .profile-card,
  .result-proof-card,
  .compatibility-card {
    width: 100%;
    min-height: auto;
    margin-top: 16px;
  }

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

  .result-editorial,
  .alternative-section,
  .carnet-columns {
    grid-template-columns: 1fr;
  }

  .itinerary-cta-band,
  .carnet-closing {
    align-items: stretch;
    flex-direction: column;
  }

  .itinerary-cta-band .cta,
  .carnet-closing .cta {
    width: 100%;
  }

  .carnet-columns article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .quiz {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 14px;
  }

  .topbar {
    min-height: 56px;
  }

  .topbar img {
    width: 138px;
  }

  .text-button {
    max-width: 118px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.15;
  }

  .progress {
    width: min(270px, 78vw);
  }

  .question-zone h1 {
    font-size: clamp(34px, 10vw, 43px);
  }

  .question-help {
    margin: 17px 0 21px;
    font-size: 15px;
  }

  .answers.count-4,
  .answers.count-5,
  .answers.count-6,
  .answers.count-8 {
    grid-template-columns: 1fr;
  }

  .answers.count-5 .answer:last-child {
    grid-column: auto;
  }

  .answer {
    display: grid;
    min-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding: 12px 42px 12px 13px;
    text-align: left;
  }

  .answer-icon {
    width: 36px;
    height: 36px;
  }

  .answer-icon img {
    width: 21px;
    height: 21px;
  }

  .answer-label {
    font-size: 16px;
  }

  .nav-actions {
    position: sticky;
    bottom: 0;
    margin: 16px -14px -14px;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 248, 237, .92);
    backdrop-filter: blur(12px);
  }

  .result-hero,
  .choices-band,
  .result-editorial,
  .itinerary-cta-band,
  .alternative-section,
  .carnet-preview,
  .result-footer {
    width: calc(100% - 20px);
  }

  .result-intro h1 {
    font-size: clamp(39px, 12vw, 49px);
  }

  .result-intro > p:last-child,
  .result-editorial-copy > p:last-child,
  .alternative-copy > p:last-child,
  .carnet-preview > div:first-child > p:last-child {
    font-size: 16px;
  }

  .profile-card,
  .result-proof-card,
  .compatibility-card,
  .tradeoff-card,
  .alternative-conditions {
    padding: 21px;
  }

  .compatibility-card strong {
    font-size: 32px;
  }

  .choices-band {
    padding: 22px 18px;
  }

  .choices-row {
    grid-template-columns: 1fr;
  }

  .choice-item {
    min-height: auto;
  }

  .result-editorial,
  .alternative-section,
  .carnet-preview {
    padding: 24px 19px;
  }

  .result-editorial-copy h2,
  .alternative-copy h2,
  .carnet-preview h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .itinerary-cta-band {
    padding: 22px 19px;
  }

  .itinerary-cta-band strong {
    font-size: 20px;
  }

  .email-panel {
    padding: 12px;
  }

  .email-capture {
    padding: 24px 18px 20px;
  }

  .email-capture h2 {
    padding-right: 42px;
    font-size: 30px;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .email-row button {
    width: 100%;
  }

  .thanks-card {
    padding: 34px 20px 30px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
