/* public_html/assets/css/appointment.css */
.appointment-container {
  position: relative;
}

.appointment-trigger {
  background-color: #FFD700;
  color: #2D1B69;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.appointment-trigger:hover {
  background-color: #FFC800;
}

.appointment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.appointment-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.calendar-container {
  margin-top: 1rem;
}

.date-picker {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.time-slots {
  margin-top: 1rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:not(:disabled):hover {
  background: #f0f0f0;
}

.time-slot.selected {
  background: #2D1B69;
  color: white;
  border-color: #2D1B69;
}

.time-slot.booked {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.confirm-button {
  width: 100%;
  padding: 0.8rem;
  background: #FFD700;
  color: #2D1B69;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-button:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.confirm-button:not(:disabled):hover {
  background: #FFC800;
}