/* Modal Overlay */
.booking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);

  /* 🔥 FORCE it above EVERYTHING in Drupal */
  z-index: 99 !important;

  /* 🔥 BREAK stacking contexts */
  isolation: isolate;
}


.booking-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

/* Modal Container */
.booking-modal {
  background: #1a2332;
  color: #fff;
  border-radius: 15px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border: none !important;
}

.modal-header img{
    max-width: 222px;
    object-fit: contain;
}
.brand-name {
  font-size: 2em;
  font-weight: 300;
  margin: 0;
}

.back-btn {
  background: transparent;
  border: 1px solid #4a5568;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Step Management */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

.step-title {
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 10px;
}

.step-subtitle {
  color: #a0aec0;
  margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: #e8e4d9;
  color: #1a2332;
  padding: 30px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  min-height: 150px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232, 228, 217, 0.3);
}

.service-card.selected {
  background: #d4cdb4;
  box-shadow: 0 0 0 3px #fff;
}

.service-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.service-card .duration {
  color: #666;
  margin: 10px 0;
}

.service-card .price {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.2em;
}

/* Schedule Container */
.schedule-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Calendar */
.calendar-section h3 {
  margin-bottom: 20px;
  color: #e8e4d9;
}

#calendar {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header button {
  background: transparent;
  border: 1px solid #4a5568;
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  color: #a0aec0;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.date-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.date-cell:not(.disabled):hover {
  background: rgba(232, 228, 217, 0.1);
}

.date-cell.selected {
  background: #e8e4d9;
  color: #1a2332;
  font-weight: bold;
}

.date-cell.today {
  border: 2px solid #e8e4d9;
}

.date-cell.disabled {
  color: #4a5568;
  cursor: not-allowed;
}

.date-cell .dot {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  background: #e8e4d9;
  border-radius: 50%;
}

/* Time Slots */
.availability-text {
  color: #a0aec0;
  margin-bottom: 15px;
  font-size: 14px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.time-slot {
  background: transparent;
  border: 2px solid #4a5568;
  color: #fff;
  padding: 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.time-slot:hover {
  border-color: #e8e4d9;
}

.time-slot.selected {
  background: #e8e4d9;
  color: #1a2332;
  border-color: #e8e4d9;
}

/* Service Details Sidebar */
.service-details-sidebar {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.service-details-sidebar h3 {
  margin-bottom: 20px;
  color: #e8e4d9;
}

.selected-service-card {
  background: #e8e4d9;
  color: #1a2332;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.service-info h4 {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.service-info p {
  color: #666;
  margin: 5px 0;
}

.service-info .price {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 10px;
}

/* Buttons */
.btn-next,
.btn-book-now {
  width: 100%;
  background: #e8e4d9;
  color: #1a2332;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-next:hover,
.btn-book-now:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Contact Form */
.form-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.client-form h3,
.booking-summary h3 {
  margin-bottom: 20px;
  color: #e8e4d9;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 8px;
  color: #e8e4d9;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid #4a5568;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e8e4d9;
}

/* Booking Summary */
.booking-summary {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.booking-summary-card {
  background: #e8e4d9;
  color: #1a2332;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.consent-text {
  font-size: 12px;
  color: #a0aec0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .schedule-container,
  .form-container {
    grid-template-columns: 1fr;
  }
  
  .service-details-sidebar,
  .booking-summary {
    position: static;
  }
}
button[disabled], html input[disabled] {
    cursor: not-allowed;
}
.swal2-top-container {
  z-index: 99999 !important; /* higher than modal overlay */
}

.swal2-top-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    width: 100%;
    height: 100%;
}

.swal2-custom-popup {
  margin-top: 20px !important;  /* appear near top of page */
  position: fixed !important;    /* make sure it doesn't go under modal */
  top: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;    /* above everything */
}
