/* =========================================================
   Momba Transport — sub-pages: Finish your quote + Thank you
   (loaded after styles.css, only on quote.html and thank-you.html)
   ========================================================= */
.subpage { min-height: 70vh; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; transition: color .2s; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--accent-ink); }

/* ---- Quote page ---- */
.quote-page { position: relative; padding: calc(var(--header-h) + clamp(36px, 6vw, 70px)) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.quote-page__topo { opacity: .7; }
.quote-page .container { position: relative; z-index: 1; }
.quote-page__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.quote-page__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.quote-page__fine { margin-top: 18px; }

.quote-progress { list-style: none; margin: 28px 0 26px; padding: 0; display: grid; gap: 4px; }
.quote-progress li { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--muted); font-weight: 600; position: relative; }
.quote-progress li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 800; flex: none; background: var(--bg); position: relative; z-index: 1; }
.quote-progress li span svg { width: 16px; height: 16px; }
.quote-progress li + li::before { content: ""; position: absolute; left: 15px; top: -14px; height: 22px; border-left: 1.5px dashed var(--line-2); }
.quote-progress li.is-done { color: var(--text-2); }
.quote-progress li.is-done span { background: var(--orange-grad); border-color: transparent; color: #fff; }
.quote-progress li.is-current { color: var(--text); }
.quote-progress li.is-current span { border-color: var(--orange); color: var(--accent-ink); box-shadow: 0 0 0 5px rgba(240,138,60,.14); }

.trip-summary { padding: 22px 22px 18px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.trip-summary__label { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.trip-summary__route { display: grid; }
.trip-summary__stop { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; }
.trip-summary__stop small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trip-summary__stop b { display: block; font-size: 15px; line-height: 1.35; color: var(--text); }
.trip-summary__dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(240,138,60,.14); color: var(--accent-ink); }
.trip-summary__dot--end { background: var(--orange-grad); color: #fff; }
.trip-summary__dot svg { width: 18px; height: 18px; }
.trip-summary__line { position: relative; height: 34px; margin-left: 18px; border-left: 2px dashed rgba(240,138,60,.5); }
.trip-summary__van { position: absolute; left: -14px; top: 4px; width: 26px; height: 13px; color: var(--orange); animation: trip-van 2.6s ease-in-out infinite; }
@keyframes trip-van { 0%, 100% { transform: translateY(-2px) rotate(90deg); } 50% { transform: translateY(8px) rotate(90deg); } }
.trip-summary__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.trip-summary__meta span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.trip-summary__meta svg { width: 16px; height: 16px; color: var(--accent-ink); }
.trip-summary.is-empty .trip-summary__route b { color: var(--muted); font-weight: 600; }

/* ---- Thank-you page ---- */
.thanks { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(30px, 5vw, 60px)) 0 clamp(70px, 9vw, 120px); text-align: center; isolation: isolate; }
.thanks::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -380px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(240,138,60,.22), transparent 62%); z-index: -1; pointer-events: none; }
.thanks__topo { z-index: -2; opacity: .8; }
.thanks__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.thanks__inner { position: relative; max-width: 900px; }

.thanks__road { display: block; width: 100%; height: auto; overflow: visible; margin: 0 auto 4px; }
.thanks__road path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 12; opacity: .55; }
.thanks__start circle { fill: var(--bg); stroke: var(--orange); stroke-width: 3; }
.thanks__start .dot { fill: var(--orange); stroke: none; }
.thanks__finish .halo { fill: rgba(240,138,60,.16); transform-box: fill-box; transform-origin: center; }
.thanks__finish .core { fill: var(--orange); }
.thanks__finish .flag { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-arrived .thanks__finish .halo { animation: arrive 1.6s ease-out infinite; }
@keyframes arrive { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.thanks__van { position: absolute; left: 0; top: 0; width: 60px; height: 30px; color: var(--orange); filter: drop-shadow(0 8px 14px rgba(232,105,42,.5)); will-change: transform; z-index: 2; pointer-events: none; }
.thanks__van svg { width: 100%; height: 100%; display: block; }

.thanks__kicker { justify-content: center; margin-top: 8px; }
.thanks__kicker::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.thanks__title { font-size: clamp(46px, 9vw, 108px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin-bottom: 20px; }
.thanks__lead { font-size: clamp(18px, 2vw, 22px); color: var(--text-2); max-width: 640px; margin: 0 auto 26px; }
.thanks__wa-note { display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 0 auto 30px; padding: 14px 18px; border-radius: 16px; text-align: left; background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35); color: var(--text-2); }
.thanks__wa-note[hidden] { display: none; }
.thanks__wa-note svg { width: 30px; height: 30px; color: #25d366; flex: none; }
.thanks__wa-note b { color: var(--text); }

/* boarding-pass ticket */
.ticket { display: grid; grid-template-columns: 1fr 120px; max-width: 760px; margin: 10px auto 46px; text-align: left; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); animation: ticket-in 1s var(--ease) .9s both; }
.ticket[hidden] { display: none; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
.ticket__main, .ticket__stub { background: var(--surface-solid); position: relative; }
.ticket__main {
  padding: 24px 26px 22px; border-radius: 24px 0 0 24px;
  -webkit-mask: radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat;
}
.ticket__stub {
  border-radius: 0 24px 24px 0; border-left: 2px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px;
  background: linear-gradient(180deg, rgba(240,138,60,.18), var(--surface-solid));
  -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat;
}
.ticket__stub-label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; letter-spacing: .4em; text-transform: uppercase; font-size: 12px; color: var(--accent-ink); }
.ticket__barcode { width: 46px; height: 92px; }
.ticket__barcode rect { fill: var(--text-2); }
.ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.ticket__head img { height: 34px; width: auto; }
.ticket__tag { padding: 6px 12px; border-radius: 999px; background: var(--orange-grad); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.ticket__addr { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ticket__addr:empty { display: none; }
.ticket__barcode--h { display: none; }
.ticket small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.ticket b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--text); }
.ticket__route { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.ticket__route > div:last-child { text-align: right; }
.ticket__arrow { position: relative; height: 26px; border-top: 2px dashed rgba(240,138,60,.55); margin-top: 14px; }
.ticket__arrow svg { position: absolute; left: 50%; top: -15px; width: 34px; height: 17px; margin-left: -17px; color: var(--orange); }
.ticket__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 26px; justify-content: start; }
.ticket__meta b { font-size: 15px; }
.ticket__meta [hidden] { display: none; }

.thanks__next { max-width: 820px; margin: 0 auto 40px; text-align: left; }
.thanks__next h2 { font-size: 24px; margin-bottom: 16px; text-align: center; }
.thanks__next ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.thanks__next li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.thanks__next li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(240,138,60,.14); color: var(--accent-ink); font-weight: 800; }
.thanks__next b { display: block; margin-bottom: 4px; }
.thanks__next p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 900px) {
  .quote-page__grid { grid-template-columns: minmax(0, 1fr); }
  .quote-page__intro { position: static; }
  .quote-progress { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .quote-progress li { flex-direction: column; text-align: center; font-size: 12px; gap: 6px; line-height: 1.25; }
  .quote-progress li + li::before { display: none; }
  .thanks__next ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* road + van sized for a narrow screen (thanks.js swaps in a taller road) */
  .thanks { padding-top: calc(var(--header-h) + 18px); }
  .thanks__road { max-width: 360px; }
  .thanks__van { width: 44px; height: 22px; }
  .thanks__title { font-size: clamp(40px, 12vw, 54px); margin-bottom: 14px; }
  .thanks__lead { font-size: 16px; margin-bottom: 20px; }
  .thanks__wa-note { padding: 12px 14px; font-size: 14px; gap: 12px; }
  .thanks__wa-note svg { width: 26px; height: 26px; }

  /* boarding pass stacks: main on top, tear-off stub along the bottom */
  .ticket { grid-template-columns: 1fr; margin-bottom: 36px; }
  .ticket__main {
    padding: 18px 18px 16px; border-radius: 20px 20px 0 0;
    -webkit-mask: radial-gradient(circle 12px at 0 100%, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 100%, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
  }
  .ticket__stub {
    flex-direction: row; justify-content: space-between; padding: 14px 18px; border-radius: 0 0 20px 20px;
    border-left: 0; border-top: 2px dashed var(--line-2);
    background: linear-gradient(90deg, rgba(240,138,60,.18), var(--surface-solid));
    -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 11px, #000 12px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 0, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 11px, #000 12px) right / 51% 100% no-repeat;
  }
  .ticket__stub-label { writing-mode: horizontal-tb; transform: none; letter-spacing: .3em; }
  .ticket__barcode { display: none; }
  .ticket__barcode--h { display: block; width: 130px; height: 30px; }
  .ticket__head { padding-bottom: 12px; margin-bottom: 14px; }
  .ticket__head img { height: 26px; }
  .ticket__tag { font-size: 11px; padding: 5px 10px; }
  .ticket b { font-size: 16px; }
  .ticket__route { grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; }
  .ticket__route > div:last-child { text-align: left; }
  .ticket__arrow { height: 22px; margin: 2px 0 4px 10px; border-top: 0; border-left: 2px dashed rgba(240,138,60,.55); width: 0; }
  .ticket__arrow svg { left: -9px; top: 3px; margin: 0; transform: rotate(90deg); width: 18px; height: 9px; }
  .ticket__meta { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .ticket__meta b { font-size: 14px; }

  .thanks__next h2 { font-size: 21px; }
  .thanks__next li { padding: 14px; }
  .thanks__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks__van { display: none; }
  .trip-summary__van { animation: none; transform: rotate(90deg); }
}
