/**
 * Serenity Booking — Booking Frontend Styles
 * LearnWise-inspired: teal accent, Inter font, clean modern SaaS UI
 * WordPress.org compliant — no external dependencies
 */

/* ══ Font ════════════════════════════════════════════════════ */
/* Inter loaded via Serenity Booking-fonts.css (local, no CDN) */

/* ══ Design Tokens ════════════════════════════════════════════ */
:root {
  --bf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bf-bg: #F6F7F9;
  --bf-surface: #ffffff;
  --bf-border: #E4E7EC;
  --bf-border-s: #F0F2F5;
  --bf-t1: #111827;
  --bf-t2: #4B5563;
  --bf-t3: #9CA3AF;
  --bf-acc: var(--bf-acc,#0D7377);
  --bf-acc-h: #0A5E62;
  --bf-acc-l: #E6F4F5;
  --bf-ok: #059669;
  --bf-ok-l: #D1FAE5;
  --bf-err: #DC2626;
  --bf-err-l: #FEE2E2;
  --bf-r: 10px;
  --bf-rl: 14px;
  --bf-sh: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --bf-sh-m: 0 4px 16px rgba(0,0,0,.10);
}

/* ══ Page wrapper ════════════════════════════════════════════ */
body.serenity-booking-page {
  font-family: var(--bf-font) !important;
  background: var(--bf-bg) !important;
  color: var(--bf-t1) !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
}
.serenity-booking-page * {
  font-family: var(--bf-font) !important;
  box-sizing: border-box;
}

/* ══ Header bar ══════════════════════════════════════════════ */
.serenity-booking-page .bg-white.border-b {
  background: var(--bf-surface) !important;
  border-bottom: 1px solid var(--bf-border) !important;
  box-shadow: var(--bf-sh) !important;
}
.serenity-booking-page h1.text-xl {
  font-weight: 800 !important;
  font-size: 15px !important;
  color: var(--bf-acc) !important;
  letter-spacing: -.2px !important;
}
.serenity-booking-page .text-sm.text-gray-600 {
  color: var(--bf-t3) !important;
  font-size: 12px !important;
}

/* ══ Max width — full width with side padding ════════════════ */
.serenity-booking-page .max-w-6xl,
.serenity-booking-page .max-w-5xl {
  max-width: 1100px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ══ Step Progress Indicator ══════════════════════════════════ */
.step-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.step-line {
  position: absolute;
  top: 20px; /* half of 40px dot */
  transform: translateY(-50%);
  left: calc(50% + 22px);  /* start just after this dot's edge (20px radius + 2px border) */
  right: calc(-50% + 22px); /* end just before next dot's edge */
  height: 2px;
  background: var(--bf-border);
  z-index: 0;
}
.step-line.active { background: var(--bf-acc); }
.step-circle {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bf-border) !important;
  color: var(--bf-t3) !important;
  border: 2px solid var(--bf-surface) !important;
  position: relative !important;
  z-index: 1 !important;
  transition: background .2s, color .2s !important;
  flex-shrink: 0 !important;
}
.step-circle.bg-blue-600,
.step-circle.bg-gray-300.bg-blue-600 {
  background: var(--bf-acc) !important;
  color: #fff !important;
  border-color: rgba(0,0,0,0.10) !important;
}
.step-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--bf-t3) !important;
  margin-top: 6px !important;
}
.step-label.active { color: var(--bf-acc) !important; }
@media (max-width: 640px) {
  .step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  .step-line {
    top: 14px; /* half of 28px */
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
  }
  .step-label {
    font-size: 8px !important;
    letter-spacing: .02em !important;
    max-width: 36px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 400px) {
  .step-circle {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }
  .step-line {
    top: 11px; /* half of 22px */
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
  }
  .step-label {
    font-size: 7px !important;
    max-width: 28px !important;
  }
}

/* ══ Step headings ════════════════════════════════════════════ */
.serenity-step-heading {
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  font-weight: 800 !important;
  color: var(--bf-t1) !important;
  letter-spacing: -.03em !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}
.serenity-step-sub {
  font-size: 14px !important;
  color: var(--bf-t2) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ══ Buttons ══════════════════════════════════════════════════ */
#continue-to-services,
#continue-to-datetime,
#continue-to-details,
#continue-to-sessions,
#continue-to-details-from-session,
#complete-booking-btn,
#complete-class-booking-btn,
#continue-from-class-intake,
#pay-and-book-btn,
.bf-btn-continue {
  background: var(--bf-acc) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--bf-r) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  cursor: pointer !important;
  transition: background .15s !important;
  padding: 16px 32px !important;
  min-height: 56px !important;
}
#continue-to-services:hover:not(:disabled),
#continue-to-datetime:hover:not(:disabled),
#continue-to-details:hover:not(:disabled),
#continue-to-sessions:hover:not(:disabled),
#continue-to-details-from-session:hover:not(:disabled),
#complete-booking-btn:hover,
#complete-class-booking-btn:hover,
#continue-from-class-intake:hover,
#pay-and-book-btn:hover,
.bf-btn-continue:hover:not(:disabled) {
  background: var(--bf-acc-h) !important;
}
#continue-to-services:disabled,
#continue-to-datetime:disabled,
#continue-to-details:disabled,
#continue-to-sessions:disabled,
#continue-to-details-from-session:disabled,
.bf-btn-continue:disabled {
  background: var(--bf-border) !important;
  color: var(--bf-t3) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

#back-to-locations,
#back-to-services,
#back-to-datetime,
#back-to-details,
.bf-btn-back {
  background: var(--bf-surface) !important;
  color: var(--bf-t2) !important;
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-r) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  padding: 16px 24px !important;
  min-height: 56px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
#back-to-locations:hover,
#back-to-services:hover,
#back-to-datetime:hover,
#back-to-details:hover,
.bf-btn-back:hover {
  background: var(--bf-bg) !important;
  color: var(--bf-t1) !important;
  border-color: var(--bf-acc) !important;
}

/* ══ Location Cards ══════════════════════════════════════════ */
#locations-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { #locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { #locations-grid { grid-template-columns: repeat(3, 1fr); } }

.serenity-location-card {
  display: flex;
  flex-direction: column;
  background: var(--bf-surface) !important;
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-rl) !important;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s !important;
  box-shadow: var(--bf-sh) !important;
}
.serenity-location-card:hover {
  border-color: var(--bf-acc) !important;
  box-shadow: var(--bf-sh-m) !important;
  transform: translateY(-2px) !important;
}

/* Selected state — only when JS sets a non-transparent border */
#locations-grid .serenity-location-card[style*="border-color: rgb"],
#locations-grid .serenity-location-card[style*="border-color:#"],
.serenity-location-card.is-selected {
  border-color: var(--bf-acc) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08), var(--bf-sh-m) !important;
}
/* Transparent = unselected, keep grey */
#locations-grid .serenity-location-card[style*="border-color: transparent"],
#locations-grid .serenity-location-card[style*="border-color:transparent"] {
  border-color: var(--bf-border) !important;
  box-shadow: var(--bf-sh) !important;
}

.serenity-location-card .slc-img-wrap {
  position: relative; height: 140px;
  overflow: hidden;
  background: var(--bf-acc-l);
  flex-shrink: 0;
}
.serenity-location-card .slc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.serenity-location-card .slc-map-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--bf-acc) !important;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 10;
}
.serenity-location-card .slc-body {
  padding: 16px 18px 18px;
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.serenity-location-card .slc-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bf-t1) !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}
.serenity-location-card .slc-address,
.serenity-location-card .slc-phone {
  font-size: 12px !important;
  color: var(--bf-t2) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* OPEN/CLOSED badge */
.serenity-location-card .slc-badge,
#locations-grid .bg-green-500 {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
/* Override JS inline background for open/closed */
/* JS now reads colors from BOOKING_DATA which we set to teal */

/* ══ Service Cards ════════════════════════════════════════════ */
#services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { #services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { #services-grid { grid-template-columns: repeat(3, 1fr); } }

#services-grid .bg-white {
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-rl) !important;
  box-shadow: var(--bf-sh) !important;
  transition: border-color .2s, box-shadow .2s !important;
  cursor: pointer !important;
}
#services-grid .bg-white:hover {
  border-color: var(--bf-acc) !important;
  box-shadow: var(--bf-sh-m) !important;
}
/* Selected service — override JS inline borderColor */
#services-grid .bg-white[style*="border-color"] {
  border-color: var(--bf-acc) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08) !important;
}
#services-grid h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bf-t1) !important;
  letter-spacing: -.01em !important;
}
#services-grid .service-price {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: var(--bf-acc) !important;
  letter-spacing: -.03em !important;
}
#services-grid .service-duration {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--bf-t3) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
#services-grid .service-desc {
  font-size: 12px !important;
  color: var(--bf-t2) !important;
  line-height: 1.5 !important;
}
#services-grid .category-header {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: var(--bf-t3) !important;
}

/* Service search/filter bar */
#step-2 .bg-white.rounded-xl { border-radius: var(--bf-rl) !important; }
#step-2 input, #step-2 select {
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-r) !important;
  font-family: var(--bf-font) !important;
  font-size: 13px !important;
  color: var(--bf-t1) !important;
}
#step-2 input:focus, #step-2 select:focus {
  border-color: var(--bf-acc) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
  outline: none !important;
}

/* ══ Calendar ═════════════════════════════════════════════════ */
#calendar-month-year {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--bf-t1) !important;
  letter-spacing: -.02em !important;
}
#calendar-grid .cal-day {
  font-size: 13px !important;
  font-weight: 500 !important;
}
/* Selected date — JS sets background via colors.dateSelectedBg (now teal) */
.sd-cal-day.is-today {
  font-weight: 700;
  color: var(--bf-acc);
  border: 1.5px solid var(--bf-acc);
}

/* ══ Time Slots ═══════════════════════════════════════════════ */
.time-slot-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--bf-r) !important;
  transition: all .15s !important;
}
.time-period-label, .time-slot-period {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: var(--bf-t3) !important;
  margin: 16px 0 8px !important;
}

/* ══ Step 4 — Details Form ════════════════════════════════════ */
#booking-form label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--bf-t2) !important;
  margin-bottom: 6px !important;
  display: block !important;
}
#booking-form input,
#booking-form select,
#booking-form textarea {
  font-size: 14px !important;
  color: var(--bf-t1) !important;
  font-weight: 400 !important;
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-r) !important;
  padding: 10px 14px !important;
  font-family: var(--bf-font) !important;
  background: var(--bf-surface) !important;
  transition: border-color .15s, box-shadow .15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
  outline: none !important;
  border-color: var(--bf-acc) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}
#booking-form input::placeholder,
#booking-form textarea::placeholder {
  color: var(--bf-t3) !important;
  font-weight: 400 !important;
}

/* ══ Class booking form fields ═══════════════════════════════ */
.serenity-input {
  display: block !important;
  width: 100% !important;
  font-size: 14px !important;
  color: var(--bf-t1) !important;
  font-weight: 400 !important;
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-r) !important;
  padding: 10px 14px !important;
  font-family: var(--bf-font) !important;
  background: var(--bf-surface) !important;
  transition: border-color .15s, box-shadow .15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
}
.serenity-input:focus {
  outline: none !important;
  border-color: var(--bf-acc) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}
.serenity-input::placeholder { color: var(--bf-t3) !important; }
.serenity-field-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--bf-t2) !important;
  margin-bottom: 6px !important;
}
#step-4c .space-y-4 > div { margin-bottom: 16px !important; }

/* ══ Summary / Confirm cards ══════════════════════════════════ */
#summary-image { width: 100%; height: 180px; object-fit: cover; border-radius: var(--bf-r); display: block; }
#confirm-image { width: 100%; height: 200px; object-fit: cover; border-radius: var(--bf-r); display: block; margin-top: 10px; }

.serenity-summary-title {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: var(--bf-t1) !important;
  letter-spacing: -.02em !important;
}
.serenity-detail-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  color: var(--bf-t3) !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
  display: block !important;
}
.serenity-detail-value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bf-t1) !important;
  line-height: 1.4 !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.serenity-detail-sub {
  font-size: 12px !important;
  color: var(--bf-t2) !important;
  line-height: 1.4 !important;
  display: block !important;
}
.serenity-label-caps {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--bf-t3) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* ══ Confirmation ═════════════════════════════════════════════ */
#confirmation-number {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--bf-t1) !important;
  letter-spacing: -.03em !important;
}
.serenity-conf-badge {
  background: var(--bf-acc-l);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--bf-r);
  padding: 12px 16px;
  margin-bottom: 24px;
}
.serenity-conf-badge-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--bf-acc) !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.serenity-conf-badge-number {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--bf-acc) !important;
}
.serenity-confirm-section-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--bf-t3) !important;
  margin-bottom: 12px !important;
}
#step-5 h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  font-weight: 800 !important;
  color: var(--bf-t1) !important;
}

/* ══ Total price ══════════════════════════════════════════════ */
.serenity-total-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: var(--bf-t3) !important;
}
.serenity-total-value {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--bf-acc) !important;
  letter-spacing: -.02em !important;
}

/* ══ Loading spinner ══════════════════════════════════════════ */
.border-blue-600 { border-color: var(--bf-acc) !important; }
.border-t-transparent { border-top-color: transparent !important; }
.text-blue-600 { color: var(--bf-acc) !important; }

/* ══ Blue Tailwind overrides — keep everything teal ══════════ */
.bg-blue-600  { background-color: var(--bf-acc) !important; }
.bg-blue-700  { background-color: var(--bf-acc-h) !important; }
.bg-blue-50   { background-color: var(--bf-acc-l) !important; }
.text-blue-800 { color: var(--bf-acc-h) !important; }
.text-blue-900 { color: var(--bf-acc-h) !important; }
.text-blue-700 { color: var(--bf-acc) !important; }
.border-blue-600 { border-color: var(--bf-acc) !important; }
.border-blue-500 { border-color: var(--bf-acc) !important; }
.ring-blue-500  { --tw-ring-color: var(--bf-acc) !important; }
.focus\\:ring-blue-500:focus { --tw-ring-color: var(--bf-acc) !important; box-shadow: 0 0 0 3px rgba(0,0,0,0.08) !important; }
.focus\\:border-transparent:focus { border-color: var(--bf-acc) !important; }
.hover\\:bg-blue-700:hover { background-color: var(--bf-acc-h) !important; }
.hover\\:text-blue-700:hover { color: var(--bf-acc-h) !important; }

/* Confirmation total amount */
#confirm-total { color: var(--bf-acc) !important; }

/* ══ Search/filter cards ══════════════════════════════════════ */
.bg-white.hover\:bg-blue-100 { border: 1.5px solid var(--bf-border) !important; }
.border-blue-200 { border-color: var(--bf-border) !important; }

/* ══ Autofill suggestion ══════════════════════════════════════ */
.bg-white.hover\:bg-blue-100:hover { background: var(--bf-acc-l) !important; border-color: var(--bf-acc) !important; }

/* ══ Card wrappers ════════════════════════════════════════════ */
.serenity-booking-page .bg-white.rounded-xl,
.serenity-booking-page .bg-white.rounded-lg {
  border: 1.5px solid var(--bf-border) !important;
  box-shadow: var(--bf-sh) !important;
  border-radius: var(--bf-rl) !important;
}

/* ══ Footer branding ══════════════════════════════════════════ */
.serenity-footer-powered { font-size: 11px; color: var(--bf-t3); }
.serenity-footer-brand { font-size: 13px; font-weight: 800; color: var(--bf-acc); }

/* ══ Empty / error states ═════════════════════════════════════ */
.serenity-empty-state { color: var(--bf-t3); text-align: center; padding: 2rem; }
.serenity-map-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ══ Modern Checkboxes ════════════════════════════════════════ */
#terms-checkbox,
#policy-agreement,
#class-terms-agreement,
#class-policy-agreement {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border: 2px solid #D1D5DB !important;
  border-radius: 6px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  margin-top: 1px !important;
  flex-shrink: 0 !important;
}

#terms-checkbox:hover,
#policy-agreement:hover,
#class-terms-agreement:hover,
#class-policy-agreement:hover {
  border-color: var(--bf-acc) !important;
}

#terms-checkbox:checked,
#policy-agreement:checked,
#class-terms-agreement:checked,
#class-policy-agreement:checked {
  background: var(--bf-acc) !important;
  border-color: var(--bf-acc) !important;
}

#terms-checkbox:checked::after,
#policy-agreement:checked::after,
#class-terms-agreement:checked::after,
#class-policy-agreement:checked::after {
  content: '✓' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

#terms-checkbox:focus,
#policy-agreement:focus,
#class-terms-agreement:focus,
#class-policy-agreement:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(13,115,119,0.2) !important;
}

label[for=terms-checkbox],
label[for=policy-agreement],
label[for=class-terms-agreement],
label[for=class-policy-agreement] {
  cursor: pointer !important;
  user-select: none !important;
}

label[for=terms-checkbox] a,
label[for=policy-agreement] a,
label[for=class-terms-agreement] a,
label[for=class-policy-agreement] a {
  color: var(--bf-acc) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* ══ Bottom nav buttons ═══════════════════════════════════════ */
.bf-step-nav {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.bf-step-nav--end {
  justify-content: flex-end !important;
}
/* Back stays compact, Continue fills remaining */
.bf-nav-back {
  flex-shrink: 0 !important;
}
.bf-nav-continue {
  flex: 1 !important;
}
/* Continue button fills remaining width inside bf-step-nav */
.bf-step-nav .bf-btn-continue {
  flex: 1 !important;
}
/* Selected time display — fills middle space */
.bf-selected-time-display {
  flex: 1 !important;
  font-size: 13px !important;
  color: var(--bf-t2) !important;
  text-align: center !important;
  line-height: 1.3 !important;
}
/* All nav buttons */
#back-to-locations, #back-to-services, #back-to-datetime, #back-to-details,
#continue-to-services, #continue-to-datetime, #continue-to-details,
#complete-booking-btn, #pay-and-book-btn {
  padding: 14px 24px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
/* Default continue (no bf-nav-continue) also fills space */
#continue-to-services, #continue-to-datetime,
#complete-booking-btn, #pay-and-book-btn {
  flex: 1 !important;
}

/* ══ Responsive ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .serenity-booking-page .max-w-6xl,
  .serenity-booking-page .max-w-5xl { padding-left: 12px !important; padding-right: 12px !important; }
  .serenity-step-heading { font-size: 1.4rem !important; }
}

/* ══ Mobile nav stacking (≤ 480px only) ══════════════════════ */
@media (max-width: 480px) {
  /* Stack nav row as column, stretch children */
  .serenity-booking-page .bf-step-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* Every child in nav: full width */
  .serenity-booking-page .bf-step-nav > * {
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* Both Back and Continue: identical full-width blocks */
  /* High-specificity to beat px-8, px-12, py-4 Tailwind classes */
  body.serenity-booking-page .bf-step-nav .bf-btn-back,
  body.serenity-booking-page .bf-step-nav .bf-btn-continue,
  body.serenity-booking-page .bf-step-nav button.bf-btn-back,
  body.serenity-booking-page .bf-step-nav button.bf-btn-continue {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Order: Continue → time display → Back */
  .serenity-booking-page .bf-step-nav .bf-btn-continue { order: 1 !important; }
  .serenity-booking-page .bf-step-nav .bf-selected-time-display {
    order: 2 !important;
    text-align: center !important;
    font-size: 13px !important;
    padding: 2px 0 !important;
    display: block !important;
  }
  .serenity-booking-page .bf-step-nav .bf-btn-back { order: 3 !important; }
}

/* ══ Summary Meta Grid (Step 4) ════════════════════════════════ */
.bf-summary-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 4px !important;
}

.bf-summary-meta-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.bf-summary-meta-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

/* Mobile: stack to single column */
@media (max-width: 768px) {
  .bf-summary-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
  }
}

/* ── Staff Picker (Step 2B) ──────────────────────────────── */
.bfsp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 4px 0 12px;
}
.bfsp-grid--two  { grid-template-columns: repeat(2, 1fr); }
.bfsp-grid--one  { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
@media (max-width: 768px) {
  .bfsp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .bfsp-grid, .bfsp-grid--two { grid-template-columns: 1fr; gap: 12px; }
}

/* Card base */
.bfsp-card {
  border: 2px solid #E5E7EB;
  border-radius: 20px;
  padding: 44px 20px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .14s;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.bfsp-card:hover {
  border-color: var(--bf-acc,#0D7377);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.bfsp-card.selected {
  border-color: var(--bf-acc,#0D7377);
  background: linear-gradient(160deg, #F0FAFA 0%, #fff 100%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* Selected checkmark */
.bfsp-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: var(--bf-acc,#0D7377);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Avatar */
.bfsp-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  margin-bottom: 0;
}
.bfsp-avatar-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg,var(--bf-acc,#0D7377) 0%,var(--bf-acc-h,#0A5E62) 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Name */
.bfsp-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Role */
.bfsp-role {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
  margin-top: 3px;
  margin-bottom: 0;
}

/* Divider */
.bfsp-divider {
  width: 32px;
  height: 2px;
  background: #F1F5F9;
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Specialties pill */
.bfsp-specialties {
  font-size: 11px;
  color: var(--bf-acc,#0D7377);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 10px;
}

/* Bio */
.bfsp-bio {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  text-align: center;
  width: 100%;
  margin-top: 8px;
}
.bfsp-bio-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bfsp-bio-text.expanded {
  display: block;
}
.bfsp-bio-toggle {
  background: none;
  border: none;
  color: var(--bf-acc,#0D7377);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: .8;
  transition: opacity .15s;
}
.bfsp-bio-toggle:hover { opacity: 1; }

/* Any available card */
.bfsp-any-card {
  border-style: dashed;
  background: #FAFAFA;
}

/* GCal badge */
.bfsp-gcal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #15803D;
  background: #DCFCE7;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ── Info button (ⓘ) on staff cards ──────────────────────── */
.bfsp-info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  z-index: 3;
  padding: 0;
  font-style: italic;
  font-family: Georgia, serif;
}
.bfsp-info-btn:hover {
  background: var(--bf-acc,#0D7377);
  border-color: var(--bf-acc,#0D7377);
  color: #fff;
}
/* i button is top-right; checkmark moves to top-left on has-info cards */
.bfsp-card.has-info.selected::after {
  right: auto;
  left: 10px;
}

/* ── Staff Info Popup overlay ─────────────────────────────── */
.bfsp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.bfsp-popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.bfsp-popup {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 360px;
  width: 100%;
  position: relative;
  transform: translateY(12px) scale(.97);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  overflow: hidden;
}
.bfsp-popup-overlay.open .bfsp-popup {
  transform: translateY(0) scale(1);
}
/* Subtle teal bar at top */
.bfsp-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,var(--bf-acc,#0D7377),var(--bf-acc-h,#0A5E62));
}
.bfsp-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
}
.bfsp-popup-close:hover { background: #E2E8F0; }
/* Hero section */
.bfsp-popup-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}
.bfsp-popup-avatar-wrap {
  margin-bottom: 12px;
}
.bfsp-popup-avatar-wrap .bfsp-avatar,
.bfsp-popup-avatar-wrap .bfsp-avatar-placeholder {
  width: 80px;
  height: 80px;
  font-size: 26px;
  box-shadow: 0 0 0 4px var(--bf-acc-l,#E6F4F5);
}
.bfsp-popup-name {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}
.bfsp-popup-role {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
  margin-bottom: 8px;
}
.bfsp-popup-ig {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bf-acc,#0D7377);
  text-decoration: none;
  background: var(--bf-acc-l,#E6F4F5);
  padding: 4px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.bfsp-popup-ig:hover { background: #cce9ea; }
/* Stats bar */
.bfsp-popup-stats {
  display: flex;
  gap: 1px;
  background: #F1F5F9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.bfsp-popup-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: #fff;
}
.bfsp-popup-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--bf-acc,#0D7377);
  line-height: 1.1;
}
.bfsp-popup-stat-lbl {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}
/* Section blocks */
.bfsp-popup-section {
  margin-bottom: 14px;
}
.bfsp-popup-section:last-child { margin-bottom: 0; }
.bfsp-popup-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94A3B8;
  margin-bottom: 7px;
}
/* Specialty chips */
.bfsp-popup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bfsp-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--bf-acc-l,#E6F4F5);
  color: var(--bf-acc,#0D7377);
  font-size: 12px;
  font-weight: 500;
}
/* Bio */
.bfsp-popup-bio {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════
   DUAL BOOKING MODE: Mode Selector + Class Booking Styles
   ═══════════════════════════════════════════════════════════════════════ */

/* Mode selector grid — auto-adjust: 1 card fills row, 2 = 2 cols, 3 = 3 cols, max 3 per row */
.sb-mode-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.sb-mode-grid .bf-mode-card {
  flex: 1 1 260px !important;
  max-width: 300px !important;
}
@media (max-width: 640px) {
  .sb-mode-grid .bf-mode-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

/* Mode selector cards - HIGH SPECIFICITY */
.serenity-booking-page .bf-mode-card,
.bf-mode-card {
  background: #fff !important;
  border: 2px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 40px 32px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-height: 220px !important;
  box-sizing: border-box !important;
}
.serenity-booking-page .bf-mode-card:hover,
.bf-mode-card:hover {
  border-color: var(--bf-acc,#0D7377) !important;
  box-shadow: 0 4px 16px rgba(13,148,136,0.12) !important;
  transform: translateY(-2px) !important;
}
.serenity-booking-page .bf-mode-icon,
.bf-mode-icon {
  font-size: 48px !important;
  margin-bottom: 20px !important;
  line-height: 1 !important;
  display: block !important;
}
.serenity-booking-page .bf-mode-title,
.bf-mode-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 12px !important;
  font-family: var(--bf-font) !important;
  display: block !important;
}
.serenity-booking-page .bf-mode-desc,
.bf-mode-desc {
  font-size: 14px !important;
  color: #64748B !important;
  line-height: 1.6 !important;
  max-width: 280px !important;
  font-family: var(--bf-font) !important;
  display: block !important;
}

/* Class booking cards */
.bf-class-card {
  background: #fff;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bf-class-card:hover {
  border-color: var(--bf-acc,#0D7377);
  box-shadow: 0 4px 12px rgba(13,148,136,0.1);
}
.bf-class-card.selected {
  border-color: var(--bf-acc,#0D7377);
  background: var(--bf-acc-l,#E6F4F5);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.bf-class-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bf-class-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}
.bf-class-duration {
  font-size: 12px;
  color: #64748B;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 20px;
}
.bf-class-desc {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 12px;
  line-height: 1.4;
}
.bf-class-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.bf-class-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--bf-acc,#0D7377);
}
.bf-class-capacity {
  font-size: 12px;
  color: #64748B;
}

/* Session cards */
.bf-session-card {
  background: #fff;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.bf-session-card:hover {
  border-color: var(--bf-acc,#0D7377);
  box-shadow: 0 4px 12px rgba(13,148,136,0.1);
}
.bf-session-card.selected {
  border-color: var(--bf-acc,#0D7377);
  background: var(--bf-acc-l,#E6F4F5);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.bf-session-card.bf-full {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #E2E8F0;
  background: #F8FAFC;
}
.bf-session-date {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}
.bf-session-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--bf-acc,#0D7377);
  margin-bottom: 12px;
}
.bf-session-capacity {
  margin-bottom: 8px;
}
.bf-session-capacity span {
  font-size: 12px;
  color: #64748B;
  display: block;
  margin-bottom: 6px;
}
.bf-cap-bar {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}
.bf-cap-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.bf-full-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.bf-avail {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #D1FAE5;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ── Calendar date numbers: reduce size ─────────────────────── */
#calendar-grid > div {
  font-size: 13px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   COUPON SIDEBAR - Responsive Styles
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Coupon Sidebar Layout ── */
.services-layout-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.bf-coupon-sidebar-outer {
    width: 230px;
    min-width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
    .bf-coupon-sidebar-outer {
        width: 190px;
        min-width: 170px;
    }
}

/* Mobile — sidebar becomes horizontal strip above services */
@media (max-width: 640px) {
    .services-layout-wrap {
        flex-direction: column;
    }
    .bf-coupon-sidebar-outer {
        width: 100%;
        min-width: 0;
        position: static;
        max-height: none;
        order: -1;
    }
    /* Horizontal scroll on mobile */
    .bf-coupon-sidebar-outer .bf-coupons-scroll {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .bf-coupon-sidebar-outer .bf-coupons-scroll > div {
        min-width: 180px;
        flex-shrink: 0;
    }
}

/* Coupon badge overflow fix */
#services-step-layout,
#services-grid,
#services-grid > * {
    overflow: visible !important;
}

/* Badge anchor — ensure card has overflow visible */
.serenity-service-card,
.bg-white.rounded-xl {
    overflow: visible !important;
}

/* Allow coupon badges to overflow card boundaries */
#step-2,
#services-grid,
#services-grid > *,
.services-layout-wrap {
    overflow: visible !important;
}

/* Service cards must allow badge overflow */
#services-grid .bg-white,
#services-grid [class*="rounded"] {
    overflow: visible !important;
}

/* ── Coupon Sidebar ── */
.bf-coupon-sidebar-outer {
    width: 260px;
    min-width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Hide desktop sidebar on mobile */
@media (max-width: 640px) {
    #services-step-layout,
    #classes-step-layout {
        flex-direction: column !important;
    }
    .bf-coupon-sidebar-outer {
        display: none !important;
    }
    #bf-coupon-mobile-bar {
        display: block !important;
    }
    #bf-coupon-mobile-bar .bf-coupon-mobile-bar {
        display: block !important;
    }
}

/* Hide mobile bar on desktop */
@media (min-width: 641px) {
    #bf-coupon-mobile-bar {
        display: none !important;
    }
    .bf-coupon-mobile-bar {
        display: none !important;
    }
}

/* Tablet — narrower sidebar */
@media (min-width: 641px) and (max-width: 1024px) {
    .bf-coupon-sidebar-outer {
        width: 220px;
        min-width: 200px;
    }
}

/* ══ Stripe card element — ensure always clickable and visible ═══════════ */
#stripe-card-element {
  min-height: 44px !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--bf-border) !important;
  border-radius: var(--bf-r) !important;
  background: var(--bf-bg) !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: visible !important;
}
#stripe-card-element iframe {
  min-height: 20px !important;
  width: 100% !important;
}
#stripe-payment-panel {
  overflow: visible !important;
}

/* ══ Promo / Coupon trigger and chip ════════════════════════════════════ */
.bf-promo-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bf-acc);
  user-select: none;
}
.bf-promo-trigger-arrow {
  margin-left: auto;
  font-size: 16px;
  transition: transform .2s;
}
.bf-promo-panel {
  margin-top: 6px;
}
.bf-promo-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bf-bg, #F9FAFB);
  border: 1.5px solid var(--bf-border, #E5E7EB);
  border-radius: var(--bf-r, 10px);
  padding: 6px 10px;
}
.bf-promo-input-wrap.is-error {
  border-color: #EF4444;
}
.bf-promo-input-icon { font-size: 14px; flex-shrink: 0; }
.bf-promo-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bf-t1, #111827) !important;
  letter-spacing: .04em !important;
  font-family: monospace !important;
  min-width: 0;
}
.bf-promo-input::placeholder { color: var(--bf-t3, #9CA3AF) !important; font-family: inherit !important; }
.bf-promo-apply-btn {
  flex-shrink: 0;
  background: var(--bf-acc, #0D7377);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.bf-promo-apply-btn:hover { background: var(--bf-acc-h, #0A5E62); }
.bf-promo-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #EF4444;
  font-weight: 600;
  padding: 6px 2px 0;
}

/* Applied coupon chip */
.bf-promo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bf-acc-l,#E6F4F5);
  border: 1.5px solid #BBF7D0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.bf-promo-chip--session {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.bf-promo-chip-check {
  font-size: 14px;
  color: #059669;
  flex-shrink: 0;
}
.bf-promo-chip-code {
  font-weight: 800;
  color: #065F46;
  font-family: monospace;
  letter-spacing: .04em;
}
.bf-promo-chip-desc {
  font-size: 12px;
  color: #047857;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bf-promo-chip-amount {
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
  margin-left: auto;
}
.bf-promo-chip-remove {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.bf-promo-chip-remove:hover { color: #EF4444; }

/* ══ Modern Promo/Coupon Card UI ════════════════════════════════════════ */
.bf-promo-section {
  margin-top: 16px;
}

.bf-promo-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1.5px solid #BBF7D0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
  box-sizing: border-box;
  width: 100%;
  gap: 12px;
}
.bf-promo-card:hover {
  border-color: #86EFAC;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}
.bf-promo-card.is-expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.bf-promo-card-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.bf-promo-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  border-radius: 10px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
}
/* Tailwind preflight sets svg{display:block} which breaks the promo card row */
.bf-promo-card svg,
.bf-promo-card-icon svg,
.bf-promo-card-arrow svg {
  display: inline !important;
  vertical-align: middle;
  flex-shrink: 0;
}

.bf-promo-card-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
  min-width: 0;
}

.bf-promo-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  line-height: 1.3;
  display: block;
}

.bf-promo-card-subtitle {
  font-size: 12px;
  color: #16a34a;
  font-weight: 500;
  display: block;
}

.bf-promo-card-arrow {
  color: #22C55E;
  transition: transform .25s ease;
  flex-shrink: 0;
}

.bf-promo-expand-panel {
  background: #FAFFFE;
  border: 1.5px solid #BBF7D0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 16px;
  animation: bf-promo-expand .2s ease;
}
@keyframes bf-promo-expand {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-promo-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #D1FAE5;
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.bf-promo-input-row:focus-within {
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.bf-promo-input-row.is-error {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.bf-promo-code-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #166534 !important;
  letter-spacing: .06em !important;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace !important;
  text-transform: uppercase !important;
  min-width: 0;
  padding: 8px 0 !important;
}
.bf-promo-code-input::placeholder {
  color: #9CA3AF !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* ── Skeleton loading cards ───────────────────────────────────────── */
@keyframes serb-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.serb-skeleton-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #E4E7EC;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.serb-sk-img {
    height: 140px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: serb-shimmer 1.4s infinite linear;
}

.serb-sk-img--sm {
    height: 80px;
}

.serb-sk-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.serb-sk-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: serb-shimmer 1.4s infinite linear;
}

.serb-sk-title  { height: 18px; width: 70%; }
.serb-sk-sub    { height: 13px; width: 90%; }
.serb-sk-short  { width: 50%; }
.serb-sk-price  { height: 16px; width: 35%; }

/* Staff service tags */
.bfsp-svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 7px;
  padding: 0 4px;
}
.bfsp-svc-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #3B82F6;
  letter-spacing: .02em;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bfsp-svc-all {
  background: var(--bf-acc-l,#E6F4F5);
  color: #16A34A;
}
.bfsp-svc-more {
  background: #F5F3FF;
  color: #7C3AED;
}

/* ══ Button loading state ═════════════════════════════════════ */
@keyframes serb-spin {
    to { transform: rotate(360deg); }
}
.serb-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.75;
}
.serb-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.1em;
    height: 1.1em;
    margin: -0.55em 0 0 -0.55em;
    border: 2px solid currentColor;
    border-color: rgba(255,255,255,0.9) rgba(255,255,255,0.9) rgba(255,255,255,0.9) transparent;
    border-radius: 50%;
    animation: serb-spin 0.65s linear infinite;
}
/**
 * Serenity Booking - Tailwind Utility Replacement
 * Covers all utility classes used in booking-page.php and booking-frontend.js
 *
 * @package Serenity_Booking
 * @since   1.0.0
 */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ── Display ──────────────────────────────────────────────── */
.block         { display: block; }
.flex          { display: flex; }
.grid          { display: grid; }
.hidden        { display: none !important; }
.inline-block  { display: inline-block; }
.inline-flex   { display: inline-flex; }

/* ── Flex helpers ─────────────────────────────────────────── */
.flex-1          { flex: 1 1 0%; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7  { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2  { grid-column: span 2 / span 2; }
}

/* ── Sizing ───────────────────────────────────────────────── */
.w-3  { width: 0.75rem; }
.w-5  { width: 1.25rem; }
.w-6  { width: 1.5rem; }
.w-8  { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.h-3  { height: 0.75rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-h-\[500px\] { max-height: 500px; }
.min-h-\[140px\] { min-height: 140px; }
.overflow-hidden   { overflow: hidden; }
.overflow-y-auto   { overflow-y: auto; }

/* ── Object fit ───────────────────────────────────────────── */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ── Positioning ──────────────────────────────────────────── */
.relative  { position: relative; }
.absolute  { position: absolute; }
.sticky    { position: sticky; }
.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.top-0     { top: 0; }
.top-1\/2  { top: 50%; }
.bottom-2  { bottom: 0.5rem; }
.right-2   { right: 0.5rem; }
.right-3   { right: 0.75rem; }
.left-0    { left: 0; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10  { z-index: 10; }
.z-50  { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Spacing — margin ─────────────────────────────────────── */
.m-0  { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* ── Spacing — padding ────────────────────────────────────── */
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-8 { padding-bottom: 2rem; }
.pr-10 { padding-right: 2.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }

/* ── Typography ───────────────────────────────────────────── */
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.font-medium    { font-weight: 500; }
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.underline    { text-decoration: underline; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Colours — text ───────────────────────────────────────── */
.text-white     { color: #ffffff; }
.text-gray-400  { color: #9ca3af; }
.text-gray-500  { color: #6b7280; }
.text-gray-600  { color: #4b5563; }
.text-gray-700  { color: #374151; }
.text-gray-900  { color: #111827; }
.text-blue-600  { color: #2563eb; }
.text-blue-800  { color: #1e40af; }
.text-blue-900  { color: #1e3a8a; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-red-600   { color: #dc2626; }

/* ── Colours — background ─────────────────────────────────── */
.bg-white      { background-color: #ffffff; }
.bg-gray-50    { background-color: #f9fafb; }
.bg-gray-100   { background-color: #f3f4f6; }
.bg-gray-200   { background-color: #e5e7eb; }
.bg-gray-300   { background-color: #d1d5db; }
.bg-blue-50    { background-color: #eff6ff; }
.bg-blue-100   { background-color: #dbeafe; }
.bg-blue-600   { background-color: #2563eb; }
.bg-green-50   { background-color: #f0fdf4; }
.bg-green-100  { background-color: #dcfce7; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from, #eff6ff), var(--tw-gradient-to, #dbeafe)); }
.from-blue-100 { --tw-gradient-from: #dbeafe; }
.to-blue-50    { --tw-gradient-to: #eff6ff; }
.from-blue-400 { --tw-gradient-from: #60a5fa; }
.to-transparent { --tw-gradient-to: transparent; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from, #60a5fa), var(--tw-gradient-to, transparent)); }

/* ── Borders ──────────────────────────────────────────────── */
.border          { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-0        { border-width: 0; }
.border-2        { border-width: 2px; border-style: solid; }
.border-4        { border-width: 4px; border-style: solid; }
.border-t        { border-top: 1px solid #e5e7eb; }
.border-b        { border-bottom: 1px solid #e5e7eb; }
.border-white    { border-color: #ffffff; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-600 { border-color: #2563eb; }
.border-green-200 { border-color: #bbf7d0; }
.border-transparent { border-color: transparent; }
.rounded         { border-radius: 0.25rem; }
.rounded-md      { border-radius: 0.375rem; }
.rounded-lg      { border-radius: 0.5rem; }
.rounded-xl      { border-radius: 0.75rem; }
.rounded-full    { border-radius: 9999px; }

/* ── Shadows ──────────────────────────────────────────────── */
.shadow-sm  { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-md  { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }

/* ── Cursor ───────────────────────────────────────────────── */
.cursor-pointer  { cursor: pointer; }
.cursor-default  { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

/* ── Transitions ──────────────────────────────────────────── */
.transition         { transition-property: color,background-color,border-color,fill,stroke,opacity,box-shadow,transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-colors  { transition-property: color,background-color,border-color; transition-duration: 150ms; }
.duration-200       { transition-duration: 200ms; }

/* ── Animation ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
.border-t-transparent { border-top-color: transparent; }

/* ── Opacity ──────────────────────────────────────────────── */
.opacity-50 { opacity: 0.5; }

/* ── Pseudo-classes ───────────────────────────────────────── */
.hover\:bg-blue-100:hover  { background-color: #dbeafe; }
.hover\:bg-blue-700:hover  { background-color: #1d4ed8; }
.hover\:bg-gray-100:hover  { background-color: #f3f4f6; }
.hover\:bg-gray-300:hover  { background-color: #d1d5db; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:shadow-xl:hover    { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.focus\:ring-2:focus        { box-shadow: 0 0 0 2px rgba(37,99,235,.5); outline: none; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59,130,246,.5); }
.focus\:border-transparent:focus { border-color: transparent; }
.disabled\:opacity-50:disabled   { opacity: 0.5; }

/* ── Divider utility (h-px) ──────────────────────────────── */
.h-px { height: 1px; }
.flex-1 { flex: 1 1 0%; }

/* ── Body default ─────────────────────────────────────────── */
.serenity-booking-page {
    background-color: #f9fafb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #111827;
}

/* ── Time slot button ─────────────────────────────────────── */
.time-slot-btn {
    text-align: left;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 150ms;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.time-slot-btn:hover { background-color: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.time-slot-btn.selected { background-color: #2563eb; border-color: #2563eb; color: #ffffff; }
.time-slot-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Service icon ─────────────────────────────────────────── */
.service-icon-container { text-align: center; }
.service-icon-img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 0.5rem; margin: 0 auto; }

/* ── Tabler icons loaded via wp_register_style dependency ─── */

/* ── New service card design ─────────────────────────────── */
.sb-svc-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #E4E7EC;
    border-radius: 14px;
    overflow: visible;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
}
.sb-svc-card:hover {
    border-color: var(--bf-acc,#0D7377);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.sb-svc-card[data-selected="true"] {
    border-color: var(--bf-acc,#0D7377);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}
.sb-svc-card-top {
    border-radius: 12px 12px 0 0;
}

