/* ===============================
   STEP 4 – DATE & TIMES WRAPPER
   =============================== */

/* .bpabfb-step-content.bpabfb-step-4 {
  background: var(--gradient-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--bb-border-color);
  padding: 28px;
  box-shadow: var(--shadow-card);
  color: var(--color-heading);
  width: 100%;
  height: auto;
}

.bpabfb-step-content.bpabfb-step-4.bg-white {
  background: var(--gradient-card);
} */

/* Title */
.bpabfb-step-4 .bpabfb-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Scroll wrapper */
.bpabfb-step-4 .maintant-height {
  overflow-y: visible;
}

/* ===============================
   DATE INPUT
   =============================== */

.bpabfb-step-4 label[for="bpabfb-calendar"] {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-body);
  display: block;
}

.bpabfb-calendar {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bb-border-color);
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 14px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

/* light override */
:root[data-theme="light"] .bpabfb-calendar {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}

.bpabfb-calendar::placeholder {
  font-size: 12px;
  color: var(--color-body);
  opacity: 0.45;
}

/* focus */
.bpabfb-calendar:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(178, 134, 71, 0.35);
}

/* light */
:root[data-theme="light"] .bpabfb-calendar:focus {
  box-shadow: 0 0 0 3px rgba(178, 134, 71, 0.25);
}

/* ===============================
   LEGEND
   =============================== */

.bbap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--color-body);
}

.bbap-legend .flex.gap-2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bbap-legend-item {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--bb-border-color);
}

/* legend colors */
.bbap-legend-item.bbap-available {
  background: rgba(78, 197, 127, 0.15);
  border-color: rgba(78, 197, 127, 0.65);
}

.bbap-legend-item.bbap-selected {
  background: var(--brand-500);
  border-color: var(--brand-700);
}

.bbap-legend-item.bbap-booked {
  background: rgba(150, 150, 160, 0.28);
  border-color: rgba(185, 185, 192, 0.85);
}

/* ===============================
   TIME DURATION LABEL
   =============================== */

.time_duration {
  font-size: 12px;
  color: var(--color-body);
  margin: 6px 0 14px;
}

/* ===============================
   TIME SLOTS CARD WRAPPER
   =============================== */

.max-w-6xl.mx-auto .border.rounded.shadow-sm.p-4.text-center {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--bb-border-color);
  /* box-shadow: var(--shadow-card); */
  padding: 16px 18px;
  text-align: center;
}

/* Card title */
.max-w-6xl.mx-auto h3.text-lg.font-semibold.text-gray-800.mb-3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
}

/* ===============================
   TIME SLOTS CONTAINER
   =============================== */

.bpabfb-time-slots {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 4px;
}

/* empty state */
.bpabfb-time-slots i.fas.fa-clock {
  font-size: 26px;
  color: var(--color-body);
  opacity: 0.6;
}

.bpabfb-time-slots p {
  font-size: 13px;
  color: var(--color-body);
}

/* grid */
.bpabfb-time-slots.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 5px;
}

@media (min-width: 768px) {
  .bpabfb-time-slots.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===============================
   TIME SLOT BUTTON BASE
   =============================== */

.time-slot {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bb-border-color);
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

/* hide checkbox */
.time-slot input[type="checkbox"] {
  display: none;
}



/* ===============================
   AVAILABLE
   =============================== */

.time-slot.bbap-available {
  background: rgba(78, 197, 127, 0.10);
  border-color: rgba(78, 197, 127, 0.55);
}

/* ===============================
   SELECTED SLOT
   =============================== */

.time-slot.bbap-selected {
  background: var(--brand-gradient);
  border-color: var(--brand-700);
  color: #111;
  box-shadow: 0 12px 28px rgba(178, 134, 71, 0.28);
  transform: translateY(-1px);
}

.time-slot.bbap-selected *,
.time-slot.selected * {
  color: #111;
}

/* legacy selected */
/* .time-slot.active, */
.time-slot.selected {
  background: rgba(178, 134, 71, 0.16);
  border-color: var(--brand-500);
  box-shadow: 0 12px 28px rgba(178, 134, 71, 0.25);
}

/* ===============================
   BOOKED SLOT
   =============================== */

.time-slot.bbap-booked {
  background: rgba(150, 150, 160, 0.22);
  border-color: rgba(185, 185, 192, 0.65);
  color: rgba(200, 200, 210, 0.55);
  cursor: not-allowed;
  box-shadow: none;
}
