/* ── Booking Calendar Widget ────────────────────────────────────────────────── */

#booking-calendar {
  width: 100%;
  color: #fff;
}

/* Month navigation header */
.bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bc-month-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.bc-nav {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bc-nav:hover { background: rgba(255,255,255,.25); }
.bc-nav:disabled { opacity: .35; cursor: not-allowed; }

/* Day-of-week header row */
.bc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.bc-wd {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  padding: .25rem 0;
}

/* Day grid */
.bc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bc-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: default;
  transition: background .2s, transform .15s;
  border: 2px solid transparent;
}
.bc-day.empty { background: transparent; }
.bc-day.past  { color: rgba(255,255,255,.25); }
.bc-day.available {
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-color: rgba(255,255,255,.2);
}
.bc-day.available:hover {
  background: rgba(0,150,136,.5);
  border-color: #00bfa5;
  transform: scale(1.08);
}
.bc-day.selected {
  background: #009688;
  border-color: #00e5cf;
  color: #fff;
  transform: scale(1.08);
}
.bc-day.today { font-weight: 900; }
.bc-loading {
  text-align: center;
  padding: 1.5rem 0;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

/* ── Slot Picker ─────────────────────────────────────────────────────────── */

#bc-slot-section {
  margin-top: 1.25rem;
  animation: bc-slide-in .25s ease;
}
#bc-slot-section h3 {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: .75rem;
}
.bc-slots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.bc-slot {
  padding: .45rem .9rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.bc-slot:hover {
  background: rgba(0,150,136,.5);
  border-color: #00bfa5;
  transform: translateY(-1px);
}
.bc-slot.selected {
  background: #009688;
  border-color: #00e5cf;
}

/* ── Booking Form ────────────────────────────────────────────────────────── */

#bc-form-section {
  margin-top: 1.25rem;
  animation: bc-slide-in .25s ease;
}
#bc-form-section h3 {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: .85rem;
}
.bc-summary {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}
.bc-summary strong { color: #fff; }

.bc-form { display: flex; flex-direction: column; gap: .65rem; }
.bc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media (max-width: 500px) { .bc-form-row { grid-template-columns: 1fr; } }

.bc-input {
  width: 100%;
  padding: .6rem .85rem;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 9px;
  color: #fff;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.bc-input::placeholder { color: rgba(255,255,255,.45); }
.bc-input:focus { border-color: #00bfa5; background: rgba(255,255,255,.15); }
.bc-input option { background: #090083; color: #fff; }

.bc-submit {
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, #009688, #00bfa5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: .25rem;
}
.bc-submit:hover { opacity: .9; transform: translateY(-1px); }
.bc-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.bc-back {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: .25rem;
  display: inline-block;
}
.bc-back:hover { color: #fff; }

.bc-error {
  background: rgba(231,76,60,.25);
  border: 1px solid rgba(231,76,60,.5);
  color: #ffb3ae;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .82rem;
}

/* ── Success Panel ───────────────────────────────────────────────────────── */

#bc-success-section {
  text-align: center;
  padding: 1.5rem 0;
  animation: bc-slide-in .3s ease;
}
.bc-success-icon { font-size: 3rem; margin-bottom: .75rem; }
#bc-success-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
#bc-success-section p { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: .35rem; }
.bc-new-booking {
  margin-top: 1.25rem;
  padding: .55rem 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 9px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.bc-new-booking:hover { background: rgba(255,255,255,.25); }

@keyframes bc-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
