/* ============================================================
   Professional Winner™
   BOOKING UI — AUTHORITATIVE STYLESHEET

   File:
     /public_html/assets/css/booking.css

   Purpose:
     - Owns ALL booking-related UI and state
     - Availability (date + time pills)
     - Time selection state
     - Booking modal

   Rules:
     - Loaded AFTER main.css and forms.css
     - No booking styles allowed elsewhere
     - Scoped to .booking-wrap to avoid collisions

   Status:
     STABILIZED — DO NOT FRAGMENT
   ============================================================ */


/* ============================================================
   Layout
   ============================================================ */

.booking-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.booking-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}


/* ============================================================
   Availability Section
   ============================================================ */

.availability-section {
  margin-top: 16px;
}

.availability-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.availability-status {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.availability-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ============================================================
   Time Pills
   ============================================================ */

.booking-wrap .time-pill {
  appearance: none;
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  color: #111827;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease,
              color 0.15s ease,
              border-color 0.15s ease;
}

.booking-wrap .time-pill:hover {
  background-color: #e5e7eb;
}


/* ============================================================
   Time Pill — SELECTED STATE (LOCKED)
   ============================================================ */
/*
 * This rule MUST win.
 * It intentionally overrides hover/focus/global button styles.
 * Do not move or duplicate elsewhere.
 */

.booking-wrap .time-pill.selected,
.booking-wrap .time-pill.selected:hover,
.booking-wrap .time-pill.selected:focus {
  background-color: #9ca3af;
  border-color: #6b7280;
  color: #111827;
  font-weight: 600;
}


/* ============================================================
   Booking Modal
   ============================================================ */

.pw-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.pw-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.pw-modal-card {
  position: relative;
  width: min(92vw, 420px);
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 1;
}

.pw-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.pw-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
}

.pw-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

