/* ============================================================================
   contact-phrase.css — the canonical homepage phrase form (.cfx, gold #f0d074)
   as a SHARED page layer.

   Owner request, 1 Dec 2026: "this old contact-form section should be replaced
   by the new one from the canonical homepage (the one on yellow background) …
   this refers to all pages that have the old contact form."

   Single source for every page that renders src/partials/contact-phrase-form.html:
   about · services hub · the eight /services/<slug>/ routes · case studies ·
   contact. About carried a page-scoped copy in about.css §I from the first
   sweep; that copy moved here verbatim so the form cannot drift per page.

   Values are the homepage's (css/pages/home-copy.css §8) — palette, type steps,
   paddings and control grammar. Do not tune them here: change the homepage §8
   and re-copy, or the forms drift.

   Stacking is the tail chain's, unchanged from the block it replaces: z11
   (above the testimonials' z10, below the footer's z12), the overlay cast
   shadow, and the controller-driven park. .cfx only becomes sticky once
   motion.js has measured it and written --park-top, so a section taller than
   the fold parks with its bottom on the viewport edge instead of pushing the
   submit button off-screen. Under reduced motion it releases to a plain scroll
   like every other sheet.
   ========================================================================== */

/* ── the component ──────────────────────────────────────────────────────── */
.cfx { background: #f0d074; color: #1a2b2b; position: relative; z-index: 11; box-shadow: 0 -16px 36px rgba(0, 0, 0, .22); }
.cfx.is-parked { position: sticky; top: var(--park-top, 0px); }
/* the chain strips its cast shadows under reduced motion — this section
   follows the same rule so the reduced page stays one flat scroll */
@media (prefers-reduced-motion: reduce){ .cfx { box-shadow: none; } .cfx.is-parked { position: relative; top: auto; } }
.cfx__inner { max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-block: 72px 80px; padding-inline: var(--gutter); }
/* size follows the page's h2 tier (owner, 29 Nov): this section head now
   matches the contact section's h2 (.cf__title--copy) — 70 / 80 / 64 — which
   is the h2 it sits directly above and the size already shipped at desktop,
   so only the tablet and mobile steps change (was 44 / 32). Leading kept at
   1.0 like that h2. Caps 800 at display scale stays D-M12-legal. */
.cfx__title { margin: 0; font-size: 70px; line-height: 70px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.cfx__phrase { margin: 32px 0 0; font-size: 20px; line-height: 30px; font-weight: 400; }
.cfx__blank {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 2px solid rgba(26, 43, 43, .45);
  border-radius: 0; padding: 0 2px 1px; margin: 0 .1em;
  field-sizing: content; max-width: 100%;
}
.cfx__blank::placeholder { color: rgba(26, 43, 43, .55); opacity: 1; }
.cfx__blank:focus { outline: none; border-bottom: 3px solid #1a2b2b; padding-bottom: 0; }
.cfx__blank:focus-visible { outline: 3px solid #1a2b2b; outline-offset: 3px; }
/* An address needs somewhere to live before it is typed: field-sizing sizes
   the blank to its placeholder, so "your email" rested at 107px. The min-width
   (em-based, so it scales 20→23px) gives it a real writing space while
   field-sizing still lets a long address extend past it. */
.cfx__blank--email { min-width: 8em; }
.cfx__blank--wide { min-width: 0; }
/* The "what I need help with" blank is a real dropdown (owner, 29 Nov):
   it carries exactly the options of the classic contact form, bound to the
   same deck tokens (contact.fields.service.placeholder + contact.serviceOptions
   0-7), so the two forms can never list different services. appearance:none
   keeps the underlined-blank look; a drawn chevron stands in for the native
   arrow, and an empty required value renders the placeholder in the muted ink
   the other blanks use. Width is intrinsic (the widest option) so no option
   label is ever clipped; max-width keeps it inside the sentence column. */
.cfx__select {
  width: auto; cursor: pointer; padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a2b2b' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 10px 6px;
  text-overflow: ellipsis;
  /* keeps the select inside the sentence column AND leaves room for the
     period that follows it, so the sentence never re-opens a line on a bare
     "." — at ≤379px the longest label ellipsises in the closed state (the open
     list still shows every label in full) instead of pushing into the gutter. */
  max-width: calc(100% - 1.2em);
}
.cfx__select:invalid { color: rgba(26, 43, 43, .55); }
.cfx__select option {
  color: #1a2b2b; background: #f0d074;
  /* the open list is a control list, not a sentence: 16px matches the classic
     form's field text. Chrome renders options with these styles (the popup
     already picks up this background), so the list no longer inherits the
     select's 29px phrase size. The closed select keeps the sentence size. */
  font-size: 16px; line-height: 22px; padding: 4px 8px;
}
.cfx__error {
  margin: 14px 0 0; max-width: 46em;
  font-size: 15px; line-height: 20px; font-weight: 400; color: #1a2b2b;
}
/* ---- phone: country picker + formatted number (owner, 29 Nov) ----------
   The classic form auto-detects a flag + dial code; here the visitor picks the
   country (searchable) and the number groups itself per that country. The chip
   sits inline in the sentence before the blank, at the sentence's own ink and
   size so it reads as part of the phrase rather than a control bolted on. */
.cfx__page, .cfx__phone { position: relative; }
.cfx__cc {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 0 2px 1px; margin: 0 .1em 0 0; border-bottom: 2px solid rgba(26, 43, 43, .45);
}
.cfx__cc:hover, .cfx__cc[aria-expanded="true"] { border-bottom-color: #1a2b2b; }
.cfx__cc:focus-visible { outline: 3px solid #1a2b2b; outline-offset: 3px; }
.cfx__cc-flag { font-size: .92em; line-height: 1; }
.cfx__cc-dial { font-variant-numeric: tabular-nums; }
/* the panel is a paper card on the gold slab: ink on #ffffff, square, one
   hairline, no radius — the site's card grammar at control scale */
.cfx__cc-panel {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0;
  width: min(19em, calc(100vw - 32px));
  max-height: min(15em, 62vh); overflow-y: auto;
  background: #ffffff; border: 1px solid #1a2b2b; box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}
.cfx__cc-panel[hidden] { display: none; }
.cfx__cc-search {
  display: block; width: 100%; box-sizing: border-box;
  font: inherit; font-size: 16px; line-height: 22px; color: #1a2b2b; background: #ffffff;
  border: 0; border-bottom: 1px solid #d5d8d9; padding: .55em .7em; outline: none;
}
.cfx__cc-search:focus-visible { outline: 2px solid #1a2b2b; outline-offset: -2px; }
.cfx__cc-search::placeholder { color: #6a787b; opacity: 1; }
.cfx__cc-list { display: block; }
.cfx__cc-opt {
  display: flex; align-items: baseline; gap: .5em; width: 100%;
  font: inherit; font-size: 16px; line-height: 22px; color: #1a2b2b; background: none; border: 0;
  padding: .42em .7em; cursor: pointer; text-align: left;
}
.cfx__cc-opt:hover, .cfx__cc-opt.is-active { background: #f6f6f6; }
.cfx__cc-opt[aria-selected="true"] { font-weight: 700; }
.cfx__cc-opt-flag { font-size: 1em; line-height: 1; }
.cfx__cc-opt-name { flex: 1 1 auto; }
.cfx__cc-opt-dial { color: #6a787b; font-variant-numeric: tabular-nums; }
.cfx__blank--phone { min-width: 7em; }
.cfx__error[hidden] { display: none; }
/* invalid email: the underline thickens to full ink (no red exists in this
   palette and gold-on-gold would vanish) while the message carries the signal */
.cfx__blank[aria-invalid="true"] { border-bottom-color: #1a2b2b; border-bottom-width: 3px; padding-bottom: 0; }
.cfx__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 40px 0 0; }
.cfx__send { border: 0; border-radius: 0; cursor: pointer; background: #1a2b2b; color: #f0d074; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; height: 48px; padding: 0 24px; }
.cfx__send:hover { background: #363f43; }
.cfx__send:focus-visible { outline: 3px solid #1a2b2b; outline-offset: 3px; }
.cfx__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 20px; font-weight: 400; }
.cfx__check { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border: 2px solid #1a2b2b; border-radius: 0; background: transparent; cursor: pointer; }
.cfx__check:checked { background: #1a2b2b; box-shadow: inset 0 0 0 3px #f0d074; }
.cfx__check:focus-visible { outline: 3px solid #1a2b2b; outline-offset: 3px; }
/* privacy link inside the consent line: same ink as the sentence, underlined
   so it reads as a link without introducing a colour the palette does not have.
   The RO page renders it as an inert label (no href, data-inert) per the RO
   launch rule, so the hover treatment is scoped to real links. */
.cfx__consent-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cfx__consent-text a:hover { text-decoration-thickness: 2px; }
.cfx__consent-text a:focus-visible { outline: 3px solid #1a2b2b; outline-offset: 3px; }
/* the plain-email alternative sits under the form, at the consent line's own
   size and ink so it reads as a quieter way in rather than a second CTA.
   Colour is inherited from the section (the phrase's own ink), so this rule
   introduces no new colour literal. */
.cfx__direct { margin: 16px 0 0; max-width: 46em; font-size: 15px; line-height: 20px; font-weight: 400; color: inherit; }
.cfx__direct a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cfx__direct a:hover { text-decoration-thickness: 2px; }
.cfx__direct a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
/* The RO consent label is inert (no href): it stays full-ink plain text rather
   than a dimmed or underlined non-link, so contrast is unchanged and nothing
   invites a click that would do nothing. */
.cfx__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 640px) {
  .cfx__inner { padding-block: 96px 104px; }
  .cfx__title { font-size: 80px; line-height: 80px; }
  .cfx__phrase { margin-top: 40px; max-width: 640px; font-size: 23px; line-height: 33px; }
  .cfx__blank--wide { display: inline-block; width: auto; min-width: 24ch; margin: 0 .1em; }
  .cfx__actions { flex-direction: row; align-items: center; gap: 24px; margin-top: 48px; }
}
@media (min-width: 1200px) {
  .cfx__inner { padding-block: 120px 128px; }
  .cfx__title { font-size: 64px; line-height: 64px; }
  .cfx__phrase { margin-top: 48px; max-width: 880px; font-size: 29px; line-height: 42px; }
}
