/* ========================================
   Booking Calendar & Time Selection
   ======================================== */

.booking-section {
  margin-top: 16px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.booking-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
}

.booking-section__note {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #e0f2fe;
  border-radius: 6px;
  border-left: 3px solid #0ea5e9;
}

/* Calendar */
.booking-calendar {
  margin-bottom: 20px;
}

.booking-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.booking-calendar__month {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
}

.booking-calendar__legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
}

.booking-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.booking-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.booking-calendar__weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 0;
}

.booking-calendar__weekday--sun {
  color: #ef4444;
}

.booking-calendar__weekday--sat {
  color: #3b82f6;
}

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

.booking-calendar__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
  min-height: 44px;
}

.booking-calendar__day--empty {
  background: transparent;
}

.booking-calendar__day--past {
  color: #cbd5e1;
  background: #f1f5f9;
}

.booking-calendar__day--available {
  color: #003366;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.booking-calendar__day--available:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
}

.booking-calendar__day--available .booking-calendar__day-mark {
  text-decoration: underline;
  text-decoration-color: #0ea5e9;
  text-underline-offset: 2px;
}

.booking-calendar__day--partial {
  color: #003366;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.booking-calendar__day--partial:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.booking-calendar__day--partial .booking-calendar__day-mark {
  text-decoration: underline;
  text-decoration-color: #0ea5e9;
  text-underline-offset: 2px;
}

.booking-calendar__day--full {
  color: #cbd5e1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.booking-calendar__day--selected {
  background: #003366 !important;
  color: #fff !important;
  border-color: #003366 !important;
}

.booking-calendar__day--selected .booking-calendar__day-mark {
  text-decoration: none;
}

.booking-calendar__day-number {
  line-height: 1.2;
}

.booking-calendar__day-mark {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

/* Selected Date Display */
.booking-selected-date {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #003366;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.booking-selected-date.active {
  display: block;
}

/* Time Slots */
.booking-times {
  display: none;
  margin-bottom: 16px;
}

.booking-times.active {
  display: block;
}

.booking-times__title {
  font-size: 14px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.booking-times__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.booking-times__slot {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #003366;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-times__slot:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
}

.booking-times__slot--selected {
  background: #003366 !important;
  color: #fff !important;
  border-color: #003366 !important;
}

.booking-times__slot--other {
  grid-column: 1 / -1;
  background: #f8fafc;
  border-style: dashed;
}

/* Other Time Input */
.booking-other-time {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
}

.booking-other-time.active {
  display: block;
}

.booking-other-time__label {
  font-size: 13px;
  font-weight: 600;
  color: #003366;
  margin-bottom: 12px;
  display: block;
}

.booking-other-time__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-other-time__num {
  width: 72px;
  padding: 10px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
}

.booking-other-time__num:focus {
  outline: none;
  border-color: #0ea5e9;
}

.booking-other-time__sep {
  font-size: 18px;
  font-weight: 600;
  color: #003366;
}

.booking-other-time__error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  min-height: 20px;
}

/* Hidden inputs */
.booking-hidden-inputs {
  display: none;
}
