/* Contact page — styles specific to contact.html.
   Shared nav/footer/section chrome lives in components.css. */

/* ---- Hero + form layout ---- */
.contact-hero {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  padding: clamp(56px,8vw,112px) var(--gutter-x) clamp(72px,10vw,128px);
}
.contact-grid {
  grid-template-columns: minmax(280px,1fr) minmax(360px,620px);
  gap: clamp(32px,6vw,80px);
}
.contact-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-leaf);
}
.contact-title {
  margin: 0 0 24px;
  font-family: 'Geist', sans-serif;
  font-weight: 250;
  font-size: clamp(38px,5vw,64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-lead {
  margin: 0;
  max-width: 460px;
  font-size: clamp(15px,1.3vw,18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

/* ---- Form ---- */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: clamp(28px,4vw,44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form-title {
  margin: 0 0 6px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
}
.contact-form-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.form-label--spaced {
  margin-bottom: 10px;
}
.form-required {
  color: var(--green-leaf);
}
.form-input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.form-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

/* Audience pills: JS toggles .is-selected instead of writing inline colors */
.audience-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.audience-pill {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
}
.audience-pill.is-selected {
  background: rgba(105,193,74,0.14);
  border-color: var(--green-leaf);
  color: #fff;
}
.audience-pill-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audience-pill.is-selected .audience-pill-dot {
  border-color: var(--green-leaf);
}
.audience-pill-dot-inner {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-leaf);
  opacity: 0;
}
.audience-pill.is-selected .audience-pill-dot-inner {
  opacity: 1;
}

/* SMS consent: JS toggles .is-checked instead of writing inline colors */
.sms-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.sms-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sms-checkbox.is-checked {
  background: var(--color-primary);
}
.sms-checkbox-icon {
  opacity: 0;
}
.sms-checkbox.is-checked .sms-checkbox-icon {
  opacity: 1;
}
.sms-consent-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

.contact-form .cta-primary {
  align-self: flex-start;
}

/* ==========================================================================
   Tablet portrait (768px–1024px)
   ==========================================================================
   Side by side, the intro column runs out after a title, three lines of copy
   and a button — roughly 500px — while the form beside it keeps going for
   another 600, so close to half the section is empty. The form pays for that
   space twice over: at ~440px wide its paired fields are ~175px each, enough
   to clip their own placeholders ("Enter your phone num…").

   A portrait tablet has height to spare and width to gain, so the two swap
   axes: the intro becomes a short full-width band (title beside the lead and
   its button, rather than stacked under it) and the form moves below at a
   readable measure, with the two short fields sharing a row to win back some
   of the height the stacking costs.

   Landscape tablets deliberately keep the desktop split — the form already
   gets ~600px there, and height is the scarce resource, not width. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px,4vw,44px);
  }

  /* The intro's own two-up. It is also no longer sticky: with the form below
     rather than beside it there is nothing left to scroll against, so it
     would just pin over the fields. */
  .contact-grid > .split-grid-sticky {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    column-gap: clamp(28px,4vw,48px);
    row-gap: 18px;
    align-content: start;
  }
  .contact-eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .contact-title {
    grid-column: 1;
    grid-row: 2 / span 2;
    margin: 0;
  }
  .contact-lead {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
  .contact-grid > .split-grid-sticky .page-hero-cta-row {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    align-self: start;
  }

  /* Capped rather than edge to edge: past ~760px the single-column fields
     stop reading as a form and the labels drift away from their inputs.
     box-sizing is set here because this project has no global reset and
     .contact-form doesn't set its own — without it, width:100% is the
     *content* width and the card's ~30px padding pushes it past the column. */
  .contact-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 18px;
    row-gap: 24px;
    align-items: start;
  }
  /* Everything spans the form by default — including the two .form-row-2col
     rows, which keep their own internal pairing and now get ~350px a field
     instead of ~175px. */
  .contact-form > * {
    grid-column: 1 / -1;
  }
  /* Company Name (4th field block) and the "which describes you" radio pair
     (5th) are both short enough to share a row. Should that field order ever
     change, these two simply fall back to full-width rows like the rest. */
  .contact-form > :nth-child(4) {
    grid-column: 1 / 2;
  }
  .contact-form > :nth-child(5) {
    grid-column: 2 / -1;
  }
  /* align-self handled the flex column; the inline axis needs justify-self
     now, or the button stretches the width of the form. */
  .contact-form .cta-primary {
    justify-self: start;
  }
}

/* ---- Page shell (moved from the inline <style> block in contact.html) ---- */
body { margin: 0; background: var(--text-charcoal); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::placeholder { color: rgba(255,255,255,0.38); }
