/*
 * Home v3 — final fold (#enquire): "Two-Tap Close" inline enquiry + the page-wide mobile sticky bar.
 * Prefix .fn-. Tokens only (no hex). Form internals are scoped to #contact_form so they beat main.css
 * (.prince2-homepage .review .form …) without !important. Mobile-first: 640 / 768 / 1024 / 1200.
 * De-congested 27 Nov 2026: the left side is the H2, one line, the rating and a quiet phone line; the card shows one
 * step at a time with room around every control. One screen on desktop is reached by showing less, never by squeezing:
 * there are no height-based shrink rules, so on a short window the fold simply grows.
 */

/* ---------- Section shell ---------- */
.home-v3 .fn-final { padding-bottom: 128px; }
.home-v3 .fn-grid { position: relative; z-index: 1; display: grid; gap: 40px; }

/* ---------- Left: H2, one line, one proof line ---------- */
.home-v3 .fn-head { max-width: 34rem; }
.home-v3 .fn-h2 { margin-top: 0; }
.home-v3 .fn-sub { max-width: 30rem; margin-top: 16px; font-size: 17px; line-height: 1.6; }
.home-v3 .fn-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }
.home-v3 .fn-proof-item { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Left: one quiet phone line ---------- */
.home-v3 .fn-aside { position: relative; z-index: 1; min-width: 0; }
.home-v3 .fn-side-row { display: block; }
.home-v3 .fn-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }
.home-v3 .fn-phone-h { color: inherit; }
.home-v3 .fn-tel {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--on-dark);
    text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-decoration-thickness: 1px; text-underline-offset: 6px;
    transition: text-decoration-color var(--t-base) ease, color var(--t-base) ease;
}
.home-v3 .fn-tel .v3-i { color: var(--amber); transition: transform 320ms var(--ease); }
.home-v3 .fn-tel:hover { text-decoration-color: var(--amber); }

/* ---------- Form card ---------- */
.home-v3 .fn-card {
    position: relative; z-index: 1; display: block; padding: 24px 22px; border-radius: var(--r-card, 20px); background: var(--white); color: var(--ink-2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 80px -32px rgba(31, 3, 45, .9);
    scroll-margin-top: 96px;
}
.home-v3 #contact_form { display: block; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; color: var(--ink-2); }
.home-v3 #contact_form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.home-v3 #contact_form legend { padding: 0; }
.home-v3 #contact_form .fn-req { color: var(--danger, firebrick); font-weight: 600; }
.home-v3 #contact_form .fn-opt { font-size: 14px; font-weight: 400; color: var(--mute); }

/* focus on the white card: brand ring, not the ink-section amber */
.home-v3 .v3-ink .fn-card a:focus-visible, .home-v3 .v3-ink .fn-card button:focus-visible, .home-v3 .v3-ink .fn-card summary:focus-visible { outline: var(--focus-light); outline-offset: 2px; }

/* Progress (JS only): a label and a bar that fills as the step changes */
.home-v3 #contact_form .fn-progress { display: none; align-items: center; gap: 16px; margin-bottom: 28px; }
.home-v3 #contact_form.is-stepped .fn-progress { display: flex; }
.home-v3 #contact_form .fn-progress-label { flex: none; width: auto; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; color: var(--mute); font-variant-numeric: tabular-nums; }
.home-v3 #contact_form .fn-track { flex: 1 1 auto; min-width: 48px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--l200); }
.home-v3 #contact_form .fn-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); transform: scaleX(.5); transform-origin: left center; }
.home-v3 #contact_form.is-two .fn-fill { transform: scaleX(1); }

/* Steps */
.home-v3 #contact_form .fn-step { display: flex; flex-direction: column; min-width: 0; }
.home-v3 #contact_form .fn-step[data-step="1"] { gap: 28px; }
.home-v3 #contact_form:not(.is-stepped) .fn-step[data-step="2"] { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--l200); }
.home-v3 #contact_form:not(.is-stepped) .fn-chips,
.home-v3 #contact_form:not(.is-stepped) .fn-continue,
.home-v3 #contact_form:not(.is-stepped) .fn-summary { display: none; }
.home-v3 #contact_form .fn-legend { display: block; width: auto; margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.home-v3 #contact_form .fn-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; margin-bottom: 12px; }
.home-v3 #contact_form .fn-group-head .fn-legend { margin-bottom: 0; }
.home-v3 #contact_form .fn-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-bottom: 20px; }
.home-v3 #contact_form .fn-step-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.home-v3 #contact_form .fn-step-title:focus { outline: none; }

/* Choices: funding cards (the existing .fundingTypeEnq radios, focusable, not display:none) and the course / format chips
   (detached radios: never posted). The tick is a corner badge that scales in, so picking never changes a width. */
.home-v3 #contact_form .funding { display: block; }
.home-v3 #contact_form .funding span { color: inherit; }
.home-v3 #contact_form .funding .fn-req { color: var(--danger, firebrick); }
.home-v3 #contact_form .fn-fund-grid { display: grid; gap: 12px; }
.home-v3 #contact_form .funding .fn-fund {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; max-height: none; margin: 0; padding: 12px 18px;
    border: 1.5px solid var(--l300); border-radius: var(--r-choice); background: var(--white); color: var(--ink);
    font-size: 16px; font-weight: 400; cursor: pointer;
}
.home-v3 #contact_form .fn-fund .select-hide { display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.home-v3 #contact_form .funding .fn-fund-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--l100); color: var(--brand-deep); }
.home-v3 #contact_form .fn-fund-txt { display: flex; flex-direction: column; min-width: 0; }
.home-v3 #contact_form .funding .fn-fund-title { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.home-v3 #contact_form .funding .fn-tick { display: none; } /* replaced by the corner badge shared with the chips */

.home-v3 #contact_form .fn-from { display: flex; align-items: center; gap: 6px; width: auto; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--mute); }
.home-v3 #contact_form .fn-from .v3-i { color: var(--brand); }
.home-v3 #contact_form .fn-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.home-v3 #contact_form .fn-chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 10px 18px;
    border: 1.5px solid var(--l300); border-radius: var(--r-choice); background: var(--white); color: var(--ink);
    font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer;
}
.home-v3 #contact_form .fn-chip input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.home-v3 #contact_form .fn-chip .v3-i { color: var(--brand-deep); }

.home-v3 #contact_form .fn-chip::after, .home-v3 #contact_form .funding .fn-fund::after {
    content: ''; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 999px; box-shadow: 0 0 0 2px var(--white);
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 64% no-repeat;
    opacity: 0; transform: scale(.4); pointer-events: none;
}
.home-v3 #contact_form .fn-chip:hover, .home-v3 #contact_form .funding .fn-fund:hover { border-color: var(--brand); }
/* Selected state follows the real checked radio (also without JS, where the static .select-active would lie).
   .select-active (kept in step by form.js) is only the fallback for browsers without :has(). */
.home-v3 #contact_form .fn-chip:has(input:checked), .home-v3 #contact_form .funding .fn-fund:has(input:checked) { border-color: var(--brand); background: var(--l100); box-shadow: 0 0 0 1px var(--brand) inset; color: var(--brand-deep); }
.home-v3 #contact_form .fn-chip:has(input:checked)::after, .home-v3 #contact_form .funding .fn-fund:has(input:checked)::after { opacity: 1; transform: none; }
.home-v3 #contact_form .fn-fund:has(input:checked) .fn-fund-ico { background: var(--brand); color: var(--white); }
@supports not selector(:has(*)) {
    .home-v3 #contact_form .funding .fn-fund.select-active { border-color: var(--brand); background: var(--l100); box-shadow: 0 0 0 1px var(--brand) inset; }
    .home-v3 #contact_form .funding .fn-fund.select-active::after { opacity: 1; transform: none; }
    .home-v3 #contact_form .fn-fund.select-active .fn-fund-ico { background: var(--brand); color: var(--white); }
}
.home-v3 #contact_form .fn-chip:has(input:focus-visible), .home-v3 #contact_form .fn-fund:has(input:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }

/* Continue (tier 2 outline on white) */
.home-v3 .v3-ink .fn-card .fn-continue { min-height: 52px; margin-top: 4px; color: var(--brand-deep); border-color: var(--brand); background: var(--white); }
.home-v3 .v3-ink .fn-card .fn-continue:hover { background: var(--l100); border-color: var(--brand-deep); }

/* Step 2: a quiet "Edit your choices" link beside the title (the choices themselves are read out to screen readers) */
.home-v3 #contact_form .fn-summary { display: flex; align-items: center; width: auto; margin: -9px -10px -9px 0; } /* a 44px target beside a 26px title */
.home-v3 #contact_form .fn-edit {
    display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
    font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--brand-deep); cursor: pointer;
}
.home-v3 #contact_form .fn-edit .v3-i { transform: rotate(180deg); }
.home-v3 #contact_form .fn-edit:hover { background: var(--l100); }

/* Fields. Row 3 of every field is a reserved line for its error message, so the form does not jump when one shows. */
.home-v3 #contact_form .fn-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 16px; align-content: start; }
.home-v3 #contact_form .input-fields { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(22px, auto); align-content: start; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.home-v3 #contact_form .input-fields span { color: inherit; }
.home-v3 #contact_form .input-fields .fn-req { color: var(--danger, firebrick); }
.home-v3 #contact_form .input-fields .fn-opt { color: var(--mute); }
.home-v3 #contact_form .input-fields > label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.home-v3 #contact_form .input-fields > label.sr-only { position: absolute; margin: -1px; }
.home-v3 #contact_form .input-fields input[type="text"],
.home-v3 #contact_form .input-fields input[type="email"],
.home-v3 #contact_form .input-fields textarea {
    display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 16px;
    border: 1.5px solid rgba(31, 3, 45, .42); border-radius: var(--r-choice); background: var(--white);
    font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink);
    transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.home-v3 #contact_form .input-fields input:hover, .home-v3 #contact_form .input-fields textarea:hover { border-color: var(--mute); }
.home-v3 #contact_form .input-fields input:focus, .home-v3 #contact_form .input-fields textarea:focus { border-color: var(--brand-deep); box-shadow: 0 0 0 4px var(--l200); outline: none; }
.home-v3 #contact_form .input-fields input:focus-visible, .home-v3 #contact_form .input-fields textarea:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 1px; }
.home-v3 #contact_form ::placeholder { color: var(--mute); opacity: .7; }

/* Mobile number: one bordered control holding the country select, dial prefix and number */
.home-v3 #contact_form .mobile .mob { display: block; width: 100%; }
.home-v3 #contact_form .mobile .mob .phonecode-field {
    display: flex; align-items: center; width: 100%; min-height: 50px; overflow: hidden;
    border: 1.5px solid rgba(31, 3, 45, .42); border-radius: var(--r-choice); background: var(--white);
    transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.home-v3 #contact_form .mobile .mob .phonecode-field:hover { border-color: var(--mute); }
.home-v3 #contact_form .mobile .mob .phonecode-field:focus-within { border-color: var(--brand-deep); box-shadow: 0 0 0 4px var(--l200); outline: 2px solid var(--brand-deep); outline-offset: 1px; }
.home-v3 #contact_form .mobile .mob .phonecode-field .country-code {
    align-self: stretch; width: 64px; flex: none; margin: 0; padding: 0 4px 0 12px; border: 0; border-right: 1px solid var(--l200); border-radius: 0;
    background: var(--l50); font-family: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
}
.home-v3 #contact_form .mobile .mob .phonecode-field .country-code:focus { outline: none; }
.home-v3 #contact_form .mobile .mob .phonecode-field .prefix { min-width: 0; padding: 0 2px 0 12px; border: 0; font-size: 16px; color: var(--mute); font-variant-numeric: tabular-nums; }
.home-v3 #contact_form .mobile .mob .phonecode-field input.telephone {
    flex: 1 1 auto; min-width: 0; min-height: 47px; padding: 0 12px 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
}

/* Validation (contact.js adds .is-invalid; jQuery Validate appends span.error.invalid-feedback) */
.home-v3 #contact_form .input-fields.is-invalid input,
.home-v3 #contact_form .input-fields.is-invalid textarea,
.home-v3 #contact_form .mob.is-invalid .phonecode-field { border-color: var(--danger, firebrick); }
.home-v3 #contact_form .input-fields span.error,
.home-v3 #contact_form .input-fields .invalid-feedback { display: block; margin: 3px 0 0; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--danger, firebrick) !important; } /* beats the layout's inline .error { color: red !important } (4:1 on white) */

/* Optional message: behind a native disclosure, one tap away */
.home-v3 #contact_form .fn-more { margin: 0; }
.home-v3 #contact_form .fn-more-sum {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 0; border-radius: 10px; list-style: none;
    font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--brand-deep); cursor: pointer;
}
.home-v3 #contact_form .fn-more-sum::-webkit-details-marker { display: none; }
.home-v3 #contact_form .fn-more-sum span { color: inherit; }
.home-v3 #contact_form .fn-more-sum .fn-opt { color: var(--mute); }
.home-v3 #contact_form .fn-more-ico { position: relative; display: inline-block; width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--l100); }
.home-v3 #contact_form .fn-more-ico::before, .home-v3 #contact_form .fn-more-ico::after { content: ''; position: absolute; top: 11px; left: 7px; width: 10px; height: 2px; border-radius: 2px; background: currentColor; }
.home-v3 #contact_form .fn-more-ico::after { transform: rotate(90deg); }
.home-v3 #contact_form .fn-more[open] .fn-more-ico { transform: rotate(45deg); }
.home-v3 #contact_form .fn-more .input-message { display: block; margin-top: 8px; }
.home-v3 #contact_form .fn-more .input-message textarea { min-height: 72px; }

/* Consent row: the whole label is the target */
.home-v3 #contact_form .form-consent { display: flex; align-items: flex-start; gap: 0; min-height: 44px; margin-top: 12px; }
.home-v3 #contact_form .form-consent input[type="checkbox"] {
    -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 22px; min-width: 22px; height: 22px; margin: 11px 0 0;
    border: 2px solid var(--mute); border-radius: 7px; background: var(--white) center / 70% no-repeat; cursor: pointer;
}
.home-v3 #contact_form .form-consent input[type="checkbox"]::before { content: none; }
.home-v3 #contact_form .form-consent input[type="checkbox"]:checked {
    border-color: var(--brand); background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.home-v3 #contact_form .form-consent input[type="checkbox"]:focus-visible { outline: var(--focus-light); outline-offset: 2px; }
.home-v3 #contact_form .form-consent label { display: flex; align-items: center; flex: 1 1 auto; align-self: stretch; width: auto; min-height: 44px; margin: 0; padding: 4px 0 4px 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
/* The consent error (shown by contact.js with an inline display:block) has its space kept, so the button below never moves */
.home-v3 #contact_form .consent-error { display: block !important; min-height: 20px; }
.home-v3 #contact_form .consent-error p { visibility: hidden; margin: 2px 0 6px; font-size: 13px; line-height: 1.4; color: var(--danger, firebrick); }
.home-v3 #contact_form .consent-error[style*="block"] p { visibility: visible; }
.home-v3 #contact_form .consent-error:not([style*="block"]) p { height: 0; margin: 0; overflow: hidden; }

/* Submit: amber tier 1, the one primary action of the page */
.home-v3 #contact_form .buttons { display: block; margin: 0; }
.home-v3 #contact_form .buttons #myButton { width: 100%; min-width: 0; min-height: 58px; padding: 12px 24px; border-radius: var(--r-btn); background-image: none; font-size: 18px; letter-spacing: -.005em; color: var(--ink); box-shadow: 0 12px 26px -12px rgba(255, 159, 28, .75); }
.home-v3 .v3-ink #contact_form #myButton:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.home-v3 #contact_form #myButton[aria-busy="true"] { opacity: .8 !important; cursor: progress; }
.home-v3 #contact_form #myButton[aria-busy="true"] .v3-i { display: none; }
.home-v3 #contact_form #myButton[aria-busy="true"]::after {
    content: ''; position: static; inset: auto; width: 18px; height: 18px; flex: none; border-radius: 999px; background: none; transform: none;
    border: 2px solid rgba(31, 3, 45, .25); border-top-color: var(--ink); animation: fnSpin .8s linear infinite;
}

/* ---------- Motion: selection, step change, progress, hover. Transform, opacity and colour only. ---------- */
@keyframes fnOut { to { opacity: 0; transform: translateX(calc(var(--fn-dir, 1) * -28px)); } }
@keyframes fnIn { from { opacity: 0; transform: translateX(calc(var(--fn-dir, 1) * 28px)); } }
@keyframes fnLabel { from { opacity: 0; transform: translateY(6px); } }
@keyframes fnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
    .home-v3 #contact_form .fn-fill { transition: transform 450ms var(--ease); }
    .home-v3 #contact_form.is-two .fn-progress-label { animation: fnLabel 320ms var(--ease); }
    /* the old step slides out, then final.js swaps the steps and the new one slides in (both end fully visible) */
    .home-v3 #contact_form .fn-step.fn-out { animation: fnOut 170ms var(--ease) forwards; pointer-events: none; }
    .home-v3 #contact_form .fn-step.fn-in { animation: fnIn 340ms var(--ease); }

    .home-v3 #contact_form .fn-chip, .home-v3 #contact_form .funding .fn-fund { transition: border-color 220ms var(--ease), background-color 220ms var(--ease), box-shadow 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease); }
    .home-v3 #contact_form .fn-chip:hover, .home-v3 #contact_form .funding .fn-fund:hover { transform: translateY(-2px); }
    .home-v3 #contact_form .fn-chip:active, .home-v3 #contact_form .funding .fn-fund:active { transform: scale(.97); }
    .home-v3 #contact_form .fn-chip::after, .home-v3 #contact_form .funding .fn-fund::after { transition: transform 260ms var(--ease), opacity 180ms ease; }
    .home-v3 #contact_form .funding .fn-fund-ico { transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 260ms var(--ease); }
    .home-v3 #contact_form .fn-fund:has(input:checked) .fn-fund-ico { transform: scale(1.08); }
    .home-v3 #contact_form .fn-chip .v3-i { transition: transform 260ms var(--ease); }
    .home-v3 #contact_form .fn-chip:has(input:checked) .v3-i { transform: scale(1.12); }

    .home-v3 #contact_form .fn-edit, .home-v3 #contact_form .fn-more-sum { transition: background-color var(--t-base) ease, color var(--t-base) ease; }
    .home-v3 #contact_form .fn-edit .v3-i { transition: transform 260ms var(--ease); }
    .home-v3 #contact_form .fn-edit:hover .v3-i { transform: rotate(180deg) translateX(3px); }
    .home-v3 #contact_form .fn-more-ico { transition: transform 300ms var(--ease), background-color var(--t-base) ease; }
    .home-v3 #contact_form .fn-more-sum:hover .fn-more-ico { background: var(--l200); }
    .home-v3 #contact_form .form-consent input[type="checkbox"] { transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease); }
    .home-v3 #contact_form .form-consent input[type="checkbox"]:active { transform: scale(.88); }
    .home-v3 #contact_form .buttons #myButton .v3-i { transition: transform 260ms var(--ease); }
    .home-v3 #contact_form .buttons #myButton:hover .v3-i, .home-v3 .fn-card .fn-continue:hover .v3-i { transform: translateX(5px); }
    .home-v3 .fn-tel:hover .v3-i { transform: rotate(-14deg) scale(1.1); }
}

/* ---------- Mobile sticky bar (<768px; motion.js toggles .is-visible) ---------- */
.home-v3 .fn-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--white); box-shadow: 0 -1px 0 rgba(31, 3, 45, .08), 0 -10px 28px -10px rgba(31, 3, 45, .3);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.home-v3 .fn-sticky.is-visible { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease), visibility 0s linear 0s; }
.home-v3 .fn-sticky .v3-btn { min-height: 48px; padding: 10px 14px; }
.home-v3 .fn-sticky .fn-sticky-main { flex: 1.6 1 0; min-width: 0; }
.home-v3 .v3-ink .fn-sticky .fn-sticky-call { flex: 1 1 0; min-width: 0; color: var(--brand-deep); border-color: var(--brand); background: var(--white); }
.home-v3 .v3-ink .fn-sticky .fn-sticky-call:hover { background: var(--l100); }
.home-v3 .v3-ink .fn-sticky .fn-sticky-call:focus-visible { outline: var(--focus-light); outline-offset: 2px; }
.home-v3 .v3-ink .fn-sticky .fn-sticky-main:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- 640+: 3 funding cards across, 2-up fields ---------- */
@media (min-width: 640px) {
    .home-v3 .fn-card { padding: 32px; border-radius: var(--r-panel); }
    .home-v3 #contact_form .fn-fund-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-v3 #contact_form .fn-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* job title hidden (self / not sure): the mobile number takes the full row */
    .home-v3 #contact_form .fn-fields:has(.jobEnq[style*="none"]) .mobileEnq { grid-column: 1 / -1; }
}

/* ---------- 768+: tablet single column, centred ---------- */
@media (min-width: 768px) {
    .home-v3 .fn-final { padding-bottom: 88px; }
    .home-v3 .fn-grid { max-width: 728px; gap: 48px; }
    .home-v3 .fn-sticky { display: none; }
}

/* ---------- 1024+: two columns. Left: H2, line, rating and phone as one centred group. Right: the form card. ---------- */
@media (min-width: 1024px) {
    .home-v3 .fn-final { padding-bottom: 96px; }
    .home-v3 .fn-grid {
        max-width: 1200px; grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
        column-gap: clamp(40px, 5vw, 72px); row-gap: 0; align-items: start;
    }
    .home-v3 .fn-head { grid-column: 1; grid-row: 2; max-width: none; }
    .home-v3 .fn-aside { grid-column: 1; grid-row: 3; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
    .home-v3 .fn-card { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; scroll-margin-top: 88px; }

    /* One card height for both steps: step 1 spreads its groups, step 2 keeps consent and the button at the foot */
    .home-v3 #contact_form.is-stepped { flex: 1 1 auto; display: flex; flex-direction: column; }
    .home-v3 #contact_form.is-stepped .fn-step { flex: 1 1 auto; }
    .home-v3 #contact_form.is-stepped .fn-step[data-step="1"] { justify-content: space-between; }
    .home-v3 #contact_form.is-stepped .form-consent { margin-top: auto; }
    .home-v3 #contact_form .consent-error { min-height: 44px; }
    .home-v3 #contact_form .consent-error:not([style*="block"]) p { height: auto; margin: 2px 0 6px; }
}

/* ---------- 1200+: three fields per row, so the company fields appear beside the job title instead of adding a row ---------- */
@media (min-width: 1200px) {
    .home-v3 #contact_form .fn-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); min-height: 210px; }
    .home-v3 #contact_form .fn-fields:has(.jobEnq[style*="none"]) .mobileEnq { grid-column: auto; }
    /* self-funded: three fields only, no second row to keep */
    .home-v3 #contact_form:has(input[name="training_fund"][value="2"]:checked) .fn-fields { min-height: 0; }
    .home-v3 #contact_form .fn-more .input-message { margin-top: 6px; }
    .home-v3 #contact_form .fn-more .input-message textarea { min-height: 48px; }
}

/* ---------- One-screen fold (same query as base.css .v3-fold, which also clears the fixed site header) ---------- */
@media (min-width: 1024px) and (min-height: 620px) {
    .home-v3 .v3-fold .fn-h2 { margin-top: 0; font-size: clamp(2rem, 1rem + 2.6vh, 2.75rem); line-height: 1.12; }
    .home-v3 .v3-fold .fn-sub { margin-top: 16px; font-size: 17px; line-height: 1.6; }
}
@media (min-width: 1200px) and (min-height: 620px) {
    /* tall enough for either step, so the card never changes height when the step changes */
    .home-v3 .v3-fold .fn-card { min-height: 574px; }
}
@media (min-width: 1200px) and (min-height: 860px) {
    .home-v3 #contact_form .fn-more .input-message textarea { min-height: 88px; }
}

@media (forced-colors: active) {
    .home-v3 #contact_form .fn-fund:has(input:checked), .home-v3 #contact_form .fn-chip:has(input:checked) { outline: 2px solid Highlight; }
    .home-v3 .fn-sticky { border-top: 1px solid CanvasText; }
}
