/* =========================
   Contact (mobile-first)
   ========================= */

.contact-hero{
  background: linear-gradient(135deg, #9DD1D1, #5D9698);
  padding: 32px 0 64px;
  border-top: 1px solid rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(0,0,0,.05);
  width: 100%;
  min-height: 100svh;
  
}

/* Mobile: stacked */
.contact-hero .hero-grid{
  display: block; /* becomes flex at ≥920px */
}

.contact-hero .hero-visual{
    display: none;
  }

.contact-hero .column{
  display: flex;
  flex-direction: column;
}

/* Heading scale (match Home feel) */
.contact-hero .hero-copy h1{
  font-size: clamp(26px, 6.5vw, 44px);
  line-height: 1.15;
  color: #0f2e2e;
  margin: 12px 0 18px;
}

/* Form card */
.contact-card{
  background: #b6d6d6;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  border: 1px solid rgba(0,0,0,.06);
}

.card-subtitle{
  margin: 0 0 10px;
  color: #0b2a28;
  font-weight: 600; 
}

/* 2-up inputs (collapse on mobile via media query) */
.row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 920px){
  .row-2{ grid-template-columns: 1fr; }
}

.field{ display:flex; flex-direction:column; gap:6px; }
.field input,
.field textarea{
  width: 100%;
  border: 1px solid #dbe7e6;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: box-shadow .15s ease, background .15s ease;
  color: #0b2a28;
}

.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field textarea:focus-visible{
  box-shadow: 0 0 0 3px rgba(77, 141, 137, .35);
  background: #f6fbfb;
}
.err{ color: #6b0b0b; font-size: 12px; }

/* Submit */
.btn-submit{
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  background: #5a8f8c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease;
}
.btn-submit:hover{ filter: brightness(1.03); transform: translateY(-1px); }

/* Right-side visual */
.media-card{
  display:none;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.media-card img{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
}

/* Success preview */
.contact-preview{
  margin-top: 16px;
  background: #f1fbf8;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 4px solid #4da58f;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.contact-preview h3{ margin: 0 0 8px; color: #0f2e2e; }
.contact-preview ul{ margin: 0; padding-left: 18px; }

/* =========================
   Desktop (≥920px) — side-by-side flex
   ========================= */
@media (min-width: 920px){
  .contact-hero .hero-grid{
    display: flex;
    align-items: center;          /* vertical centers image vs. form */
    justify-content: center;      /* center the whole pair */
    gap: 60px;                    /* a touch more breathing room */
  }

  .contact-hero .hero-visual{ display:flex; }
  .contact-hero .media-card{ display:block; }

  .contact-hero .hero-copy{
    align-items: center;          /* center content within the text column */
    text-align: center;
  }

  /* Constrain both sides to the same width so they "line up" */
  .contact-hero .hero-copy > *{
    width: 100%;
    max-width: 460px;
  }
  .contact-hero .media-card{
    width: clamp(280px, 26vw, 380px);
  }

  .contact-hero .hero-visual{
    display: flex;
  }
}

