/* Light Program Booking — booking.css  v1.9.4
 * Based on "Serene Authority" / Dusty Blue Theme
 * Typography: Raleway (Headlines) · Afacad (Body)
 * Palette: Dusty Blue #7190C8 · Dark Slate #4B5A6D · Background #f8f9ff
 */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&family=Afacad:wght@400;500&display=swap');

:root {
  --lp-primary: #7190C8;
  --lp-text-slate: #4B5A6D;
  --lp-bg: #f8f9ff;
  --lp-surface: #ffffff;
  --lp-border: #e8edf2;
  --lp-dark:   #2E3844;
  --lp-muted:  #8a99aa;
  --lp-accent: #DFC15E;
}

#lp-booking {
  font-family: 'Afacad', sans-serif;
  font-size: 20px;
  color: var(--lp-text-slate);
  max-width: 1000px;
  margin: 0 auto;
}

#lp-booking *,
#lp-booking *::before,
#lp-booking *::after {
  box-sizing: border-box;
}

#lp-booking .lp-h2 {
  font-family: 'Raleway', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--lp-text-slate) !important;
  margin-bottom: 1rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ── CALENDAR ────────────────────────────────────────────────────────────── */
.lp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.lp-cal-day {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--lp-text-slate) !important;
  background: #ffffff !important;
  user-select: none;
}

.lp-cal-day:hover:not([disabled]):not(.empty) {
  background: #4B5A6D !important;
  color: #ffffff !important;
  border-color: #4B5A6D;
}

.lp-cal-day.today {
  border-color: #8a99aa;
  color: #000000 !important;
  font-weight: 600;
}

.lp-cal-day.selected {
  background: #4B5A6D !important;
  color: #ffffff !important;
  border-color: #4B5A6D;
}

/* Crossed out + light grey for past, unavailable, disabled */
.lp-cal-day.disabled,
.lp-cal-day.past,
.lp-cal-day.unavailable {
  background: #ffffff !important;
  color: #cccccc !important;
  text-decoration: line-through;
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.lp-cal-day.beyond {
  color: #d0d5db !important;
  cursor: default;
  pointer-events: none;
}

.lp-cal-day.empty {
  border: none;
  background: transparent !important;
  cursor: default;
  pointer-events: none;
}

/* ── TIME SLOTS ────────────────────────────────────────────────────────── */
.lp-time-slots-container,
.lp-times-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
}

#lp-booking .lp-time-slot {
  padding: 14px 16px;
  border: 1.5px solid #e8edf2 !important;
  border-radius: 8px;
  background: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  color: var(--lp-text-slate) !important;
  width: 100%;
}

#lp-booking .lp-time-slot:hover {
  background: #4B5A6D !important;
  color: #ffffff !important;
  border-color: #4B5A6D !important;
}

#lp-booking .lp-time-slot.selected {
  background: #4B5A6D !important;
  color: #ffffff !important;
  border-color: #4B5A6D !important;
}

/* ── TIMEZONE SELECTOR ──────────────────────────────────────────────────── */
.lp-timezone-row {
  margin-top: 20px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-timezone-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-text-slate);
  white-space: nowrap;
}
.lp-timezone-label .material-symbols-outlined {
  font-size: 18px;
  color: var(--lp-text-slate);
}

.lp-timezone-select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--lp-text-slate);
  background: var(--lp-surface);
  cursor: pointer;
}
.lp-timezone-select:focus {
  outline: none;
  border-color: #8a99aa;
}

/* ══════════════════════════════════════════════════════════════════════════
   PANELS & CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.lp-panel        { display: none; }
.lp-panel.active { display: block; }

.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

/* ── Error banner ─────────────────────────────────────────────────────── */
.lp-error {
  display: none;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
}
.lp-error:not(:empty) { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */

/* Scoped under #lp-booking so these rules beat Astra's generic button selectors */
#lp-booking .lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
#lp-booking .lp-btn:disabled,
#lp-booking .lp-btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

#lp-booking .lp-btn-primary {
  background: var(--lp-dark, #2E3844);
  color: #ffffff;
  border-color: var(--lp-dark, #2E3844);
}
#lp-booking .lp-btn-primary:hover:not(:disabled) {
  background: #3d4f62;
  border-color: #3d4f62;
  color: #ffffff;
}

#lp-booking .lp-btn-ghost {
  background: transparent;
  color: var(--lp-text-slate, #4B5A6D);
  border-color: var(--lp-border, #e8edf2);
}
#lp-booking .lp-btn-ghost:hover:not(:disabled) {
  background: #f0f4fc;
  border-color: #8a99aa;
  color: var(--lp-text-slate, #4B5A6D);
}

/* Icon button — calendar prev/next */
#lp-booking .lp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0px solid #e8edf2 !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: var(--lp-text-slate) !important;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
}
#lp-booking .lp-icon-btn:hover {
  background: #ffffff !important;
  border: 0px solid #e8edf2 !important;
  color: var(--lp-text-slate) !important;
}
#lp-booking .lp-icon-btn .material-symbols-outlined { font-size: 18px; }

/* ── Footer bar ─────────────────────────────────────────────────────────── */
.lp-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 0;
  gap: 12px;
}

/* ── Material Symbols baseline ─────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 18px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 1 — SERVICE SELECTION
   ══════════════════════════════════════════════════════════════════════════ */

.lp-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

#lp-booking .lp-service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid #ffffff !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  cursor: pointer;
  user-select: none;
  text-align: left;
  box-shadow: none !important;
  transition: background 0.18s;
}
#lp-booking .lp-service-card:hover,
#lp-booking .lp-service-card.selected {
  background: #f0f4fc !important;
  border-color: #f0f4fc !important;
  box-shadow: none !important;
}

/* Service card inner layout — JS renders lp-svc-* classes */
#lp-booking .lp-service-card > div:first-child {
  flex: 1;
  min-width: 0;
}
#lp-booking .lp-svc-label {
  font-family: 'Raleway', sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #4B5A6D !important;
}
#lp-booking .lp-svc-desc {
  font-family: 'Afacad', sans-serif !important;
  font-size: 15px !important;
  color: #4B5A6D !important;
  margin: 2px 0 0 !important;
}
#lp-booking .lp-svc-meta {
  flex-shrink: 0;
  min-width: 80px;
  text-align: left;
}
#lp-booking .lp-svc-price {
  font-family: 'Raleway', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #4B5A6D !important;
  white-space: nowrap;
}
#lp-booking .lp-svc-dur {
  font-family: 'Afacad', sans-serif !important;
  font-size: 14px !important;
  color: #8a99aa !important;
  margin-top: 2px;
  white-space: nowrap;
}
/* Keep text dark when selected (light background) */
#lp-booking .lp-service-card.selected .lp-svc-label,
#lp-booking .lp-service-card.selected .lp-svc-desc,
#lp-booking .lp-service-card.selected .lp-svc-price {
  color: #4B5A6D !important;
}
#lp-booking .lp-service-card.selected .lp-svc-dur {
  color: #8a99aa !important;
}
/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 2 — SLOT PICKER
   ══════════════════════════════════════════════════════════════════════════ */

.lp-slot-layout {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 16px;
  align-items: start;
}

.lp-calendar-section { min-width: 0; }

.lp-service-title-bar {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-slate);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--lp-border);
}

.lp-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.lp-calendar-header .lp-h2 { margin: 0; }

.lp-cal-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lp-cal-month-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-slate);
  min-width: 80px;
  text-align: center;
}

/* Day-of-week header */
.lp-calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.lp-calendar-grid-header > div {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

/* Times section */
.lp-times-section { min-width: 0; }

.lp-times-date {
  font-size: 14px;
  color: var(--lp-muted);
  margin: 0 0 12px;
}

.lp-times-list,
.lp-time-slots-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
  max-width: none;
}

.lp-times-empty {
  font-size: 15px;
  color: var(--lp-muted);
  text-align: center;
  padding: 28px 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 3 — PERSONAL INFORMATION
   ══════════════════════════════════════════════════════════════════════════ */

.lp-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: start;
}

.lp-checkout-main { min-width: 0; }

/* Booking summary banner */
/* Hide the top booking banner */
.lp-booking-banner {
  display: none;
}

.lp-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-banner-icon .material-symbols-outlined {
  font-size: 20px;
  color: #fff;
}

.lp-banner-info { flex: 1; min-width: 0; }

.lp-banner-service {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-banner-slot {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.lp-banner-price {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Form grid */
.lp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#lp-booking .lp-field label {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--lp-text-slate) !important;
}

.lp-field input[type="text"],
.lp-field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--lp-border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  color: var(--lp-dark);
  background: var(--lp-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-field input:focus {
  outline: none;
  border-color: #8a99aa;
  box-shadow: 0 0 0 3px rgba(138,153,170,.18);
}

.lp-field--full { grid-column: 1 / -1; }

.lp-required { color: #e74c3c; margin-left: 2px; }

.lp-field--checkbox { flex-direction: row; align-items: flex-start; }

#lp-booking .lp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 16px !important;
  color: var(--lp-text-slate) !important;
  line-height: 1.5;
}
.lp-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #8a99aa;
  cursor: pointer;
}

/* Policies */
.lp-policies {
  border-top: 1px solid var(--lp-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-policy-block + .lp-policy-block {
  border-top: 1px solid var(--lp-border);
  padding-top: 10px;
}
#lp-booking .lp-policy-label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--lp-text-slate) !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 4px;
}
#lp-booking .lp-policy-text {
  font-size: 16px !important;
  color: var(--lp-muted) !important;
  line-height: 1.6;
  margin: 0;
}

/* Right sidebar — white background, matching left side */
.lp-sidebar {
  background: #ffffff;
  border: 1.5px solid #e8edf2;
  border-radius: 8px;
  color: #4B5A6D;
}

.lp-sidebar-brand {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #e8edf2;
}
.lp-sidebar-brand-name {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4B5A6D;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

#lp-booking .lp-sidebar-content {
  padding: 16px 20px 20px;
  font-size: 16px !important;
  color: #4B5A6D !important;
  line-height: 1.6;
}

#lp-booking .lp-sidebar-row { display: flex; flex-direction: column; margin-bottom: 14px; }
#lp-booking .lp-sidebar-row:last-child { margin-bottom: 0; }
#lp-booking .lp-sidebar-label {
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a99aa !important;
  margin-bottom: 3px;
}

#lp-booking .lp-sidebar-value {
  font-size: 16px !important;
  color: #4B5A6D !important;
  font-weight: 500;
}

.lp-sidebar-price {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #4B5A6D;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 4 — BOOKING CONFIRMED
   ══════════════════════════════════════════════════════════════════════════ */

.lp-confirmed-wrapper {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 8px;
}

.lp-confirmed-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #8a99aa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.lp-confirmed-icon .material-symbols-outlined {
  font-size: 36px;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.lp-confirmed-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-dark);
  margin: 0 0 8px;
}
.lp-confirmed-sub {
  font-size: 16px;
  color: var(--lp-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

.lp-confirmed-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
}
.lp-confirmed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.lp-confirmed-card-header .lp-h2 { margin: 0; }

.lp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.lp-badge--confirmed {
  background: #e7f5ec;
  color: #27ae60;
  border: 1px solid #a3d9b1;
}

.lp-confirmed-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
}
#lp-booking .lp-confirmed-details dt {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--lp-text-slate) !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 0;
  white-space: nowrap;
}
#lp-booking .lp-confirmed-details dd {
  font-size: 16px !important;
  color: var(--lp-dark) !important;
  margin: 0;
  padding: 5px 0;
}

.lp-confirmed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 720px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {

  .lp-slot-layout {
    grid-template-columns: 1fr;
  }

  .lp-times-list,
  .lp-time-slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-height: none;
    overflow-y: visible;
    max-width: none;
  }

  .lp-checkout-layout {
    grid-template-columns: 1fr;
  }
  .lp-checkout-main {
    order: 2;
  }
  .lp-sidebar {
    order: 1;
    position: static;
  }

}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 480px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  #lp-booking {
    font-size: 17px;
    padding: 0 4px;
  }

  .lp-card { padding: 16px; }

  .lp-calendar-grid,
  .lp-calendar-grid-header { gap: 2px; }

  .lp-cal-day {
    font-size: 11px;
  }

  .lp-calendar-header { flex-wrap: wrap; gap: 8px; }

  .lp-checkout-main { order: 2; }
  .lp-sidebar       { order: 1; position: static; }

  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-field--full { grid-column: 1; }

  .lp-times-list,
  .lp-time-slots-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .lp-footer-bar {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  #lp-booking .lp-footer-bar .lp-btn {
    width: 100%;
    justify-content: center;
  }

  .lp-confirmed-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #lp-booking .lp-confirmed-actions .lp-btn {
    width: 100%;
    justify-content: center;
  }

}