/* ═══════════════════════════════════════════════════════════
   Interaction-triggered components
   Loaded asynchronously — not needed for initial render.
   ═══════════════════════════════════════════════════════════ */

/* ─── Booking Modal ─── */
.booking-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.booking-modal.is-active { opacity: 1; pointer-events: auto; }
.booking-modal__overlay { position: absolute; inset: 0; }
.booking-modal__content {
  position: relative;
  background: linear-gradient(160deg, #1e1e1e, #141414);
  border: 1px solid rgba(128, 227, 28, 0.2);
  border-radius: 1.75rem;
  padding: 1.5rem 2rem 1.5rem;
  max-width: 780px;
  width: min(100%, 780px);
  max-height: 96vh;
  color: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.booking-modal.is-active .booking-modal__content { transform: translateY(0); opacity: 1; }
.booking-modal__close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.booking-modal__close:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.booking-modal__close:focus { outline: 3px solid rgba(128, 227, 28, 0.7); outline-offset: 3px; }
#bookingModalTitle { margin: 0; padding-right: 50px; line-height: 1.15; flex-shrink: 0; }
.booking-modal__subtitle { margin: 0 0 2px; font-size: 0.9rem; opacity: 0.85; flex-shrink: 0; }
.booking-modal__body {
  background: #212936;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 auto; width: 100%; overflow-y: auto; min-height: 0; position: relative;
}
.booking-modal__loader {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.9rem; opacity: 0.85; flex: 1 1 auto; min-height: 300px;
}
.booking-modal__loader[hidden] { display: none; }
.booking-modal__fallback {
  text-align: center; font-size: 0.9rem; flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.booking-modal__fallback[hidden] { display: none; }
.booking-modal__alt-link {
  text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0;
}
.booking-modal__alt-link a { color: #80E31C; font-weight: 600; text-decoration: none; }
.booking-modal__alt-link a:hover { text-decoration: underline; }
body.booking-modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .booking-modal__content { padding: 1rem 0.75rem 0.75rem; border-radius: 1.25rem; max-height: 100dvh; max-width: 100%; width: 100%; }
  #bookingModalTitle { padding-right: 48px; font-size: 1.25rem; }
  .booking-modal__subtitle { font-size: 0.8rem; margin-bottom: 0; }
  .booking-modal__body { padding: 10px 12px; gap: 8px; border-radius: 1rem; }
}

/* ─── Loader Dot ─── */
.loader-dot { width: 12px; height: 12px; border-radius: 50%; background: #80E31C; animation: loaderPulse 0.9s ease-in-out infinite; }

/* ─── TidyCal Embed ─── */
.tidycal-embed { margin: 2rem auto; max-width: 800px; min-height: 600px; background: #141414; transition: min-height 0.4s ease; overflow: hidden; }
.tidycal-embed iframe { width: 100% !important; border: none !important; background: transparent !important; min-height: 600px; border-radius: 0; transition: height 0.4s ease; display: block; scrollbar-width: none !important; -ms-overflow-style: none !important; }
.tidycal-embed iframe::-webkit-scrollbar { display: none !important; width: 0 !important; }
.tidycal-embed[hidden] { display: none !important; }
.booking-modal .tidycal-embed { margin: 0; max-width: none; width: 100%; min-height: 0; background: transparent; flex: 1 1 auto; display: flex; flex-direction: column; border-radius: 1rem; padding-top: 28px; padding-bottom: 32px; overflow: hidden; }
.booking-modal .tidycal-embed iframe { border-radius: 1rem; background: transparent !important; width: 100% !important; flex: 1 1 auto; min-height: 480px; margin-top: -28px; margin-bottom: -32px; }

/* ─── TidyCal section wrapper ─── */
.tidycal-section { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tidycal-section[hidden] { display: none !important; }
.tidycal-section__header { display: flex; align-items: center; gap: 8px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: #b0b0b0; margin-bottom: 12px; }
.tidycal-section__icon { display: inline-flex; align-items: center; color: #80E31C; }

/* ─── Service Modal ─── */
.service-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1200; }
.service-modal.is-active { display: flex; }
.service-modal__overlay { position: absolute; inset: 0; }
.service-modal__dialog { position: relative; background: linear-gradient(160deg, #1e1e1e, #141414); border: 1px solid rgba(128, 227, 28, 0.2); border-radius: 1.5rem; padding: 2rem; color: #fff; width: min(100%, 640px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32); display: flex; flex-direction: column; gap: 20px; }
.service-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.service-modal__close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.05); }
.service-modal__close:focus-visible { outline: 3px solid rgba(128, 227, 28, 0.85); outline-offset: 3px; }
.service-modal__header h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.6rem; margin: 0; }
.service-modal__body { display: flex; flex-direction: column; gap: 1.2rem; max-height: 60vh; overflow-y: auto; padding-right: 6px; }
.service-modal__body p { margin: 0; font-size: 1rem; line-height: 1.6; }
.service-modal__body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.service-modal__body li { font-size: 0.95rem; line-height: 1.5; }
.service-detail__media { margin-bottom: 1.25rem; border-radius: 1rem; overflow: hidden; background: linear-gradient(135deg, rgba(128, 227, 28, 0.14), rgba(255, 255, 255, 0.04)); box-shadow: 0 20px 35px -20px rgba(0, 0, 0, 0.65); }
.service-detail__media img { display: block; width: 100%; height: auto; }
body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .service-modal__dialog { padding: 1.75rem 1.375rem 1.875rem; }
  .service-modal__header h3 { font-size: 1.35rem; }
  .service-modal__body { max-height: 70vh; }
}

/* ─── YouTube Facade ─── */
.youtube-facade { background: #000; }

/* ─── Back to Top Button ─── */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; background: #80E31C; color: #0a0a0a; border: 1px solid rgba(128, 227, 28, 0.4); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(128, 227, 28, 0.4); }
.back-to-top svg { width: 24px; height: 24px; }

@media (max-width: 640px) {
  .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}

/* ─── Sticky Mobile CTA ─── */
.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(128, 227, 28, 0.15); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5); transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.sticky-mobile-cta.is-visible { transform: translateY(0); }
.sticky-mobile-cta__phone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #1e1e1e; color: #80E31C; border: 1px solid rgba(128, 227, 28, 0.3); flex-shrink: 0; transition: background 0.2s ease; }
.sticky-mobile-cta__phone:hover { background: #262626; color: #a8f72c; }
.sticky-mobile-cta__book { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; background: #80E31C; color: #0a0a0a; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; transition: background 0.2s ease, box-shadow 0.2s ease; }
.sticky-mobile-cta__book:hover { background: #a8f72c; color: #0a0a0a; box-shadow: 0 0 30px rgba(128, 227, 28, 0.4); }
.sticky-mobile-cta.is-visible ~ .back-to-top, .sticky-mobile-cta.is-visible + * .back-to-top { bottom: 80px; }

/* ─── Exit Intent Popup ─── */
.exit-intent-popup { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.exit-intent-popup.is-active { opacity: 1; pointer-events: auto; }
.exit-intent-popup__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.exit-intent-popup__content { position: relative; background: linear-gradient(160deg, #1e1e1e, #141414); border: 1px solid rgba(128, 227, 28, 0.25); border-radius: 1.5rem; padding: 2rem 2rem 1.75rem; max-width: 520px; width: 100%; color: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); transform: translateY(24px) scale(0.97); opacity: 0; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.exit-intent-popup.is-active .exit-intent-popup__content { transform: translateY(0) scale(1); opacity: 1; }
.exit-intent-popup__close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.exit-intent-popup__close:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
body.exit-popup-open { overflow: hidden; }

@media (max-width: 640px) {
  .exit-intent-popup__content { padding: 1.5rem 1.25rem 1.5rem; border-radius: 1.25rem; }
}

/* ─── Scroll Fade-in ─── */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Callback form ─── */
.callback-form { display: flex; flex-direction: column; gap: 14px; }
.callback-form__field { display: flex; flex-direction: column; gap: 6px; }
.callback-form__field label { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: #b0b0b0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.callback-form__required { color: #80E31C; font-weight: 800; }
.callback-form__optional { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: #7a7a7a; }
.callback-form__field input { background: rgba(20, 20, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 13px 14px; font-size: 1rem; color: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
.callback-form__field input::placeholder { color: #6a6a6a; }
.callback-form__field input:focus { outline: none; border-color: #80E31C; box-shadow: 0 0 0 3px rgba(128, 227, 28, 0.18); }
.callback-form__field select { background: rgba(20, 20, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 13px 14px; font-size: 1rem; color: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380E31C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.callback-form__field select:focus { outline: none; border-color: #80E31C; box-shadow: 0 0 0 3px rgba(128, 227, 28, 0.18); }
.callback-form__field input[aria-invalid="true"] { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.callback-form__submit { margin-top: 4px; }
.callback-form__spinner { width: 18px; height: 18px; margin-left: 8px; display: none; animation: callback-spin 0.8s linear infinite; }
.callback-form.is-submitting .callback-form__spinner { display: inline-block; }
.callback-form.is-submitting .callback-form__submit { opacity: 0.75; cursor: progress; }
.callback-form__legal { font-size: 0.78rem; color: #8a8a8a; text-align: center; margin: 4px 0 0; }
.callback-form__alt { font-size: 0.85rem; color: #b0b0b0; text-align: center; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.callback-form__alt a { color: #80E31C; font-weight: 600; text-decoration: none; }
.callback-form__alt a:hover { text-decoration: underline; }
.callback-form__success, .callback-form__error { text-align: center; padding: 20px 8px; }
.callback-form__success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(128, 227, 28, 0.15); color: #80E31C; margin: 0 auto 14px; }
.callback-form__success-icon svg { width: 28px; height: 28px; }
.callback-form__success h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 8px; }
.callback-form__success p, .callback-form__error p { color: #c0c0c0; font-size: 0.95rem; margin: 0; }
.callback-form__error a { color: #80E31C; font-weight: 700; }

/* ─── Light-theme overrides for callback-form ─── */
.theme-bright .callback-form__field label { color: #3a3a3a; }
.theme-bright .callback-form__field input { background: #ffffff; border: 1px solid #d4d4d4; color: #0a0a0a; }
.theme-bright .callback-form__field input::placeholder { color: #9a9a9a; }
.theme-bright .callback-form__field input:focus { border-color: #80E31C; box-shadow: 0 0 0 3px rgba(128, 227, 28, 0.18); }
.theme-bright .callback-form__optional { color: #8a8a8a; }
.theme-bright .callback-form__legal { color: #6a6a6a; }
.theme-bright .callback-form__alt { color: #4a4a4a; border-top-color: #e0e0e0; }

/* ─── Callback fallback ─── */
.callback-fallback { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.callback-fallback__heading { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: #7a7a7a; text-align: center; margin: 0 0 12px; }
.callback-fallback .callback-form { gap: 10px; }
.callback-fallback .callback-form__legal { margin-top: 0; }

/* ─── Brand / TOV page ─── */
.prose-brand { color: #c0c0c0; line-height: 1.8; }
.prose-brand h2 { font-family: 'Rethink Sans', 'Inter', sans-serif; font-weight: 800; font-size: 1.75rem; color: #fff; margin-top: 0; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(128, 227, 28, 0.3); }
.prose-brand h3 { font-family: 'Rethink Sans', 'Inter', sans-serif; font-weight: 700; font-size: 1.2rem; color: #80E31C; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-brand p { margin-bottom: 1rem; }
.prose-brand strong { color: #fff; }
.prose-brand ol, .prose-brand ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose-brand li { margin-bottom: 0.5rem; }
.prose-brand hr { opacity: 0.3; }
.prose-brand table th { text-align: left; }

/* ─── Contact page inputs ─── */
.contact-input { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 13px 14px; font-size: 1rem; color: #fff; transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.contact-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.contact-input:focus { outline: none; border-color: #80E31C; background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 3px rgba(128, 227, 28, 0.15); }
select.contact-input { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380E31C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.contact-input option { background: #141414; color: #fff; }

/* ─── Keyframes ─── */
@keyframes loaderPulse { 0%, 100% { transform: scale(0.8); opacity: 0.7; } 50% { transform: scale(1); opacity: 1; } }
@keyframes callback-spin { to { transform: rotate(360deg); } }
