/* Ensure the wrapper covers the full screen */
#popup-form-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* dimmed background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Make sure the modal is above the overlay */
#popup-form-modal {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff;
  padding: 2rem;
  border: 1px solid #ccc;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Ensure content area is not blocked */
#popup-form-content {
  position: relative;
  z-index: 1002;
}

/* Overlay layer behind the modal */
#popup-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
}

/* Close button styling */
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.popup-thankyou {
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
}