/* Booking wizard styles */
.step-indicator {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
#booking-wizard .step {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: bold;
}
.step-label { font-size: .85rem; color: var(--fa-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#booking-wizard .step.active { background: linear-gradient(90deg, var(--fa-primary), var(--fa-secondary)); color: #fff; }
.calendar-day {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.2s ease;
}
.calendar-day:hover {
    background-color: #e9ecef;
}
.calendar-day.selected { background-color: var(--fa-primary); color: #fff; }
/* Holiday style */
.calendar-day.holiday {
    background-color: #ffebee;
    color: #d32f2f;
    position: relative;
}
.calendar-day.holiday:hover {
    background-color: #ffcdd2;
}
.calendar-day.holiday::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #d32f2f;
}
.time-slot {
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}
.time-slot:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}
.time-slot.selected { background-color: var(--fa-primary); color: #fff; border-color: var(--fa-primary); }
.employee-card, .service-card {
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}
.employee-card:hover, .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(2,8,23,.12);
}

/* Wizard compact mode for hero */
.wizard-compact .card { border: 1px solid #dbe7e2; border-radius: 14px; box-shadow: 0 12px 24px rgba(2,8,23,.06); }
.wizard-compact .card-body { padding: .6rem .85rem; }
.wizard-compact .card-title { font-size: 1rem; }
.wizard-compact .step { width: 32px; height: 32px; }
.wizard-compact .step-label { display: none; }
.wizard-compact .wizard-steps { display: none !important; }
.wizard-compact .calendar-day { width: 30px; height: 30px; }
.wizard-compact .table th, .wizard-compact .table td { padding: .25rem; }
.wizard-compact .btn { border-radius: .75rem; }
.wizard-compact .employee-card .rounded-circle { width: 40px !important; height: 40px !important; }
.wizard-compact .service-card h5 { font-size: 1rem; }
.wizard-compact .service-card .card-text { margin-bottom: .5rem; }

/* Brand on outline buttons only inside wizard */
#booking-wizard .btn-outline-primary { border-color: var(--fa-primary); color: var(--fa-primary); }
#booking-wizard .btn-outline-primary:hover { background-color: var(--fa-primary); color: #fff; }
#booking-wizard .service-card.border-primary,
#booking-wizard .employee-card.border-primary {
  border-color: var(--fa-primary) !important;
  box-shadow: 0 0 0 .2rem rgba(45,122,106,.15) !important;
}

/* Form styles to match mint theme */
#booking-wizard .form-control,
#booking-wizard .form-select { border-color:#dbe7e2; border-radius:10px; }
#booking-wizard .form-control:focus,
#booking-wizard .form-select:focus { border-color: var(--fa-primary); box-shadow: 0 0 0 .2rem rgba(45,122,106,.12); }
#booking-wizard .btn-primary,
#booking-wizard .btn-success { background: var(--fa-primary); border:none; border-radius:999px; font-weight:700; }
#booking-wizard .btn-primary:hover,
#booking-wizard .btn-success:hover { filter:brightness(.95); }

/* Accessibility: focus-visible outlines for key interactive blocks */
#booking-wizard .service-card:focus-visible,
#booking-wizard .employee-card:focus-visible,
#booking-wizard .calendar-day.available:focus-visible,
#booking-wizard .time-slot:focus-visible,
#booking-wizard .btn:focus-visible {
  outline: 3px solid var(--fa-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 .2rem rgba(45,122,106,.15);
}

/* Step indicator via ARIA */
.step[aria-current="step"] { background: linear-gradient(90deg, var(--fa-primary), var(--fa-secondary)); color:#fff; }

/* Calendar day enhancements */
.calendar-day.available:hover { background-color: #e9f5f1; }
.calendar-day[aria-current="date"],
.calendar-day.selected { background-color: var(--fa-primary); color:#fff; }

/* Time slot toggle state */
.time-slot[aria-pressed="true"] { background-color: var(--fa-primary); color:#fff; border-color: var(--fa-primary); }

@media (prefers-reduced-motion: reduce) {
  .employee-card:hover, .service-card:hover { transform: none; }
}

/* ----------------------------------------------------------------------
   Popup de reserva — mismo lenguaje visual que el modal del panel interno
   (.modal-overlay > .modal > .modal-header/.modal-body, ver
   resources/css/styles.css sección "Modal" y
   resources/views/livewire/appointment-form.blade.php). Esta plantilla
   pública (layouts/oculialcoy) no carga resources/css/app.css (Tailwind +
   Flux del panel), así que las reglas se replican aquí con las variables
   de marca de la demo (--fa-primary, --fa-text, --fa-muted de
   public/css/oculialcoy.css) y se scopean a #bookingModal para no afectar
   a otras páginas que reutilizan <x-booking.wizard> sin este popup
   (hero embebido, resources/views/public/booking.blade.php). NO tocar
   resources/css/styles.css: esto es una réplica del mismo lenguaje visual,
   no una importación de esa hoja de estilos. ---------------------------- */

#bookingModal.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

#bookingModal.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#bookingModal .modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 8, 23, .28);
  transform: translateY(16px);
  transition: transform .2s ease;
}

#bookingModal.modal-overlay.active .modal {
  transform: translateY(0);
}

#bookingModal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#bookingModal .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fa-text);
  margin: 0;
}

#bookingModal .modal-close {
  background: none;
  border: none;
  color: var(--fa-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  line-height: 0;
  transition: background .15s ease, color .15s ease;
}

#bookingModal .modal-close:hover,
#bookingModal .modal-close:focus-visible {
  background: #f3f4f6;
  color: var(--fa-text);
}

#bookingModal .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* El wizard vive dentro de un .card con su propia sombra: dentro del popup
   ya no hace falta ese marco duplicado (el propio .modal ya lo aporta). */
#bookingModal .modal-body #booking-wizard > .row > .col-lg-12 > .card {
  border: 0;
  box-shadow: none;
}
#bookingModal .modal-body #booking-wizard > .row > .col-lg-12 > .card > .card-body {
  padding: 0;
}

/* Indicador de pasos: círculos numerados conectados por una línea, igual
   que .wizard-step/.wizard-step-num/.wizard-step-line del panel interno,
   sustituyendo el look de "pills" de Bootstrap. */
#bookingModal .wizard-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 1.5rem;
}

#bookingModal .wizard-steps > [class*="col-"] {
  flex: 1 1 0;
  max-width: none;
  padding: 0;
  position: relative;
}

#bookingModal .wizard-steps > [class*="col-"]:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

#bookingModal .step-indicator {
  position: relative;
  z-index: 1;
  height: auto;
}

#bookingModal #booking-wizard .step {
  width: 28px;
  height: 28px;
  font-size: 12px;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: var(--fa-muted);
}

#bookingModal #booking-wizard .step.active {
  background: var(--fa-primary);
  border-color: var(--fa-primary);
  color: #fff;
}

#bookingModal .step-label {
  font-size: 11px;
  margin-top: 4px;
}

@media (max-width: 575.98px) {
  #bookingModal .modal { border-radius: 16px; max-height: 94vh; }
  #bookingModal .modal-body { padding: 16px; }
  #bookingModal .step-label { display: none; }
}
