/* Fullscreen overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer – full width */
.popup-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f5f9fb;

  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease;
  will-change: transform, opacity;

  /* subtle top shadow */
  box-shadow: 0 -6px 18px rgba(0,0,0,0.15);
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
  opacity: 1;
}

/* Inner centered content */
.popup-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 80px;
  position: relative;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 30px;
  line-height: 1;
  border: none;
  background: none !important;
  color: #0c4a60;
  cursor: pointer;
  z-index: 2000; /* ensure always clickable */
}
.popup-close:hover,
.popup-close:focus {
  background: none !important;
  outline: none;
  color: #083543;
}

/* Desktop vs mobile forms */
.desktop-form { display: block; }
.mobile-form  { display: none; }

@media (max-width: 768px) {
  .desktop-form { display: none; }
  .mobile-form  { display: block; }

  .popup-inner {
    padding: 40px 20px;
    border-radius: 16px 16px 0 0; /* nice rounded top corners */
  }
}
