/* ============================================================================
   contactus.css — styles for contactus.html ONLY.
   Shared reset, tokens, fonts, navbar/footer live in default.css.
   This file adds only the contact-page components. Navy #16469c throughout.
   ============================================================================ */

/* Page shell. (header clearance note unchanged) */
.contact_page {
  width: 88%;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: calc(80px + clamp(1.5rem, 3vw, 3rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

/* ---- Heading ---- */
.contact_head {
  text-align: left;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.contact_title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #16469c;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.contact_sub {
  margin: 0.7rem 0 0;
  color: #5b5b5b;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  max-width: 46ch;
}

/* ---- Card (form | map split) ---- */
.contact_card {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}

/* RIGHT: map */
.contact_map {
  position: relative;
  height: 100%;
  min-height: 320px;
  background: #eef1f6;
  border: 1px solid #ececf0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(10, 40, 90, 0.06);
  overflow: hidden;
}
.contact_map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* LEFT: form */
.contact_form_col {
  min-width: 0;
}

/* ---- Form layout ---- */
.contact_form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.contact_field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.contact_field_full {
  grid-column: 1 / -1;
}
.contact_field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3a3a3a;
}
.contact_field label .req { color: #16469c; }
.contact_field label .opt { color: #8b8b8b; font-weight: 500; }

.contact_field input,
.contact_field select,
.contact_field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.97rem;
  color: #1a1a1a;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  background: #f6f8fc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* FIX: border-box so width:100% INCLUDES padding + border.
   Without this (default content-box) each field renders wider than its grid
   column — collapsing the gap between Name/Email (they look joined) and making
   the full-width Message overflow past the right edge. This one rule fixes both. */
.contact_field input,
.contact_field select,
.contact_field textarea {
  box-sizing: border-box;
}

.contact_field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.contact_field input::placeholder,
.contact_field textarea::placeholder { color: #b6b6b6; }

.contact_field input:focus,
.contact_field select:focus,
.contact_field textarea:focus {
  outline: none;
  border-color: #16469c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 70, 156, 0.12);
}

.contact_field input.is-invalid,
.contact_field textarea.is-invalid {
  border-color: #c0392b;
  background: #fdf3f2;
}

/* ---- Turnstile ---- */
.contact_turnstile {
  margin-top: 1.4rem;
  min-height: 65px;
}

/* ---- Submit ---- */
.contact_submit_row { margin-top: 1.25rem; }
.contact_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16469c;
  color: #fff;
  border: 0;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.contact_submit:hover { background: #123a83; }
.contact_submit:active { transform: translateY(1px); }
.contact_submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22, 70, 156, 0.35); }
.contact_submit:disabled { opacity: 0.7; cursor: default; }

/* ---- Error message ---- */
.contact_status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}
.contact_status.is-error {
  color: #b23b2e;
  background: #fdf3f2;
  border: 1px solid #f3d5d1;
}

/* ---- Success ---- */
.contact_success { text-align: center; padding: 1.5rem 1rem 0.5rem; }
.contact_success_icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: #eef7f1; color: #1e6b3a; font-size: 1.4rem;
}
.contact_success_title { font-size: 1.25rem; font-weight: 700; color: #16469c; margin: 0 0 0.4rem; }
.contact_success_note { font-size: 1rem; color: #5b5b5b; margin: 0; }

/* ---- Escape-hatch line ---- */
.contact_alt { margin: 1.5rem 0 0; text-align: left; font-size: 0.95rem; color: #5b5b5b; }
.contact_alt a { color: #16469c; font-weight: 600; text-decoration: none; }
.contact_alt a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 899px) {
  .contact_card { grid-template-columns: 1fr; max-width: 720px; }
  .contact_map { display: none; }
}
@media (max-width: 600px) {
  .contact_page { width: 90%; }
  .contact_form_grid { grid-template-columns: 1fr; }
  .contact_submit { width: 100%; }
}
@media (max-width: 1100px) {
  .contact_page { width: 86%; }
}
@media (min-width: 1600px) {
  .contact_page { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact_field input,
  .contact_field select,
  .contact_field textarea,
  .contact_submit { transition: none; }
  html { scroll-behavior: auto; }
}

/* Hides the "extended contact details" block from real users.
   (Anything filled in here is treated as automated on the server.) */
.contact_extra {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}