/* =============================================================================
   trek-detail.css — Ridiviaanh
   Styles for trek-detail.html only.
   global.css (in css/ folder) handles nav, footer, variables.

   READABILITY RULES:
   - All body/paragraph text: Jost 400, color #1C2B3A
   - Prices: Jost 600, large, unmistakable — not Cormorant
   - Cormorant Garamond: headings and trek name ONLY
   - Labels (uppercase tiny text): navigation use, never reading content

   Contents:
   1. Hero
   2. Body layout
   3. Left column — content
   4. Right column — slots + price
   5. Notify-me card
   6. Booking form overlay (steps 1–5)
   7. Responsive
============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO
───────────────────────────────────────────────────────────────────────────── */
.td-hero {
  height: 62vh;
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 80px;
}

.td-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.52);
}

.td-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 60px;
  width: 100%;
}

.td-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,243,236,0.6);
  text-decoration: none;
  font-weight: 400;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.td-back:hover { color: var(--gold); }

.td-hero-meta {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}

/* Trek title — main heading, Cormorant correct */
.td-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 12px;
}

/* Tagline — short but readable */
.td-hero-tagline {
  font-size: 16px;
  color: rgba(247,243,236,0.72);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.td-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.td-pill {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(247,243,236,0.75);
  border: 1px solid rgba(247,243,236,0.22);
  padding: 6px 14px;
  font-weight: 400;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. BODY LAYOUT
───────────────────────────────────────────────────────────────────────────── */
.td-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 64px 100px;
  align-items: start;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. LEFT COLUMN — content
───────────────────────────────────────────────────────────────────────────── */
.td-section { margin-bottom: 52px; }

.td-section-label {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27,58,107,0.1);
}

/* Description — primary reading content */
.td-description {
  font-size: 16px;
  line-height: 1.9;
  color: #1C2B3A;
  font-weight: 400;
}

.td-description p { margin-bottom: 18px; }
.td-description p:last-child { margin-bottom: 0; }

/* Includes list */
.td-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-includes li {
  font-size: 16px;
  color: #1C2B3A;
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.7;
}

.td-includes li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 11px;
}

/* Highlights */
.td-highlights {
  list-style: none;
  counter-reset: hl;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-highlights li {
  counter-increment: hl;
  font-size: 16px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.75;
  display: flex;
  gap: 16px;
}

.td-highlights li::before {
  content: counter(hl, decimal-leading-zero);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: rgba(201,168,76,0.45);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1.35;
  width: 30px;
}

/* Itinerary */
.td-itinerary { display: flex; flex-direction: column; }

.td-itin-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid rgba(27,58,107,0.08);
  padding: 20px 0;
}

.td-itin-row:last-child { border-bottom: 1px solid rgba(27,58,107,0.08); }

.td-itin-day {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding-top: 4px;
  line-height: 1.5;
}

/* Itinerary title — small heading */
.td-itin-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Itinerary detail — reading content */
.td-itin-detail {
  font-size: 16px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.8;
}

/* Age/fitness notice */
.td-notice {
  background: #F4F7FB;
  border: 1px solid rgba(27,58,107,0.12);
  border-left: 3px solid var(--royal);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.8;
}

.td-notice i { color: var(--royal); margin-top: 3px; flex-shrink: 0; }
.td-notice strong { font-weight: 600; color: var(--royal-deep); }


/* ─────────────────────────────────────────────────────────────────────────────
   4. RIGHT COLUMN — slots + price
───────────────────────────────────────────────────────────────────────────── */
.td-right {
  position: sticky;
  top: 104px;
}

/* Price card — price must be immediately scannable */
.td-price-card {
  background: var(--royal-deep);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.td-price-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(247,243,236,0.45);
  font-weight: 400;
  margin-bottom: 8px;
}

/*
  PRICE: Jost not Cormorant — numbers must be instantly readable.
  Someone scanning prices needs to read this in under a second.
*/
.td-price-amount {
  font-family: 'Jost', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.5px;
}

.td-price-per {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(247,243,236,0.4);
  font-weight: 400;
  margin-top: 6px;
}

.td-price-discount {
  font-size: 12px;
  color: #4CAF50;
  margin-top: 10px;
  font-weight: 500;
  line-height: 1.5;
}

/* Rolling window note */
.td-window-note {
  font-size: 13px;
  color: #5C7A96;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Slot cards */
.td-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.td-slot {
  border: 1px solid rgba(27,58,107,0.14);
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: border-color 0.25s, background 0.25s;
}

.td-slot:hover { border-color: rgba(27,58,107,0.35); background: rgba(27,58,107,0.02); }
.td-slot.selected { border-color: var(--royal); background: rgba(27,58,107,0.04); }
.td-slot.full { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Slot date — scannable data */
.td-slot-date {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1C2B3A;
}

.td-slot-price {
  font-size: 13px;
  color: #5C7A96;
  font-weight: 400;
  margin-top: 2px;
}

/* Spots — clear status indicator */
.td-slot-spots {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.td-slot-spots.spots-ok   { color: #1E8449; }
.td-slot-spots.spots-few  { color: #B7800A; }
.td-slot-spots.spots-full { color: #A93226; }

/* Group size controls */
.td-group-row { margin-bottom: 16px; }

.td-group-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #3A4F63;
  font-weight: 500;
  margin-bottom: 10px;
}

.td-group-controls {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.td-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(27,58,107,0.2);
  background: none;
  font-size: 20px;
  color: var(--royal);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.td-qty-btn:hover { background: var(--royal); color: var(--cream); border-color: var(--royal); }
.td-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Quantity display — readable number */
.td-qty-val {
  width: 56px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1C2B3A;
  border-top: 1px solid rgba(27,58,107,0.2);
  border-bottom: 1px solid rgba(27,58,107,0.2);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-group-note {
  font-size: 13px;
  color: #5C7A96;
  font-weight: 400;
  line-height: 1.5;
}

.td-group-note a { color: var(--royal); text-decoration: none; }
.td-group-note a:hover { text-decoration: underline; }

/* Book Now — primary action */
.td-book-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--royal);
  color: var(--cream);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  line-height: 1;
}

.td-book-btn:hover { background: var(--royal-deep); }


/* ─────────────────────────────────────────────────────────────────────────────
   5. NOTIFY-ME CARD
───────────────────────────────────────────────────────────────────────────── */
.td-notify-card {
  border: 1px solid rgba(201,168,76,0.25);
  background: #FDFAF5;
  padding: 30px 26px;
  text-align: center;
}

.td-notify-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 14px;
}

/* Notify heading */
.td-notify-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Notify body — readable */
.td-notify-body {
  font-size: 16px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 22px;
}

.td-notify-form { display: flex; }

.td-notify-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(27,58,107,0.2);
  border-right: none;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1C2B3A;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.td-notify-input:focus { border-color: var(--royal); }
.td-notify-input::placeholder { color: #8FA3BF; }

.td-notify-btn {
  background: var(--royal);
  color: var(--cream);
  border: none;
  padding: 12px 18px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.td-notify-btn:hover { background: var(--royal-deep); }

.td-notify-fine {
  font-size: 12px;
  color: #8FA3BF;
  font-weight: 400;
  margin-top: 10px;
  font-style: italic;
}

.td-notify-done {
  color: #1E8449;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. BOOKING FORM OVERLAY
───────────────────────────────────────────────────────────────────────────── */
.bf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,23,47,0.82);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  overflow-y: auto;
  padding: 24px;
}

.bf-overlay.open { opacity: 1; pointer-events: all; }

.bf-modal {
  background: #fff;
  width: 100%;
  max-width: 620px;
  position: relative;
  transform: translateY(28px);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 48px 120px rgba(11,23,47,0.4);
  margin: auto;
  max-height: 92vh;
  overflow-y: auto;
}

.bf-overlay.open .bf-modal { transform: translateY(0); }

/* Header */
.bf-header {
  background: var(--royal-deep);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Trek name in header */
.bf-header-trek {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  flex: 1;
  line-height: 1.2;
}

/* Slot in header — readable data */
.bf-header-slot {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}

.bf-close {
  width: 32px; height: 32px;
  border: 1px solid rgba(247,243,236,0.15);
  background: none;
  color: rgba(247,243,236,0.5);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.bf-close:hover { border-color: var(--gold); color: var(--gold); }

/* Step indicators */
.bf-steps {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(27,58,107,0.08);
  background: #FAFAFA;
}

.bf-step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.bf-step-num {
  width: 26px; height: 26px;
  border: 1px solid rgba(27,58,107,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #8FA3BF;
  transition: all 0.3s;
  font-family: 'Jost', sans-serif;
}

.bf-step.active .bf-step-num,
.bf-step.done .bf-step-num {
  background: var(--royal);
  border-color: var(--royal);
  color: #fff;
}

.bf-step-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8FA3BF;
  font-weight: 400;
  transition: color 0.3s;
}

.bf-step.active .bf-step-label { color: var(--royal); font-weight: 500; }
.bf-step.done .bf-step-label   { color: #3A4F63; }

.bf-step-line { flex: 1; height: 1px; background: rgba(27,58,107,0.1); margin: 0 8px; }

/* Panels */
.bf-panel { padding: 28px 28px 24px; }

/* Step heading */
.bf-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 6px;
}

/* Step subtext — readable */
.bf-panel-sub {
  font-size: 15px;
  color: #3A4F63;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Form fields */
.bf-field-row { margin-bottom: 16px; }
.bf-field-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bf-field { display: flex; flex-direction: column; gap: 6px; }

/* Field labels */
.bf-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #3A4F63;
  font-weight: 500;
}

.bf-req { color: #A93226; }

/* Inputs — clear, readable */
.bf-input {
  padding: 12px 14px;
  border: 1px solid rgba(27,58,107,0.18);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1C2B3A;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.bf-input:focus { border-color: var(--royal); }
.bf-input::placeholder { color: #8FA3BF; }
.bf-input.error { border-color: rgba(169,50,38,0.6); }

/* Member rows */
.bf-member-row {
  background: #F4F7FB;
  border: 1px solid rgba(27,58,107,0.08);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.bf-member-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 12px;
  font-weight: 500;
}

.bf-member-fields {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}

/* T&C scroll box */
.bf-tc-box {
  height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(27,58,107,0.12);
  margin-bottom: 16px;
  background: #fff;
  scroll-behavior: smooth;
}

.bf-tc-content {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #1C2B3A;
  font-weight: 400;
}

.bf-tc-content strong {
  display: block;
  color: var(--royal-deep);
  font-weight: 600;
  margin: 18px 0 6px;
  font-size: 13px;
}

.bf-tc-content strong:first-child { margin-top: 0; }
.bf-tc-content p { margin-bottom: 8px; }

/* T&C checkbox */
.bf-tc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.bf-tc-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--royal);
  cursor: pointer;
}

/* Checkbox label — readable instruction */
.bf-tc-check-label {
  font-size: 13px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.7;
  cursor: pointer;
}

/* Order summary */
.bf-summary {
  background: #F4F7FB;
  border: 1px solid rgba(27,58,107,0.08);
  padding: 18px 22px;
  margin-bottom: 14px;
}

.bf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27,58,107,0.06);
  font-size: 15px;
}

.bf-summary-row:last-child { border-bottom: none; }

.bf-sum-label { color: #3A4F63; font-weight: 400; }

/* Summary values — readable data */
.bf-sum-val { color: #1C2B3A; font-weight: 500; }

.bf-summary-row.bf-sum-total {
  border-top: 1px solid rgba(27,58,107,0.15);
  border-bottom: none;
  padding-top: 14px;
  margin-top: 4px;
}

.bf-summary-row.bf-sum-total .bf-sum-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 500;
}

/* Total price — must be unmistakable */
.bf-summary-row.bf-sum-total .bf-sum-val {
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1C2B3A;
  letter-spacing: -0.5px;
}

/* Price verified */
.bf-price-verified {
  font-size: 12px;
  color: #1E8449;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Action buttons */
.bf-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.bf-btn-primary {
  background: var(--royal);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

.bf-btn-primary:hover { background: var(--royal-deep); }
.bf-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.bf-btn-secondary {
  background: none;
  color: #3A4F63;
  border: 1px solid rgba(27,58,107,0.2);
  padding: 13px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.bf-btn-secondary:hover { border-color: var(--royal); color: var(--royal); }

/* Pay button — green = action, must stand out */
.bf-btn-pay {
  background: #1A7A3F;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.bf-btn-pay:hover { background: #145E30; }

.bf-razorpay-note {
  font-size: 11px;
  color: #8FA3BF;
  font-weight: 400;
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* Error messages */
.bf-error {
  font-size: 13px;
  color: #A93226;
  font-weight: 400;
  padding: 10px 14px;
  background: rgba(169,50,38,0.05);
  border: 1px solid rgba(169,50,38,0.15);
  margin-top: 6px;
  line-height: 1.6;
}

/* Confirmation screen */
.bf-confirmed { text-align: center; padding: 24px 0; }

.bf-confirmed-icon { font-size: 52px; color: #1E8449; margin-bottom: 20px; }

.bf-confirmed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 12px;
}

/* Booking ref — readable data */
.bf-confirmed-ref {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.bf-confirmed-body {
  font-size: 14px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.85;
  max-width: 380px;
  margin: 0 auto;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .td-body {
    grid-template-columns: 1fr;
    padding: 44px 32px 80px;
    gap: 0;
  }

  .td-right {
    position: static;
    margin-top: 48px;
    order: -1;
  }

  .td-hero-content { padding: 0 32px 44px; }
  .bf-field-row--2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .td-hero { height: 55vh; }
  .td-hero-content { padding: 0 20px 32px; }
  .td-body { padding: 32px 20px 60px; }

  .td-itin-row { grid-template-columns: 1fr; gap: 4px; }
  .td-itin-day { font-size: 9px; }

  .bf-modal { margin: 0; border-radius: 0; max-height: 100vh; }
  .bf-steps { padding: 12px 16px; }
  .bf-step-label { display: none; }
  .bf-panel { padding: 22px 18px; }
  .bf-member-fields { grid-template-columns: 1fr; }
  .bf-header { padding: 14px 18px; }
  .bf-actions { flex-direction: column-reverse; }
  .bf-btn-primary,
  .bf-btn-secondary,
  .bf-btn-pay { width: 100%; justify-content: center; }

  .td-notify-form { flex-direction: column; }
  .td-notify-input { border-right: 1px solid rgba(27,58,107,0.2); border-bottom: none; }
}




/* ── field validation states ────────────────────────────── */

.bf-input--error {
  border-color: #C0392B !important;
  background: rgba(192, 57, 43, 0.02);
}

.bf-input--valid {
  border-bottom-color: #27AE60;
}

/* Error message appears directly under each field */
.bf-field-error {
  display: block;
  font-size: 12px;
  color: #C0392B;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.4;
}

/* Continue disabled state */
.bf-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}


/* ── Review summary (Step 3) ───────────────────────────────────────────── */

.bf-review-summary {
  margin-bottom: 20px;
}

.bf-review-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27,58,107,0.08);
}

.bf-review-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.bf-review-heading {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  margin-bottom: 10px;
}

.bf-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  gap: 16px;
}

.bf-review-label {
  color: var(--stone);
  font-weight: 400;
  flex-shrink: 0;
}

.bf-review-value {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.bf-review-total .bf-review-label,
.bf-review-total .bf-review-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--royal-deep);
}

.bf-review-pricing {
  background: rgba(27,58,107,0.02);
  padding: 12px;
  border: 1px solid rgba(27,58,107,0.06);
}


/* ── T&C collapsible (replaces scroll-to-unlock) ───────────────────────── */

.bf-tc-collapsible {
  margin-bottom: 16px;
  border: 1px solid rgba(27,58,107,0.12);
}

.bf-tc-toggle {
  width: 100%;
  background: rgba(27,58,107,0.03);
  border: none;
  padding: 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.3s;
}

.bf-tc-toggle:hover {
  background: rgba(27,58,107,0.07);
}

.bf-tc-content-wrap {
  padding: 16px;
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(27,58,107,0.08);
}


/* =============================================================================
   FOOD STEP STYLES
============================================================================= */

.bf-food-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.bf-food-topbar .bf-panel-title { margin-bottom: 4px; }
.bf-food-topbar .bf-panel-sub   { margin-bottom: 0; }

.bf-skip-meals-all {
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(27,58,107,0.2);
  color: #5C7A96;
  padding: 7px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border-radius: 0;
}
.bf-skip-meals-all:hover { border-color: var(--royal); color: var(--royal); }

/* ── Person tabs ── */
.bf-person-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 14px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bf-person-tabs::-webkit-scrollbar { display: none; }

.bf-person-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1px solid rgba(27,58,107,0.18);
  background: #fff;
  color: #3A4F63;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  border-radius: 0;
}
.bf-person-tab:hover  { border-color: var(--royal); color: var(--royal); }
.bf-person-tab.active { background: var(--royal); color: #fff; border-color: var(--royal); }

/* ── Date tabs ── */
.bf-date-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 14px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bf-date-tabs::-webkit-scrollbar { display: none; }

.bf-date-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(27,58,107,0.14);
  background: #fff;
  color: #5C7A96;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  border-radius: 0;
}
.bf-date-tab:hover  { border-color: var(--royal); color: var(--royal); }
.bf-date-tab.active { background: rgba(27,58,107,.06); border-color: var(--royal); color: var(--royal); font-weight: 600; }

/* ── Slot label ── */
.bf-food-slots { margin-bottom: 12px; }
.bf-food-slot-group { margin-bottom: 20px; }

.bf-food-slot-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(27,58,107,0.08);
}

/* ── Food cards — ── */
.bf-food-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 540px) {
  .bf-food-cards { grid-template-columns: 1fr; }
}

.bf-food-card {
  border: 1px solid rgba(27,58,107,0.12);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  transition: border-color .15s;
}
.bf-food-card:hover { border-color: rgba(27,58,107,0.28); }
.bf-food-card--selected { border-color: var(--royal); background: rgba(27,58,107,0.02); }

/* Square image left */
.bf-food-card-img {
  width: 68px;
  height: 68px;
  min-width: 68px;
  flex-shrink: 0;
  background: #f9f7f3;
  overflow: hidden;
  position: relative;
}
.bf-food-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-food-card-img-placeholder {
  width: 32px;
  height: 32px;
  background: rgba(27,58,107,0.08);
  border-radius: 50%;
}

/* Text middle */
.bf-food-card-body { flex: 1; min-width: 0; }
.bf-food-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1C2B3A;
  margin-bottom: 2px;
}
.bf-food-card-price {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--royal);
  margin-bottom: 4px;
}

.bf-food-more {
  background: none;
  border: none;
  color: #8FA3BF;
  font-size: 11px;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color .15s;
}
.bf-food-more:hover { color: var(--royal); }

/* Popup */
.bf-food-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.35);
}
.bf-food-info {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px 22px;
  max-width: 300px;
  width: 88%;
  z-index: 2000;
  font-size: 13.5px;
  color: #1C2B3A;
  line-height: 1.75;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* Controls right */
.bf-food-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* Qty controls — equal size */
.bf-food-qty {
  display: flex;
  align-items: center;
}
.bf-food-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(27,58,107,0.18);
  background: #fff;
  font-size: 15px;
  color: var(--royal);
  cursor: pointer;
  line-height: 1;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bf-food-qty-btn:hover:not(:disabled) { background: var(--royal); color: #fff; }
.bf-food-qty-btn:disabled { opacity: .3; cursor: not-allowed; }

.bf-food-qty-val {
  width: 32px;
  height: 28px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1C2B3A;
  border-top: 1px solid rgba(27,58,107,0.18);
  border-bottom: 1px solid rgba(27,58,107,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Add button */
.bf-food-add-btn {
  padding: 6px 16px;
  border: 1px solid var(--royal);
  background: #fff;
  color: var(--royal);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.bf-food-add-btn:hover { background: var(--royal); color: #fff; }

/* Total bar */
.bf-food-total-bar {
  background: rgba(27,58,107,0.03);
  border: 1px solid rgba(27,58,107,0.1);
  padding: 10px 14px;
  font-size: 13.5px;
  color: #3A4F63;
  margin-bottom: 16px;
}
.bf-food-total-bar strong { color: var(--royal); font-weight: 700; }

@media (max-width: 640px) {
  .bf-food-topbar { flex-direction: column; gap: 10px; }
  .bf-food-card-img { width: 54px; height: 54px; }
}