/* ============================================================
   VacationVIP / Myrtle Beach checkout — Shared Brand Design System
   Used by every step in the myrtle-beach-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: #1f3f99;
  --navy-deep: #162f7c;
  --yellow: #f1f402;

  /* Brand accent (user decision 2026-10-26: orange replaces the old red). Same values as the landing page. */
  --accent: #c41f26;          /* fills: buttons, badges, bars, rules, checked controls */
  --accent-hover: #a81a20;    /* hover on accent fills */
  --accent-active: #8f161b;   /* pressed accent fills */
  --accent-ink: #162f7c; --on-accent: #ffffff;      /* text and icons ON an accent fill */
  --accent-text: #b51c24;     /* accent used as text/icons on white or light panels */
  --accent-tint: #fdeaea;     /* light accent wash behind accent text */

  /* Form errors stay red so they read as errors, not brand (5.7:1 on white). */
  --error: #c81e1b;

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

  /* Neutrals */
  --ink: #162f7c;
  --text: #1c2733;
  --muted: #667085;
  --line: #d9dee5;
  --field-border: #8792a1;    /* UX pass 2: was #b7c0cc (1.8:1); field and checkbox edges need 3:1 on white (WCAG 1.4.11) */
  --bg: #f6f7f9;
  --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(22, 47, 124, 0.08);
  --shadow-soft: 0 2px 8px rgba(22, 47, 124, 0.06);

  /* Layout */
  --maxw: 1090px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -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: 12px 40px;   /* 8pt grid; same as the landing page top bar */
  border-bottom: 3px solid var(--accent);
  position: relative;
  z-index: 20;
}
.pf-navbar__logo { height: 30px; width: auto; display: block; }
/* VacationVIP | Vacation Gurus co-brand lockup (same as the landing page top bar) */
.pf-navbar__brands { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; max-width: 100%; }
.pf-navbar__brands img { min-width: 0; }
.pf-navbar__divider { width: 1px; height: 32px; background: #c9cfdd; flex-shrink: 0; }
.pf-navbar__logo--partner { height: 28px; }
@media (max-width: 767px) {
  .pf-navbar { padding: 8px 12px; border-bottom-width: 2px; }
  .pf-navbar__logo { height: 20px; }
  .pf-navbar__brands { gap: 8px; }
  .pf-navbar__divider { height: 16px; }
  .pf-navbar__logo--partner { height: 18px; }
}

/* ============ ATTENTION BAR ============ */
/* ============ ALERT BAR (social-proof ticker) ============ */

/* ============ 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: var(--muted);   /* UX pass 2: #999 was 2.7:1 on the page grey; muted slate is 4.6:1 */
}
.pf-step__bar { height: 6px; background: #d5dae1; border-radius: 3px; }
.pf-step.is-active .pf-step__label { color: var(--accent-text); }
.pf-step.is-active .pf-step__bar { background: var(--accent); }
.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; }
/* UX pass 2: on fields with no visible label the placeholder IS the label, so it needs text contrast (4.8:1, not 2.4:1) */
.pf-input[aria-label]::placeholder { color: var(--muted); }
.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(--error); box-shadow: 0 0 0 3px rgba(200, 30, 27, .14); }
.pf-field__error { color: var(--error); 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(--accent); border-color: var(--accent); }
.pf-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--on-accent);
  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: var(--on-accent);
  background: var(--accent);
  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(--accent-hover); } }
.pf-btn:active { transform: translateY(1px); background: var(--accent-active); }
.pf-btn--ghost:active { background: rgba(21,64,157,.12); }
.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(22, 47, 124, .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: var(--muted); font-size: 13px; font-weight: 400; margin: 6px 0 0; }   /* UX blocker fix: #8a8f98 was 3.24:1 on the white card; --muted (#667085) is 4.97:1 */
/* 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(--accent-text); }
.os-includes__gc { color: #1b5cdd; 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(--accent-text); 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(--accent-text); 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) ============ */
/* Footer look lives in ../../shared/footer.css (one component for every page on this site). */

/* ============ INLINE ICONS (Lucide, matches homepage) ============ */
.pf-i { width: 16px; height: 16px; color: var(--accent-text); 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(--muted); transition: background .2s ease;   /* UX pass 2: #999 put the white "No" at 2.8:1 and the track at 2.8:1 on white; slate is 4.8:1 */
}
/* UX pass 2: 64x26 switch gets an invisible 44px-tall tap area (project rule: 44x44 on touch) */
.os-toggle::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.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(--accent); }
.os-toggle[aria-checked="true"] .os-toggle__label { right: auto; left: 11px; color: var(--on-accent); }
.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(22, 47, 124, .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__close, .pf-toast__action { position: relative; }
.pf-toast__close::after { content: ""; position: absolute; inset: -12px; }   /* UX pass 2: ~20px glyph -> 44px tap area */
.pf-toast__action::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.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(--accent-text); }
.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(--accent-text); border-color: var(--accent); background: rgba(196, 31, 38, .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(--accent-text); } }
/* UX pass 2: 22px steppers, 20px delete and ~24px Add/Remove pills get invisible 44px-tall tap areas. Widths stay
   inside the gaps between neighbours (stepper centres are 54px apart, stepper-to-delete 31px) so taps never overlap. */
.pf-cart__step, .pf-cart__del, .pf-cart__btn { position: relative; }
.pf-cart__step::after { content: ""; position: absolute; inset: -11px -4px; }
.pf-cart__del::after { content: ""; position: absolute; inset: -12px -4px; }
.pf-cart__btn::after { content: ""; position: absolute; inset: -10px 0; }

/* 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; color: currentColor; }   /* UX pass 2: success = green (5.2:1), not the brand orange it inherited from .pf-i */
.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(22, 47, 124, .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(--accent-text); 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; }
/* UX pass 2: the bare 26px glyph was the whole tap target; a 44x44 box centred on the same spot (glyph doesn't move) */
.pf-modal__close { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; margin: -9px -9px 0 0; border-radius: 50%; }
@media (hover: hover) { .pf-modal__close:hover { color: var(--ink); background: rgba(21, 64, 157, .06); } }

/* ============ 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, #1f3f99) is for fills and accents only. Headings use navy #162f7c,
   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(--accent-text) !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 #1f3f99; 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; }

/* ============ OFFER CARD (resort card) ============
   Photo with the % OFF half-moon, resort name, rating, stay facts and the price.
   Steps 01 and 02 show it in the right column, directly above the Order Summary. */
.offer-card { display: flex; align-items: stretch; width: 100%; max-width: var(--maxw); margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.offer-card__media { position: relative; flex: 0 0 216px; min-height: 144px; overflow: hidden; }
.offer-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card__save { position: absolute; left: 0; bottom: 16px; z-index: 2; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; text-align: center; text-transform: uppercase; padding: 8px 16px 8px 12px; border-radius: 0 999px 999px 0; }
.offer-card__content { flex: 1 1 auto; min-width: 0; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.offer-card__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.offer-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.offer-card__title { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0; }
.offer-card__addr, .offer-card__alt { font-size: 14px; color: var(--muted); margin: 0; }
.offer-card__pricecol { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.offer-card__now { font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1; }
.offer-card__sub { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.offer-card__amens { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text); }
.offer-card__amens span { display: inline-flex; align-items: center; gap: 8px; }
.offer-card__amens .pf-i { width: 16px; height: 16px; color: var(--navy); flex: 0 0 auto; }
.offer-card .os-rating { margin: 0; }
@media (max-width: 767px) {
  .offer-card { flex-direction: column; }
  .offer-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .offer-card__content { padding: 16px; gap: 16px; flex-direction: column; align-items: stretch; }
  .offer-card__pricecol { 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); }
  .offer-card__sub { white-space: normal; }
}

/* ============ 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(--error); box-shadow: 0 0 0 3px rgba(200, 30, 27, .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%; height: auto; 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; }
}
