/* enquiry.css — the persona request forms (php/enquiry.php).

   The board itself is the shared .intake language from css/contact_section.css;
   this file adds only what those forms have that the others do not: the
   intro-beside-board chapter layout, the three-group composition and the
   checkbox chips for "pick any" questions. Every value comes from tokens.css. */

/* ---------- Chapter: intro beside the board ----------
   Stacked until there is room for a two-column board beside the intro; the intro
   then stays in view while the visitor works down the form. */
.enquiry-board {
    display: grid;
    gap: var(--space-10);
}

.enquiry-intro h2 { max-width: var(--measure-display) }
.enquiry-intro .lede { margin-top: var(--space-4) }

.enquiry-perks {
    list-style: none;
    margin: var(--space-8) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.enquiry-perks li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
}

.enquiry-perks i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--color-accent-earth-soft);
    color: var(--color-accent-earth);
}

.enquiry-intro .contact-direct { margin-top: var(--space-8) }

@media (min-width: 1100px) {
    .enquiry-board {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        align-items: start;
        gap: var(--grid-gap);
    }

    .enquiry-intro {
        position: sticky;
        top: calc(var(--header-h) + var(--nav-float) + var(--space-6));
        padding-right: var(--space-6);
    }
}

/* ---------- The board: you + the specifics side by side, the words beneath ---------- */
@media (min-width: 901px) {
    .enquiry-form .intake-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .enquiry-form .intake-group--message { grid-column: 1 / -1 }

    /* The words group is full width, so the textarea need not grow to match a
       neighbour; a comfortable fixed height reads better. */
    .enquiry-form .intake-group--message .field--grow { height: auto }
}

/* Email and phone stack rather than share a row: side by side in a half-width
   group, "Phone or WhatsApp (optional)" truncated to "Phone or WhatsA…". */
.enquiry-form .intake-group--lead .field-row { grid-template-columns: minmax(0, 1fr) }

/* ---------- "Pick any" chips ----------
   Real checkboxes, visually a row of chips. The input stays in the accessibility
   tree and takes keyboard focus; the chip shows its state. */
.choice-chips {
    min-width: 0;
    margin: 0 0 var(--space-5);
    padding: 0;
    border: 0;
}

.choice-chips-legend {
    float: left;
    width: 100%;
    margin-bottom: var(--space-3);
    padding: 0;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-accent-earth);
}

.choice-chips-legend span {
    margin-left: var(--space-2);
    color: var(--color-text-subtle);
    letter-spacing: .04em;
    text-transform: none;
    font-weight: var(--weight-medium);
}

.choice-chips-list {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.chip span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-control);
    background: var(--color-ivory);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* A drawn tick, not an icon font: it must survive a blocked CDN. */
.chip span::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1.5px solid var(--color-greige);
    border-radius: 4px;
    background: var(--color-paper);
    transition: background var(--transition), border-color var(--transition);
}

@media (hover: hover) {
    .chip:hover span { border-color: var(--color-accent-earth) }
}

.chip input:checked + span {
    background: var(--color-accent-earth-soft);
    border-color: var(--color-accent-earth);
}

.chip input:checked + span::before {
    border-color: var(--color-accent-earth);
    background: var(--color-accent-earth);
    box-shadow: inset 0 0 0 2.5px var(--color-paper);
}

.chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px }

/* ---------- get-started: "your form is over here" ----------
   Shown only once a visitor has chosen a persona (data-aud-only); points them at
   the form that asks the right questions for their request. */
.persona-direct {
    margin: var(--space-8) 0 var(--space-6);
    padding: var(--space-5);
    border: 1px solid var(--color-accent-earth);
    border-radius: var(--radius-lg);
    background: var(--color-paper);
}

.persona-direct-kicker {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-accent-earth);
}

.persona-direct p { font-size: var(--text-sm); color: var(--color-text-muted) }
.persona-direct .btn { margin-top: var(--space-4) }

@media (prefers-reduced-motion: reduce) {
    .chip span, .chip span::before { transition: none }
}
