/**
 * 2026-05-03: Vanilla contact-popup styles with fade transitions.
 */

.reveal-modal { display: none !important; }

/* Show modal as flex container, but start invisible for fade-in */
html body #contact-popup.cp-active,
html body #newsletter-popup.cp-active,
html body #event-popup.cp-active {
  display: block !important;
  visibility: visible !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  background: rgba(0, 0, 0, 0.15) !important;
  z-index: 99999 !important;
  overflow-y: auto !important;
  padding: 200px 20px 60px 20px !important;
  margin: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  /* Fade transitions */
  opacity: 0 !important;
  transition: opacity 250ms ease-in-out !important;
  pointer-events: none !important;
}

/* When fully visible (added by JS after a tick) */
html body #contact-popup.cp-active.cp-visible,
html body #newsletter-popup.cp-active.cp-visible,
html body #event-popup.cp-active.cp-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Outer .row constrained narrower like staging (~600-700px) */
html body #contact-popup.cp-active > .row,
html body #newsletter-popup.cp-active > .row,
html body #event-popup.cp-active > .row {
  max-width: 700px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
}

html body #contact-popup.cp-active > .row > .modal-info,
html body #newsletter-popup.cp-active > .row > .modal-info,
html body #event-popup.cp-active > .row > .modal-info {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding: 0 !important;
  float: none !important;
}

html body #contact-popup.cp-active .modal-info-base,
html body #newsletter-popup.cp-active .modal-info-base,
html body #event-popup.cp-active .modal-info-base {
  background: #fff !important;
  padding: 50px 60px !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  html body #contact-popup.cp-active,
  html body #newsletter-popup.cp-active,
  html body #event-popup.cp-active {
    padding: 130px 10px 40px 10px !important;
  }
  html body #contact-popup.cp-active > .row,
  html body #newsletter-popup.cp-active > .row,
  html body #event-popup.cp-active > .row {
    width: 95% !important;
  }
  html body #contact-popup.cp-active .modal-info-base,
  html body #newsletter-popup.cp-active .modal-info-base,
  html body #event-popup.cp-active .modal-info-base {
    padding: 30px 25px !important;
  }
}

body.cp-popup-open {
  overflow: hidden !important;
}

/* X close button */
html body #contact-popup.cp-active .close-reveal-modal,
html body #newsletter-popup.cp-active .close-reveal-modal,
html body #event-popup.cp-active .close-reveal-modal {
  position: absolute !important;
  top: -40px !important;
  right: 0 !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  text-decoration: none !important;
  color: #fff !important;
  z-index: 1 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  bottom: auto !important;
  left: auto !important;
}
html body #contact-popup.cp-active .close-reveal-modal:hover,
html body #newsletter-popup.cp-active .close-reveal-modal:hover,
html body #event-popup.cp-active .close-reveal-modal:hover {
  color: #ddd !important;
}
