/**
 * The Lakehouse Pizza Bar & Grill — Table Reservation Wizard Styles
 * Matches 3-step screenshots in SRS.md & table_booking_srs.md
 * File: website_assets/lakehouse/v2/css/reservation.css
 */

.reservation-wizard-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  color: #212529;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: max-width 0.3s ease;
}

.wizard-body {
  padding: clamp(20px, 4vw, 36px);
}

/* Step 1: Two Column Layout (Calendar + Controls) */
.wizard-step-1-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: clamp(20px, 4vw, 36px);
}

@media (max-width: 768px) {
  .wizard-step-1-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar Date Banner */
.cal-date-banner {
  background: #d9f3f9;
  color: #1a4b56;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Custom Calendar View */
.custom-calendar {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2d3748;
}

.cal-nav-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #718096;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
}

.cal-nav-btn:hover {
  background: #edf2f7;
  color: #2d3748;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #4a5568;
  margin-bottom: 10px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: #2d3748;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cal-day-cell:hover:not(.disabled) {
  background: #e2e8f0;
}

.cal-day-cell.selected {
  background: #bf9057 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.cal-day-cell.disabled {
  color: #cbd5e0;
  cursor: not-allowed;
  pointer-events: none;
}

/* Right Column Accordion Sections */
.wizard-accordion-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.wizard-accordion-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.98rem;
}

.wizard-accordion-body {
  padding: 16px 18px;
}

/* Day / Evening Radio Group */
.shift-radio-group {
  display: flex;
  gap: 24px;
}

.shift-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #4a5568;
}

.shift-radio-label input[type="radio"] {
  accent-color: #bf9057;
  width: 18px;
  height: 18px;
}

/* Guest Counter Stepper */
.people-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.people-count-box {
  width: 80px;
  height: 44px;
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3748;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #bf9057;
  background: #ffffff;
  color: #bf9057;
  border-radius: 6px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.stepper-btn:hover {
  background: #bf9057;
  color: #ffffff;
}

/* Time Slot Pills Grid */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 480px) {
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.time-slot-btn {
  padding: 9px 4px;
  border: 1px solid #bf9057;
  background: #ffffff;
  color: #bf9057;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot-btn:hover {
  background: rgba(191, 144, 87, 0.12);
}

.time-slot-btn.selected {
  background: #bf9057 !important;
  color: #ffffff !important;
}

.time-slot-btn.disabled {
  border-color: #e2e8f0;
  color: #a0aec0;
  background: #f7fafc;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* Step 2: Guest Details Form */
.booking-summary-banner {
  background: #d9f3f9;
  color: #1a4b56;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .step2-form-grid {
    grid-template-columns: 1fr;
  }
}

.res-form-group {
  margin-bottom: 16px;
  position: relative;
}

.res-form-input,
.res-form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #2d3748;
  background: #ffffff;
  transition: border-color 0.2s;
}

.res-form-input:focus,
.res-form-textarea:focus {
  outline: none;
  border-color: #bf9057;
  box-shadow: 0 0 0 3px rgba(191, 144, 87, 0.2);
}

.res-form-input.is-invalid {
  border-color: #e53e3e;
}

.res-form-textarea {
  height: 120px;
  resize: vertical;
}

.marketing-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #4a5568;
  cursor: pointer;
  margin-top: 14px;
}

.marketing-optin-label input[type="checkbox"] {
  accent-color: #bf9057;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.guarantee-disclaimer {
  color: #e53e3e;
  font-size: 0.88rem;
  margin-top: 18px;
  font-style: italic;
}

/* Step 3: Review Table */
.review-details-table {
  width: 100%;
  margin-bottom: 28px;
  border-collapse: collapse;
}

.review-details-table tr {
  border-bottom: 1px solid #edf2f7;
}

.review-details-table th {
  padding: 12px 0;
  text-align: left;
  font-weight: 700;
  color: #2d3748;
  width: 30%;
  font-size: 0.95rem;
}

.review-details-table td {
  padding: 12px 0;
  color: #4a5568;
  font-size: 0.95rem;
}

/* Wizard Button Controls */
.wizard-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}

.btn-wizard-back {
  background: #2d3748;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-wizard-back:hover {
  background: #1a202c;
}

.btn-wizard-next {
  background: #94a3b8;
  color: #ffffff;
  padding: 12px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-wizard-next.active {
  background: #bf9057;
}

.btn-wizard-next.active:hover {
  background: #a47835;
}

.btn-wizard-submit {
  background: #27ae60;
  color: #ffffff;
  padding: 12px 42px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-wizard-submit:hover {
  background: #219653;
}

/* Success Step Action Buttons */
.btn-wizard-outline-gold {
  background: #ffffff;
  color: #8c6020 !important;
  border: 2px solid #bf9057 !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-wizard-outline-gold:hover {
  background: #bf9057 !important;
  color: #ffffff !important;
  border-color: #bf9057 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(191, 144, 87, 0.4);
}

.btn-wizard-solid-gold {
  background: #bf9057 !important;
  color: #ffffff !important;
  border: 2px solid #bf9057 !important;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(191, 144, 87, 0.35);
}

.btn-wizard-solid-gold:hover {
  background: #a97b44 !important;
  border-color: #a97b44 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(191, 144, 87, 0.45);
}
