/* =========================
   PAGE WRAPPER
========================= */
.contact-us {
  background: #ececec;
}

/* =========================
   HEADER
========================= */
.contact-header {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
              url('images/team/team.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 20px;
}

.contact-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.contact-header p {
  opacity: 0.9;
}

/* =========================
   INFO SECTION
========================= */
.contact-info {
  padding: 80px 20px;
}

/* DETAILS */
.contact-details h2 {
  color: #570000;
  margin-bottom: 20px;
}

.contact-details li {
  margin-bottom: 10px;
  color: #555555;
}

/* MAP */
.map-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================
   FORM
========================= */
.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 80px;
}

/* INPUTS */
.contact-form .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 12px 14px;
  transition: 0.25s ease;
}

/* FOCUS */
.contact-form .form-control:focus {
  border-color: #570000;
  box-shadow: 0 0 0 3px rgba(87, 0, 0, 0.15);
}

/* TEXTAREA */
.contact-form textarea {
  resize: vertical;
}

/* ERROR */
.error {
  color: #b30000;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* BUTTON */
.contact-btn {
  background: #570000 !important;
  color: #ffffff !important;
  padding: 12px 30px;
  border-radius: 10px;
  border: none;
  transition: 0.25s ease;
}

.contact-btn:hover {
  background: #3d0000 !important;
  transform: translateY(-2px);
}

/* =========================
   SUCCESS MODAL
========================= */
.modal-content {
  background: #ffffff !important;
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
}

.modal-content h3 {
  color: #570000;
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
  color: #555555;
}

/* CLOSE BUTTON */
.close-btn {
  background: #570000;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
}

.close-btn:hover {
  background: #3d0000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1400px) {
  .contact-header h1 {
    font-size: 2.2rem;
    color: #fff;
  }
  .contact-form {
    padding: 25px;
  }
}

/* ======================================
   MOBILE OPTIMIZATION
====================================== */
@media (max-width: 1400px) {

  /* Header */
  .contact-header {
    padding: 120px 20px 70px; /* more breathing room under nav */
  }

  .contact-header h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .contact-header p {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Contact Info Section */
  .contact-info {
    padding: 60px 20px;
  }

  .contact-details {
    text-align: center;
    margin-bottom: 40px;
  }

  .contact-details li {
    font-size: 0.95rem;
  }

  /* Map */
  .map-image {
    margin-top: 20px;
    border-radius: 14px;
  }

  /* Form Card */
  .contact-form {
    padding: 28px 20px;
    margin: 0 15px 60px;
    border-radius: 16px;
  }

  /* Inputs */
  .contact-form .form-control {
    padding: 14px 16px;
    font-size: 16px; /* prevents iOS zoom */
  }

  textarea.form-control {
    min-height: 140px;
  }

  /* Button */
  .contact-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* Modal */
  .modal-content {
    padding: 30px 25px;
    border-radius: 16px;
  }

}