/* =====================================================================
   Maarjv Safaris — Curate Your Tour V2
   1. Tokens   2. Base   3. Header & progress   4. Landing   5. Buttons
   6. Builder layout   7. Choice components   8. Fields   9. Steps
   10. Mini summary   11. Review dossier   12. Success   13. Utilities
   ===================================================================== */

/* 0. Fonts — self-hosted (SIL Open Font Licence, see assets/fonts) ----- */
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("../assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../assets/fonts/dm-serif-display-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --forest: #283F12;
  --forest-deep: #1d2f0c;
  --forest-soft: #3a5520;
  --beige: #D8C5A3;
  --olive: #5B5B37;
  --sunset: #D38125;
  --terracotta: #913A14;

  --cream: #FBF6EE;
  --paper: #FFFDF8;
  --sand: #F3EBDC;
  --sand-deep: #EADFC9;
  --ink: #26261d;
  --ink-soft: #5f5d4c;
  --ink-faint: #706c57;
  --line: rgba(91, 91, 55, 0.16);
  --line-strong: rgba(91, 91, 55, 0.3);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-card: 18px;
  --r-tile: 12px;
  --r-btn: 16px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(40, 63, 18, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(40, 63, 18, 0.08);
  --shadow-md: 0 10px 28px -12px rgba(40, 63, 18, 0.22);
  --shadow-lg: 0 24px 56px -24px rgba(40, 63, 18, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

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

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--sunset); outline-offset: 2px; }
::selection { background: rgba(211, 129, 37, 0.25); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta);
}

/* View switching: landing is static HTML (crawlable); builder & success are rendered. */
body[data-view="landing"] #builder, body[data-view="landing"] #progress { display: none; }
body[data-view="builder"] #landing, body[data-view="success"] #landing { display: none; }
body[data-view="success"] #progress { display: none; }

/* 3. Header & progress -------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; border-radius: 8px; }
.brand-logo { height: 40px; width: auto; }
.back-to-site {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--olive); text-decoration: none;
  padding: 8px 12px; border-radius: 10px; transition: color .2s var(--ease), background .2s var(--ease);
}
.back-to-site:hover { color: var(--forest); background: var(--sand); }
.back-to-site .icon { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .back-to-site .label-long { display: none; }
  .back-to-site { padding: 10px; font-size: 13px; min-height: 44px; }
}
@media (min-width: 561px) { .back-to-site .label-short { display: none; } }

.progress {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.progress .container { padding-top: 12px; padding-bottom: 12px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--ink-soft); }
.progress-meta strong { color: var(--forest); font-weight: 700; }
.progress-meta .step-name { color: var(--ink); font-weight: 600; }
.save-later {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 6px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--olive);
}
.save-later:hover { color: var(--forest); }
.save-later .icon { width: 15px; height: 15px; }
.save-later[data-saved="true"] { color: var(--forest); }
.progress-label { margin: 0; }
/* Progress is a <nav><ol>. Each segment is a full-height tap area with the
   thin bar drawn inside it, so the visual stays slim but targets are real. */
.progress-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.progress-item { flex: 1; min-width: 0; display: flex; }
.progress-seg {
  position: relative; display: block; width: 100%; height: 24px; margin: -10px 0;
  border: 0; padding: 0; background: transparent; cursor: default; border-radius: 6px;
}
.progress-seg::before, .progress-seg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--r-pill);
}
.progress-seg::before { background: var(--sand-deep); }
.progress-seg::after { background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.progress-seg.done::after { transform: scaleX(1); }
.progress-seg.current::after { transform: scaleX(1); background: var(--sunset); }
.progress-seg.reachable { cursor: pointer; }
.progress-seg.reachable:hover::after { opacity: .8; }

/* 4. Landing ----------------------------------------------------------- */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-copy { padding: 24px 0; max-width: 540px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif); color: var(--forest);
  font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--olive); }
.hero-lead { font-size: 18.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; max-width: 46ch; }
.hero-note { font-size: 15px; color: var(--olive); margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.resume-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); display: none; align-items: center; gap: 8px; }
.resume-note.show { display: flex; }
.resume-note button { background: none; border: 0; padding: 0; color: var(--olive); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.hero-media {
  position: relative; border-radius: 28px; overflow: hidden;
  height: clamp(460px, calc(100vh - var(--header-h) - 112px), 760px); background: var(--forest); box-shadow: var(--shadow-lg);
  margin-right: calc((100vw - min(100vw, 1200px)) / -2 - 24px);
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,47,12,0) 55%, rgba(29,47,12,0.55) 100%); }
.hero-caption { position: absolute; left: 28px; bottom: 26px; z-index: 1; color: var(--cream); }
.hero-caption .tagline { font-family: var(--serif); font-size: 26px; line-height: 1.1; display: block; }
.hero-caption .places { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 6px; display: block; }

.how { padding: 8px 0 88px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 36px; }
.how-step { display: flex; gap: 16px; }
.how-num { font-family: var(--serif); font-size: 30px; color: var(--sunset); line-height: 1; min-width: 28px; }
.how-step h2 { font-size: 16.5px; font-weight: 700; color: var(--forest); margin-bottom: 4px; font-family: var(--sans); }
.how-step p { font-size: 14.5px; color: var(--ink-soft); }
.how-step a { color: var(--forest); font-weight: 600; }

@media (max-width: 900px) {
  .hero { padding: 0 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; height: clamp(220px, 46vw, 340px); margin: 0 -24px; border-radius: 0; }
  .hero-copy { padding: 0; }
  .how-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .how { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .hero-media { margin: 0 -16px; height: 230px; }
  .hero-caption { left: 16px; bottom: 16px; }
  .hero-caption .tagline { font-size: 21px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-lead { font-size: 17px; }
  .hero-note { margin-bottom: 26px; }
  .hero-actions .btn-primary { width: 100%; }
}

/* 5. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; text-decoration: none; white-space: nowrap; font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .22s var(--ease); }
.btn-primary {
  min-height: 54px; padding: 0 30px; border-radius: var(--r-btn);
  background: var(--forest); color: #fff; font-size: 16px; letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--forest-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:hover:not(:disabled) .arrow { transform: translateX(4px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); background: var(--forest-deep); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost {
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  background: transparent; color: var(--forest); border: 1.5px solid var(--line-strong); font-size: 15px;
}
.btn-ghost:hover { border-color: var(--forest); background: rgba(40,63,18,.04); }
.btn-text {
  background: none; border: 0; padding: 6px 2px; font-size: 15px; font-weight: 600; color: var(--olive);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-text:hover { color: var(--forest); }
.btn-text .icon { width: 16px; height: 16px; }

/* 6. Builder layout ----------------------------------------------------- */
.builder { padding: 40px 0 0; }
.builder-layout { display: block; }
.step-main { max-width: 820px; margin: 0 auto; min-width: 0; }
.step-main.wide { max-width: 1000px; }
@media (min-width: 1180px) {
  .builder-layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 48px; align-items: start; }
  .builder-layout.has-aside .step-main { margin: 0; max-width: none; }
}

.step-head { margin-bottom: 34px; }
.step-head .eyebrow { margin-bottom: 12px; }
.step-title {
  font-family: var(--serif); color: var(--forest);
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.005em; margin-bottom: 12px;
}
.step-title:focus { outline: none; }
.step-sub { font-size: 16.5px; color: var(--ink-soft); max-width: 58ch; }

.q { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 90px); }
.q:last-child { margin-bottom: 8px; }
.q-label { display: block; font-size: 18px; font-weight: 700; color: var(--forest); margin-bottom: 4px; line-height: 1.35; }
.q-label .optional { font-weight: 500; font-size: 14px; color: var(--ink-faint); margin-left: 6px; }
.q-note { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; max-width: 62ch; }
.q-label + .choice-grid, .q-label + .pill-row, .q-label + .tile-grid { margin-top: 14px; }
.q-error {
  display: none; align-items: center; gap: 8px; margin: 10px 0 12px;
  font-size: 14.5px; font-weight: 600; color: var(--terracotta);
}
.q-error .icon { width: 18px; height: 18px; }
.q.has-error .q-error { display: flex; }
.q.has-error > .choice-grid > .card, .q.has-error > .pill-row > .pill, .q.has-error .field-input { border-color: rgba(145, 58, 20, 0.45); }

.cond {
  border-left: 2px solid var(--beige); padding: 4px 0 4px 22px; margin: -16px 0 40px;
}
.cond.reveal { animation: reveal .45s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cond .q { margin-bottom: 28px; }
.cond .q:last-child { margin-bottom: 4px; }
.cond-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.cond-title .icon { width: 17px; height: 17px; color: var(--sunset); }
@media (max-width: 560px) { .cond { padding-left: 16px; } }

.group-title {
  font-family: var(--serif); font-size: 26px; color: var(--forest); margin: 8px 0 22px;
  display: flex; align-items: baseline; gap: 14px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-6px); }

.step-enter { animation: step-in .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Step navigation bar — sticky at the bottom on every screen size */
.step-nav { position: sticky; bottom: 0; z-index: 30; padding: 20px 0 18px; margin-top: 24px; background: linear-gradient(to top, var(--cream) 62%, rgba(251,246,238,0)); }
.step-nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 10px 10px 14px; box-shadow: var(--shadow-md);
}
.step-nav .nav-hint { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; text-align: center; }
.step-nav .nav-hint .icon { color: var(--sunset); width: 17px; height: 17px; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 0; background: transparent; color: var(--olive); font-weight: 700; font-size: 15px; }
.nav-back:hover { background: var(--sand); color: var(--forest); }
.nav-back .icon { width: 18px; height: 18px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* Compact chrome — phones (portrait) and short landscape screens.
   The header scrolls away, the progress strip is one slim row, and the
   Continue bar is a flat full-width strip, so the traveller's choices keep
   most of the screen. Hidden button text stays available to screen
   readers (visually hidden, never display:none). */
@media (max-width: 720px), (max-height: 500px) {
  :root { --header-h: 52px; }
  .site-header { position: relative; top: auto; }
  .brand-logo { height: 30px; }
  .progress { top: env(safe-area-inset-top, 0px); }
  .progress .container { padding-top: 4px; padding-bottom: 10px; }
  .progress-meta { margin-bottom: 2px; font-size: 12.5px; min-height: 30px; }
  .progress-seg::before, .progress-seg::after { height: 3px; margin-top: -1.5px; }
  /* 44px tap area that overlaps the padding instead of making the row taller */
  .save-later { min-width: 44px; min-height: 44px; justify-content: center; margin: -7px -10px -7px 0; }
  .save-later .label, .nav-back .label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .builder { padding-top: 20px; }
  .step-nav {
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); margin: 8px -16px 0;
    background: var(--cream); border-top: 1px solid var(--line);
  }
  .step-nav-inner { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 10px; }
  .step-nav .nav-hint { display: none; }
  .nav-back { padding: 0 12px; min-width: 48px; justify-content: center; border: 1.5px solid var(--line-strong); }
  .nav-actions { flex: 1; justify-content: flex-end; }
  .step-nav .btn-primary { flex: 1; padding: 0 20px; min-height: 48px; }
  .nav-actions .btn-ghost { display: none; }
}
@media (min-width: 561px) and (max-width: 720px) { .step-nav { margin: 8px -24px 0; padding-left: 24px; padding-right: 24px; } }
/* Short landscape phones: let the progress strip scroll away; Continue stays pinned. */
@media (max-height: 500px) {
  .progress { position: relative; top: auto; }
  .step-nav .btn-primary, .nav-back { min-height: 44px; }
}

/* 7. Choice components -------------------------------------------------- */
.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
@media (max-width: 860px) { .choice-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .choice-grid.cols-2, .choice-grid.cols-3, .choice-grid.cols-4 { grid-template-columns: 1fr; }
  .choice-grid.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Base selectable card */
.card {
  position: relative; text-align: left; display: flex; flex-direction: column;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 18px 18px 16px; min-height: 64px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.card[aria-pressed="true"] { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest), var(--shadow-sm); transform: translateY(-2px); }
.card[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.card-title { font-size: 16px; font-weight: 700; color: var(--forest); line-height: 1.3; padding-right: 28px; }
.card-desc { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
.check {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: transparent;
  transition: all .2s var(--ease);
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }
.card[aria-pressed="true"] .check, .tile[aria-pressed="true"] .check { background: var(--sunset); border-color: var(--sunset); color: #fff; transform: scale(1.04); }

/* Image card — journeys, destinations, accommodation */
.card.img-card { padding: 0; overflow: hidden; }
.img-card .media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--olive), var(--forest)); overflow: hidden; }
.img-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.img-card:hover .media img { transform: scale(1.03); }
.missing > img { display: none; }
.img-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.img-card .check { top: 12px; right: 12px; background: rgba(255, 253, 248, 0.92); border-color: rgba(255,255,255,0.9); }
.badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 253, 248, 0.94); color: var(--forest); padding: 4px 9px; border-radius: var(--r-pill);
}
.badge.quiet { color: var(--terracotta); }
.add-state {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--olive);
}
.add-state .icon { width: 16px; height: 16px; }
.card[aria-pressed="true"] .add-state { color: var(--forest); }

/* Journey cards (step 1) — taller, more cinematic */
.journey-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey-card .media { aspect-ratio: 4 / 3; }
.journey-card .body { padding: 16px 18px 18px; }
.journey-card .card-title { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.journey-quiet { margin-top: 14px; width: 100%; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.journey-quiet > span:last-of-type { display: flex; flex-direction: column; }
.journey-quiet .card-desc { margin-top: 2px; }
.journey-quiet .tile-icon { margin: 0; }
@media (max-width: 760px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { flex-direction: row; min-height: 0; }
  .journey-card .media { aspect-ratio: auto; width: 38%; min-height: 112px; flex-shrink: 0; }
  .journey-card .body { justify-content: center; }
  .journey-card .card-title { font-size: 22px; }
}

/* Icon tile — purposes, experiences, priorities, property preferences */
.tile-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile-grid.narrow { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.tile {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 10px 40px 10px 10px; min-height: 60px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile[aria-pressed="true"] { border-color: var(--forest); background: #fbf8f0; box-shadow: 0 0 0 1px var(--forest); }
.tile[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.tile .check { top: 50%; transform: translateY(-50%); right: 12px; width: 20px; height: 20px; }
.tile[aria-pressed="true"] .check { transform: translateY(-50%); }
.tile .check .icon { width: 12px; height: 12px; }
.tile-label { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tile-icon {
  width: 40px; height: 40px; border-radius: var(--r-tile); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--forest); transition: background .2s var(--ease), color .2s var(--ease);
}
.tile-icon .icon { width: 20px; height: 20px; stroke-width: 1.75; }
.tile[aria-pressed="true"] .tile-icon, .card[aria-pressed="true"] .tile-icon { background: var(--forest); color: var(--beige); }
.tile.star-tile[aria-pressed="true"] .tile-icon { background: var(--sunset); color: #fff; }
.card .tile-icon { margin-bottom: 12px; }
@media (max-width: 560px) { .tile-grid, .tile-grid.narrow { grid-template-columns: 1fr; } }

/* Pills — short lists */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r-pill);
  padding: 10px 18px; min-height: 46px; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: all .18s var(--ease);
}
.pill:hover { border-color: var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.pill .icon { width: 16px; height: 16px; }
.pill .pill-check { display: none; }
.pill[aria-pressed="true"] .pill-check { display: inline-block; }
.pill[aria-pressed="true"] > .icon { display: none; }
.pill-note { font-size: 12.5px; font-weight: 500; opacity: .75; }
.pill.soft[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); }

/* Toggle row (e.g. Let Maarjv recommend) */
.toggle-card {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--sand); border: 1.5px solid transparent; border-radius: var(--r-card); padding: 16px 18px;
  transition: all .2s var(--ease);
}
.toggle-card:hover { border-color: var(--line-strong); }
.toggle-card[aria-pressed="true"] { background: var(--paper); border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.toggle-card .tc-text { flex: 1; }
.toggle-card .tc-title { font-weight: 700; color: var(--forest); font-size: 16px; }
.toggle-card .tc-desc { font-size: 14px; color: var(--ink-soft); display: block; }
.toggle-card .tc-title { display: block; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex-shrink: 0; transition: background .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease); }
.toggle-card[aria-pressed="true"] .switch { background: var(--forest); }
.toggle-card[aria-pressed="true"] .switch::after { transform: translateX(18px); }

/* Counter */
.counter-list { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.counter-row:last-child { border-bottom: 0; }
.counter-label { font-weight: 700; color: var(--forest); }
.counter-desc { font-size: 13.5px; color: var(--ink-soft); }
.counter-ctrl { display: flex; align-items: center; gap: 14px; }
.counter-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper);
  color: var(--forest); display: flex; align-items: center; justify-content: center; transition: all .18s var(--ease);
}
.counter-btn:hover:not(:disabled) { border-color: var(--forest); background: var(--sand); }
.counter-btn:disabled { opacity: .35; cursor: not-allowed; }
.counter-btn .icon { width: 18px; height: 18px; }
.counter-val { min-width: 24px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Accordion (experience categories) */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .2s var(--ease); }
.acc-item.open { border-color: var(--line-strong); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: none; border: 0; text-align: left; }
.acc-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--olive), var(--forest)); position: relative; }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-thumb .icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.acc-text { flex: 1; min-width: 0; }
.acc-name { font-size: 17px; font-weight: 700; color: var(--forest); display: block; }
.acc-blurb { font-size: 14px; color: var(--ink-soft); display: block; }
.acc-count { font-size: 12.5px; font-weight: 700; color: var(--terracotta); background: rgba(211,129,37,.13); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.acc-chevron { width: 22px; height: 22px; color: var(--olive); transition: transform .25s var(--ease); }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-panel { padding: 4px 18px 18px; }
.acc-panel[hidden] { display: none; }
@media (max-width: 560px) {
  .acc-thumb { width: 52px; height: 52px; }
  .acc-blurb { display: none; }
  .acc-panel { padding: 2px 12px 14px; }
}

/* Disclosure (optional extras) */
details.more { border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); padding: 0 18px; background: transparent; }
details.more[open] { border-style: solid; background: var(--paper); padding-bottom: 18px; }
details.more summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 700; color: var(--forest); font-size: 16px;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary .icon { width: 20px; height: 20px; color: var(--olive); transition: transform .25s var(--ease); }
details.more[open] summary .icon { transform: rotate(180deg); }
details.more .q { margin-bottom: 24px; }
details.more .q:last-child { margin-bottom: 0; }

/* Note boxes */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sand); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--olive); margin-top: 14px;
}
.note .icon { color: var(--sunset); width: 19px; height: 19px; margin-top: 1px; }
.note strong { color: var(--forest); }
.note.prominent { margin: 0 0 30px; font-size: 15px; }

/* 8. Fields -------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--forest); margin-bottom: 7px; }
.field-label .optional { font-weight: 500; color: var(--ink-faint); }
.field-input {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; background: var(--paper); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B5B37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-input:hover { border-color: var(--olive); }
.field-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(40,63,18,.12); }
.field-input::placeholder { color: var(--ink-faint); }
textarea.field-input { min-height: 110px; resize: vertical; line-height: 1.55; }
textarea.field-input.tall { min-height: 170px; font-size: 17px; padding: 18px; background: #fffefb; }
.field.invalid .field-input { border-color: var(--terracotta); }
.field-error { display: none; font-size: 13.5px; font-weight: 600; color: var(--terracotta); margin-top: 6px; }
.field.invalid .field-error { display: block; }
.field-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.thirds { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .field-row, .field-row.thirds { grid-template-columns: 1fr; gap: 0; } .field-row .field { margin-bottom: 18px; } }
.phone-row { display: grid; grid-template-columns: minmax(220px, 290px) 1fr; gap: 10px; }
@media (max-width: 560px) { .phone-row { grid-template-columns: 1fr; } }
.child-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

.consent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 18px;
}
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--forest); flex-shrink: 0; cursor: pointer; }
.consent label { font-size: 15px; cursor: pointer; }
.consent a { color: var(--forest); font-weight: 700; }
.q.has-error .consent { border-color: rgba(145, 58, 20, 0.45); }
.fine-print { font-size: 13.5px; color: var(--ink-soft); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.fine-print .icon { width: 16px; height: 16px; color: var(--olive); margin-top: 2px; }

/* 9. Step-specific -------------------------------------------------------- */
.country-section { margin-bottom: 44px; }
.country-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.country-head h3 { font-family: var(--serif); font-size: 30px; color: var(--forest); line-height: 1.1; }
.country-head p { font-size: 14.5px; color: var(--ink-soft); max-width: 56ch; margin-top: 6px; }
.country-head .count { font-size: 13px; font-weight: 700; color: var(--olive); }
.dest-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.dest-card .card-title { font-size: 15.5px; }
.dest-card .region { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
@media (max-width: 560px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card { flex-direction: row; min-height: 0; }
  .dest-card .media { aspect-ratio: auto; width: 34%; flex-shrink: 0; }
  .dest-card .body { padding: 12px 14px; }
  .dest-card .card-desc { font-size: 13.5px; }
  .dest-card .badge { left: 6px; top: auto; bottom: 6px; font-size: 11px; padding: 3px 7px; letter-spacing: .04em; }
}

.stay-card .media { aspect-ratio: 3 / 2; }
.stay-card .tier { display: flex; gap: 3px; margin-bottom: 6px; }
.stay-card .tier i { width: 14px; height: 3px; border-radius: 2px; background: var(--sand-deep); }
.stay-card .tier i.on { background: var(--sunset); }

.band-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band-grid .card { min-height: 0; padding: 16px 16px 14px; }
.band-grid .card-title { font-size: 16.5px; font-variant-numeric: tabular-nums; }
.band-grid .unsure { grid-column: 1 / -1; }
@media (max-width: 640px) { .band-grid { grid-template-columns: 1fr 1fr; } .band-grid .card-title { font-size: 15px; } }

.must-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.must-counter { font-size: 13px; font-weight: 700; color: var(--terracotta); margin-left: 8px; }

/* 10. Live mini summary (desktop only) ----------------------------------- */
.mini-summary { display: none; }
@media (min-width: 1180px) {
  .mini-summary {
    display: block; position: sticky; top: calc(var(--header-h) + 84px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
}
.mini-summary .ms-cover { height: 92px; position: relative; background: linear-gradient(135deg, var(--olive), var(--forest)); }
.mini-summary .ms-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-summary .ms-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,47,12,0) 30%, rgba(29,47,12,.6)); }
.mini-summary .ms-cover span { position: absolute; left: 16px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 21px; }
.mini-summary .ms-body { padding: 14px 16px 16px; }
.mini-summary .ms-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.mini-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mini-summary li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.35; }
.mini-summary li .icon { width: 16px; height: 16px; color: var(--olive); margin-top: 1px; }
.mini-summary .ms-empty { font-size: 13.5px; color: var(--ink-faint); }
.mini-summary .ms-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 6px; align-items: center; }
.mini-summary .ms-foot .icon { width: 14px; height: 14px; }

/* 11. Review dossier ------------------------------------------------------ */
.dossier { max-width: 1000px; margin: 0 auto; }
.dossier-intro { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.dossier-intro .step-sub { margin: 0 auto; }

.cover {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 360px;
  display: flex; align-items: flex-end; color: var(--cream); background: var(--forest);
  box-shadow: var(--shadow-lg);
}
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,8,.15) 0%, rgba(20,32,8,.25) 40%, rgba(20,32,8,.82) 100%); }
.cover-inner { position: relative; z-index: 1; padding: 34px 38px 62px; width: 100%; }
.cover-top { position: absolute; top: 24px; left: 38px; right: 24px; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.cover-mark { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cover-mark img { width: 30px; height: 30px; border-radius: 8px; }
.cover-title { font-family: var(--serif); font-size: clamp(38px, 6vw, 62px); line-height: 1.02; margin-bottom: 10px; }
.cover-sub { font-size: 17px; opacity: .92; }
.cover-meta { margin-top: 18px; font-size: 13.5px; opacity: .78; letter-spacing: .02em; }
.edit-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px; margin: -6px -8px;
  font-size: 13.5px; font-weight: 700; color: var(--olive); border-radius: 8px;
}
.edit-link:hover { color: var(--forest); background: var(--sand); }
.edit-link .icon { width: 14px; height: 14px; }
.cover .edit-link { color: var(--cream); background: rgba(255,255,255,.12); margin: 0; padding: 7px 12px; }
.cover .edit-link:hover { background: rgba(255,255,255,.22); color: #fff; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin: -28px 22px 0; position: relative; z-index: 2; box-shadow: var(--shadow-md); }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact-label { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.fact-value { font-size: 15.5px; font-weight: 700; color: var(--forest); line-height: 1.35; overflow-wrap: anywhere; }
.fact-value small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; margin: -24px 12px 0; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cover { min-height: 300px; border-radius: 20px; }
  .cover-inner { padding: 22px 20px 48px; }
  .cover-top { left: 20px; right: 14px; top: 16px; }
  .fact { padding: 14px; }
}

.dossier-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 30px; }
.dossier-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 820px) { .dossier-grid { grid-template-columns: 1fr; } }
.d-sec { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 22px; min-width: 0; }
.d-sec.tint { background: var(--sand); border-color: transparent; }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.d-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); display: flex; align-items: center; gap: 8px; }
.d-title .icon { width: 16px; height: 16px; color: var(--sunset); }
.d-lead { font-family: var(--serif); font-size: 24px; color: var(--forest); line-height: 1.2; margin-bottom: 10px; }
.d-list { display: grid; grid-template-columns: minmax(110px, min(38%, 190px)) 1fr; gap: 10px 16px; font-size: 14.5px; }
.d-list dt { color: var(--ink-soft); }
.d-list dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .d-list { grid-template-columns: 1fr; gap: 2px; } .d-list dd { margin-bottom: 10px; } }
.d-empty { color: var(--ink-faint); font-weight: 400; font-style: italic; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; color: var(--forest); background: var(--sand); padding: 5px 11px; border-radius: 999px; }
.d-sec.tint .tag { background: var(--paper); }
.tag.vip { background: var(--terracotta); color: #fff; }

/* Route ribbon — the dossier's signature: wish-list places joined by a dotted line */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dotted var(--beige); }
.route li { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.route .stop-img { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--olive), var(--forest)); border: 3px solid var(--paper); box-shadow: var(--shadow-xs); position: relative; z-index: 1; }
.route .stop-img img { width: 100%; height: 100%; object-fit: cover; }
.route .stop-name { font-weight: 700; color: var(--forest); font-size: 15px; line-height: 1.25; }
.route .stop-meta { font-size: 13px; color: var(--ink-soft); }
.route.recommend li .stop-img { display: flex; align-items: center; justify-content: center; color: var(--beige); }
.route-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.route-note .icon { width: 16px; height: 16px; color: var(--sunset); }

.musts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.musts li { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.musts li:last-child { border-bottom: 0; padding-bottom: 0; }
.musts .n { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--sunset); min-width: 22px; }
.musts .t { font-family: var(--serif); font-size: 22px; color: var(--forest); line-height: 1.2; }
.priority-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.priority { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--forest); }
.priority .pi { width: 26px; height: 26px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.priority .pi .icon { width: 14px; height: 14px; }
.own-words { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--forest); border-left: 3px solid var(--sunset); padding-left: 18px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

.send-panel {
  margin-top: 30px; background: var(--sand); border: 1px solid var(--sand-deep); border-radius: 24px; padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
}
.send-copy { flex: 1 1 320px; min-width: 0; }
.send-panel h3 { font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--forest); }
.send-panel .send-copy p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; max-width: 48ch; }
.send-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 100%; }
.send-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--terracotta); max-width: 40ch; margin: 0; }
.send-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.send-note.subtle { color: var(--olive); font-weight: 500; }
.ts-fail { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 40ch; }
.ts-fail p { display: flex; gap: 8px; color: var(--terracotta); font-weight: 600; font-size: 14.5px; margin: 0; }
.ts-fail p .icon { width: 18px; height: 18px; margin-top: 1px; }
.send-error {
  flex-basis: 100%; background: var(--paper); border: 1.5px solid rgba(145, 58, 20, 0.35); border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
}
.send-error:focus { outline: none; box-shadow: 0 0 0 3px rgba(211, 129, 37, 0.35); }
.send-error p { color: var(--terracotta); font-weight: 600; font-size: 15px; margin: 0; flex: 1 1 260px; }
.send-error-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.turnstile-slot:empty { display: none; }
.preview-flag { justify-content: center; margin: 18px auto 0; max-width: none; }
@media (max-width: 640px) {
  .send-panel { padding: 24px 20px; }
  .send-actions, .ts-fail { width: 100%; align-items: stretch; }
  .send-panel .btn-primary { width: 100%; }
  .send-note { max-width: none; }
  .send-error-actions { width: 100%; }
  .send-error-actions .btn-primary { flex: 1; }
}
.review-back { display: flex; justify-content: center; margin-top: 20px; }

/* 12. Success -------------------------------------------------------------- */
.success { max-width: 680px; margin: 0 auto; padding: 24px 0 72px; text-align: center; }
.success-mark { width: 76px; height: 76px; border-radius: 22px; background: var(--forest); color: var(--beige); display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; box-shadow: var(--shadow-md); }
.success-mark .icon { width: 34px; height: 34px; stroke-width: 2.2; }
.success .eyebrow { margin-bottom: 14px; }
.success h2 { font-family: var(--serif); font-size: clamp(36px, 5.5vw, 54px); color: var(--forest); line-height: 1.06; margin-bottom: 18px; }
.success .lead { font-size: 17px; color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }
.ticket {
  margin: 30px auto 0; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--paper); border: 1.5px dashed var(--olive); border-radius: 18px; padding: 18px 30px;
}
.ticket .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.ticket .id { font-family: var(--serif); font-size: 30px; color: var(--forest); letter-spacing: .04em; }
.ticket .disclaimer { font-size: 12.5px; color: var(--ink-soft); }
.next { text-align: left; margin: 40px auto 0; max-width: 520px; }
.next h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; text-align: center; }
.next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.next li { display: flex; gap: 16px; align-items: flex-start; }
.next .n { width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--forest); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.next p { padding-top: 6px; color: var(--ink); font-size: 15.5px; }
.success-actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 13. Utilities ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 30px; font-size: 13.5px; color: var(--ink-soft); }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--olive); }
body[data-view="builder"] .site-footer { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90;
  background: var(--forest); color: var(--cream); padding: 12px 18px; border-radius: 12px; font-size: 14.5px;
  box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); max-width: calc(100vw - 32px);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

noscript .noscript { max-width: 640px; margin: 40px auto; padding: 18px 20px; background: var(--sand); border-radius: 14px; }

/* 14. V2.1 components ------------------------------------------------------ */
/* Spacing helpers (replace inline styles so a strict CSP can be used) */
.spacer-28 { height: 28px; }
.spacer-22 { height: 22px; }
.spacer-18 { height: 18px; }
.spaced { margin-top: 16px; }
.spaced-sm { margin-top: 10px; }
.field-row.spaced { margin-top: 16px; }
.sub-label { margin: 6px 0 12px; }
.sub-label ~ .sub-label { margin-top: 20px; }
.spaced-label { margin: 20px 0 8px; }
.d-lead-sm { font-size: 20px; }
.d-sub { margin: -4px 0 14px; }

/* Country of residence combobox */
.combo-wrap { position: relative; }
.combo-input { padding-right: 44px; }
.combo-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--olive); display: flex; cursor: pointer; padding: 4px; }
.combo-icon .icon { width: 18px; height: 18px; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; margin: 0; padding: 6px; list-style: none;
  max-height: min(300px, 50vh); overflow-y: auto; background: var(--paper); border: 1.5px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow-md);
}
.combo-opt { padding: 11px 12px; min-height: 44px; display: flex; align-items: center; border-radius: 10px; cursor: pointer; font-size: 15.5px; }
.combo-opt:hover, .combo-opt.active { background: var(--sand); color: var(--forest); }
.combo-opt.active { box-shadow: inset 0 0 0 1.5px var(--forest); }
.combo-opt.chosen { font-weight: 700; }
.combo-opt.chosen::after { content: "✓"; margin-left: auto; color: var(--forest); }
.combo-empty { padding: 12px; color: var(--ink-soft); font-size: 14.5px; }

/* Collapsible groups (step 9, guide preferences) */
.groups { display: grid; gap: 14px; }
details.more summary { min-height: 56px; }
.sum-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-title { font-weight: 700; color: var(--forest); font-size: 16.5px; }
.sum-note { font-weight: 500; font-size: 13.5px; color: var(--ink-faint); }
.more-body { padding-top: 6px; }
details.more .more-body > .q:last-child, details.more .more-body > .field:last-child { margin-bottom: 4px; }

/* Dates vs trip length check */
.q.mismatch { background: var(--paper); border: 1.5px solid var(--beige); border-radius: var(--r-card); padding: 16px 18px; margin-top: -18px; }
.q.mismatch.has-error { border-color: rgba(145, 58, 20, 0.5); }
.mismatch-text { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--forest); font-size: 15.5px; margin: 0 0 12px; }
.mismatch-text .icon { color: var(--sunset); width: 20px; height: 20px; margin-top: 2px; }
.mismatch-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Landing on a question from the review's Edit link */
.edit-target { animation: edit-flash 2s var(--ease); border-radius: 14px; }
@keyframes edit-flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(211, 129, 37, 0.35); } 100% { box-shadow: 0 0 0 4px rgba(211, 129, 37, 0); } }
.q { scroll-margin-top: calc(var(--header-h) + 96px); }
@media (max-width: 720px), (max-height: 500px) { .q { scroll-margin-top: 72px; } }

/* Bigger touch targets on touch screens */
@media (pointer: coarse) {
  .save-later { min-height: 44px; margin: -8px -6px; padding: 0 10px; }
  .edit-link { min-height: 44px; padding: 0 10px; margin: -10px -10px; }
  .cover .edit-link { margin: 0; }
  .btn-text { min-height: 44px; }
  .resume-note button { min-height: 44px; }
}

/* Reduced motion: no hover lifts or slides */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card[aria-pressed="true"], .btn-primary:hover:not(:disabled), .img-card:hover .media img { transform: none !important; }
  .btn-primary:hover:not(:disabled) .arrow { transform: none !important; }
}

/* 15. Privacy page ---------------------------------------------------------- */
.policy { max-width: 720px; margin: 0 auto; padding: 48px 0 72px; }
  .policy h1 { font-family: var(--serif); color: var(--forest); font-size: clamp(34px, 5vw, 46px); line-height: 1.1; margin: 12px 0 18px; }
  .policy h2 { font-size: 18px; font-weight: 700; color: var(--forest); margin: 30px 0 8px; }
  .policy p, .policy li { color: var(--ink-soft); font-size: 16px; }
  .policy ul { padding-left: 20px; margin: 8px 0; }
  .policy a { color: var(--forest); font-weight: 600; }
  .draft { background: var(--sand); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--olive); }
