/* ============================================================
   Contact Page — CSS
   ============================================================ */

/* ── Contact Hero ────────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, #001122 0%, #001933 50%, #003366 100%);
  color: #fff;
  text-align: center;
  padding: calc(6rem + var(--navbar-height)) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero > .container {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  opacity: 0.88;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Inline link to form */
.contact-hero-form-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.contact-hero-form-text {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.contact-hero-form-link:hover {
  color: #fff;
}

.contact-hero-form-link:hover .contact-hero-form-text {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.contact-hero-chevron {
  display: block;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-hero-form-link:hover .contact-hero-chevron {
  color: #fff;
  transform: translateY(4px);
}


/* ── Contact Info Section ────────────────────────────────── */
#contact-info {
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

.contact-info-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
  padding: 5rem 1rem;
  text-align: center;
  margin-bottom: 0;
}

.contact-info-container {
  max-width: 640px;
  margin: 0 auto;
}

.contact-info-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #003366;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
}

.contact-info-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  margin: 0.75rem auto 2rem auto;
  border-radius: 2px;
}

.contact-info-details p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 0.4rem;
}

.contact-info-details strong {
  color: #003366;
  font-weight: 600;
}

.contact-info-details em {
  color: #0066cc;
  font-style: normal;
  font-weight: 600;
}


/* ── Contact Form Section ────────────────────────────────── */
#contact-form {
  scroll-margin-top: 16vh;
}

.contact-form {
  background-color: #fff;
  padding: 5rem 2rem;
}

.form-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.form-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #003366;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
}

.form-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  margin: 0.75rem auto 2.5rem auto;
  border-radius: 2px;
}

/* Two-column layout */
.form-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Left side */
.form-left {
  flex: 1;
  min-width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-left input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  color: #222;
  border-radius: 10px;
  border: 1.5px solid #d0dce8;
  background: #fafcff;
  transition: all 0.25s ease;
}

.form-left input:focus,
.form-right textarea:focus {
  outline: none;
  border-color: #004080;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.form-left input:-webkit-autofill,
.form-left input:-webkit-autofill:hover,
.form-left input:-webkit-autofill:focus,
.form-right textarea:-webkit-autofill,
.form-right textarea:-webkit-autofill:hover,
.form-right textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #222;
  box-shadow: 0 0 0 1000px #fafcff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-left input:-webkit-autofill:focus,
.form-right textarea:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(0, 64, 128, 0.1);
}

/* Right side */
.form-right {
  flex: 1;
  min-width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-right textarea {
  width: 100%;
  height: 250px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #d0dce8;
  background: #fafcff;
  resize: vertical;
  color: #222;
  transition: all 0.25s ease;
}

/* Submit Button */
.submit-btn {
  align-self: center;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 64, 128, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #004080, #0066cc);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 64, 128, 0.35);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

/* Field labels */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-heading {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required-marker {
  color: #003366;
  font-size: 1rem;
}

.form-left .form-group,
.form-right .form-group {
  margin-bottom: 1.25rem;
}

.form-right .message-group {
  margin-bottom: 0;
}

.form-disclaimer {
  color: #5f6b76;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: -0.15rem 0 0.05rem;
  text-align: center;
}


/* ── Thank-you message ───────────────────────────────────── */
.thank-you {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #003366;
}

.thank-you .checkmark {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark-img {
  width: 110px;
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.thank-you.show .checkmark-img {
  opacity: 1;
  transform: scale(1);
}

.form-error {
  margin: 2rem auto 0;
  max-width: 680px;
  padding: 1rem 1.25rem;
  border: 1px solid #f0b7b7;
  border-radius: 10px;
  background: #fff4f4;
  color: #8a1f1f;
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-hero {
    padding: calc(4rem + var(--navbar-height)) 1.5rem 3rem;
  }

  .contact-info-section {
    padding: 3.5rem 1.5rem;
  }

  .contact-form {
    padding: 4rem 1.5rem;
  }

  #contactForm {
    width: 100%;
  }

  .form-columns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1.25rem; /* was 3rem for side-by-side; match .form-group margin rhythm */
  }

  /* Avoid Subject bottom margin + column gap stacking */
  .form-left .form-group:last-child {
    margin-bottom: 0;
  }

  .form-right {
    gap: 1rem;
  }

  /* Single spacing to submit: use flex gap only, not margin + gap */
  .form-right .form-group {
    margin-bottom: 0;
  }

  .form-left,
  .form-right {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* flex default min-width:auto blocks width:100% children */
  }

  .form-group {
    width: 100%;
    min-width: 0;
  }

  .form-group.field-error::after {
    content: attr(data-error);
    display: block;
    margin-top: 0.15rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d0dce8;
    border-left: 3px solid #003366;
    border-radius: 8px;
    background: #fff;
    color: #003366;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.12);
  }

  .form-left input,
  .form-right textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-right textarea {
    height: 200px;
  }

  .submit-btn {
    align-self: center;
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.65rem;
    font-size: 0.9rem;
  }
}
