/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Modal Section */
.modal-sectiona {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none; /* Prevents interaction when modal is hidden */
  z-index: 998; /* Ensures modal is above other content */
}

/* overlays */
.overlays {
  position: fixed;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3); /* Re-added for visibility */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* No interaction when hidden */
}

.modal-sectiona.active .overlays {
  opacity: 1;
  pointer-events: auto; /* Allows clicking to close */
}

/* Modal Box */
.modal-boxa {
  position: fixed;
  max-width: 380px;
  width: 100%;
  padding: 30px 20px;
  border-radius: 24px;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%) scale(1.2);
  top: 50%;
  left: 50%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Above overlays */
}

.modal-sectiona.active .modal-boxa {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Icon Styling */
.modal-boxa i {
  font-size: 70px;
  color: #4070f4;
  display: block;
  text-align: center;
}

/* Modal Title */
.modal-boxa h2#modal-title {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Modal Message */
.modal-boxa h3#modal-message {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

/* Button Container */
.modal-boxa .buttons {
  margin-top: 25px;
  text-align: center;
}

/* General Button Styling */
.modal-boxa button {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  padding: 6px 12px;
  margin: 0 10px;
  border: none;
  background: #4070f4;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-boxa button:hover {
  background-color: #265df2;
}

/* Specific Button Adjustments */




/* Responsive Design */
@media (max-width: 400px) {
  .modal-boxa {
    max-width: 90%;
    padding: 20px 15px;
  }
  .modal-boxa i {
    font-size: 50px;
  }
  .modal-boxa h2#modal-title {
    font-size: 20px;
  }
  .modal-boxa h3#modal-message {
    font-size: 14px;
  }
  .modal-boxa button {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 5px;
  }
}

/* Trigger Button (Outside Modal) */
button[onclick^="showCustomModal"] {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  padding: 14px 22px;
  border: none;
  background: #4070f4;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[onclick^="showCustomModal"]:hover {
  background-color: #265df2;
}