/* ============================================================
   Vacation Gurus — Shared Brand Design System
   Used by every step in the vg-gatlinburg-payment-flow-w-upgrades package.
   Tokens + reusable components (header, footer, buttons,
   form fields, stepper, attention bar, pricing) pulled from
   the main site so the checkout matches the brand.
   ============================================================ */

/* The hidden attribute must always win, even over display:flex/grid. */
[hidden] { display: none !important; }

:root {
  /* Brand colors */
  --navy: #1E1D57;
  --navy-deep: #1E1D57;
  --coral: #E8134F;
  --coral-hover: #AC4384;
  --coral-dark: #AC4384;
  --yellow: #fff200;

  /* Demand bar — refined amber */
  --amber-1: #F7D774;
  --amber-2: #F2C544;
  --amber-ink: #2A1B10;
  --amber-ink-soft: #6B5233;
  --scarcity: #E0361F;
  --amber-divider: rgba(42, 27, 16, .16);

  /* Neutrals */
  --ink: #1E1D57;
  --text: #333333;
  --muted: #4a5875;
  --line: #e3e8ee;
  --field-border: #c9d3dd;
  --bg: #f3f6f9;
  --white: #ffffff;

  /* Typography */
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Radii + shadows */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-pill: 40px;
  --shadow-card: 0 6px 24px rgba(11,35,99, 0.08);
  --shadow-soft: 0 2px 8px rgba(11,35,99, 0.06);

  /* Layout */
  --maxw: 1090px;
  /* landing page tokens */
  --deep: #406EB6;
  --tag-blue: #406EB6;
  --coral-text: #AC4384;
  --error: #AC4384;
  --error-bg: #FDEFF4;
  --field-bg: #f3f6f9;
  --footer-bg: #0c1f48;
  --footer-link-hover: #FF8FB0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;   /* page is white; --bg stays the light tint for cards and badges */
  -webkit-font-smoothing: antialiased;
}

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

/* ============ SITE HEADER (matches homepage .tb top bar) ============ */
.pf-navbar {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 40px;
  border-bottom: 3px solid var(--coral);
  position: relative;
  z-index: 20;
}
.pf-navbar__logo { height: 30px; width: auto; display: block; }
@media (max-width: 767px) {
  .pf-navbar { padding: 8px 12px; border-bottom-width: 2px; }
  .pf-navbar__logo { height: 20px; }
}

/* ============ ATTENTION BAR ============ */
/* ============ ALERT BAR (social-proof ticker) ============ */
/* Second item runs the same cycle offset by half, so the pair always
   crossfades in opposite phase — a seamless, jump-free loop. */

/* WCAG AA: slide instead of crossfade. A fading item is semi-transparent over the yellow bar,
   so a contrast scan sampling mid-fade reads blended yellow-on-yellow; sliding text stays fully
   opaque at every instant (the ticker clips it). */

@media (max-width: 640px) {
}
@media (prefers-reduced-motion: reduce) {
}

/* ============ PAGE SHELL ============ */
.pf-main {
  padding: 40px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.pf-container { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* ============ STEPPER ============ */
.pf-stepper {
  display: flex;
  width: 100%;
  max-width: var(--maxw);
  gap: 0;
}
.pf-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-step__label {
  font-weight: 700;
  font-size: 18px;
  color: #767676;   /* WCAG AA: was #999 (2.8:1) */
}
.pf-step__bar { height: 6px; background: #d5dae1; border-radius: 3px; }
.pf-step.is-active .pf-step__label { color: var(--coral); }
.pf-step.is-active .pf-step__bar { background: var(--coral); }
.pf-step.is-done .pf-step__label { color: var(--navy); }
.pf-step.is-done .pf-step__bar { background: var(--navy); }
@media (max-width: 767px) { .pf-step__label { font-size: 14px; } }

/* ============ CARDS ============ */
.pf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.pf-card__pad { padding: 28px; }
@media (max-width: 767px) { .pf-card__pad { padding: 20px; } }

.pf-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.pf-subtitle {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ============ FORM FIELDS ============ */
.pf-field { position: relative; display: flex; flex-direction: column; }
.pf-field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.pf-field > label .pf-hint { font-weight: 400; font-size: 11px; color: var(--muted); }
.pf-input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pf-input::placeholder { color: #9aa4b0; }
.pf-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21, 64, 157, 0.12); }
.pf-input.is-invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232,19,79, 0.14); }
.pf-field__error { color: var(--coral); font-size: 12px; margin-top: 5px; display: none; }
.pf-field.is-invalid .pf-field__error { display: block; }

.pf-row { display: flex; gap: 12px; }
.pf-row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) { .pf-row { flex-direction: column; } }

/* ============ CHECKBOXES ============ */
.pf-check { display: flex; gap: 12px; align-items: flex-start; }
.pf-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid var(--field-border);
  border-radius: 5px;
  /* Centre the 22px box on the first text line (12px * 1.5 = 18px tall):
     (18 - 22) / 2 = -2px. Works for one-line rows and long paragraphs alike. */
  margin: -2px 0 0;
  cursor: pointer;
  position: relative;
  background: #fff;
}
.pf-check input[type="checkbox"]:checked { background: var(--coral); border-color: var(--coral); }
.pf-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pf-check__text { font-size: 12px; line-height: 1.5; color: var(--text); }
.pf-check__text a { color: var(--navy); text-decoration: underline; }

/* ============ BUTTONS ============ */
.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, transform .05s;
}
@media (hover: hover) { .pf-btn:hover { background: var(--coral-hover); } }
.pf-btn:active { transform: translateY(1px); }
.pf-btn:disabled { background: #c9ccd2; cursor: not-allowed; }
.pf-btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
@media (hover: hover) { .pf-btn--ghost:hover { background: rgba(21,64,157,.06); } }

/* ---- Shared action bar: static in flow on desktop, fixed thumb-zone bar on mobile ---- */
.pf-actionbar { display: flex; gap: 12px; margin-top: 24px; }
.pf-actionbar .pf-btn { flex: 1 1 auto; width: auto; }
.pf-actionbar .pf-btn--ghost { flex: 0 0 auto; }
@media (max-width: 900px) {
  .pf-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    margin: 0; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(11,35,99, .12);
  }
  .pf-actionbar .pf-btn { font-size: 15px; padding: 14px 18px; }
}

/* ============ ORDER SUMMARY / PRICING ============ */
.pf-summary__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.pf-summary__name { font-size: 20px; font-weight: 800; color: var(--ink); margin: 16px 0 4px; }
/* Guest-reviews style rating (matches homepage .ta-summary) */
.os-rating__bubbles { height: 20px; width: auto; display: block; }
.os-rating__reviews { color: #3a3a4a; font-size: 15px; font-weight: 700; }
.os-purchased { color: #8a8f98; font-size: 13px; font-weight: 400; margin: 6px 0 0; }
/* Mobile: go horizontal (thumbnail left, review info right) like the homepage guest-reviews. */
@media (max-width: 767px) {
  .os-review-head { display: flex; align-items: center; gap: 14px; }
  .os-review-head .pf-summary__img { width: 104px; height: 80px; flex: 0 0 auto; }
  .os-review-info { flex: 1 1 auto; min-width: 0; }
  .os-review-info .pf-summary__name { margin: 0 0 4px; font-size: 17px; }
  .os-rating__bubbles { height: 18px; }
  .os-purchased { font-size: 12px; }
}
/* "What's included" checklist (matches homepage .rd-pkg-list bottom bar) */
.os-includes { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.os-includes li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #262626; }
.os-includes li .pf-i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--coral); }
.os-includes__gc { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.pf-price-line { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.pf-price-line .pf-strike { text-decoration: line-through; color: var(--muted); }
.pf-price-line .pf-save { color: var(--coral); font-weight: 700; }
.pf-price-total {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 800; color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 8px; padding-top: 10px;
}
.pf-hold {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.pf-hold__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.pf-hold__timer { font-size: 40px; font-weight: 900; color: var(--coral); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-hold__note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ============ SITE FOOTER (matches homepage .footer-2) ============ */
/* ============ SITE FOOTER (matches the landing page .footer-2) ============ */
.pf-footer {
  color: #aeb7cc; text-align: center; background-color: var(--footer-bg);
  padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--font); font-size: 12px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.pf-footer__logo { width: auto; height: 20px; display: block; }
.pf-footer__bbb { display: inline-block; background: #fff; border-radius: 8px; }
.pf-footer__bbb img { display: block; border: 0; }
.pf-footer__legal { color: #aeb7cc; max-width: 120ch; text-wrap: pretty; margin: 0; }
.pf-footer__legal b { color: #d7dceb; }
.pf-footer__fine { color: #aeb7cc; font-size: 11px; line-height: 1.55; letter-spacing: .02em; margin: 0; max-width: 120ch; }
.pf-footer__links { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; align-items: center; color: #c3cadb; }
.pf-footer a { color: #fff; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .pf-footer a:hover { color: var(--footer-link-hover); } }
.pf-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.pf-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.pf-footer__eho { width: 38px; height: auto; display: block; }
@media (max-width: 767px) { .pf-footer { padding-left: 16px; padding-right: 16px; } }


/* ============ INLINE ICONS (Lucide, matches homepage) ============ */
.pf-i { width: 16px; height: 16px; color: var(--coral); flex: 0 0 auto; stroke-width: 2; }
.pf-i--lg { width: 20px; height: 20px; }
.pf-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.pf-stars .pf-i { width: 15px; height: 15px; color: #f5a623; fill: #f5a623; }
.up-list .k { display: inline-flex; align-items: center; gap: 7px; }
.os-line { display: flex; align-items: center; gap: 7px; }
.os-badges { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.os-badges img { width: 84px; height: auto; display: block; }
.os-travel { margin: 6px 0 0; }
.bill-safe__icons { display: inline-flex; align-items: center; gap: 10px; }
.bill-safe__icons .pf-i { width: 24px; height: 24px; color: var(--muted); }

/* ============ "Know your dates?" Yes/No toggle (Figma: default NO) ============ */
.os-dates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.os-toggle {
  position: relative; flex: 0 0 auto; width: 64px; height: 26px;
  border: 0; border-radius: 20px; cursor: pointer; padding: 0;
  background: var(--neutral-500, #767676); transition: background .2s ease;
}
.os-toggle__label {
  position: absolute; top: 50%; right: 11px; transform: translateY(-50%);
  font-size: 12px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: .01em;
}
.os-toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: left .2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.os-toggle[aria-checked="true"] { background: var(--coral); }
.os-toggle[aria-checked="true"] .os-toggle__label { right: auto; left: 11px; }
.os-toggle[aria-checked="true"] .os-toggle__knob { left: 41px; }

/* ============ TOAST (purchase confirmed) ============ */
.pf-toast-wrap {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.pf-toast {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 20px;
  background: linear-gradient(rgba(42, 153, 107, 0.14), rgba(42, 153, 107, 0.14)), #ffffff;
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  border: 2px solid #9fe3c4; border-radius: 8px;
  padding: 14px 16px 14px 24px;
  color: #077648; font-weight: 600; font-size: 16px;
  box-shadow: 0 8px 24px rgba(11,35,99, .18);
  transform: translateY(-16px); opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.pf-toast.is-visible { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pf-toast { transition: none; } }
.pf-toast__close { background: none; border: none; color: #077648; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.pf-toast__action { background: none; border: none; color: #077648; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; padding: 4px 2px; text-decoration: underline; }

/* ============ EDITABLE UPGRADES CART ============ */
.pf-cart { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pf-cart__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pf-cart__k { display: flex; align-items: center; gap: 8px; color: var(--text); flex: 1 1 auto; min-width: 0; }
.pf-cart__k .pf-i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--coral); }
.pf-cart__v { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pf-cart__row.is-off .pf-cart__k,
.pf-cart__row.is-off .pf-cart__v { color: var(--muted); }
.pf-cart__row.is-off .pf-cart__k .pf-i { color: var(--muted); }
.pf-cart__empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.pf-cart__btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--radius-pill); border: 1px solid var(--field-border);
  background: #fff; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pf-cart__btn .pf-i { width: 14px; height: 14px; }
.pf-cart__btn--add { color: var(--navy); border-color: var(--navy); }
@media (hover: hover) { .pf-cart__btn--add:hover { background: rgba(21, 64, 157, .08); } }
.pf-cart__btn--remove { color: var(--muted); }
@media (hover: hover) { .pf-cart__btn--remove:hover { color: var(--coral); border-color: var(--coral); background: rgba(232,19,79, .06); } }
.pf-cart__qty { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pf-cart__step { width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--navy); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
@media (hover: hover) { .pf-cart__step:hover { background: var(--navy-deep); } }
.pf-cart__qtynum { min-width: 16px; text-align: center; font-weight: 700; font-size: 13px; color: var(--ink); }
.pf-cart__btn:disabled, .pf-cart__step:disabled, .pf-cart__del:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) { .pf-cart__btn--add:disabled:hover { background: #fff; } }
@media (hover: hover) { .pf-cart__step:disabled:hover { background: var(--navy); } }
@media (hover: hover) { .pf-cart__del:disabled:hover { color: var(--muted); } }
.pf-cart__del { background: none; border: none; padding: 2px; margin-left: 2px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; }
.pf-cart__del .pf-i { width: 16px; height: 16px; }
@media (hover: hover) { .pf-cart__del:hover { color: var(--coral); } }

/* Paid / confirmed indicators (base package on post-payment upsell steps) */
.up-paid-banner { display: flex; align-items: center; gap: 8px; background: rgba(0, 170, 108, .1); color: #077648; border: 1px solid rgba(0, 170, 108, .32); border-radius: var(--radius-sm); padding: 9px 12px; font-weight: 700; font-size: 13px; margin: 16px 0 4px; }
.up-paid-banner .pf-i { width: 18px; height: 18px; flex: 0 0 auto; }
.up-paid-banner strong { font-weight: 800; }
.up-paid-badge { display: inline-flex; align-items: center; gap: 3px; background: #00aa6c; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 2px 7px; margin-right: 6px; vertical-align: middle; }
.up-paid-badge .pf-i { width: 11px; height: 11px; }

/* ============ MODAL (retention / "wonder why not") ============ */
.pf-modal {
  position: fixed; inset: 0; z-index: 1001;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(11,35,99, .55);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.pf-modal.is-open { display: flex; }
/* A tall modal must scroll so its top and buttons stay reachable (phones in landscape too):
   top-align the flex box and let margin:auto centre the card whenever it fits. */
.pf-modal { align-items: flex-start; }
.pf-modal__card { margin: auto; }
@media (max-width: 767px) {
  .pf-modal { padding: 14px; }
}
.pf-modal__card {
  position: relative; background: #fff; border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .36);
  padding: 40px 48px; max-width: 560px; width: 100%;
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 520px) { .pf-modal__card { padding: 28px 22px; gap: 20px; } }
.pf-modal__head { display: flex; align-items: center; gap: 16px; }
.pf-modal__icon { width: 32px; height: 32px; color: var(--coral); flex: 0 0 auto; }
.pf-modal__title { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0; }
.pf-modal__body { font-size: 16px; line-height: 1.5; color: var(--text); }
.pf-modal__body p { margin: 0 0 12px; }
.pf-modal__body strong { color: var(--ink); }
.pf-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-modal__actions .pf-btn { width: auto; flex: 1 1 auto; }
.pf-modal__close { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }

/* ============ RESPONSIVE (tablet/mobile stacked layouts) ============
   When the two-column step grids collapse to a single column, the summary
   spans the full column width so both stacked rows match. */
@media (max-width: 900px) {
  .os-summary, .up-summary { max-width: none; width: 100%; margin: 0; }
  /* Clear the fixed bottom action bar so no content hides behind it. */
  .pf-main { padding-bottom: 32px; }
  .pf-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ============ MOBILE VERTICAL COMPRESSION ============
   Tighten global spacing/sizes so a step fits the phone viewport. */
@media (max-width: 767px) {
  .pf-main { padding: 18px 14px 32px; gap: 16px; }
  .pf-container { }
  .pf-card__pad { padding: 18px 16px; }
  .pf-title { font-size: 18px; }
  .pf-subtitle { font-size: 11.5px; }
  .pf-stepper { gap: 0; }
  .pf-step { gap: 8px; }

  /* Summary card — compact */
  .pf-summary__img { height: 150px; }
  .pf-summary__name { font-size: 18px; margin: 12px 0 4px; }
  .os-includes { gap: 8px; margin-top: 12px; }
  .os-includes li { font-size: 14px; }
  .pf-price-line { font-size: 14px; padding: 3px 0; }
  .pf-price-total { font-size: 17px; margin-top: 6px; padding-top: 8px; }
  .pf-hold { padding: 12px; }
  .pf-hold__timer { font-size: 32px; }

  /* Cart rows a touch tighter */
  .pf-cart__row { padding: 5px 0; }

  /* Paid banner */
  .up-paid-banner { margin: 12px 0 4px; padding: 8px 10px; font-size: 12.5px; }
}

/* ============ MOBILE MODAL COMPRESSION ============
   Tighten popup padding/gaps/type so retention + review modals fit the
   phone viewport. (Placed last so it wins over the base modal rules.) */
@media (max-width: 767px) {
  .pf-modal__card { padding: 22px 18px; gap: 16px; border-radius: 18px; }
  .pf-modal__head { gap: 12px; }
  .pf-modal__icon { width: 26px; height: 26px; }
  .pf-modal__title { font-size: 20px; line-height: 1.2; }
  .pf-modal__body { font-size: 14px; line-height: 1.45; }
  .pf-modal__body p { margin: 0 0 8px; }
  .pf-modal__actions { gap: 8px; }
  .pf-modal__actions .pf-btn { font-size: 15px; padding: 13px 18px; }
  .pf-modal__close { top: 12px; right: 14px; font-size: 24px; }
}

/* ============ SHORT-VIEWPORT SAFETY (iPhone SE class: <=700px tall) ============
   No modal may ever exceed the visible viewport: cap the card height and let it
   scroll internally so the action buttons are always reachable. dvh tracks the
   real visible area when mobile browser chrome expands/collapses. */
@media (max-width: 767px) {
  /* Doubled selector outranks page-level skins like .tp-card { overflow: hidden } */
  .pf-modal .pf-modal__card {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
@media (max-height: 700px) {
  /* .tp-card keeps its own edge-to-edge layout (padding: 0) */
  .pf-modal .pf-modal__card:not(.tp-card) { padding: 18px 16px; gap: 12px; }
  .pf-modal__title { font-size: 18px; }
  .pf-modal__body { font-size: 13px; line-height: 1.4; }
  .pf-modal__actions .pf-btn { font-size: 14px; padding: 12px 16px; }

  /* Slim the fixed thumb-zone action bar so the sticky stack doesn't
     swallow the scroll zone on short phones. */
  .pf-actionbar { padding-top: 8px; }
  .pf-actionbar .pf-btn { font-size: 14px; padding: 11px 16px; }
}

/* ============ MATCH THE LANDING PAGE ============
   One component system with index.html: the Reserve-button pill, Montserrat headlines,
   22px card corners and the same footer text colour. Layouts are unchanged. */
.pf-btn { font: 500 17px/1 Roboto, Arial, sans-serif; letter-spacing: .02em; min-height: 46px; padding: 0 40px; border-radius: 30px; }
.pf-btn--ghost { font-weight: 500; }
@media (max-width: 767px) { .pf-actionbar .pf-btn, .pf-modal__actions .pf-btn { font-size: 15px; min-height: 46px; padding: 0 18px; } }
.pf-card { border-radius: 22px; }
.tk-headline, .pf-title, .pf-modal__title, .ty-congrats, .ty-title, h1, h2.tk-save, .tk-card__name {
  font-family: 'Montserrat', Roboto, Arial, sans-serif;
}
.tk-headline { font-weight: 800; letter-spacing: -.01em; }

/* ============ TEXT COLOURS (match the landing page) ============
   Royal blue (--navy, #406EB6) is for fills and accents only. Headings use navy #1E1D57,
   labels navy, body/values dark text; this undoes the old palette swaps that turned
   whole blocks of checkout copy bright blue. */
.ty-h1, .ty-h2, .ty-sec-title, .ty-block__head, .pf-title, .tk-headline, .tk-lead, .tk-save, .tk-card__name { color: var(--ink) !important; }
.ty-block .k, .up-list .k { color: var(--ink) !important; font-weight: 600; }
.ty-block .v, .up-list .v { color: var(--text) !important; }
.ty-block__head svg, .ty-block .k svg, .ty-block .k i { color: var(--coral) !important; }

/* ============ ACCESSIBILITY (QA pass 2026-10-21) ============
   Visually hidden text for screen readers (headings, live status messages). */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Keyboard focus ring (brand royal blue); white on the navy footer. Mouse clicks don't show it. */
a:focus-visible, button:focus-visible, [role=switch]:focus-visible, .cal-day:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
/* Phones: keep the focused field clear of the fixed offer bar + action bar when tabbing. */
@media (max-width: 900px) { html { scroll-padding-bottom: 140px; } }
/* Headings that only receive focus from script (modal titles, page heading after a modal closes) aren't controls: no ring. */
[tabindex="-1"]:focus { outline: none; }

/* ============ DESTINATION PHOTOS (Multi): photo holders + the blurred "Not Sure Yet" photo ============ */
.pf-summary__media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy) url("../../../vg-gatlinburg-landing-page/images/pattern.png"); }
.pf-summary__media img, .pf-summary__media .pf-summary__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; z-index: 1; }
.pf-summary__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.pf-summary__name { font-size: 20px; font-weight: 800; color: var(--ink); margin: 16px 0 4px; line-height: 1.2; }
/* Not Sure Yet: a destination photo, heavily blurred under a navy tint, with a question-mark icon (Lucide circle-help
   strokes in a soft white circle) above "NOT SURE YET". flow-state.js sets .is-notsure on the photo holder.
   The confirmation email uses the same look, baked into its card-/hero-not-sure-yet.jpg images. */
[data-dest-media].is-notsure { overflow: hidden; --q: 48px; }
[data-dest-media].is-notsure img[data-dest-img] { filter: blur(12px); transform: scale(1.15); }
[data-dest-media].is-notsure .pf-summary__ph, [data-dest-media].is-notsure .ty-hero__ph { z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(30,29,87, .45); text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
[data-dest-media].is-notsure .pf-summary__ph::before, [data-dest-media].is-notsure .ty-hero__ph::before { content: ""; flex: none; width: var(--q); height: var(--q); box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 58% no-repeat; }
.ty-hero.is-notsure { --q: 64px; }
/* offer card: keep the icon + label above the SAVE half-moon at the bottom-left */
.offer-card__media.is-notsure .pf-summary__ph { padding-bottom: 56px; }
@media (max-width: 767px) {
  .os-review-head .pf-summary__media { width: 104px; flex: 0 0 auto; aspect-ratio: 4 / 3; }
  .os-review-head .pf-summary__ph { font-size: 12px; letter-spacing: .04em; }
  .os-review-head [data-dest-media].is-notsure { --q: 28px; }
  .os-review-head [data-dest-media].is-notsure .pf-summary__ph { gap: 4px; }
}
.pf-summary__media .pf-summary__img { height: 100%; }
.pf-summary__destnote { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pf-summary__destnote:empty, .pf-summary__destnote[hidden] { display: none; }

/* Not Sure Yet: five-destination photo strip (replaces the blurred photo everywhere) */
[data-dest-media].is-notsure img[data-dest-img] { display: none !important; }
/* bento: one large photo left, four in a 2x2 on the right, thin white gutters */
.pf-mosaic { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #fff; }
.pf-mosaic img:first-child { grid-row: 1 / span 2; }
.pf-mosaic[hidden] { display: none; }
.pf-mosaic img { position: static !important; inset: auto !important; width: 100% !important; height: 100% !important; min-width: 0; object-fit: cover; display: block; filter: none !important; transform: none !important; border-radius: 0 !important; }
[data-dest-media].is-notsure .pf-summary__ph { inset: auto 0 12px 0 !important; top: auto !important; height: auto !important; padding: 0 !important; background: none !important; display: flex !important; justify-content: center; text-shadow: none; }
[data-dest-media].is-notsure .pf-summary__ph::before { display: none !important; }
[data-dest-media].is-notsure .pf-summary__ph::after { content: "10 destinations. Pick yours."; }
[data-dest-media].is-notsure .pf-summary__ph { font-size: 0 !important; }
[data-dest-media].is-notsure .pf-summary__ph::after { font: 800 12px/1.2 Montserrat, Roboto, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(30,29,87, .82); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.offer-card__media.is-notsure .pf-summary__ph { padding: 0 !important; justify-content: flex-end; padding-right: 10px !important; }
/* the strip's caption only where there is room for it (summary photo, confirmation header); small photos show the strip alone */
[data-dest-media] { container-type: inline-size; }
@container (max-width: 300px) { [data-dest-media].is-notsure .pf-summary__ph { display: none !important; } }
.offer-card__media.is-notsure .pf-summary__ph { display: none !important; }   /* the SAVE half-moon already sits there */

/* CTA buttons: the offer's --coral with white text, --coral-hover on hover */
.pf-btn:not(.pf-btn--ghost) { background: var(--coral); color: #fff; }
@media (hover: hover) { .pf-btn:not(.pf-btn--ghost):hover { background: var(--coral-hover); } }
.pf-btn:not(.pf-btn--ghost):disabled { background: #c9ccd2; color: #fff; }

/* SAVE / % OFF half-moons: the offer's --navy with white text */
.offer-card__save, .pf-offerbar__save, .pf-summary__save { background: var(--navy) !important; color: #fff !important; }

/* Co-brand logo pair (Vacation Gurus | Vacation VIP): steps down on phones so the pair always fits the screen */
@media (max-width: 479px) { .cobrand { gap: 10px !important; } .cobrand img { height: 18px !important; width: auto !important; } }
@media (max-width: 359px) { .cobrand { gap: 8px !important; } .cobrand img { height: 16px !important; } }

/* Guest rating under the hotel name (offer card and Package Summary); the score is the one on the landing page */
.os-rating { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.os-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #d5dde3; }
.os-stars::before { content: "\2605\2605\2605\2605\2605"; }
.os-stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--rating, 0%); overflow: hidden; white-space: nowrap; color: #f5a623; }

/* ============ BOXED FORM FIELDS ============
   One field style for the whole checkout: contact details (step 1) and card + billing address (step 2).
   The label is the same size and weight in every state; a hint line (step 1) shows until the guest types. */
.pf-boxed .pf-field { position: relative; display: block; border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--white); padding: 11px 14px; min-height: 60px; transition: border-color .15s, box-shadow .15s; }
.pf-boxed .pf-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21, 64, 157, .12); }
.pf-boxed .pf-field.is-invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 19, 79, .14); margin-bottom: 16px; }
.pf-boxed .pf-field > label { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; pointer-events: none; }
.pf-boxed .pf-field:focus-within > label { color: var(--navy); }
.pf-boxed .pf-field > label .pf-hint { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.pf-boxed .pf-field:focus-within > label .pf-hint,
.pf-boxed .pf-field.is-filled > label .pf-hint,
.pf-boxed .pf-field:has(.pf-input:-webkit-autofill) > label .pf-hint { display: none; }
.pf-boxed .pf-input, .pf-boxed .pf-select { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; width: 100%; border: none; background-color: transparent; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 0 14px 8px; font-size: 16px; color: var(--text); box-shadow: none; }
.pf-boxed .pf-select { padding-right: 36px; background-position: right 14px center; }
.pf-boxed .pf-select:has(option[value=""]:checked) { color: var(--muted); }   /* "Select…" reads like the other fields' hints until a choice is made */
/* a field with a hint: until the guest types, the input covers the box so a click anywhere focuses it */
.pf-boxed .pf-field:has(.pf-hint):not(.is-filled):not(:focus-within):not(:has(.pf-input:-webkit-autofill)) .pf-input { top: 0; padding: 11px 14px; color: transparent; }
.pf-boxed .pf-input:focus, .pf-boxed .pf-input.is-invalid, .pf-boxed .pf-select:focus, .pf-boxed .pf-select.is-invalid { border: none; box-shadow: none; }
.pf-boxed .pf-input:-webkit-autofill, .pf-boxed .pf-input:-webkit-autofill:hover, .pf-boxed .pf-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--text); }
.pf-boxed .pf-field__error { position: absolute; left: 14px; top: 100%; margin-top: 3px; }
@media (max-width: 767px) {
  .pf-boxed .pf-field { min-height: 56px; padding: 9px 12px; }
  .pf-boxed .pf-input, .pf-boxed .pf-select { top: 28px; padding: 0 12px 7px; }
  .pf-boxed .pf-select { padding-right: 34px; background-position: right 12px center; }
  .pf-boxed .pf-field:has(.pf-hint):not(.is-filled):not(:focus-within):not(:has(.pf-input:-webkit-autofill)) .pf-input { padding: 9px 12px; }
}

/* Resort card sits in the right column directly above the Order Summary (steps 01 and 02).
   That column is 420px wide, so the card always uses its stacked layout there. */
.os-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.os-side > .os-summary { flex: 1 1 auto; }
.os-side .offer-card { flex-direction: column; margin: 0; max-width: none; }
.os-side .offer-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
.os-side .offer-card__content { padding: 16px; gap: 16px; flex-direction: column; align-items: stretch; }
.os-side .offer-card__pricecol { align-self: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; text-align: left; border-left: none; padding: 16px 0 0; border-top: 1px solid var(--line); }
.os-side .offer-card__sub { white-space: normal; }

/* G-01: "Take up to 12 months to travel" readable on phones (was 13px) */
@media (max-width: 767px) { .os-summary .os-travel { font-size: 16px; } }

/* Suz, 6 Nov (Vercel, steps 1 and 2): where the columns stack (phones and small tablets), the resort card and the
   Order Summary read as one box: no gap, square inner corners, one hairline between them, one shadow. */
@media (max-width: 900px) {
  .os-side { gap: 0; }
  .os-side > .offer-card { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
  .os-side > .os-summary { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
}
