html.popup-lock,
body.popup-lock{
  overflow: hidden !important;
}

#contactPopup{
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
}

#contactPopup.show{
  display: block;
}

.contact-popup-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-popup-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,10,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.contact-popup-close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  z-index: 1;
}

#contactPopupContent{
  padding: 28px;
  display: flex;
  justify-content: center;
}

/* the fetched/moved block inside popup */
#contactPopupContent .quick-booking{
  width: min(720px, 100%);
  margin: 0 auto;
}

@media (max-width: 479px){
  #contactPopupContent{ padding: 18px; }
  .contact-popup-panel{ border-radius: 16px; }
}
/* Quick booking toast – floating like index */
#contactPopup .qb-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  margin: 0;

  opacity: 0;
  pointer-events: none;
  z-index: 10100;
}

#contactPopup .qb-toast.show{
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease;
}
#contactPopup .qb-toast-inner{
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 44px 14px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
#contactPopup .qb-toast-title{
  font-weight: 800;
  margin: 0 0 4px 0;
  color: var(--primary-color);
}
#contactPopup .qb-toast-msg{
  margin: 0;
  opacity: .9;
  color: var(--primary-color);
}
#contactPopup .qb-toast-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--primary-color);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Make the contact form a bit smaller ONLY inside the popup */
#contactPopupContent .quick-booking{
  width: min(540px, 100%);
  transform: scale(.86);
  transform-origin: top center;
}

/* tighten spacing a bit */
#contactPopupContent .quick-booking input,
#contactPopupContent .quick-booking textarea,
#contactPopupContent .quick-booking select{
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
}

#contactPopupContent .quick-booking .theme-button,
#contactPopupContent .quick-booking button[type="submit"]{
  padding: 12px 18px;
  font-size: 15px;
}