/* ==========================================================================
   Popup Form Component Styles (components/popupform.php)
   ========================================================================== */

/* The Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Modal Content */
.modal-content {
  background: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #D81B60;
}

/* Form Styling */
.modal-content form {
  margin-top: 15px;
}

.modal-content .form-group {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content .btn-submit {
  background: #D81B60;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.modal-content .btn-submit:hover {
  background: #b3154f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/* Mobile Responsive Modal Adjustments */
@media (max-width: 576px) {
  .modal {
    padding-top: 30px !important;
  }
  .modal-content {
    width: 95% !important;
    padding: 15px !important;
  }
}
