/* Small, clear glass booking panel — natural native dialog transitions.
   The service cards, handler IDs, iframe URL, microphone, sends and backend
   are unchanged. Deliberately overrides the old full-viewport booking skin. */

#direct-booking[open],
#direct-booking.mobile-dialog-fallback[open] {
  position:fixed;
  inset:0;
  top:0;
  right:0;
  bottom:0;
  left:0;
  z-index:1000;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:min(460px,calc(100vw - 32px));
  min-width:0;
  max-width:calc(100vw - 32px);
  height:min(62dvh,560px);
  min-height:0;
  max-height:calc(100dvh - 28px);
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(247,225,182,.66);
  border-radius:24px;
  color:#fff8eb;
  background:
    linear-gradient(147deg,rgba(230,255,238,.09),rgba(17,87,62,.095) 40%,rgba(3,43,34,.13)),
    radial-gradient(ellipse 75% 50% at 85% 3%,rgba(243,214,151,.06),transparent 85%);
  -webkit-backdrop-filter:blur(6px) saturate(1.16);
  backdrop-filter:blur(6px) saturate(1.16);
  box-shadow:
    0 25px 80px rgba(0,12,8,.42),
    0 0 23px rgba(236,202,141,.13),
    inset 0 1px rgba(255,251,227,.43),
    inset 0 0 0 1px rgba(213,255,224,.09);
  clip-path:none;
  opacity:1;
  transform:none;
  transition:none;
  animation:none;
}

/* The loading state must not paint an opaque rectangle over the clear glass. */
#direct-booking[open][data-loading],
#direct-booking.mobile-dialog-fallback[open][data-loading] {
  background:
    linear-gradient(147deg,rgba(230,255,238,.09),rgba(17,87,62,.095) 40%,rgba(3,43,34,.13)),
    radial-gradient(ellipse 75% 50% at 85% 3%,rgba(243,214,151,.06),transparent 85%);
}

/* Reflections are static; no black-hole movement or distracting vortex. */
#direct-booking[open]::before,
#direct-booking.mobile-dialog-fallback[open]::before {
  animation:none;
  opacity:.65;
}
#direct-booking[open]::after,
#direct-booking.mobile-dialog-fallback[open]::after {
  animation:none;
  opacity:.34;
  transform:none;
  top:-110px;
  left:7%;
  right:7%;
  width:auto;
  height:225px;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(157,245,190,.20),transparent 72%);
  filter:blur(19px);
}
#direct-booking::backdrop {
  background:rgba(1,16,11,.12);
  -webkit-backdrop-filter:blur(1px);
  backdrop-filter:blur(1px);
}

/* Compact glass header. Close remains a full-size accessible touch target. */
#direct-booking[open] .direct-booking-bar,
#direct-booking.mobile-dialog-fallback[open] .direct-booking-bar {
  position:relative;
  z-index:5;
  flex:0 0 auto;
  width:100%;
  min-height:62px;
  padding:9px 13px;
  gap:8px;
  border-bottom:1px solid rgba(255,224,160,.26);
  background:
    linear-gradient(123deg,rgba(231,255,235,.11),rgba(3,45,34,.18)),
    rgba(6,52,38,.12);
  -webkit-backdrop-filter:blur(12px) saturate(1.2);
  backdrop-filter:blur(12px) saturate(1.2);
}
#direct-booking .booking-glass-brand {gap:9px;}
#direct-booking .booking-glass-emblem {
  width:37px;
  height:37px;
  border-radius:12px;
  background:rgba(11,91,59,.26);
}
#direct-booking .booking-glass-emblem::before {animation:none;}
#direct-booking .booking-glass-heading b {font-size:9px;letter-spacing:.13em;}
#direct-booking .booking-glass-heading small {font-size:13px;}
#direct-booking[open] #direct-booking-close {
  flex:none;
  min-height:44px;
  font-size:.78rem;
  border-radius:13px;
  background:rgba(10,52,39,.18);
}

/* Let the original remote booking form scroll within the small glass panel.
   Do not affect its network, audio, form or consent handling. */
#direct-booking[open] #direct-booking-frame,
#direct-booking.mobile-dialog-fallback[open] #direct-booking-frame {
  display:block;
  flex:1 1 0;
  width:100%;
  min-width:0;
  min-height:0;
  height:0;
  border:0;
  background:transparent;
}
#direct-booking[open] #direct-booking-frame[hidden],
#direct-booking.mobile-dialog-fallback[open] #direct-booking-frame[hidden] {
  display:none;
}
#direct-booking[open] #direct-booking-loading:not([hidden]) {
  flex:1 1 auto;
  align-content:center;
  width:min(380px,calc(100% - 28px));
  min-height:0;
  margin:auto;
  padding:18px;
}
#direct-booking[open] #direct-booking-loading i {animation:none;}
#direct-booking[open] :is(#direct-booking-error,#direct-booking-fallback,#direct-booking-contact):not([hidden]) {
  max-width:calc(100% - 26px);
  align-self:center;
}
@media(max-width:640px),(max-height:500px) {
  #direct-booking[open],
  #direct-booking.mobile-dialog-fallback[open] {
    inset:0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:calc(100vw - 36px);
    max-width:420px;
    height:min(66dvh,535px);
    max-height:calc(100dvh - 20px);
    margin:auto;
    border:1px solid rgba(247,225,182,.66);
    border-radius:20px;
    overflow:hidden;
  }
  #direct-booking[open] .direct-booking-bar,
  #direct-booking.mobile-dialog-fallback[open] .direct-booking-bar {
    min-height:59px;
    padding:7px 10px;
  }
  #direct-booking .booking-glass-heading b {font-size:8px;}
  #direct-booking .booking-glass-heading small {font-size:12px;}
}
@media(max-height:440px) {
  #direct-booking[open],
  #direct-booking.mobile-dialog-fallback[open] {
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
  }
}
@media(prefers-reduced-motion:reduce) {
  #direct-booking[open],
  #direct-booking.mobile-dialog-fallback[open],
  #direct-booking[open]::before,
  #direct-booking[open]::after {animation:none!important;transition:none!important;}
}


/* Zero-wait booking interaction: no open/close/card-tap animations.
   This is separate from loading the external form over the network. */
.services .card,
.services .card > div:last-child,
.services .card a[data-service],
.services .card a[data-service] i {
  transition-duration:0s!important;
  transition-delay:0s!important;
}
#direct-booking,
#direct-booking[open],
#direct-booking.mobile-dialog-fallback[open],
#direct-booking::backdrop {
  transition:none!important;
  animation:none!important;
  animation-delay:0s!important;
}
#direct-booking[open]::before,
#direct-booking[open]::after {
  animation:none!important;
}
