/* --- MODAL BACKDROP --- */
.modal {
    display: none; /* must stay here, and must be the ONLY display rule */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    
    /* centering rules (safe to keep) */
    justify-content: center;
    align-items: center;
    
    z-index: 9999;
    padding: 20px;
}

/* --- TWO COLUMN WRAPPER --- */
.modal-content.two-column {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  padding: 0;
  width: 90%;
  max-width: 760px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.25s ease-out;
  border: 1px solid rgba(0,0,0,0.1);
}

/* --- CLOSE BUTTON --- */
.modal-content .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #A1613A;
  z-index: 10;
}
.modal-content .close:hover {
  color: #284473;
}

/* --- LEFT PANEL --- */
.modal-left {
  width: 40%;
  background: #ffffff;
  padding: 32px;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-logo {
  width: 140px;
  margin-bottom: 12px;
}

.modal-left h3 {
  font-size: 1.3rem;
  color: #0B1D3A;
  margin: 0;
}

.modal-left p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.contact-details {
  margin-top: auto;
  font-size: 0.95rem;
  color: #0B1D3A;
}

/* --- RIGHT PANEL --- */
.modal-right {
  width: 60%;
  background: #F2F2F2;
  padding: 32px;
}

.modal-right h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0B1D3A;
}

/* --- LABELS --- */
.modal-right label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B1D3A;
  display: block;
  margin-bottom: 6px;
}

/* --- LIGHT INPUTS --- */
.modal-right input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 6px;
  color: #0B1D3A;
  font-size: 1rem;
}

.modal-right input:focus {
  outline: none;
  border-color: #A1613A;
}

/* --- SUBMIT BUTTON --- */
.modal-right button {
  width: 100%;
  padding: 14px;
  background: #A1613A;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.modal-right button:hover {
  background: #C47A4A;
  transform: translateY(-2px);
}

.modal-right button:active {
  transform: translateY(0);
}

/* --- ANIMATION --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {

  /* Let the whole page scroll */
  .modal {
    overflow-y: auto;
    align-items: flex-start;
    padding: 40px 0;
  }

  /* Stack columns */
  .modal-content.two-column {
    flex-direction: column;
    width: 95%;
    max-height: none;
  }

  .modal-left,
  .modal-right {
    width: 100% !important;
    padding: 24px;
  }

  .modal-left {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .modal-logo {
    width: 120px;
    margin: 0 auto 16px auto;
    display: block;
  }
}
