/* BFS Booking Availability — Popup styles v1.1 */

/* 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: rgba(0,0,0,.5);
  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: #fff !important; border-radius: 16px; width: 100%;
  max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px;
  box-sizing: border-box; position: relative;
  font-family: inherit; color: #111;
}
.bfs-ba-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: #888; line-height: 1; padding: 4px;
}
.bfs-ba-close:hover { color: #111; }

.bfs-ba-loading, .bfs-ba-error {
  padding: 40px 20px; text-align: center; color: #888; font-size: 14px;
}
.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.12em; text-transform: uppercase;
  color: #888; margin: 0 0 6px;
}
.bfs-ba-step-title {
  font-size: 28px; font-weight: 700; color: #111; margin: 0 0 16px;
  line-height: 1.2;
}
.bfs-ba-sub { font-size: 14px; color: #888; margin: 0 0 14px; }

.bfs-ba-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.bfs-ba-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #e5e5e5;
  display: inline-block;
}
.bfs-ba-dot.active { background: #25D366; }

.bfs-ba-back {
  background: none; border: none; font-size: 12px; color: #888;
  cursor: pointer; margin-bottom: 14px; padding: 0;
}
.bfs-ba-back:hover { color: #111; }

/* Calendar */
.bfs-ba-cal-wrap {
  border: 1px solid #e5e5e5; border-radius: 12px; padding: 14px;
  margin-bottom: 12px; box-sizing: border-box;
}
.bfs-ba-cal-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.bfs-ba-cal-nav button {
  background: #f5f5f5; border: 1px solid #ccc; border-radius: 8px;
  padding: 6px 16px; cursor: pointer; font-size: 18px; font-weight: 700;
  color: #444; min-width: 36px; min-height: 36px;
}
.bfs-ba-cal-nav button:hover { background: #e0e0e0; color: #111; }
.bfs-ba-cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.bfs-ba-cal-month { font-size: 13px; font-weight: 500; color: #111; }

.bfs-ba-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.bfs-ba-cal-label {
  font-size: 10px; color: #888; text-align: center; padding: 3px 0;
}
.bfs-ba-cal-day {
  font-size: 12px; text-align: center; padding: 7px 3px; border-radius: 6px;
  color: #111; position: relative; line-height: 1.4; border: none;
  background: transparent; cursor: default;
}
.bfs-ba-cal-day.avail { cursor: pointer; font-weight: 600; }
.bfs-ba-cal-day.avail:hover { background: #f0fdf4; }
.bfs-ba-cal-day.sel { background: #25D366 !important; color: #fff !important; }
.bfs-ba-cal-day.empty,
.bfs-ba-cal-day.past,
.bfs-ba-cal-day.noSlot { color: #ddd; }
.bfs-ba-cal-day.closed {
  color: #ef4444; text-decoration: line-through; opacity: 0.7; font-weight: 600;
}
.bfs-ba-cal-day.mon-ex::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 3px; height: 3px;
  border-radius: 50%; background: #25D366;
}

.bfs-ba-legend {
  display: flex; gap: 10px; margin-bottom: 12px; font-size: 11px;
  color: #888; align-items: center; flex-wrap: wrap;
}
.bfs-ba-ldot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
  margin-right: 4px;
}

.bfs-ba-info {
  font-size: 11px; color: #888; margin: 0 0 12px; padding: 8px 12px;
  background: #f5f5f5; border-radius: 8px; line-height: 1.6;
}

/* Upsell */
.bfs-ba-upsell-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.bfs-ba-upsell {
  border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 8px;
  text-align: center; cursor: pointer; box-sizing: border-box; background: #fff;
}
.bfs-ba-upsell:hover { background: #f9f9f9; }
.bfs-ba-upsell.sel { border: 2px solid #25D366; background: #f0fdf4; }
.bfs-ba-upsell.skip { border-style: dashed; }
.bfs-ba-upsell-label { font-size: 13px; font-weight: 500; color: #111; margin: 0 0 3px; }
.bfs-ba-upsell-price { font-size: 11px; color: #25D366; font-weight: 600; margin: 0; }
.bfs-ba-upsell-price.muted { color: #aaa; }

/* Slots — ALL available slots are green (no yellow overtime distinction) */
.bfs-ba-slot-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-bottom: 16px;
}
.bfs-ba-slot {
  border: 1px solid #e5e5e5; border-radius: 8px; padding: 6px 3px;
  text-align: center; cursor: pointer; box-sizing: border-box; background: #fff;
}
.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: 500; }
.bfs-ba-slot.terisi { background: #f5f5f5; cursor: not-allowed; }
.bfs-ba-slot.unavail { opacity: 0.35; cursor: default; }
.bfs-ba-slot-time { font-size: 11px; font-weight: 500; color: #111; display: block; }
.bfs-ba-slot.terisi .bfs-ba-slot-time { color: #ccc; text-decoration: line-through; }
.bfs-ba-slot-note { font-size: 9px; color: #ccc; line-height: 1; }

.bfs-ba-ot-banner {
  background: #fef3c7; color: #92400e; font-size: 11px;
  padding: 6px 10px; border-radius: 8px; margin-bottom: 12px;
}

.bfs-ba-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bfs-ba-pill {
  display: inline-block; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 999px; padding: 3px 10px; font-size: 11px; color: #166534;
}

.bfs-ba-btn {
  display: block; width: 100%; background: #25D366; color: #fff;
  border: none; border-radius: 999px; padding: 12px; font-size: 13px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; box-sizing: border-box; margin-top: 6px; font-family: inherit;
}
.bfs-ba-btn:hover { background: #1aad52; color: #fff; }
.bfs-ba-btn:disabled { background: #e5e5e5; color: #aaa; cursor: not-allowed; }

/* Peserta field */
.bfs-ba-peserta-field {
  margin-bottom: 14px; padding: 10px 12px;
  background: #f9fafb; border: 1px solid #e5e5e5; border-radius: 8px;
}
.bfs-ba-peserta-field label {
  font-size: 12px; font-weight: 500; color: #555; display: block; margin-bottom: 6px;
}
.bfs-ba-optional { color: #aaa; font-weight: 400; }
.bfs-ba-peserta-field input {
  width: 100%; box-sizing: border-box; border: 1px solid #e5e5e5;
  border-radius: 6px; padding: 8px 10px; font-size: 14px; font-family: inherit;
  outline: none;
}
.bfs-ba-peserta-field input:focus { border-color: #25D366; }
.bfs-ba-peserta-tip { font-size: 11px; color: #888; margin: 4px 0 0; }
