/* BFS Booking Availability — Popup styles v1.8.6
   - Wider modal (680px desktop)
   - Larger calendar cells with bigger date numbers
   - Higher density without feeling cramped
   - Better readability across all sections
*/

/* Trigger button: gold bg, red hover, NO border */
.bfs-ba-trigger {
  display: inline-block !important;
  background: #C49047 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  text-decoration: none !important;
}
.bfs-ba-trigger:hover { background: #8D0400 !important; color: #fff !important; }
.bfs-ba-trigger:focus { outline: none !important; box-shadow: none !important; border: none !important; }
.bfs-ba-trigger-group { display: flex; flex-wrap: wrap; gap: 10px; }

.bfs-ba-overlay {
  display: none; position: fixed; inset: 0; background: var(--bfs-ba-overlay-bg, rgba(0,0,0,.55));
  z-index: 999999; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.bfs-ba-overlay.active { display: flex !important; }

.bfs-ba-popup {
  background: var(--bfs-ba-popup-bg, #fff) !important;
  border-radius: var(--bfs-ba-popup-radius, 16px);
  width: 100%;
  max-width: 680px;          /* ↑ from 480px */
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 36px;        /* ↑ from 24px */
  box-sizing: border-box;
  position: relative;
  font-family: var(--bfs-ba-font-family, inherit);
  color: var(--bfs-ba-popup-text, #111);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.bfs-ba-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: #999; line-height: 1; padding: 4px 10px;
  border-radius: 8px;
  transition: all .15s;
}
.bfs-ba-close:hover { color: #111; background: #f3f4f6; }

.bfs-ba-loading, .bfs-ba-error {
  padding: 48px 20px; text-align: center; color: #888; font-size: 15px;
}
.bfs-ba-error { color: #dc2626; }

.bfs-ba-step { display: none; }
.bfs-ba-step.active { display: block; }

.bfs-ba-step-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  margin: 0 0 8px;
}
.bfs-ba-step-title {
  font-size: 26px;            /* ↑ from 22-28px range — settled at 26 */
  font-weight: 700;
  color: var(--bfs-ba-popup-text, #111);
  margin: 0 0 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bfs-ba-sub {
  font-size: 14px; color: var(--bfs-ba-muted-text, #6b7280); margin: 0 0 16px;
}

.bfs-ba-progress { display: flex; gap: 7px; margin-bottom: 22px; }
.bfs-ba-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e5e5e5;
  display: inline-block;
  transition: background .2s;
}
.bfs-ba-dot.active { background: var(--bfs-ba-accent, #25D366); }

.bfs-ba-back {
  background: none; border: none;
  font-size: 13px; color: #6b7280;
  cursor: pointer; margin-bottom: 16px; padding: 4px 0;
  font-family: inherit;
}
.bfs-ba-back:hover { color: #111; }

/* ── Calendar — bigger and denser ──────────────────────────── */
.bfs-ba-cal-wrap {
  border: 1px solid var(--bfs-ba-border, #e5e5e5);
  border-radius: 14px;
  padding: 18px 20px;        /* ↑ from 14px */
  margin-bottom: 14px;
  box-sizing: border-box;
  background: #fff;
}
.bfs-ba-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;        /* ↑ from 10px */
}
.bfs-ba-cal-nav button {
  background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 8px 16px; cursor: pointer;
  font-size: 18px; font-weight: 700;
  color: #444; min-width: 40px; min-height: 40px;
  transition: all .15s;
}
.bfs-ba-cal-nav button:hover { background: #e8e8e8; color: #111; }
.bfs-ba-cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.bfs-ba-cal-month {
  font-size: 16px;            /* ↑ from 13px */
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.bfs-ba-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bfs-ba-cal-label {
  font-size: 11px;            /* small but readable */
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 0 6px;
}
.bfs-ba-cal-day {
  font-size: 16px;            /* ↑ from 12px — major bump for readability */
  font-weight: 500;
  text-align: center;
  padding: 12px 0;            /* taller cells */
  border-radius: 10px;
  color: #111;
  position: relative;
  line-height: 1.2;
  border: none;
  background: transparent;
  cursor: default;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
}
.bfs-ba-cal-day.avail {
  cursor: pointer;
  font-weight: 600;
  color: var(--bfs-ba-available, #166534);
}
.bfs-ba-cal-day.avail:hover {
  background: #dcfce7;
  transform: scale(1.04);
}
.bfs-ba-cal-day.sel {
  background: var(--bfs-ba-accent, #25D366) !important;
  color: var(--bfs-ba-accent-text, #fff) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}
/* Belum dibuka (past dates / out of booking window) — light grey, faded */
.bfs-ba-cal-day.empty,
.bfs-ba-cal-day.past { color: var(--bfs-ba-notopen, #d1d5db); }

/* Penuh (open day but all slots booked) — darker grey, more visible */
.bfs-ba-cal-day.noSlot {
  color: var(--bfs-ba-full, #6b7280);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
  text-decoration-thickness: 1.5px;
}

/* Tutup (Monday or holiday) — red */
.bfs-ba-cal-day.closed {
  color: var(--bfs-ba-closed, #ef4444);
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 600;
}
.bfs-ba-cal-day.mon-ex::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--bfs-ba-accent, #25D366);
}

/* ── Legend — more prominent ────────────────────────────── */
.bfs-ba-legend {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 12px;            /* ↑ from 11px */
  color: #4b5563;
  font-weight: 500;
  align-items: center;
  flex-wrap: wrap;
}
.bfs-ba-ldot {
  width: 9px; height: 9px;    /* ↑ from 7px */
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.bfs-ba-info {
  font-size: 13px;            /* ↑ from 11px */
  color: #4b5563;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 10px;
  border-left: 3px solid #d1d5db;
  line-height: 1.55;
}

/* ── Upsell ─────────────────────────────────────────── */
.bfs-ba-upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.bfs-ba-upsell {
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px 10px;         /* ↑ from 12px 8px */
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  background: #fff;
  transition: all .15s;
}
.bfs-ba-upsell:hover {
  background: #f9f9f9;
  border-color: var(--bfs-ba-notopen, #d1d5db);
}
.bfs-ba-upsell.sel {
  border: 2px solid #25D366;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}
.bfs-ba-upsell.skip { border-style: dashed; }
.bfs-ba-upsell-label {
  font-size: 14px;             /* ↑ from 13px */
  font-weight: 600;
  color: #111; margin: 0 0 4px;
}
.bfs-ba-upsell-price {
  font-size: 12px;             /* ↑ from 11px */
  color: #25D366; font-weight: 600; margin: 0;
}
.bfs-ba-upsell-price.muted { color: #aaa; }

/* ── Slots — bigger touch targets ───────────────────── */
.bfs-ba-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;                    /* ↑ from 6px */
  margin-bottom: 18px;
}
.bfs-ba-slot {
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 4px;           /* ↑ from 6px 3px */
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  background: #fff;
  transition: all .12s;
}
.bfs-ba-slot.avail:hover {
  background: #f0fdf4;
  border-color: #25D366;
}
.bfs-ba-slot.hov {
  background: #dcfce7;
  border-color: #25D366;
}
.bfs-ba-slot.sel {
  border: 2px solid #25D366;
  background: #f0fdf4;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}
.bfs-ba-slot.terisi { background: #f5f5f5; cursor: not-allowed; }
.bfs-ba-slot.unavail { opacity: 0.35; cursor: default; }
.bfs-ba-slot-time {
  font-size: 13px;             /* ↑ from 11px */
  font-weight: 600;
  color: #111;
  display: block;
}
.bfs-ba-slot.terisi .bfs-ba-slot-time {
  color: #ccc; text-decoration: line-through;
}
.bfs-ba-slot-note {
  font-size: 10px;             /* ↑ from 9px */
  color: #9ca3af;
  line-height: 1.2;
  margin-top: 2px;
}

.bfs-ba-ot-banner {
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;             /* ↑ from 11px */
  padding: 10px 14px;          /* ↑ from 6px 10px */
  border-radius: 10px;
  border-left: 3px solid #f59e0b;
  margin-bottom: 14px;
  font-weight: 500;
}

.bfs-ba-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.bfs-ba-pill {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 14px;            /* ↑ from 3px 10px */
  font-size: 13px;              /* ↑ from 11px */
  color: var(--bfs-ba-available, #166534);
  font-weight: 500;
}

/* ── Primary CTA — stronger presence ─────────────── */
.bfs-ba-btn {
  display: block;
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px;               /* ↑ from 12px */
  font-size: 14px;              /* ↑ from 13px */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  margin-top: 8px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all .18s;
}
.bfs-ba-btn:hover {
  background: #1aad52;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.bfs-ba-btn:disabled {
  background: #e5e5e5;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── Peserta field ─────────────────────────────── */
.bfs-ba-peserta-field {
  margin-bottom: 16px;
  padding: 14px 16px;           /* ↑ from 10px 12px */
  background: #f9fafb;
  border: 1px solid var(--bfs-ba-border, #e5e5e5);
  border-radius: 10px;
}
.bfs-ba-peserta-field label {
  font-size: 13px;              /* ↑ from 12px */
  font-weight: 600;
  color: #374151;
  display: block; margin-bottom: 8px;
}
.bfs-ba-optional { color: #9ca3af; font-weight: 400; }
.bfs-ba-peserta-field input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;              /* ↑ from 14px */
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.bfs-ba-peserta-field input:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}
.bfs-ba-peserta-tip {
  font-size: 12px;              /* ↑ from 11px */
  color: #6b7280;
  margin: 6px 0 0;
}

/* ── Mobile responsive ──────────────────────────── */
@media (max-width: 700px) {
  .bfs-ba-popup {
    padding: 22px 20px;
    border-radius: 14px;
    max-width: 100%;
    max-height: 95vh;
  }
  .bfs-ba-step-title { font-size: 22px; }
  .bfs-ba-cal-wrap { padding: 14px 12px; }
  .bfs-ba-cal-day {
    font-size: 14px;
    padding: 10px 0;
    min-height: 38px;
  }
  .bfs-ba-cal-month { font-size: 15px; }
  .bfs-ba-slot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bfs-ba-upsell-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .bfs-ba-upsell { padding: 10px 6px; }
  .bfs-ba-info { font-size: 12px; padding: 8px 12px; }
  .bfs-ba-btn { padding: 14px; font-size: 13px; }
}


/* v1.8.6 Popup style variables */
.bfs-ba-ldot-available { background: var(--bfs-ba-available, #25D366); }
.bfs-ba-ldot-full { background: var(--bfs-ba-full, #6b7280); }
.bfs-ba-ldot-closed { background: var(--bfs-ba-closed, #ef4444); }
.bfs-ba-ldot-notopen { background: var(--bfs-ba-notopen, #e5e5e5); }
.bfs-ba-popup h4,
.bfs-ba-popup label,
.bfs-ba-cal-month,
.bfs-ba-slot-time { color: var(--bfs-ba-popup-text, #111); }
.bfs-ba-info,
.bfs-ba-step-label,
.bfs-ba-back,
.bfs-ba-peserta-tip,
.bfs-ba-optional { color: var(--bfs-ba-muted-text, #6b7280); }
.bfs-ba-btn {
  background: var(--bfs-ba-button-bg, #25D366) !important;
  color: var(--bfs-ba-button-text, #fff) !important;
}
.bfs-ba-btn:disabled {
  background: #d1d5db !important;
  color: #ffffff !important;
}
.bfs-ba-slot.avail,
.bfs-ba-upsell.sel,
.bfs-ba-slot.sel,
.bfs-ba-slot.hov { border-color: var(--bfs-ba-accent, #25D366); }

/* v1.9.9 — Overtime request gate in Step 3 */
.bfs-ba-late-card {
  margin: -4px 0 18px;
  padding: 14px;
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  background: #fffbeb;
  color: #78350f;
  box-sizing: border-box;
}
.bfs-ba-late-copy strong {
  display:block;
  font-size: 14px;
  color: #78350f;
  margin-bottom: 4px;
}
.bfs-ba-late-copy p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #92400e;
}
.bfs-ba-late-copy small {
  display:block;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 12px;
}
.bfs-ba-late-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #92400e;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .03em;
}
.bfs-ba-late-btn:hover { background:#78350f; color:#fff; }
.bfs-ba-slot.overtime {
  border-color: #f59e0b;
  background: #fff7ed;
}
.bfs-ba-slot.overtime:hover,
.bfs-ba-slot.overtime.hov,
.bfs-ba-slot.overtime.sel {
  border-color: #f59e0b;
  background: #ffedd5;
  box-shadow: 0 2px 8px rgba(245,158,11,.22);
}
.bfs-ba-slot.overtime .bfs-ba-slot-time { color:#9a3412; }
.bfs-ba-slot-note.overtime-note { color:#b45309; font-weight:700; }
.bfs-ba-slot-section-label,
.bfs-ba-slot-empty-note {
  grid-column: 1 / -1;
  border: 1px dashed #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.bfs-ba-slot-empty-note {
  border-color:#e5e7eb;
  background:#f9fafb;
  color:#4b5563;
  font-weight:600;
}
