/* ================================
   MODAL OVERLAY
================================ */
.modal {
  display: none;                 /* hidden by default */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

/* ================================
   MODAL BOX
================================ */
.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}

/* Active modal */
.modal.active {
  display: flex;                 /* show only on click */
  align-items: center;
  justify-content: center;
}

/* ================================
   CLOSE BUTTON
================================ */
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}

.close-btn:hover {
  color: #0078d7;
}

/* ================================
   MODAL CONTENT
================================ */
.modal-content h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ================================
   FORM STYLING (if needed)
================================ */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content .form-group label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.modal-content .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.modal-content .submit-btn {
  background-color: #1a3ad6;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content .submit-btn:hover {
  background-color: transparent;
  color: #1a3ad6;
  border: 1px solid #1a3ad6;
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    padding: 25px 20px;
  }
}

/* ================================
   ANIMATION
================================ */
@keyframes modalFadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
