/* --- BOOKING PAGE STYLES --- */
.booking-page-body {
  background-color: #0a0f14;
  overflow-x: hidden;
}

.booking-main {
  position: relative;
  padding: 40px 0;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-main .container {
  width: min(95vw, 1700px);
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(14px, 2vw, 28px);
}

/* Glassmorphism Background Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}
.orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(116, 189, 214, 0.15);
  top: 5%;
  left: -5%;
}
.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(26, 42, 58, 0.6);
  bottom: 10%;
  right: 5%;
}
.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(116, 189, 214, 0.08);
  top: 40%;
  left: 45%;
}

.booking-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.booking-header h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 15px;
}
.booking-header p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Main Booking Layout */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  align-items: start;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* The Interface Wrapper */
.booking-interface {
  display: block;
  position: relative;
  min-height: 610px;
  width: 100%;
}

/* Column Animation Logic */
.booking-col {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-34px);
  transition:
    opacity 0.55s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.62s;
}

.booking-col.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity 0.55s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin: -8px 0 14px;
}

.step-link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.step-link:hover,
.step-link:focus-visible {
  color: var(--blue);
}

/* Glass Card Design */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 35px;
  border-radius: 4px;
  color: white;
  min-width: 0;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.glass-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

/* Calendar UI */
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cal-nav button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}
.cal-weeks {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.7rem;
  margin-bottom: 10px;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.c-day {
  padding: 12px 5px;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  transition: 0.3s;
  font-size: 0.85rem;
}
.c-day:hover:not(.empty) {
  background: var(--blue);
  color: var(--navy);
}
.c-day.selected {
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
}

/* Time Slots */
.timezone-info {
  font-size: 0.75rem;
  color: var(--blue);
  margin-bottom: 20px;
  opacity: 0.8;
}
.time-grid {
  display: grid;
  gap: 12px;
}
.t-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.t-slot:hover,
.t-slot.active {
  background: var(--blue);
  color: var(--navy);
  border-color: var(--blue);
}

/* Form Styling */
.glass-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.glass-form input,
.glass-form select,
.glass-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 8px;
  color: white;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

.glass-form select {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e8f2f6;
}

.glass-form select:invalid {
  color: rgba(255, 255, 255, 0.7);
}

.glass-form select option {
  background-color: #12202d;
  color: #e8f2f6;
}

.glass-form select option[disabled] {
  color: #86a7b8;
}

.glass-form select option:checked {
  background-color: #74bdd6;
  color: #1a2a3a;
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
  border-bottom-color: var(--blue);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-helper {
  font-size: 0.78rem;
  color: rgba(232, 242, 246, 0.78);
  line-height: 1.35;
}

#service[multiple] {
  min-height: 0;
  height: 44px;
  overflow: hidden;
}

.form-field label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
}

#businessDescription {
  min-height: 130px;
  resize: vertical;
}

.booking-form-notice {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 187, 120, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f9fb;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}

.booking-form-notice.active {
  display: block;
}

.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.booking-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-card {
  width: min(92vw, 560px);
  border: 1px solid rgba(116, 189, 214, 0.3);
  background: rgba(16, 24, 33, 0.96);
  color: white;
  padding: 30px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.booking-modal-card h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.booking-modal-card p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
}

.booking-modal-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-modal-card a:hover {
  color: #a9d9e8;
}

.booking-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.booking-modal-close:hover,
.booking-modal-close:focus-visible {
  color: white;
}

/* Summary Footer */
.booking-footer {
  margin-top: 0;
  text-align: left;
  opacity: 1;
  transition: opacity 1s ease;
}
.summary-box {
  display: block;
  padding: 25px;
  border: 1px dashed var(--blue);
  background: rgba(116, 189, 214, 0.05);
  color: white;
  position: sticky;
  top: 110px;
  width: 100%;
}
.summary-box span {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.3rem;
  font-family: "EB Garamond";
}

/* Responsive */
@media (max-width: 1100px) {
  .booking-main .container {
    width: min(97vw, 900px);
    padding: 0 14px;
  }
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .booking-footer {
    width: 100%;
    margin-top: 4px;
  }
  .booking-interface {
    min-height: 0;
  }
  .booking-col {
    position: static;
    inset: auto;
    display: none;
    transform: none;
    transition: opacity 0.35s ease;
  }
  .booking-col.active {
    display: block;
  }
  .glass-card {
    padding: 26px 20px;
  }
  .summary-box {
    position: static;
    padding: 18px 16px;
    border-style: solid;
  }
  .summary-box span {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

@media (max-width: 700px) {
  .input-group {
    grid-template-columns: 1fr;
  }
}

/* --- DYNAMIC BOOKING STATES --- */

/* Grey out weekends and booked slots */
.c-day.disabled,
.t-slot.disabled {
  opacity: 0.15;
  cursor: not-allowed !important;
  pointer-events: none; /* Prevents any clicking */
  filter: grayscale(100%);
}

/* Ensure the selected time slot looks active */
.t-slot.active {
  background: var(--blue) !important;
  color: var(--navy) !important;
  border-color: var(--blue) !important;
  font-weight: 700;
}

/* Loading state for the button */
.btn-processing {
  background: #718096 !important;
  pointer-events: none;
}

/* Success state for the button */
.btn-success {
  background: #48bb78 !important;
  pointer-events: none;
}
