/* === General Modal Styling === */
#customModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 10px;
  z-index: 9999;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

#modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

#closeModalBtn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

#formContainer {
  margin-top: 20px;
}

#customForm input[type="text"],
#customForm input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

#customForm label {
  display: block;
}

#customForm .g-recaptcha {
  margin-bottom: 15px;
}

#customForm input[type="submit"] {
  padding: 10px 20px;
  background: #004677;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#loader {
  display: none;
  margin-top: 10px;
  text-align: center;
}

#thankYouMsg,
#ErrorMsg {
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}

#thankYouMsg {
  color: green;
}

#ErrorMsg {
  color: red;
}

/* === Floating Open Button Styling === */
#openModalBtn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #004677;
  color: white;
  padding: 12px 20px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* === Mobile View Adjustments === */

@media (max-width: 767px) {
 div#customModal {
    z-index: 99999;
 }
}

