/* ==========================================================================
   Hazem Medical Booking Public Style (Online Glassmorphic Calendar)
   ========================================================================== */

:root {
  --hazem-teal: #0B7387;
  --hazem-navy: #0E294B;
  --hazem-orange: #F99236;
  --hazem-gray-light: rgba(248, 250, 252, 0.4);
  --hazem-border: rgba(226, 232, 240, 0.5);
  --hazem-text: #475569;
  --hazem-shadow: 0 20px 50px rgba(14, 41, 75, 0.08);
  --hazem-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphic card wrapper */
.hazem-booking-card-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--hazem-shadow);
  padding: 40px;
  font-family: 'Outfit', sans-serif;
  color: var(--hazem-navy);
  border-radius: 24px; /* Enhanced curvature */
}

/* High-Contrast Header Section */
.hazem-booking-header {
  background: var(--hazem-navy);
  color: #ffffff;
  padding: 35px 30px;
  border-radius: 20px; /* Curved */
  margin-bottom: 35px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.hazem-booking-title {
  color: #ffffff !important;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.hazem-booking-subtitle {
  color: #e2e8f0 !important;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Stepper indicators with premium visibility contrast */
.hazem-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hazem-step-badge {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hazem-navy);
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(14, 41, 75, 0.15);
  padding: 8px 18px;
  border-radius: 30px; /* Pill shaped */
  transition: var(--hazem-transition);
}

.hazem-step-badge.active {
  background-color: var(--hazem-teal);
  color: #ffffff;
  border-color: var(--hazem-teal);
  box-shadow: 0 4px 15px rgba(11, 115, 135, 0.25);
}

.hazem-step-badge.completed {
  background-color: var(--hazem-navy);
  color: #ffffff;
  border-color: var(--hazem-navy);
}

.hazem-step-line {
  flex-grow: 1;
  height: 2px;
  background-color: rgba(14, 41, 75, 0.1);
  margin: 0 10px;
}

/* Steps content */
.hazem-booking-step {
  display: none;
}

.hazem-booking-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

.hazem-step-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: var(--hazem-navy);
}

/* Calendar Container Styles */
.hazem-calendar-container {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(14, 41, 75, 0.02);
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.hazem-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--hazem-navy);
  margin-bottom: 20px;
  padding: 0 5px;
}

.hazem-calendar-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--hazem-border);
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--hazem-navy);
  transition: var(--hazem-transition);
  padding: 0;
  line-height: 1;
}

.hazem-calendar-btn:hover {
  background: var(--hazem-teal);
  color: #ffffff;
  border-color: var(--hazem-teal);
}

.hazem-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  color: var(--hazem-text);
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.8;
}

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

.hazem-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 12px;
  cursor: not-allowed;
  color: #cbd5e1;
  transition: var(--hazem-transition);
  border: 1px solid transparent;
}

/* Clickable active date in month */
.hazem-calendar-day.active-day {
  cursor: pointer;
  color: var(--hazem-navy);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 115, 135, 0.15);
}

.hazem-calendar-day.active-day:hover {
  border-color: var(--hazem-teal);
  color: var(--hazem-teal);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 115, 135, 0.1);
}

/* Selected active date */
.hazem-calendar-day.selected-day {
  background: var(--hazem-orange) !important;
  color: #ffffff !important;
  border-color: var(--hazem-orange) !important;
  box-shadow: 0 6px 15px rgba(249, 146, 54, 0.35);
  transform: scale(1.05);
}

.hazem-calendar-day.empty-day {
  visibility: hidden;
}

/* Time slots container & active/disabled states */
.hazem-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.hazem-slot-grid-item {
  border: 1px solid rgba(11, 115, 135, 0.15);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 14px; /* Curved */
  transition: var(--hazem-transition);
  color: var(--hazem-navy);
}

.hazem-slot-grid-item:hover {
  border-color: var(--hazem-teal);
  color: var(--hazem-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 115, 135, 0.15);
}

.hazem-slot-grid-item.active {
  background-color: var(--hazem-orange) !important;
  border-color: var(--hazem-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(249, 146, 54, 0.35);
}

/* Booked but visible disabled slot */
.hazem-slot-grid-item.disabled-slot {
  background-color: rgba(226, 232, 240, 0.45);
  border-color: rgba(226, 232, 240, 0.6);
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
  text-decoration: line-through;
  pointer-events: none;
  box-shadow: none;
}

.hazem-slot-grid-item.disabled-slot:hover {
  transform: none;
  box-shadow: none;
}

/* Step 3 Form details and payment */
.hazem-booking-form-row {
  display: flex;
  gap: 20px;
}

.hazem-booking-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hazem-booking-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hazem-navy);
}

.hazem-booking-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--hazem-border);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--hazem-navy);
  font-size: 14.5px;
  font-family: inherit;
  border-radius: 14px; /* Curved */
  transition: var(--hazem-transition);
}

.hazem-booking-input:focus {
  outline: none;
  border-color: var(--hazem-teal);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 115, 135, 0.1);
}

select.hazem-booking-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230b7387' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

/* Footers and buttons */
.hazem-step-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  border-top: 1px solid var(--hazem-border);
  padding-top: 25px;
}

.hazem-booking-btn {
  padding: 14px 30px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 30px; /* Pill curves */
  transition: var(--hazem-transition);
}

.hazem-booking-btn-primary {
  background-color: var(--hazem-teal);
  color: #ffffff;
}

.hazem-booking-btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 115, 135, 0.2);
}

.hazem-booking-btn-primary:disabled {
  background-color: rgba(226, 232, 240, 0.8);
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hazem-booking-btn-secondary {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--hazem-navy);
  border: 1px solid var(--hazem-border);
}

.hazem-booking-btn-secondary:hover {
  background-color: #ffffff;
  border-color: var(--hazem-navy);
}

/* Alerts and loaders */
.hazem-booking-loader {
  padding: 35px;
  text-align: center;
  font-weight: 700;
  color: var(--hazem-teal);
  font-size: 15px;
}

.hazem-booking-feedback {
  animation: slideIn 0.3s ease-out;
  border-radius: 16px; /* Curved */
}

.hazem-booking-feedback.success {
  background-color: rgba(236, 253, 245, 0.85);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.hazem-booking-feedback.error {
  background-color: rgba(254, 242, 242, 0.85);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Utilities */
.mt-15 { margin-top: 15px; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .hazem-booking-card-wrapper {
    padding: 25px 20px;
  }
  
  .hazem-booking-form-row {
    flex-direction: column;
    gap: 15px;
  }

  .hazem-steps-indicator {
    margin-bottom: 30px;
  }

  .hazem-step-badge {
    font-size: 11.5px;
    padding: 6px 14px;
  }
}
