/* ========================================
   BOOKING PAGE STYLES
   ======================================== */

.booking-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 40%);
}

/* ---- Hero ---- */

.booking-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.booking-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--charcoal);
}

.booking-hero__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.booking-hero__image {
  flex-shrink: 0;
}
.booking-hero__image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

/* ---- Steps ---- */

.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.3s var(--ease);
}
.booking-step--active {
  color: var(--sage);
}
.booking-step--completed {
  color: var(--sage);
}

.booking-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--sand);
  color: var(--warm-gray);
  border: 2px solid var(--warm-gray);
  transition: all 0.3s var(--ease);
}
.booking-step--active .booking-step__number {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.booking-step--completed .booking-step__number {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.booking-step__line {
  width: 60px;
  height: 2px;
  background: var(--warm-gray);
  margin: 0 12px;
  transition: background 0.3s var(--ease);
}
.booking-step__line--active {
  background: var(--sage);
}

/* ---- Panels ---- */

.booking-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  animation: panelIn 0.4s var(--ease);
}
.booking-panel--hidden {
  display: none;
}

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

.booking-panel__title {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--charcoal);
}

.booking-panel__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

/* ---- Service Options ---- */

.service-options {
  display: grid;
  gap: 12px;
}

.service-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-option__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.service-option__card:hover {
  border-color: var(--sage-light);
  background: var(--sage-bg);
}

.service-option input:checked + .service-option__card {
  border-color: var(--sage);
  background: var(--sage-bg);
  box-shadow: 0 0 0 3px rgba(123, 158, 107, 0.15);
}

.service-option__info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.service-option__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-option__meta {
  flex-shrink: 0;
  text-align: right;
}
.service-option__duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(123, 158, 107, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Calendar ---- */

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calendar {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px;
}

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

.calendar__month {
  font-size: 1.1rem;
  font-weight: 600;
}

.calendar__nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  transition: all 0.2s;
}
.calendar__nav:hover {
  background: var(--sand);
  color: var(--charcoal);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  background: none;
  color: var(--charcoal);
}
.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
  background: var(--sage-bg);
  color: var(--sage);
}
.cal-day--today {
  font-weight: 700;
  border: 2px solid var(--sage-light);
}
.cal-day--selected {
  background: var(--sage) !important;
  color: var(--white) !important;
  font-weight: 700;
}
.cal-day--disabled {
  color: var(--warm-gray);
  cursor: not-allowed;
  opacity: 0.4;
}
.cal-day--empty {
  cursor: default;
}
.cal-day--has-slots {
  position: relative;
}
.cal-day--has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---- Time Slots ---- */

.timeslots-panel {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 300px;
}

.timeslots-panel__title {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.timeslots-panel__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  color: var(--warm-gray);
}
.timeslots-panel__placeholder svg {
  margin-bottom: 12px;
  opacity: 0.5;
}
.timeslots-panel__placeholder p {
  font-size: 0.9rem;
}

.timeslots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.timeslot {
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--white);
  color: var(--charcoal);
}
.timeslot:hover {
  border-color: var(--sage-light);
  background: var(--sage-bg);
}
.timeslot--selected {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
  color: var(--white) !important;
}
.timeslot--booked {
  background: var(--sand);
  border-color: transparent;
  color: var(--warm-gray);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.5;
}

.timeslots__loading {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Booking Summary ---- */

.booking-summary {
  background: var(--sage-bg);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
}
.booking-summary__row:not(:last-child) {
  border-bottom: 1px solid rgba(123, 158, 107, 0.2);
}
.booking-summary__label {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.booking-summary__value {
  font-weight: 600;
  color: var(--charcoal);
}

/* ---- Booking Form ---- */

.booking-form .form-group {
  margin-bottom: 20px;
}
.booking-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.booking-form .form-group input,
.booking-form .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.booking-form .form-group input:focus,
.booking-form .form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(123, 158, 107, 0.1);
}
.booking-form .form-group textarea { resize: vertical; }

.booking-form__status {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}
.booking-form__status--error { color: #c0392b; }

/* ---- Success ---- */

.booking-success {
  text-align: center;
  padding: 60px 40px;
}

.booking-success__icon {
  color: var(--sage);
  margin-bottom: 20px;
}
.booking-success__icon svg {
  width: 80px;
  height: 80px;
}

.booking-success h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.booking-success__msg {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.booking-success__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-success .booking-summary {
  max-width: 400px;
  margin: 0 auto 32px;
  text-align: left;
}

/* ---- Booking nav link highlight ---- */

.navbar__link--booking {
  color: var(--sage) !important;
}
.navbar__link--booking::after {
  background: var(--sage) !important;
}

/* ---- Sage button ---- */

.btn--sage {
  background: var(--sage);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.85rem;
  margin-top: 12px;
}
.btn--sage:hover {
  background: #6a8d5b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 158, 107, 0.3);
}

/* ---- WhatsApp group in contact ---- */

.contact__whatsapp-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1023px) {
  .calendar-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .booking-page {
    padding: 100px 0 60px;
  }

  .booking-hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .booking-hero__subtitle {
    margin-inline: auto;
  }

  .booking-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  .booking-step__line {
    width: 30px;
    margin: 0 4px;
  }
  .booking-step {
    font-size: 0.8rem;
    gap: 6px;
  }
  .booking-step__number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .booking-panel {
    padding: 24px 16px;
  }

  .service-option__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .timeslots {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-panel__actions {
    flex-direction: column;
  }
  .booking-panel__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-success__actions {
    flex-direction: column;
  }
  .booking-success__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
