/* ===== MPL BOOKING SYSTEM STYLES ===== */
/* Extracted from mock-site/booking/index.html */

/* ===== PAGE HERO BAND ===== */
.booking-hero {
  margin-top: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.booking-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.booking-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.booking-hero__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.booking-hero__sub {
  font-size: 15px;
  color: var(--muted);
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0 40px;
}
.step-indicator__item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.step-indicator__item:not(:last-child)::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: background 0.4s ease;
}
.step-indicator__item.done:not(:last-child)::after {
  background: var(--orange);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-indicator__item.active .step-num {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 16px rgba(255,107,0,0.5);
}
.step-indicator__item.done .step-num {
  border-color: var(--orange);
  background: var(--orange-glow);
  color: var(--orange);
}
.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.step-indicator__item.active .step-label { color: var(--white); }
.step-indicator__item.done .step-label { color: var(--orange); }

/* ===== BOOKING STAGE ===== */
.booking-stage {
  display: none;
  animation: fadeUp 0.35s ease forwards;
}
.booking-stage.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== STAGE 1 – PROGRAM CARDS ===== */
.stage-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.stage-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.booking-stage .program-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.booking-stage .program-card {
  grid-column: span 2;
}
.booking-stage .program-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.booking-stage .program-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.booking-stage .program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-glow);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.booking-stage .program-card:hover { border-color: rgba(255,107,0,0.4); transform: translateY(-3px); }
.booking-stage .program-card:hover::before { opacity: 1; }
.booking-stage .program-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 32px rgba(255,107,0,0.25);
}
.booking-stage .program-card.selected::before { opacity: 1; }

.booking-stage .program-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.booking-stage .program-card__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.booking-stage .program-card__price {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.booking-stage .program-card__price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.booking-stage .program-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.booking-stage .program-card__features {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.booking-stage .program-card__feature {
  font-size: 11px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  min-height: 18px;
}
.booking-stage .program-card__feature::before {
  content: '';
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.3);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%23FF6B00' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.booking-stage .program-card__popular {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
}
.booking-stage .program-card__check {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}
.booking-stage .program-card.selected .program-card__check {
  opacity: 1;
  transform: scale(1);
}
.booking-stage .program-card__check svg { width: 12px; height: 12px; stroke: white; }

.stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}
.stage-nav--right { justify-content: flex-end; }

/* ===== STAGE 2 – COACHES & SLOTS ===== */
.section-heading {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Gender toggle */
.gender-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.gender-btn {
  flex: 1;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gender-btn:hover { border-color: var(--orange); color: var(--text); }
.gender-btn.selected {
  border-color: var(--orange);
  background: rgba(255,107,0,0.12);
  color: var(--orange);
}
.gender-btn__icon { font-size: 1.3rem; }
.coach-card.coach-hidden { display: none; }

.coach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.booking-stage .coach-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
}
.booking-stage .coach-card:hover { border-color: rgba(255,107,0,0.4); transform: translateY(-2px); }
.booking-stage .coach-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 4px 20px rgba(255,107,0,0.2);
}
.booking-stage .coach-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface2);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  border: 2px solid var(--border);
  transition: border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.booking-stage .coach-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.booking-stage .coach-card.selected .coach-card__avatar { border-color: var(--orange); }
.booking-stage .coach-card__name {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
}
.booking-stage .coach-card__specialty {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.3;
}
.booking-stage .coach-card__avail {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.booking-stage .coach-card__avail.avail--open { color: #4CAF50; }
.booking-stage .coach-card__avail.avail--limited { color: var(--orange); }
.booking-stage .coach-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.booking-stage .coach-card.selected .coach-card__check { opacity: 1; transform: scale(1); }
.booking-stage .coach-card__check svg { width: 10px; height: 10px; stroke: white; }

/* ===== TIME SLOT GRID ===== */
.slot-section { margin-bottom: 36px; }
.slot-grid {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 6px;
}
.slot-day-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 6px 4px;
}
.slot-time-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding-right: 8px;
  white-space: nowrap;
}
.slot-btn {
  padding: 10px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.slot-btn:hover:not(.slot-btn--unavail) {
  border-color: rgba(255,107,0,0.5);
  background: var(--orange-glow);
  color: var(--orange);
}
.slot-btn.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(255,107,0,0.35);
}
.slot-btn--unavail {
  opacity: 0.3;
  cursor: not-allowed;
  color: var(--muted);
}
.slot-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.slot-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.slot-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.slot-legend__dot--avail { background: var(--surface); border: 1.5px solid var(--border); }
.slot-legend__dot--sel { background: var(--orange); }
.slot-legend__dot--unavail { background: var(--surface); border: 1.5px solid var(--border); opacity: 0.3; }

/* ===== DATE PICKER (dynamic) ===== */
.date-picker { margin-bottom: 20px; }
.date-picker__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.date-picker__scroll::-webkit-scrollbar { height: 4px; }
.date-picker__scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 80px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.date-btn:hover {
  border-color: rgba(255,107,0,0.5);
  background: var(--orange-glow);
}
.date-btn.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(255,107,0,0.35);
}
.date-btn__day { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }
.date-btn.selected .date-btn__day { opacity: 1; }
.date-btn__num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.date-btn__month { font-size: 11px; font-weight: 500; opacity: 0.7; }
.date-btn.selected .date-btn__month { opacity: 1; }
.date-btn__avail { font-size: 10px; font-weight: 600; color: #25D366; margin-top: 2px; }
.date-btn.selected .date-btn__avail { color: rgba(255,255,255,0.85); }

/* ===== TIME SLOTS (dynamic) ===== */
.time-slots { margin-bottom: 20px; }
.time-slots__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  text-align: center;
}
.time-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.time-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.time-btn:hover:not(.time-btn--full) {
  border-color: rgba(255,107,0,0.5);
  background: var(--orange-glow);
}
.time-btn.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(255,107,0,0.35);
}
.time-btn--full {
  opacity: 0.3;
  cursor: not-allowed;
}
.time-btn--last .time-btn__spots { color: #FF4444; font-weight: 700; }
.time-btn.selected .time-btn__spots { color: rgba(255,255,255,0.85); }
.time-btn__time { font-size: 15px; font-weight: 700; }
.time-btn__spots { font-size: 11px; color: #25D366; font-weight: 600; }

.slot-hint { font-size: 14px; }
.slot-loading, .slot-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== STAGE 3 – CONFIRM ===== */
.confirm-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.booking-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.booking-summary__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.booking-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.booking-summary__row:last-of-type { border-bottom: none; padding-bottom: 0; }
.booking-summary__key {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.booking-summary__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.booking-summary__val--price {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
}
.booking-summary__val--price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.payment-section { margin-bottom: 24px; }
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 64px;
}
.payment-option:hover { border-color: rgba(255,107,0,0.35); }
.payment-option.selected {
  border-color: var(--orange);
  background: var(--orange-glow);
}
.payment-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}
.payment-option input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 0.2s ease;
}
.payment-option input[type="radio"]:checked {
  border-color: var(--orange);
}
.payment-option input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}
.payment-option__icon {
  width: 40px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.payment-option__icon--mada { background: #007bff; color: white; }
.payment-option__icon--visa { background: #1434CB; color: white; }
.payment-option__icon--mc { background: #1a1f71; color: white; }
.payment-option__icon--apple { background: #000; color: white; font-size: 14px; }
.payment-option__icon--stc { background: #6A0DAD; color: white; }
.payment-option__icon--tamara { background: #2DC5A2; color: white; }
.payment-option__icon--tabby { background: #3DBFA3; color: white; }
.payment-option__icon--madfoo { background: #00875A; color: white; }
.payment-option__icon--sab { background: #C8102E; color: white; }
.payment-option__icon--neoleap { background: #00B5AD; color: white; }
.payment-option__icon--samsung { background: #1428A0; color: white; }
.payment-option__icon--gpay { background: #f8f9fa; color: #202124; border: 1px solid #dadce0; }
.payment-option__icon--allup { background: #0A1045; color: white; }
.payment-option__icon--wala { background: #1a8a4a; color: white; }
.payment-option__name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.payment-option__sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  /* focus outline deliberately NOT removed — see public/css/a11y.css */
}
.form-input::placeholder { color: var(--muted); opacity: 0.7; }
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== SUCCESS SCREEN ===== */
.success-screen {
  display: none;
  text-align: center;
  padding: 80px 24px;
  animation: fadeUp 0.5s ease forwards;
}
.success-screen.active { display: block; }

.success-check {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.success-check svg { width: 52px; height: 52px; stroke: var(--orange); stroke-width: 2.5; }

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.success-title span { color: var(--orange); }
.success-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.success-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}
.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.success-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin: 0 auto 36px;
  text-align: left;
  max-width: 400px;
}
.success-summary__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.success-summary__key { color: var(--muted); font-weight: 600; min-width: 70px; }
.success-summary__val { font-weight: 700; }

/* ===== CONFETTI ===== */
.success-confetti {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== BOOKING MAIN ===== */
.booking-main {
  padding-bottom: 60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .booking-stage .program-cards { grid-template-columns: 1fr; gap: 12px; }
  .booking-stage .program-card { grid-column: span 1; }
  .booking-stage .program-card:nth-child(4) { grid-column: span 1; }
  .coach-grid { grid-template-columns: repeat(3, 1fr); }
  .confirm-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .time-slots__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .step-indicator__item:not(:last-child)::after { width: 30px; }
  .step-label { display: none; }
  .time-slots__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
}

/* ===== RTL OVERRIDES ===== */
[dir="rtl"] .booking-stage .program-card__check {
  left: auto;
  right: 14px;
}
[dir="rtl"] .booking-stage .program-card__popular {
  right: auto;
  left: 14px;
}
[dir="rtl"] .booking-stage .coach-card__check {
  right: auto;
  left: 8px;
}
[dir="rtl"] .slot-time-label {
  padding-right: 0;
  padding-left: 8px;
}
[dir="rtl"] .booking-summary__key {
  order: 2;
}
[dir="rtl"] .booking-summary__val {
  order: 1;
  text-align: right;
}
[dir="rtl"] .booking-summary__val--price {
  direction: rtl;
}
[dir="rtl"] .success-summary {
  text-align: right;
}
[dir="rtl"] #sucPrice {
  direction: rtl;
  text-align: right;
}

/* ===== PROMO CODE ===== */
.promo-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.promo-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.promo-row .form-input {
  flex: 1;
}
.promo-feedback {
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}
.promo-feedback.success {
  color: #25D366;
}
.promo-feedback.error {
  color: #FF6B00;
}

/* ===== RTL BOOKING FIXES ===== */
[dir="rtl"] .confirm-layout {
  direction: rtl;
  grid-template-columns: 380px 1fr;
}
[dir="rtl"] .stage-nav {
  flex-direction: row;
}
[dir="rtl"] .stage-nav--right {
  justify-content: flex-end;
}
[dir="rtl"] .payment-option {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .payment-option__icon {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .form-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .form-label {
  text-align: right;
}
[dir="rtl"] .form-input {
  text-align: right;
}
[dir="rtl"] .booking-summary__key {
  text-align: right;
}
[dir="rtl"] .booking-stage .program-card__price {
  direction: rtl;
}
[dir="rtl"] .success-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .program-card__features,
[dir="rtl"] .booking-stage .program-card__features {
  text-align: right;
}
[dir="rtl"] .program-card__feature,
[dir="rtl"] .booking-stage .program-card__feature {
  flex-direction: row;
  text-align: right;
}
[dir="rtl"] .program-card__feature::before,
[dir="rtl"] .booking-stage .program-card__feature::before {
  order: 0;
  margin-left: 0;
  margin-right: 0;
}
[dir="rtl"] .booking-hero {
  text-align: right;
}
[dir="rtl"] .stage-title,
[dir="rtl"] .stage-sub {
  text-align: right;
}
[dir="rtl"] .section-heading {
  text-align: right;
}
[dir="rtl"] .promo-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .stage-nav .btn {
  flex-direction: row;
}

/* ===== ENTRY EXPERIENCE SUB-OPTIONS ===== */
.entry-sub-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.entry-sub-options__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.entry-sub-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
  color: var(--text);
}
.entry-sub-option:hover {
  border-color: rgba(255,107,0,0.5);
  background: rgba(255,107,0,0.06);
}
.entry-sub-option.selected {
  border-color: var(--orange);
  background: rgba(255,107,0,0.12);
  box-shadow: 0 0 0 1px var(--orange);
}
.entry-sub-option__name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--white);
}
.entry-sub-option.selected .entry-sub-option__name {
  color: var(--orange);
}
.entry-sub-option__price {
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
}
[dir="rtl"] .entry-sub-option__price {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2px;
}
.entry-sub-option__info {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* ===== TIER SUB-OPTIONS (Elite PT & Group Class) ===== */
.tier-sub-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.tier-sub-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
  color: var(--text);
}
.tier-sub-option:hover {
  border-color: rgba(255,107,0,0.5);
  background: rgba(255,107,0,0.06);
}
.tier-sub-option.selected {
  border-color: var(--orange);
  background: rgba(255,107,0,0.12);
  box-shadow: 0 0 0 1px var(--orange);
}
.tier-sub-option__name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-sub-option.selected .tier-sub-option__name {
  color: var(--white);
}
.tier-sub-option__price {
  font-size: 14px;
  font-weight: 900;
  color: var(--orange);
}
[dir="rtl"] .tier-sub-option__price {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2px;
}

/* ===== TERMS & CONDITIONS ===== */
.tnc-container {
  max-width: 800px;
  margin: 0 auto;
}
.tnc-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.tnc-scroll::-webkit-scrollbar { width: 6px; }
.tnc-scroll::-webkit-scrollbar-track { background: transparent; }
.tnc-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.tnc-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.tnc-scroll h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  margin: 0 0 4px;
  text-transform: uppercase;
}
.tnc-scroll h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 20px;
  opacity: 0.7;
}
.tnc-scroll p {
  margin: 0 0 14px;
}
.tnc-scroll strong {
  color: var(--white);
  font-weight: 700;
}
.tnc-accept {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tnc-accept:hover {
  border-color: var(--orange);
}
.tnc-accept input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
  position: relative;
}
.tnc-accept input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.tnc-accept input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.tnc-accept span {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}

/* RTL adjustments for T&C */
.rtl-page .tnc-scroll { direction: rtl; text-align: right; }
.rtl-page .tnc-accept { direction: rtl; }

@media (max-width: 600px) {
  .tnc-scroll { max-height: 320px; padding: 16px; font-size: 13px; }
  .tnc-accept span { font-size: 14px; }
}

/* ════════════════════════════════════════════════════════════════════
   CHECKOUT V2 (2026-06-11, SD-9..SD-14) — NEW elements only.
   Every rule below targets checkout-v2 elements (ck*/consult-*/dob-row/
   emergency-toggle/return-*) that do not exist in the original markup;
   no original rule is modified. Hidden-at-rest contract (§12.2): with
   publicCheckoutEnabled=false none of these elements are ever shown.
   ════════════════════════════════════════════════════════════════════ */

/* safety: new sections are toggled via the hidden attribute — make it win
   over any display set by reused classes (no ORIGINAL element uses hidden) */
#stage3 [hidden] { display: none !important; }
.success-screen [hidden] { display: none !important; }

/* buyer-facing error line: zero footprint while empty (flag-off parity) */
#ckFeedback { min-height: 0; margin-top: 0; }
#ckFeedback.error, #ckFeedback.success { min-height: 20px; margin-top: 8px; margin-bottom: 16px; }

/* profile block */
#ckProfile { margin-bottom: 24px; }
#ckProfile .section-heading { margin-top: 0; }
.dob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 10px;
}
.dob-row .form-input { text-align: center; }
.emergency-toggle {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 4px 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emergency-toggle:hover { opacity: 0.85; }

/* L-B2: optional DUO training partner (inside #ckProfile; logical properties
 * so the Arabic page mirrors without a second rule) */
.ck-partner { margin-block-start: 4px; }
.ck-partner__toggle { display: block; min-height: 44px; margin: 0; }
#ckPartner { padding-block-start: 8px; }
.ck-partner__attest {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.6;
}
/* `display: flex` above would otherwise override the [hidden] attribute */
.ck-partner__attest[hidden] { display: none; }
.ck-partner__attest input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.ck-partner__attest label { cursor: pointer; }
.ck-partner__attest a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.ck-partner__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* consultation picker */
#ckPicker { margin-bottom: 24px; }
.consult-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0 0 10px;
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
  color: var(--muted);
}
.consult-toggle::after {
  content: '';
  width: 9px;
  height: 9px;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.consult-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.coach-grid--consult {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}
.consult-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -4px 0 16px;
}
.consult-pager__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.consult-pager__btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.consult-pager__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.consult-pager__dots { display: flex; gap: 6px; }
.consult-pager__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.consult-pager__dot.active { background: var(--orange); }
.consult-skip {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consult-skip:hover { color: var(--text); }
#ckDaysLabel { text-align: start; margin-bottom: 10px; }
#ckPickerFeedback { min-height: 0; margin-top: 0; }
#ckPickerFeedback.error, #ckPickerFeedback.success { min-height: 20px; margin-top: 8px; }

/* return page (/booking/return/) — spinner; everything else reuses the
   original success-screen family */
.return-spinner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  margin: 0 auto 32px;
  animation: ckspin 0.9s linear infinite;
}
@keyframes ckspin { to { transform: rotate(360deg); } }
.return-lines { margin: 18px auto 0; max-width: 560px; }
.return-lines p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 6px 0; }

@media (max-width: 900px) {
  .coach-grid--consult { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dob-row { grid-template-columns: 1fr 1fr 1.6fr; }
}
