+9    /* Add styles for the overlay */
    #overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5); /* 50% black opacity */
      z-index: 1000;
    }

    /* Center the popup */
  #popupModule {
  display: none;
  background: #ffffff;
  border-radius: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4em;
  text-align: center;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Add a subtle shadow for better visibility */
  width: 784px;
  height:548px;
  position: relative;
    }

   #overlay,
#popupModule {
  display: none; 
  position: fixed;
}

  
   #popup-responsive {
     display: flex; 
     flex-direction: column; 
     gap: 1em; 
     align-items: center; 
     justify-content: center; 
     color:#444446; 
   }

  #popup-wrapper-responsive {
    display: flex; 
    flex-direction: row; 
    gap: 1em; 
    justify-content: center;
}

@media screen and (max-width: 1120px) {
  #popup-wrapper-responsive {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
  }
}

@media screen and (min-width: 582px) and (max-width: 1120px) {
  #popupModule {
   width: 550px;
  }
}

@media screen and (max-width: 581px) {
  #popupModule {
    width: 360px;
    height: 640px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1em !important;
    position: fixed;
  }
  #popup-responsive {
    position: relative;       
  }

  .close-button {
    top: 8px;
    left: 300px;
  }
}


  .textmobilehead {
    font-size: 24px !important;
  }

  .textmobiledesc {
    font-size: 16px !important;
  }

  #popup-wrapper-responsive,
  .popup-wrapper-responsive-mobile {
    width: 100% !important;
  }
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  background: #000000;
  border: none !important;
  border-radius: 50%;  /* Makes it a circle */
  cursor: pointer;
  color: #fff !important;  /* <- changed to white for contrast */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px!important;
}

.hs-iframe-wrapper iframe {
  width: 50vw;
  display: block;     
  margin: 0 auto;
 margin-bottom: 1em;

}

.custom-form {
  max-width: 500px;
  margin: 0.5em auto;               
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;              
  text-align: center;               
}


.custom-form .form-row {
  display: flex;
  justify-content: center;  
  align-items: center; 
  gap: 10px;
}

.custom-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid #000;;
  border-radius: 6px;
  font-size: 15px;
}


.form-field label {
  display: block;
  margin-bottom: 6px;
  font-family: 'montserrat', sans-serif;
  color: #000;    
  font-size: 14px;
  font-weight: 600;
   text-align: left;
}



/* Mobile: stack columns */
@media (max-width: 600px) {
  .custom-form .form-row {
    flex-direction: column;
  }
}



