/* Contact Us. base.css supplies the frame (.wrap), the grid helper (.cols →
   min-width:0 children), .btn, .display/.mono, and the .section-light token
   flip. Everything here is page-specific.

   The .form / .form-counter / .form-thanks primitives are adapted from
   css/get-greenfly.css rather than shared: that file redefines :root locally
   (it was extracted from an inline <style> block) and base.css carries no form
   rules at all. Duplicated deliberately, per the per-page CSS convention —
   worth lifting into base.css the next time these two forms are touched
   together. If you change one, check the other. */

/* Sections carry vertical rhythm only; the horizontal gutter is on .wrap.
   The header clears the fixed nav (~68px) on top of its own padding. */
.ct-head    { padding: calc(68px + 9vh) 0 9vh; }
.ct-routes,
.ct-form-sec { padding: 12vh 0; }

.ct-h1 { margin-top: 18px; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; max-width: 18ch; }
.ct-h2 { margin-top: 14px; font-size: clamp(26px, 3.2vw, 44px); max-width: 22ch; }
.ct-sub {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.6;
}
.ct-sec-head { max-width: 62ch; }

/* ---- Customer routes ---------------------------------------------------
   Three cards on the dark ground. Same construction as RunnerTag's feature
   cards — hairline border, 10px radius, accent border on hover — so the page
   reads as part of the same system without importing that page's CSS. */
.ct-cards {
  margin-top: 52px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ct-card {
  padding: 30px 26px 34px;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.ct-cards .ct-card:hover { border-color: var(--accent); transform: translateY(-3px); }

/* One variable drives the hex tile: its width, its height (via the regular
   flat-top ratio 2/√3), the glyph inside it, and the width of the grid column
   it sits in. Same device as .rt-hex. */
.ct-card { --hex-w: 46px; }
.ct-hex {
  display: grid;
  place-items: center;
  width: var(--hex-w);
  height: calc(var(--hex-w) / 1.1547);
  background: var(--accent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  color: #0F0F0F;
}
.ct-ico {
  width: calc(var(--hex-w) * .43);
  height: calc(var(--hex-w) * .43);
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hex and title share the top row. The first track is an explicit width, not
   `auto`: an auto track shrinks below its content under pressure and squashes
   the clip-path out of its hexagon ratio. */
.ct-card-head {
  display: grid;
  grid-template-columns: var(--hex-w) 1fr;
  column-gap: 15px;
  align-items: center;
}
.ct-card-head h3 {
  min-width: 0;
  margin-top: 0;
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  color: var(--text);
}
.ct-card p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
}
/* margin-top:auto pins the link to the card's foot so the three align even
   though their body copy differs in length. */
.ct-card-link {
  margin-top: auto;
  padding-top: 20px;
  align-self: start;
  color: var(--accent);
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .28s var(--ease);
}
.ct-card-link:hover { border-bottom-color: var(--accent); }
.ct-card-link .arrow { display: inline-block; transition: transform .28s var(--ease); }
.ct-card-link:hover .arrow { transform: translateX(4px); }
/* Plain link, so it needs its own ring — base.css only covers .btn. */
.ct-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Form -------------------------------------------------------------- */
.ct-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.ct-form-card {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 30px);
}
.ct-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  max-width: 46ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.55;
}
.ct-note a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid rgba(121,152,45,.35); }
.ct-note a:hover { border-bottom-color: var(--accent); }
.ct-note a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 16px;
}
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .field.is-wide { grid-column: 1 / -1; }
.form label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--dim);
}
.form label .req { color: var(--accent); }
.form label .ct-opt {
  font-family: var(--condensed);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.form input,
.form textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  background: rgba(15,15,15,.04);
  border: 1px solid transparent;
  border-radius: 10px;
  outline: 0;
  padding: 9px 12px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input:hover,
.form textarea:hover { background: rgba(15,15,15,.07); }
.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  background: rgba(121,152,45,.06);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--dim-2); }
.form textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
/* Invalid only after a submit attempt — .was-validated is set by the JS, so
   the fields don't turn red while someone is still filling them in. */
.form.was-validated input:invalid,
.form.was-validated textarea:invalid { border-color: #C4432B; }

.form-counter {
  margin-top: 6px;
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--dim-2);
  text-align: right;
}
.form-counter.is-near { color: var(--accent); }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs, and this stays reachable to them while never being seen or tabbed
   to by a person. */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot { margin-top: 26px; }
.form-consent {
  margin-top: 16px;
  color: var(--dim-2);
  font-size: 13px;
  line-height: 1.5;
}
.form-consent a { color: var(--dim); }
.form-consent a:hover { color: var(--accent); }

.form-thanks { display: none; padding: 24px 0; text-align: center; }
.form-thanks .mono {
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}
.form-thanks h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.04;
  margin-bottom: 12px;
}
.form-thanks p { color: var(--dim); font-size: 16px; }

/* On success the form, its button and its consent line are replaced by the
   thank-you panel, so the card doesn't grow a second state below the first. */
.ct-form-card.is-submitted .form,
.ct-form-card.is-submitted .form-foot,
.ct-form-card.is-submitted .form-consent { display: none; }
.ct-form-card.is-submitted .form-thanks  { display: block; }

.form-error {
  margin-top: 16px;
  color: #C4432B;
  font-size: 14px;
  line-height: 1.5;
}
.form-error a { color: #C4432B; text-decoration: underline; }

.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---- Office ------------------------------------------------------------
   Sits inside the form section's copy column rather than carrying a section of
   its own — one address doesn't earn a full band, and it fills the space under
   the shorter copy column beside the taller form card. Same hairline separator
   as .ct-note above it, and a step down in size: this is a detail, not a claim.
   All colours are tokens, so it reads correctly on the cream ground. */
.ct-office {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  /* Same cap as .ct-note so the two hairline rules stack to the same width —
     unmatched, the office rule ran the full column and looked accidental.
     font-size is set here only to give `ch` the same basis .ct-note has; the
     label and address below both set their own size, so nothing else shifts. */
  font-size: 15px;
  max-width: 46ch;
}
.ct-address {
  margin-top: 12px;
  font-style: normal;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.65;
}
.ct-address a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hair-strong); }
.ct-address a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.ct-address a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Responsive --------------------------------------------------------
   3-up → 2-up at 900, 1-up at 600, per the site rule. The form drops to a
   single column at 900 because a half-width card under a half-width copy
   block leaves the inputs too narrow to type in comfortably. */
@media (max-width: 900px) {
  .ct-cards      { grid-template-columns: repeat(2, 1fr); }
  .ct-form-grid  { grid-template-columns: 1fr; }
  .ct-head       { padding: calc(68px + 7vh) 0 7vh; }
  .ct-routes,
  .ct-form-sec   { padding: 9vh 0; }
}

@media (max-width: 600px) {
  .ct-cards { grid-template-columns: 1fr; }
  /* Two half-width name fields at phone width are cramped; stack them. */
  .form     { grid-template-columns: 1fr; }
}
