/* ===================================================
   GIFT NAKAYINGA — Booking Popup Styles
   booking.css
   =================================================== */

/* ===== BOOKING MODAL ===== */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-mid) var(--ease-smooth);
}

.booking-modal.active {
  opacity: 1;
  pointer-events: all;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28,20,16,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.booking-modal__card {
  position: relative;
  background: var(--ivory);
  width: 100%;
  max-width: 680px;
  max-height: 92dvh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--duration-mid) var(--ease-smooth);
}
.booking-modal.active .booking-modal__card {
  transform: translateY(0) scale(1);
}

/* Header */
.booking-modal__header {
  background: var(--maroon);
  padding: 2rem 2.5rem 1.5rem;
  position: relative;
  flex-shrink: 0;
}

.booking-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--duration-fast);
  background: none;
  font-family: sans-serif;
}
.booking-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.booking-modal__header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ivory);
  font-style: italic;
  line-height: 1.1;
}

.booking-modal__header p {
  font-size: var(--text-sm);
  color: rgba(250,246,238,0.7);
  margin-top: 0.35rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Steps indicator */
.booking-steps {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
  gap: 0;
}

.booking-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.booking-step-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 1px;
  background: rgba(250,246,238,0.2);
}

.booking-step-dot.completed:not(:last-child)::after {
  background: var(--gold);
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(250,246,238,0.5);
  background: transparent;
  transition: all var(--duration-mid);
  z-index: 1;
  font-family: var(--font-body);
}

.booking-step-dot.active .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.booking-step-dot.completed .step-circle {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--ivory);
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.45);
  margin-top: 5px;
  text-align: center;
}
.booking-step-dot.active .step-label { color: var(--gold-light); }
.booking-step-dot.completed .step-label { color: rgba(250,246,238,0.6); }

/* Body */
.booking-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  scroll-behavior: smooth;
}

.booking-step {
  display: none;
  animation: stepIn 0.4s var(--ease-out) forwards;
}
.booking-step.active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(15px); }
  to   { opacity: 1; transform: translateX(0); }
}

.booking-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--maroon);
  margin-bottom: 0.4rem;
}

.booking-step > p {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

/* Calendar */
.booking-calendar {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--ivory-deeper);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--maroon);
  color: var(--ivory);
}

.calendar-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,0.25);
  background: transparent;
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: 1rem;
}
.calendar-nav button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.calendar-nav h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.calendar-grid {
  padding: 1rem;
}

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

.calendar-weekdays span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-align: center;
  padding: 4px 0;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
  color: var(--charcoal);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--gold-pale);
  color: var(--maroon);
}
.calendar-day.selected {
  background: var(--maroon) !important;
  color: var(--ivory) !important;
}
.calendar-day.today {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 500;
}
.calendar-day.disabled {
  color: var(--warm-gray-lt);
  cursor: not-allowed;
  opacity: 0.4;
}
.calendar-day.empty { cursor: default; }

/* Time Slots */
.time-slots {
  margin-top: 1rem;
}

.time-slots h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.time-slot {
  padding: 0.5rem;
  border: 1px solid var(--ivory-deeper);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--charcoal);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  background: white;
}
.time-slot:hover { border-color: var(--gold); color: var(--gold-dark); }
.time-slot.selected { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.time-slot.booked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* Option Cards (Who / Where) */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.option-card {
  border: 1.5px solid var(--ivory-deeper);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all var(--duration-mid);
  background: white;
  text-align: left;
}
.option-card:hover { border-color: var(--gold); background: var(--gold-pale); }
.option-card.selected {
  border-color: var(--maroon);
  background: rgba(92,26,46,0.04);
}

.option-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.option-card__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.option-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--warm-gray);
  line-height: 1.5;
}

.option-card.selected .option-card__title { color: var(--maroon); }

/* Form Fields */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--ivory-deeper);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--charcoal);
  background: white;
  transition: border-color var(--duration-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Footer Nav */
.booking-modal__footer {
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--ivory-deeper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  flex-shrink: 0;
}

.booking-nav-btns {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.btn--back {
  background: transparent;
  color: var(--warm-gray);
  border: 1.5px solid var(--ivory-deeper);
  padding: 0.7rem 1.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.btn--back:hover { border-color: var(--warm-gray); color: var(--charcoal); }

.btn--next {
  background: var(--gold);
  color: var(--charcoal);
  border: 1.5px solid var(--gold);
  padding: 0.7rem 1.75rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.btn--next:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--submit {
  background: var(--maroon);
  color: var(--ivory);
  border: 1.5px solid var(--maroon);
  padding: 0.7rem 2rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.btn--submit:hover { background: var(--maroon-deep); }

/* Success State */
.booking-success {
  text-align: center;
  padding: 2rem 1rem;
}

.booking-success__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.booking-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--maroon);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.booking-success p {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  max-width: 380px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .booking-modal__header,
  .booking-modal__body,
  .booking-modal__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .option-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .booking-modal__card { border-radius: var(--radius-md); }
}
