/* ==========================================================================
   BOOKING MODAL + BOOKING SECTION
   The modal is the primary interaction (fast, no page jump). The #booking
   section embeds the same calendar inline for visitors who scroll there
   naturally — both point at the same real GoHighLevel widget.
   ========================================================================== */

.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(10, 10, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.booking-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 221;
  width: min(720px, 92vw);
  height: min(760px, 88vh);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.booking-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.booking-modal-body {
  flex: 1;
  position: relative;
}

.booking-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .booking-modal {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
    transform: none;
  }

  .booking-modal.is-open {
    transform: none;
  }
}

/* ---- Booking section (inline, always visible) ---- */

.booking-section-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.booking-frame {
  margin-top: 1.75rem;
  height: 700px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.booking-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.booking-fallback {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--charcoal-300);
}

.booking-fallback a {
  color: var(--accent-600);
  font-weight: 600;
}

@media (max-width: 640px) {
  .booking-frame { height: 600px; }
}
