/* Hide the original webform block rendering */
.block-webform {
  display: none !important;
}

/* Full-screen modal overlay */
#webform-popup-wrapper {
  display: none; /* Start hidden, shown via JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
#webform-popup-inner {
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
}

/* Close button styling */
#webform-popup-inner button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 600px) {
  #webform-popup-inner {
    width: 90%;
    padding: 15px;
  }

  #webform-popup-wrapper {
    background: rgba(0, 0, 0, 0.5); /* Slightly darker for smaller screens */
  }

  #webform-popup-inner button {
    font-size: 20px;
  }
}

/* Tablet styles */
@media (min-width: 601px) and (max-width: 1024px) {
  #webform-popup-inner {
    width: 80%;
    padding: 20px;
  }

  #webform-popup-inner button {
    font-size: 22px;
  }
}
