/* Appointment Modal Styles */
.appointment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black-alpha-80);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}





/* Date picker styling */
.date-picker {
  position: relative;
  margin: 20px 0;
}

.date-picker input[type="date"] {
  position: relative;
  padding-right: 45px; /* Espacio para el ícono */
}

/* Ícono de calendario personalizado */
.date-picker::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  color: var(--gold-crayola);
  opacity: 0.7;
}

/* Ocultar el ícono nativo en Chrome/Edge cuando sea necesario */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}








.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.modal-content {
  position: relative;
  background-color: var(--eerie-black-2);
  border: 1px solid var(--white-alpha-10);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--white-alpha-10);
}

.modal-header .close-btn {
  background: none;
  border: 1px solid var(--white-alpha-20);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-1);
}

.modal-header .close-btn:hover {
  color: var(--gold-crayola);
  border-color: var(--gold-crayola);
}

.modal-body {
  padding: 30px;
}

.step {
  animation: fadeIn 0.3s ease-in;
}

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

/* Slots grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.time-slot {
  background-color: var(--eerie-black-3);
  border: 2px solid var(--white-alpha-10);
  color: var(--white);
  padding: 15px 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-1);
  font-weight: var(--weight-bold);
}

.time-slot:hover {
  border-color: var(--gold-crayola);
  background-color: var(--eerie-black-4);
}

.time-slot.selected {
  background-color: var(--gold-crayola);
  color: var(--black);
  border-color: var(--gold-crayola);
}

.time-slot.disabled {
  background-color: var(--smoky-black-2);
  color: var(--quick-silver);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Appointment summary */
.appointment-summary {
  background-color: var(--eerie-black-3);
  border: 1px solid var(--white-alpha-10);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.appointment-summary h4 {
  color: var(--gold-crayola);
  margin-bottom: 15px;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.form-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Success message */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-message ion-icon {
  margin-bottom: 20px;
}

.success-message h3 {
  color: var(--gold-crayola);
  margin-bottom: 15px;
}

/* Loading state */
.loading-step {
  text-align: center;
  padding: 60px 20px;
}

.loading-container .circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  border: 3px solid var(--white-alpha-20);
  border-top-color: var(--gold-crayola);
  margin: 0 auto 20px;
  animation: rotate360 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header,
  .modal-body {
    padding: 20px;
  }
  
  .slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    max-width: none;
  }
}
