/* ============================================================
   Booking Page Stylesheet
   Inherits main.css -- add booking-specific styles here
   ============================================================ */

/* ---- PAGE LAYOUT ---- */
.booking-page {
  min-height: 100vh;
  background: var(--ink);
  padding-top: 90px;
}
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  min-height: calc(100vh - 90px);
}
.booking-form-col {
  padding: 52px 56px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.booking-sidebar-col {
  padding: 52px 40px;
  background: rgba(255,255,255,.02);
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

/* ---- STEP INDICATOR ---- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.step-item.active { color: var(--text-primary); }
.step-item.done   { color: var(--success); }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-item.active .step-dot { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.step-item.done   .step-dot { background: rgba(34,197,94,.15); border-color: var(--success); color: var(--success); }
.step-connector {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 0 12px;
  max-width: 40px;
}

/* ---- FORM SECTIONS ---- */
.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.form-section:last-of-type { border: none; margin-bottom: 0; }
.form-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }

/* ---- UPLOAD AREA ---- */
.upload-zone {
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  background: rgba(255,255,255,.02);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-icon { font-size: 36px; margin-bottom: 12px; }
.upload-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.upload-hint  { font-size: 13px; color: var(--text-muted); }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- CALENDAR ---- */
.calendar-wrap {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cal-month-label {
  font-size: 15px;
  font-weight: 600;
}
.cal-nav-btn {
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
  transition: all .2s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.cal-grid { padding: 12px 16px 16px; }
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.cal-dow-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: 4px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
}
.cal-day:hover:not(.cal-past):not(.cal-blocked):not(.cal-empty) {
  background: rgba(0,180,216,.15);
  color: var(--foam);
}
.cal-day.cal-today {
  border: 1px solid rgba(0,180,216,.4);
  color: var(--accent);
  font-weight: 600;
}
.cal-day.cal-selected {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.cal-day.cal-has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day.cal-selected::after { background: var(--ink); }
.cal-day.cal-past,
.cal-day.cal-blocked {
  opacity: .25;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.cal-empty { cursor: default; }

/* ---- TIME SLOTS ---- */
.slots-wrap { margin-top: 20px; }
.slots-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-ui);
}
.slot-btn:hover   { border-color: var(--accent); color: var(--foam); }
.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.no-slots-msg { font-size: 13px; color: var(--danger); padding: 8px 0; }

/* ---- BOOKING SIDEBAR ---- */
.sidebar-summary-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.summary-item:last-child { border: none; }
.summary-icon { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.summary-text { font-size: 14px; color: var(--text-secondary); }
.summary-val  { font-size: 14px; font-weight: 600; color: var(--chalk); margin-top: 2px; }

.ai-badge-wrap {
  margin-top: 28px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,180,216,.2);
  border-radius: var(--r-md);
  padding: 20px;
}
.ai-badge-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--foam); }
.ai-badge-body  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- SUCCESS STATE ---- */
.ai-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 20px;
}
.ai-processing .spinner-lg {
  width: 56px; height: 56px;
  border-width: 3px;
  border-color: rgba(0,180,216,.2);
  border-top-color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .booking-sidebar-col {
    position: static;
    max-height: none;
    border-top: 1px solid rgba(255,255,255,.06);
    order: -1;
  }
  .booking-form-col { padding: 36px 24px; }
  .booking-sidebar-col { padding: 28px 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
