/* =============================================================================
   Make A Break — "Get a quote" dialog. Same material as the See more card
   (navy gradient body, gold → cyan keyline), one question per screen.
   The dialog is a child of <body>; nothing here depends on the hero's variables.
   Inputs are 16px so iOS never zooms. transform + opacity only for motion.
   ========================================================================== */
.quote[hidden], .quote [hidden] { display: none !important; }
.quote {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  padding: clamp(16px, 5vw, 48px); color: var(--c-ink); overscroll-behavior: contain;
  background: rgb(3 10 24 / .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: moreFade .28s var(--ease-out) both;
}
.quote__card {
  position: relative; width: min(100%, 520px); max-height: min(94svh, 780px); overflow: auto; margin: auto;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3.4vw, 36px) clamp(20px, 3vw, 28px);
  border-radius: 20px; text-align: left;
  background:
    linear-gradient(168deg, rgb(16 46 88 / .97), rgb(5 20 42 / .98)) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--c-gold) 70%, transparent), rgb(236 234 231 / .10) 40%, color-mix(in srgb, var(--c-accent) 45%, transparent)) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -30px rgb(0 0 0 / .85);
  -webkit-overflow-scrolling: touch;
  animation: moreIn .34s var(--ease-out) both;
}

/* Head: kicker, step count, progress hairline */
.quote__head { margin: 0 0 22px; padding-right: 48px; }
.quote__head .more__kicker { margin: 0 0 6px; font-size: .64rem; }
.quote__count { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.quote__bar { height: 2px; border-radius: 2px; background: rgb(236 234 231 / .14); overflow: hidden; margin-right: -48px; }
.quote__bar span { display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-gold), var(--c-accent)); transition: transform .5s var(--ease-out); }

/* One question */
.quote__step { animation: quoteStep .32s var(--ease-out) both; }
@keyframes quoteStep { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quote__q {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 1.02rem + .9vw, 1.55rem);
  line-height: 1.12; letter-spacing: .005em; color: #fff; margin: 0 0 8px; text-wrap: balance; outline: none;
}
.quote__hint { margin: 0 0 18px; font-size: .9rem; line-height: 1.5; color: var(--c-muted); }

/* Stepper: − 4 + */
.quote__stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 4px; }
.quote__pm {
  width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; cursor: pointer;
  border-radius: 999px; border: 1px solid rgb(239 183 53 / .55); background: rgb(255 255 255 / .05);
  color: #fff; font: 600 1.5rem/1 var(--font-body);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.quote__pm:hover, .quote__pm:focus-visible { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-bg); }
.quote__pm:active { transform: scale(.94); }
.quote__num {
  width: 3.2em; padding: .1em 0; text-align: center; border: 0; border-bottom: 2px solid rgb(236 234 231 / .2); border-radius: 0;
  background: transparent; color: #fff; font: 800 2.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.quote__num::-webkit-outer-spin-button, .quote__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quote__num:focus-visible { outline: none; border-bottom-color: var(--c-accent); }

/* Preferred dates — a month at a time. The stay is one continuous band: solid caps on arrival + departure. */
.quote__cal { margin: 0 auto; max-width: 372px; }
.quote__cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.quote__cal-month { margin: 0; flex: 1 1 auto; text-align: center; white-space: nowrap; font: 800 1.02rem/1.2 var(--font-display); letter-spacing: .01em; color: #fff; }
.quote__cal-nav {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; cursor: pointer; padding: 0 0 3px;
  border-radius: 999px; border: 1px solid rgb(239 183 53 / .55); background: rgb(255 255 255 / .05);
  color: #fff; font: 600 1.35rem/1 var(--font-body);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.quote__cal-nav:hover:not(:disabled), .quote__cal-nav:focus-visible { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-bg); }
.quote__cal-nav:disabled { opacity: .3; cursor: default; }
.quote__cal-week, .quote__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.quote__cal-week { margin: 0 0 4px; }
.quote__cal-week span { text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.quote__cal-grid { row-gap: 3px; }
.quote__day {
  height: 40px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer;
  color: var(--c-ink); font: 600 .95rem/1 var(--font-body); font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quote__day--blank { cursor: default; }
.quote__day:disabled { opacity: .28; cursor: default; }
.quote__day:hover:not(:disabled):not(.is-in) { border-color: rgb(239 183 53 / .6); }
.quote__day:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.quote__day.is-in { background: rgb(22 204 239 / .16); color: #fff; border-radius: 0; }
.quote__day.is-in:nth-child(7n+1) { border-radius: 10px 0 0 10px; }
.quote__day.is-in:nth-child(7n) { border-radius: 0 10px 10px 0; }
.quote__day.is-start, .quote__day.is-end { background: var(--c-accent); color: var(--c-bg); font-weight: 800; }
.quote__day.is-start { border-radius: 10px 0 0 10px; }
.quote__day.is-end { border-radius: 0 10px 10px 0; }
.quote__day.is-start:nth-child(7n), .quote__day.is-end:nth-child(7n+1), .quote__day.is-start.is-end { border-radius: 10px; }
.quote__cal-pick { margin: 12px 0 0; text-align: center; font-size: .9rem; line-height: 1.4; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.quote__cal-pick.is-set { color: #fff; font-weight: 700; }
/* "Not sure yet" — a quiet keyline button, same family as the tick rows */
.quote__unsure {
  display: block; width: 100%; max-width: 372px; min-height: 46px; margin: 12px auto 0; padding: 9px 12px; cursor: pointer;
  border-radius: 12px; border: 1px solid rgb(236 234 231 / .18); background: rgb(255 255 255 / .04);
  color: var(--c-ink); font: 600 .92rem/1.2 var(--font-body); -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quote__unsure:hover { border-color: rgb(239 183 53 / .6); color: #fff; }
.quote__unsure:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Tick chips (activities) and radio chips (transport) — the whole row is the target */
.quote__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quote__chips--one { grid-template-columns: 1fr; }
.quote__chip { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.quote__chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quote__chip span {
  display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid rgb(236 234 231 / .18); background: rgb(255 255 255 / .04);
  font-size: .92rem; font-weight: 600; line-height: 1.2; color: var(--c-ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quote__chip span::before {  /* the box the tick is drawn in */
  content: ''; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid rgb(236 234 231 / .45); background: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quote__chip span::after {   /* the tick: an L drawn with two borders, scaled in */
  content: ''; position: absolute; left: 19px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid var(--c-bg); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) scale(0); transform-origin: 60% 60%;
  transition: transform .26s var(--ease-out);
}
.quote__chip--radio span::before { border-radius: 50%; }
.quote__chip:hover span { border-color: rgb(239 183 53 / .6); }
.quote__chip input:checked + span { border-color: var(--c-accent); background: rgb(22 204 239 / .1); color: #fff; }
.quote__chip input:checked + span::before { background: var(--c-accent); border-color: var(--c-accent); }
.quote__chip input:checked + span::after { transform: rotate(45deg) scale(1); }
.quote__chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Text fields */
.quote__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.quote__field { display: grid; gap: 5px; min-width: 0; }
.quote__field--wide { grid-column: 1 / -1; }
.quote__field label { font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: #fff; }
.quote__field label i { font-style: normal; font-weight: 500; color: var(--c-muted); margin-left: .3em; }
.quote__input {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border-radius: 10px;
  border: 1px solid rgb(236 234 231 / .24); background: rgb(255 255 255 / .06); color: #fff;
  font: 500 1rem/1.35 var(--font-body);  /* 16px — iOS does not zoom */
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea.quote__input { display: block; resize: vertical; min-height: 112px; }
.quote__input::placeholder { color: rgb(180 182 186 / .75); }
.quote__input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); background: rgb(255 255 255 / .09); }
.quote__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* Consent — a switch in its own row (Fin picked option D, 11 Nov 2026). The real checkbox sits invisibly over the
   switch so the browser's "please tick this" bubble still points at it. */
.quote__consent { position: relative; display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 12px 14px; cursor: pointer;
  border-radius: 12px; border: 1px solid rgb(236 234 231 / .18); background: rgb(255 255 255 / .04);
  font-size: .86rem; line-height: 1.4; color: var(--c-ink); -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.quote__consent input { position: absolute; left: 14px; top: 50%; width: 46px; height: 28px; margin: -14px 0 0; opacity: 0; cursor: pointer; }
.quote__switch { flex: 0 0 auto; position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgb(236 234 231 / .22);
  transition: background-color .25s var(--ease); }
.quote__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / .4); transition: transform .25s var(--ease-out); }
.quote__consent input:checked + .quote__switch { background: var(--c-accent); }
.quote__consent input:checked + .quote__switch::after { transform: translateX(18px); }
.quote__consent input:focus-visible + .quote__switch { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.quote__consent:has(input:checked) { border-color: rgb(22 204 239 / .55); background: rgb(22 204 239 / .07); }
.quote__consent a, .quote__error a { color: #fff; text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 3px; }
.quote__consent a:hover, .quote__error a:hover { color: var(--c-gold); }

/* Error — says what happened and what to do */
.quote__error {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.45; color: #fff;
  border: 1px solid rgb(255 138 128 / .7); background: rgb(190 40 40 / .22); overflow-wrap: anywhere;
}

/* Back / Next */
.quote__nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin: 22px 0 0; }
.quote__back {
  margin-right: auto; padding: .7em .2em; background: none; border: 0; cursor: pointer;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted);
  transition: color var(--dur) var(--ease);
}
.quote__back:hover, .quote__back:focus-visible { color: #fff; }
.quote__next { min-height: 48px; padding: .85rem 2rem; }
.quote__next:disabled, .quote__back:disabled { opacity: .6; cursor: progress; }

/* Quote sent — the tick draws itself: ring first, then the tick */
.quote__done { text-align: center; padding: 26px 0 14px; }
.quote__done .quote__hint { margin: 0 auto; max-width: 30em; }
.quote__tick { display: block; width: 84px; height: 84px; margin: 0 auto 20px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.quote__tick circle { stroke: var(--c-accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; }
.quote__tick path { stroke: #fff; stroke-width: 4.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.quote__done.is-on .quote__tick { animation: quotePop .5s var(--ease-out) .62s both; }
.quote__done.is-on .quote__tick circle { animation: quoteDraw .62s var(--ease) both; }
.quote__done.is-on .quote__tick path { animation: quoteDraw .36s var(--ease-out) .5s both; }
.quote__done.is-on .quote__q, .quote__done.is-on .quote__hint { animation: mabRise .5s var(--ease-out) .7s both; }
.quote__done.is-on .quote__hint { animation-delay: .82s; }
@keyframes quoteDraw { to { stroke-dashoffset: 0; } }
@keyframes quotePop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .quote, .quote__card, .quote__step, .quote__done.is-on .quote__tick,
  .quote__done.is-on .quote__q, .quote__done.is-on .quote__hint { animation: none; }
  .quote__tick circle, .quote__tick path { stroke-dashoffset: 0; animation: none !important; }
  .quote__chip span::after, .quote__day { transition: none; }
}

/* ---- Phones: no backdrop blur (one blur layer at a time on iOS), tighter card ---- */
@media (max-width: 767px) {
  .quote { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgb(3 10 24 / .78); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .quote__card { width: 100%; max-width: 420px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 20px 16px 16px; }
  .quote__head { margin-bottom: 16px; }
  .quote__hint { margin-bottom: 14px; font-size: .86rem; }
  .quote__chips { gap: 7px; }
  .quote__chip span { min-height: 44px; padding: 7px 10px; gap: 9px; font-size: .84rem; }
  .quote__chip span::after { left: 17px; }
  .quote__fields { gap: 10px; }
  .quote__day { height: 38px; }
  .quote__cal-pick { margin-top: 10px; font-size: .86rem; }
  /* Back / Next stay in reach when a long screen scrolls inside the card (11 ticks on a 568px-tall phone) */
  .quote__nav { position: sticky; bottom: -16px; z-index: 1; margin: 6px -16px -16px; padding: 14px 16px 16px; border-radius: 0 0 19px 19px;
    background: linear-gradient(to top, rgb(6 21 44) 68%, rgb(6 21 44 / 0)); }
  .quote__next { padding: .8rem 1.5rem; }
}
@media (max-width: 380px) {
  .quote__fields { grid-template-columns: 1fr; }
  .quote__chip span { font-size: .8rem; padding: 7px 8px; gap: 8px; }
  .quote__chip span::after { left: 15px; }
  .quote__cal-month { font-size: .9rem; }
  .quote__cal-nav { width: 36px; height: 36px; }
  .quote__day { height: 34px; font-size: .9rem; }
}
