/* Modal Overlay - Covers the whole screen */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dimmed background */
  backdrop-filter: blur(4px); /* Optional: adds a blur effect to background */
  overflow: auto;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.4s;
}

/* Modal Header */
.modal-header {
  background-color: #1b5b99; /* Blue from reference */
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Close Button (X) */
.close-modal {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  transition: 0.3s;
  z-index: 10;
}

.close-modal:hover {
  color: #ccc;
}

/* Modal Body - Flex Layout for 2 Columns */
.modal-body {
  display: flex;

}

/* Left Column (Banner) */
 .modal-left {
  flex-basis: 33%;
} 


/* Right Column (Form) */
.modal-right {
  flex-basis: 60%;
  padding: 30px;
}

.form-title {
  color: #333;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 2px solid #4caf50; /* Green underline */
  display: inline-block;
  padding-bottom: 5px;
}

/* Form Styles */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 13px;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: #0056b3;
  outline: none;
}

/* Buttons */
.form-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn-submit {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #004494;
}

.btn-reset {
  background-color: transparent;
  color: #0056b3;
  border: 1px solid #0056b3;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-reset:hover {
  background-color: #f0f8ff;
}

/* Footer / Bottom Close Button */
.modal-footer {
  padding: 10px 30px 20px 0;
  text-align: right;
}

.btn-close-bottom {
  background: transparent;
  border: 1px solid #ccc;
  padding: 8px 15px;
  cursor: pointer;
  color: #555;
  border-radius: 4px;
}

.btn-close-bottom:hover {
  background-color: #eee;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes slideDown {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-left, .modal-right {
    flex-basis: 100%;
  }
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-group {
    margin-bottom: 10px;
  }
}