/* ==========================================================================
   WASHO - High-Priority Booking System Styles
   Intuitive 5-Step Wizard, Mobile-First, Accessible, Real-Time Calculations
   ========================================================================== */

.booking-modal-card {
  max-width: 820px;
}

/* Wizard Stepper Progress Bar */
.booking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.booking-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-border);
  transform: translateY(-50%);
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2.5px solid var(--color-border);
  color: var(--color-slate-muted);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.step-indicator.active .step-bubble {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-orange-glow);
}

.step-indicator.completed .step-bubble {
  border-color: var(--color-success);
  background: var(--color-success);
  color: var(--color-white);
}

.step-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-slate-muted);
  white-space: nowrap;
}

.step-indicator.active .step-label {
  color: var(--color-deep-slate);
}

/* Wizard Body */
.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-deep-slate);
  margin-bottom: 6px;
}

.step-subtext {
  font-size: 0.9rem;
  color: var(--color-slate-muted);
  margin-bottom: 24px;
}

/* Vehicle Category Selector Pills */
.vehicle-cat-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.vehicle-cat-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-mist-grey);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vehicle-cat-card:hover {
  border-color: rgba(255, 107, 26, 0.5);
  background: var(--color-white);
}

.vehicle-cat-card.selected {
  border-color: var(--color-orange);
  background: var(--color-orange-light);
}

.vehicle-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-deep-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vehicle-cat-card.selected .vehicle-cat-icon {
  background: var(--color-orange);
  color: var(--color-white);
}

.vehicle-cat-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-deep-slate);
}

.vehicle-cat-desc {
  font-size: 0.78rem;
  color: var(--color-slate-muted);
}

/* Quick Model Chips */
.quick-models-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.model-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--color-mist-grey);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-deep-slate);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.model-chip:hover {
  background: var(--color-orange-light);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* Step 2: Location Option Cards */
.location-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.location-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 26, 0.4);
}

.location-card.selected {
  border-color: var(--color-orange);
  background: #FFFDFB;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.15);
}

.loc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.loc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-ice-blue);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-card.selected .loc-card-icon {
  background: var(--color-orange);
  color: var(--color-white);
}

.loc-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-deep-slate);
}

.loc-card-desc {
  font-size: 0.88rem;
  color: var(--color-slate-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.loc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.location-detail-box {
  background: var(--color-mist-grey);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 14px;
}

/* Centre details styling */
.centre-info-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.centre-address-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-deep-slate);
  font-weight: 600;
}

.centre-address-line svg {
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Doorstep area status warning / info notice */
.area-notice-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 14px;
}

/* Step 3: Service Selection Cards */
.services-selection-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.service-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.service-select-row:hover {
  border-color: rgba(255, 107, 26, 0.4);
}

.service-select-row.selected {
  border-color: var(--color-orange);
  background: #FFFDFB;
}

.service-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-white);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.service-select-row.selected .custom-checkbox {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.service-row-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-deep-slate);
}

.service-row-info p {
  font-size: 0.84rem;
  color: var(--color-slate-muted);
}

.service-row-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.service-row-duration {
  font-size: 0.8rem;
  color: var(--color-slate-muted);
  font-weight: 600;
}

.service-row-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-deep-slate);
}

/* Step 4: Calendar & Slot Grid */
.calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-deep-slate);
}

.date-chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
}

.date-chip {
  flex: 0 0 76px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.date-chip:hover {
  border-color: var(--color-orange);
}

.date-chip.selected {
  background: var(--color-deep-slate);
  border-color: var(--color-deep-slate);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.date-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.chip-day {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-slate-muted);
}

.date-chip.selected .chip-day {
  color: #A5B6C4;
}

.chip-num {
  font-size: 1.25rem;
  font-weight: 800;
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.slot-btn {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-deep-slate);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--color-orange);
  background: var(--color-orange-light);
}

.slot-btn.selected {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 4px 12px var(--color-orange-glow);
}

.slot-btn:disabled {
  background: var(--color-mist-grey);
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
}

.slot-status-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.slot-btn.selected .slot-status-tag {
  color: rgba(255, 255, 255, 0.9);
}

/* Review Summary Box */
.booking-summary-card {
  background: var(--color-mist-grey);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.summary-row:last-child {
  border-bottom: none;
  padding-top: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-deep-slate);
}

.summary-label {
  color: var(--color-slate-muted);
  font-weight: 600;
}

.summary-value {
  color: var(--color-deep-slate);
  font-weight: 700;
  text-align: right;
}

/* Wizard Navigation Bar */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* Step 5: Booking Confirmation Screen */
.confirmation-screen {
  text-align: center;
  padding: 20px 0;
}

.conf-check-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.12);
}

.conf-ref-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-mist-grey);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-deep-slate);
  margin-bottom: 18px;
}

.conf-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.conf-status-tag.confirmed {
  background: #D1FAE5;
  color: #065F46;
}

.conf-status-tag.pending {
  background: #FEF3C7;
  color: #92400E;
}

.conf-actions-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .location-options-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-cat-selector {
    grid-template-columns: 1fr;
  }
  .booking-stepper {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}
