/* Modal Overlay Background */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Inner Box */
.custom-modal-content {
  background: #111111; /* Dark theme background */
  color: #ffffff;
  padding: 30px 25px;
  border-radius: 8px;
  max-width: 550px;
  width: 100%;
  
  /* Prevent modal from overflowing the screen vertically */
  max-height: 90vh;
  overflow-y: auto; /* Adds a scrollbar inside the modal if the form is tall */
  
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

/* Fixed Close Button so it stays visible while scrolling */
.custom-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}