/* ==========================================================================
   Contact: the guided project inquiry, the page's one job.
   Fields, choices and notices come from wisdigix.css §20 (src/50-forms.css). This file lays the form beside a
   sticky email card, draws the four steps as one numbered lane that ends in the Send button, styles the
   two-level goal step and the service zones, the confirmation, and "What happens next" as three stations.
   contact.js relies on: .contact-step.is-invalid, .js .contact-sub:not(.is-on), .js .contact-time-sink:not(.is-on),
   .js .contact-time-sink__nojs, .contact-zone:empty, .no-js .contact-count, and labels found with closest('.wg-choice').
   ========================================================================== */

/* Layout: the form takes 7 of 12 columns (8 below 1200px), the email card 4, sticky beside it.
   The form is the page's job, so it starts closer under the banner than a normal section would. */
.contact-page { padding-top: calc(var(--section-y) * .62); }
.contact-layout { display: grid; gap: var(--s-8) var(--gap); }
.contact-main { min-width: 0; }
@media (min-width: 992px) {
    .contact-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
    .contact-main { grid-column: 1 / span 8; }
    .contact-aside {
        position: sticky;
        top: calc(var(--header-h) + var(--s-5));
        grid-column: 9 / span 4;
    }
}
@media (min-width: 1200px) {
    .contact-main { grid-column: 1 / span 7; }
}
.contact-main > .wg-section-head { margin-bottom: var(--s-7); }

/* Fields linked from the error summary land with their label, hint and error message below the
   sticky header (the phone hint on the description runs to four lines). Capped at 45vh, so on a
   phone held sideways the field itself still lands inside the screen. */
.contact-form input,
.contact-form select { scroll-margin-top: min(12rem, 45vh); }
.contact-form textarea { scroll-margin-top: min(19rem, 45vh); }
.contact-options input { scroll-margin-top: min(16rem, 45vh); }

.contact-form {
    --station: 2.25rem;              /* the numbered square on the lane */
    --lane-x: 1.125rem;              /* the lane runs through the middle of the square */
    --lane-pad: 4rem;                /* where step content starts beside the lane */
    --step-top: var(--s-6);          /* space between a step's top rule and its title */
    --step-gap: calc(var(--s-5) + var(--s-4));   /* form gap plus the step margin */
}
.contact-form__intro { margin: 0; color: var(--fg-muted); font-size: var(--fs-small); }

/* Error summary */
.contact-errors { padding: var(--s-5); }
.contact-errors:focus { outline: 2px solid var(--error); outline-offset: 3px; border-radius: var(--radius); }
.contact-errors__title {
    margin: 0 0 var(--s-3);
    color: var(--fg-strong);
    font-size: var(--fs-h4);
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.contact-errors ul { margin: 0; padding-left: 1.1em; }
.contact-errors li + li { margin-top: var(--s-2); }
.contact-errors li::marker { color: var(--error); }
.contact-errors a {
    padding-block: 2px;
    color: var(--fg-strong);
    text-decoration: underline;
    text-decoration-color: var(--error);
    text-underline-offset: .22em;
}
.contact-errors a:hover,
.contact-errors a:focus-visible { color: var(--error); }

/* Urgent flag and the "asking about" notice, above step 01 */
.contact-urgent .wg-choice { align-self: flex-start; }
.contact-ask { margin: 0; }

/* Steps: a top rule, a mono station number and the title. From 768px the stations sit on one vertical lane. */
.contact-step {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: var(--step-top) 0 0;
    border: 0;
}
.contact-step + .contact-step { margin-top: var(--s-4); }
.contact-step::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px solid var(--rule);
}
.contact-step__legend {
    float: left;               /* lets the legend sit in the flow like a normal block */
    width: 100%;
    margin: 0;
    padding: 0;
}
/* Every child below the legend gets the same space above it, so a hidden first child adds no extra gap.
   Padding, not margin: the first child clears the floated legend, and clearance swallows a top margin.
   (Every direct child is a borderless wrapper, so the padding never shows inside a box.) */
.contact-step > :not(legend) { clear: both; margin-top: 0; padding-top: var(--s-5); }
.contact-step > .wg-field__hint + .wg-field__error { padding-top: var(--s-2); }
.contact-step__head {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--fg-strong);
    font-size: var(--fs-h3);
    font-weight: 620;
    letter-spacing: -.014em;
    line-height: 1.25;
}
.contact-step__num {
    display: grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--fg-strong);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    line-height: 1;
    transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
/* The step being filled in is the active station: raised to graphite, a mist edge, the number in orange
   (never a light block). A step with an error keeps the error colour, and raises the same way in focus. */
.contact-step:focus-within .contact-step__num { border-color: var(--fg-strong); background: var(--c-graphite); color: var(--accent-fg); font-weight: 600; }
.contact-step.is-invalid .contact-step__num { border-color: var(--error); background: var(--error-tint); color: var(--error); }
.contact-step.is-invalid:focus-within .contact-step__num { background: var(--c-graphite); font-weight: 600; }
.contact-step__optional { color: var(--fg-muted); font-size: 1rem; font-weight: 400; letter-spacing: 0; }

@media (min-width: 768px) {
    .contact-step { padding-left: var(--lane-pad); }
    .contact-step::after { left: var(--lane-pad); }
    .contact-step__num {
        position: absolute;
        top: calc(var(--step-top) + (var(--fs-h3) * 1.25 - var(--station)) / 2);
        left: 0;
        width: var(--station);
        height: var(--station);
    }
    /* The lane: from each station down to the next one, and from the last step into the Send button */
    .contact-step::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: calc(-1 * var(--step-gap));
        left: var(--lane-x);
        border-left: 1px solid var(--rule-strong);
    }
    .contact-step:first-of-type::before { top: var(--step-top); }
}

/* Step 01: a carried package, then the goal (closed once there is an answer) */
.contact-package { display: grid; gap: var(--s-3); justify-items: start; }
.contact-package .wg-notice { width: 100%; margin: 0; }

/* The two collapsible parts of the form (goal, browse all services): quiet bordered rows with a drawn chevron.
// commerce:begin contact-styles/selection
   (continued after the selection box) */

/* "Your selection" above step 01 (app/partials/selection-box.php, patch contact-styles): a coal card with a hairline edge, the
   lines as ruled rows with their figures in mono, the totals, the terms, then Change and Remove. It is also the error summary's
   target for a changed price, so it lands below the sticky header like the fields do. */
.contact-selection {
    padding: var(--s-6);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface-1);
    scroll-margin-top: min(12rem, 45vh);
}
.contact-selection:focus { outline: none; }
.contact-selection.is-invalid { border-color: var(--error); }
.contact-selection__title { margin: 0; color: var(--fg-strong); font-size: var(--fs-h4); font-weight: 620; line-height: 1.3; }
.contact-selection__lead { margin: var(--s-2) 0 0; color: var(--fg-muted); font-size: var(--fs-small); }
.contact-selection__notice { margin: var(--s-4) 0 0; }
.contact-selection__lines { margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.contact-selection__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-1) var(--s-4);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--rule);
}
.contact-selection__label { flex: 1 1 12rem; min-width: 0; color: var(--fg-strong); overflow-wrap: anywhere; }
.contact-selection__qty { color: var(--fg-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.contact-selection__note { display: block; margin-top: .15rem; color: var(--fg-muted); font-size: var(--fs-label); }
.contact-selection__amount { margin-left: auto; color: var(--fg-strong); text-align: right; }
.contact-selection__amount.is-money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-selection__code {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-1) var(--s-4);
    margin: 0;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--rule);
    color: var(--fg);
    font-size: var(--fs-small);
}
.contact-selection__totals { display: grid; gap: .375rem; margin: var(--s-4) 0 0; }
.contact-selection__totals > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem var(--s-3); }
.contact-selection__totals dt { color: var(--fg); font-size: var(--fs-small); font-weight: 600; }
.contact-selection__totals dd {
    margin: 0 0 0 auto;
    color: var(--fg-strong);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}
.contact-selection__text,
.contact-selection__terms { margin: var(--s-3) 0 0; color: var(--fg-muted); font-size: var(--fs-small); }
.contact-selection__text { color: var(--fg); }
.contact-selection__actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: var(--s-5) 0 0; }
.contact-selection__removed { margin: 0; color: var(--fg-muted); font-size: var(--fs-small); }
.contact-selection__removed:focus { outline: none; }
.contact-done__offer { margin: 0 0 var(--s-5); }
@media (max-width: 575px) {
    .contact-selection { padding: var(--s-5); }
}

/* The comment the selection box was inserted into goes on:
// commerce:end contact-styles/selection
   Scoped tightly so the FAQ accordion's own look elsewhere doesn't leak in. */
.contact-form .wg-faq { display: block; margin-bottom: 0; border: 0; }
/* The shared FAQ clips the opening content (to animate its height), which would also cut the 2px focus
   ring of the tiles inside it; the clip edge sits a little outside the box instead. */
.contact-form .wg-faq details::details-content { overflow-clip-margin: .5rem; }
.contact-form .wg-faq > details {
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface-1);
    box-shadow: none;
}
.contact-form .wg-faq > details > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: .875rem 3rem .875rem 1.25rem;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--fg-strong);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.4;
    text-transform: none;
    list-style: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.contact-form .wg-faq > details > summary::-webkit-details-marker { display: none; }
.contact-form .wg-faq > details > summary::before { content: none; }
.contact-form .wg-faq > details > summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: .5rem;
    height: .5rem;
    margin-top: -.375rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    border-radius: 0;
    background: none;
    font: inherit;
    line-height: 1;
    transform: rotate(45deg);
    transition: transform var(--dur) var(--ease-out);
}
.contact-form .wg-faq > details[open] > summary { border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; background: none; color: var(--fg-strong); }
.contact-form .wg-faq > details[open] > summary::after { margin-top: -.125rem; transform: rotate(-135deg); }
.contact-form .wg-faq > details > summary:focus-visible { border-radius: var(--radius); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .contact-form .wg-faq > details > summary:hover { background: var(--c-graphite); color: var(--fg-strong); }
}
.contact-form .wg-faq__answer { max-width: none; padding: var(--s-5); border: 0; background: none; }

.contact-form .contact-goal.is-plain { border: 0; border-radius: 0; background: none; }
.contact-form .contact-goal.is-plain > .contact-goal__body { padding: 0; }
.contact-goal__body { display: grid; gap: var(--s-6); }

/* Radios: one column on phones, two from 640px; the last odd tile takes the full row */
.contact-options { display: grid; gap: var(--s-2); }
@media (min-width: 640px) {
    .contact-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-options > .wg-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.contact-options > .wg-choice { display: flex; }

/* Level 1: the situation as a larger tile, short name over the full label (tiles in one row share a height
   through the grid, so a one-line tile on a phone stays as short as its text) */
.contact-pill { --choice-pad: 1rem; }
.contact-pill b { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.contact-pill b + small { margin-top: .25rem; }

/* Level 2: only the chosen situation's goals with JS, all of them without */
.contact-sub { min-width: 0; margin: 0; padding: 0; border: 0; }
.js .contact-sub:not(.is-on) { display: none; }
.contact-sub__title {
    float: left;
    width: 100%;
    margin: 0 0 var(--s-3);
    padding: 0;
    color: var(--fg-strong);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.4;
}
.contact-sub__title + * { clear: both; }

/* Step 02: zone A (suggested, carried) over zone B (browse everything) */
.contact-suggested { display: grid; gap: var(--s-3); }
.contact-suggested__title,
.contact-suggested__lead {
    margin: 0;
    color: var(--fg-strong);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.4;
}
.contact-suggested__title { font-size: 1rem; font-weight: 620; letter-spacing: -.005em; }
/* "In your project" after the suggested tiles starts a new group: more space above than inside it */
.contact-zone + .contact-suggested__lead { margin-top: var(--s-3); }
.contact-zone:empty { display: none; }

.contact-count {
    margin: 0;
    color: var(--fg-muted);
    font-size: var(--fs-small);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.no-js .contact-count { display: none; }   /* nothing keeps it up to date without JS */

.contact-more__body { display: grid; gap: var(--s-6); }
.contact-stage { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-stage__title {
    float: left;
    display: flex;
    align-items: baseline;
    gap: .75rem;
    width: 100%;
    margin: 0 0 var(--s-4);
    padding: 0 0 var(--s-2);
    border-bottom: 1px solid var(--rule);
    color: var(--fg-strong);
    font-size: var(--fs-h4);
    font-weight: 620;
    letter-spacing: -.01em;
    line-height: 1.35;
}
.contact-stage__num {
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.contact-stage__title + * { clear: both; }
.contact-cats { display: grid; gap: var(--s-5); }
.contact-cat { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-cat__title {
    float: left;
    width: 100%;
    margin: 0 0 var(--s-2);
    padding: 0;
    color: var(--fg-muted);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--track-label);
    line-height: 1.4;
}
.contact-cat__title + * { clear: both; }
/* 77 services: compact tiles in the browse list */
.contact-more .wg-choice { --choice-pad: .5625rem; }
.contact-more .wg-choice > span { min-height: 2.5rem; }

/* One tile per row on phones */
@media (max-width: 639px) {
    .contact-zone,
    .contact-more .wg-choices { display: grid; }
    .contact-zone .wg-choice,
    .contact-more .wg-choice { display: flex; }
}

/* Step 03: the time-sink question shows only when it applies (always without JS) */
.js .contact-time-sink:not(.is-on) { display: none; }
.js .contact-time-sink__nojs { display: none; }
textarea.contact-time-sink__input { min-height: 7.5rem; }

/* Step 04: consent is a plain checkbox line, not a tile */
.contact-consent .wg-choice { --choice-inset: 0px; --choice-pad: .125rem; align-self: flex-start; }
.contact-consent .wg-choice > span {
    --choice-bg: transparent;
    --choice-border: transparent;
    --choice-fg: var(--fg);
    min-height: 0;
    padding-right: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}
.contact-consent .wg-choice > input:checked + span {
    --choice-bg: transparent;
    --choice-border: transparent;
    --choice-fg: var(--fg-strong);
    --mark-bg: var(--c-orange);       /* the orange check, an obsidian tick */
    --mark-border: var(--c-orange);
    --mark-fg: var(--c-obsidian);
}
@media (hover: hover) and (pointer: fine) {
    .contact-consent .wg-choice:hover > input:checked:not(:disabled) + span { --choice-bg: transparent; --choice-border: transparent; }
}
.contact-consent input[aria-invalid="true"]:not(:checked) + span { --mark-border: var(--error); --mark-bg: var(--error-tint); }
.contact-consent .wg-field__hint a {
    padding-block: 2px;   /* a 24px target that stays part of the sentence */
    color: var(--fg-strong);
    text-decoration: underline;
    text-decoration-color: var(--accent-fg);
    text-underline-offset: .2em;
}
.contact-consent .wg-field__hint a:hover,
.contact-consent .wg-field__hint a:focus-visible { color: var(--accent-fg); }

/* Submit: the lane ends in the button with a right-angle turn */
.contact-submit {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3) var(--s-5);
    margin-top: var(--s-4);
}
.contact-submit p { max-width: 22rem; margin: 0; color: var(--fg-muted); font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 768px) {
    .contact-submit { padding-left: var(--lane-pad); }
    .contact-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: var(--lane-x);
        width: calc(var(--lane-pad) - var(--lane-x));
        height: 26px;          /* to the middle of the 52px button */
        border-bottom: 1px solid var(--rule-strong);
        border-left: 1px solid var(--rule-strong);
        pointer-events: none;
    }
}
@media (max-width: 539px) {
    .contact-submit .wg-btn { width: 100%; }
}
/* Sending: the text changes to "Sending…" (contact.js); a turning ring says it is working */
.contact-submit .wg-btn.is-loading { opacity: 1; }
.contact-submit .wg-btn.is-loading::after {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: contact-spin .8s linear infinite;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .contact-submit .wg-btn.is-loading::after { display: none; }
}

/* Phones: the collapsible rows lose a little side padding */
@media (max-width: 575px) {
    .contact-form .wg-faq__answer { padding: var(--s-4); }
    .contact-form .wg-faq > details > summary { padding-left: var(--s-4); }
}

/* Email card: a coal card with a hairline edge beside the form; the reply line follows the urgent box */
.contact-aside__card {
    padding: var(--s-6);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--c-coal);
    color: var(--fg);
}
.contact-aside__title {
    margin: 0 0 var(--s-3);
    color: var(--fg-strong);
    font-size: var(--fs-h3);
    font-weight: 620;
    letter-spacing: -.014em;
    line-height: 1.25;
}
.contact-aside__card > p { max-width: 30rem; margin: 0 0 var(--s-4); color: var(--fg); font-size: var(--fs-small); line-height: 1.55; }
.contact-aside__email {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    max-width: 100%;
    min-height: 44px;
    color: var(--fg-strong);
    font-size: 1.0625rem;
    font-weight: 620;
    letter-spacing: -.01em;
}
.contact-aside__email .wg-icon { width: 1.25rem; height: 1.25rem; color: var(--accent-fg); }
.contact-aside__email span {
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
    transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.contact-aside__email:hover,
.contact-aside__email:focus-visible { color: var(--fg-strong); }
.contact-aside__email:hover span,
.contact-aside__email:focus-visible span { text-decoration-color: var(--accent-fg); }
.contact-aside__facts { margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.contact-aside__facts > div + div { margin-top: var(--s-4); }
.contact-aside__facts dt { color: var(--fg-muted); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); line-height: 1.4; }
.contact-aside__facts dd { margin: .25rem 0 0; color: var(--fg-strong); font-size: var(--fs-small); line-height: 1.5; }

/* Reply line: the server's render first, then the box's live state where :has() is supported (works without JS) */
.contact-aside__urgent { display: none; }
.contact-aside__card.is-urgent .contact-aside__urgent { display: inline; }
.contact-aside__card.is-urgent .contact-aside__normal { display: none; }
.contact-page:has(#inq-urgent:not(:checked)) .contact-aside__normal { display: inline; }
.contact-page:has(#inq-urgent:not(:checked)) .contact-aside__urgent { display: none; }
.contact-page:has(#inq-urgent:checked) .contact-aside__normal { display: none; }
.contact-page:has(#inq-urgent:checked) .contact-aside__urgent { display: inline; }

/* Confirmation after sending */
.contact-done:focus { outline: none; }
.contact-done__mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--s-5);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    background: var(--success-tint);
    color: var(--success);
}
.contact-done__mark .wg-icon { width: 1.5rem; height: 1.5rem; }
.contact-done__email,
.contact-done .wg-title { overflow-wrap: anywhere; }   /* the visitor's own name and address can be very long */
.contact-sent {
    padding: var(--s-6);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface-1);
}
.contact-sent__title { margin: 0 0 var(--s-4); font-size: var(--fs-h4); font-weight: 620; }
.contact-sent dl { margin: 0; }
.contact-sent dl > div {
    display: grid;
    gap: var(--s-1) var(--s-6);
    padding: var(--s-4) 0;
    border-top: 1px solid var(--rule);
}
.contact-sent dl > div:last-child { padding-bottom: 0; }
@media (min-width: 640px) {
    .contact-sent dl > div { grid-template-columns: 8rem minmax(0, 1fr); }
}
.contact-sent dt { color: var(--fg-muted); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); line-height: 1.5; }
.contact-sent dd { margin: 0; color: var(--fg-strong); }
.contact-sent .wg-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.contact-sent .wg-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .25rem .75rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--fg-strong);
    font-size: var(--fs-small);
}
@media (max-width: 575px) {
    .contact-sent { padding: var(--s-5); }
}
.contact-done__actions { margin-top: var(--s-7); }

/* What happens next: three stations on one lane (vertical on phones, horizontal from 768px) */
.contact-next .wg-section-head { margin-bottom: var(--s-7); }
.contact-cards { display: grid; margin: 0; padding: 0; list-style: none; }
.contact-card {
    position: relative;
    min-width: 0;
    padding: 0 0 var(--s-6) 3.5rem;
}
.contact-card:last-child { padding-bottom: 0; }
.contact-card__num {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--fg-strong);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
/* The first station is where the project starts: the one orange signal on this lane */
.contact-card:first-child .contact-card__num::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fg-strong);
    box-shadow: 0 0 0 2px var(--surface-1);
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    bottom: 0;
    left: 1.125rem;
    border-left: 1px solid var(--rule-strong);
}
.contact-card:last-child::before { display: none; }
.contact-card__title {
    margin: 0 0 var(--s-2);
    padding-top: .1875rem;
    font-size: var(--fs-h3);
    font-weight: 620;
    letter-spacing: -.014em;
    line-height: 1.25;
}
.contact-card p { max-width: 24rem; margin: 0; color: var(--fg); }
@media (min-width: 768px) {
    .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
    .contact-card { padding: 3.75rem var(--s-4) 0 0; }
    .contact-card::before {
        top: 1.125rem;
        right: calc(-1 * var(--gap));
        bottom: auto;
        left: 2.25rem;
        border-top: 1px solid var(--rule-strong);
        border-left: 0;
    }
    .contact-card__title { padding-top: 0; }
}
