/* ================================================================
   Styles specific to contact.php — hero, two-column form/info layout,
   form fields, and success/error banners. Shares color variables with
   header.css/footer.css (both are loaded on this page too).
   ================================================================ */

:root{
  --navy-dark: #000026;
  --navy: #0b2545;
  --blue: #1e6fd9;
  --blue-light: #eaf2fd;
  --white: #ffffff;
  --gray-text: #4a5568;
  --muted: #9fb3d1;
  --red: #c53030;
  --red-light: #fdecea;
  --green: #1e7d4f;
  --green-light: #e7f7ef;
}

body{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
}

.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Page hero ============ */
.page-hero{
  background: var(--navy-dark);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1{
  margin: 0 0 12px;
  font-size: 2.2rem;
}
.page-hero p{
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============ Contact section layout ============ */
.contact-section{
  padding: 56px 0 72px;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
/* min-width: 0 keeps these grid children from overflowing their track —
   without it a wide child (or the browser's default min-content sizing)
   can push the grid wider than intended. Learned this the hard way on
   the homepage hero video; adding it here from the start. */
.contact-grid > *{
  min-width: 0;
}

/* Single-column variant for form-only pages that don't need the
   two-column info sidebar (e.g. supplier-registration.php). Reuses
   all the same .contact-form / .form-row / .btn / .form-banner /
   .recaptcha-disclosure styles above. */
.single-form-wrap{
  max-width: 720px;
  margin: 0 auto;
}

/* ============ Form ============ */
.contact-form{
  background: var(--white);
  border: 1px solid #d6e2f5;
  border-radius: 14px;
  padding: 32px;
}
.form-row{
  margin-bottom: 20px;
}
.form-row label{
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-row input,
.form-row textarea,
.form-row select{
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #d6e2f5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
  outline: none;
  border-color: var(--blue);
}
.form-row textarea{
  min-height: 140px;
  resize: vertical;
}
.form-row .field-hint{
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 400;
}
.form-row .required{
  color: var(--red);
}

/* Honeypot field — real visitors never see or fill this in; bots
   filling in every field on the form will trip it. Kept off-screen
   without display:none, since some bots skip fields hidden that way. */
.hp-field{
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recaptcha-disclosure{
  margin: 4px 0 20px;
  font-size: 0.78rem;
  color: var(--gray-text);
  line-height: 1.5;
}
.recaptcha-disclosure a{
  color: var(--gray-text);
}

/* ============ Info panel ============ */
.contact-info{
  background: var(--blue-light);
  border-radius: 14px;
  padding: 28px;
}
.contact-info h2{
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.contact-info-item{
  margin-bottom: 18px;
}
.contact-info-item:last-child{
  margin-bottom: 0;
}
.contact-info-item h3{
  margin: 0 0 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-text);
}
.contact-info-item p,
.contact-info-item a{
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
}
.contact-info-item a:hover{
  color: var(--blue);
}

/* ============ Buttons ============ */
.btn{
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary{
  background: var(--blue);
  color: var(--white);
  border: 1.5px solid var(--blue);
}
.btn-primary:hover{
  background: #175bb3;
  border-color: #175bb3;
}
.btn-primary:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ Status banners ============ */
.form-banner{
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-banner.success{
  background: var(--green-light);
  color: var(--green);
}
.form-banner.error{
  background: var(--red-light);
  color: var(--red);
}

@media (max-width: 860px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px){
  .page-hero{ padding: 40px 0; }
  .page-hero h1{ font-size: 1.7rem; }
  .contact-section{ padding: 40px 0 48px; }
  .contact-form, .contact-info{ padding: 24px; }
}
