/*
 | Club affiliation flow — what this wizard draws and the member one does not.
 |
 | The shell (rail, steps, progress, body, footer) and the whole `.sb-*` form
 | vocabulary come from member-join-flow.css, which both wizards wear. This file
 | is only the club's own furniture: the perk strip at the top of step 1, the
 | plan carousel's arrows and benefit list, the review's fee banner, and the
 | success panel's artwork.
 |
 | Design tokens are the prototype's (ref/sbi-frontend-v1.3.0.html), restated
 | here rather than imported so this sheet stands on its own if the shell moves.
 */

:root {
    --cl-paper: #fbfaf6;
    --cl-ivory: #f4f0e6;
    --cl-ink: #14201f;
    --cl-ink-2: #2b3a38;
    --cl-ink-soft: #5c6b68;
    --cl-ink-mute: #8a9794;
    --cl-line: #e6e0d2;
    --cl-line-soft: #efeade;
    --cl-baize: #1a3a3d;
    --cl-gold: #d6a93a;
    --cl-gold-2: #c1922b;
    --cl-gold-soft: #f6ecd2;
}

/* ─────────────────────────── step 1 · perk strip ───────────────────────────
   What affiliation turns on, before the first field is asked for. Wraps to two
   rows on a narrow screen rather than scrolling sideways — there are only four,
   and a hidden one is a benefit nobody reads. */
.perk-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}

.perk-strip span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 14px;
    background: var(--cl-ivory);
    border: 1px solid var(--cl-line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cl-ink-2);
}

.perk-strip svg {
    width: 17px;
    height: 17px;
    color: var(--cl-baize);
    flex: none;
}

@media (max-width: 560px) {
    .perk-strip { gap: 8px; }
    .perk-strip span { padding: 9px 12px; font-size: 12.5px; }
}

/* ───────────────────────── step 3 · facility tick list ─────────────────────
   The features a club offers, as a wrapping row of tick boxes rather than a
   column — there are a dozen or so and a column of them pushes the About box
   off the screen. */
.sb-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sb-checkbox-row .sb-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--cl-line);
    background: var(--cl-paper);
    font-size: 13.5px;
    color: var(--cl-ink-2);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.sb-checkbox-row .sb-checkbox-label:hover {
    border-color: var(--cl-ink-mute);
}

/* The box the visitor ticked reads as chosen without needing a second glance. */
.sb-checkbox-row .sb-checkbox-label:has(.sb-checkbox-input:checked) {
    border-color: var(--cl-baize);
    background: #eef4f1;
}

.sb-checkbox-row .sb-checkbox-input {
    width: 17px;
    height: 17px;
    accent-color: var(--cl-baize);
    flex: none;
    margin: 0;
}

/* ───────────────────────── step 4 · plan carousel ──────────────────────────
   member-join-flow.css styles the track, the cards and the dots; the club
   wizard adds the arrows either side and the benefit list underneath. */
.sb-plan-carousel {
    position: relative;
}

.sb-plan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cl-paper);
    border: 1px solid var(--cl-line);
    color: var(--cl-ink-2);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.sb-plan-nav:hover { border-color: var(--cl-baize); color: var(--cl-baize); }
.sb-plan-nav.prev { left: -6px; }
.sb-plan-nav.next { right: -6px; }

/* At either end the arrow is dimmed rather than removed, so the track does not
   jump sideways as cards come and go. */
.sb-plan-nav[disabled],
.sb-plan-nav[hidden] { opacity: .3; pointer-events: none; }

.sb-plan-features {
    margin-top: 26px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--cl-ivory);
    border: 1px solid var(--cl-line);
}

.sb-plan-features-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cl-ink-mute);
    margin-bottom: 14px;
}

.sb-plan-feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-plan-feature-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: var(--cl-ink-2);
}

/* The tick: drawn from the border of an empty box so it needs no icon font. */
.sb-plan-feature-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--cl-baize);
    border-bottom: 2px solid var(--cl-baize);
    transform: rotate(-45deg);
}

@media (min-width: 720px) {
    .sb-plan-feature-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

/* ───────────────────────── step 5 · the fee banner ─────────────────────────
   What the club is agreeing to pay, said once, plainly, above the button. */
.sb-fee-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 22px 26px;
    border-radius: 18px;
    background: var(--cl-gold-soft);
    border: 1px solid #ead9ab;
}

.sb-fee-info { display: grid; gap: 4px; }

.sb-fee-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cl-ink);
}

.sb-fee-desc {
    font-size: 13px;
    color: #7a5a06;
}

.sb-fee-amount {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--cl-ink);
}

@media (max-width: 560px) {
    .sb-fee-banner { padding: 18px 20px; }
    .sb-fee-amount { font-size: 24px; }
}

/* ───────────────────────── step 6 · submitted ──────────────────────────────
   The success panel keeps the member flow's card; only the artwork above it is
   this wizard's own. */
.sb-success-art {
    display: grid;
    place-items: center;
    margin-bottom: 26px;
}

.sb-success-art svg {
    width: 118px;
    height: 118px;
}

/* The two buttons under it, in the flow's own button vocabulary rather than
   the site's `.sb-btn-orange`. */
.sb-success-buttons .sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.sb-success-buttons .sb-btn-orange,
.sb-success-buttons .sb-btn-green {
    background: var(--cl-gold);
    color: var(--cl-ink);
}

.sb-success-buttons .sb-btn-orange:hover,
.sb-success-buttons .sb-btn-green:hover {
    background: var(--cl-gold-2);
}

.sb-success-buttons .sb-btn svg path { stroke: currentColor; }

/* ───────────────────────── rail · the running total ────────────────────────
   The note under the total, which the member flow has no equivalent of. */
.fl-sum .fs-small {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(244, 240, 230, .55);
}

/* A five-row summary is taller than the member flow's three; let it scroll
   inside the rail rather than pushing the help line off the bottom. */
.fl-sum .fs-rows { max-height: 44vh; overflow: auto; scrollbar-width: none; }
.fl-sum .fs-rows::-webkit-scrollbar { display: none; }

/* ──────────────────── step 2 · the safeguarding card ────────────────────
   Asked of every club, so it reads as a panel of its own rather than as four
   more rows in the grid above it. `.fl-card` comes from the shared sheet. */
.sb-safeguard .gh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sb-safeguard .gh h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--cl-ink);
}

.sb-safeguard .gh svg {
    width: 20px;
    height: 20px;
    color: var(--cl-baize);
    flex: none;
}

.sb-safeguard .badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Required, not refused: a warning colour, not an error state. */
.sb-safeguard .badge.red {
    background: #fbe4e2;
    color: #b42318;
}

.sb-safeguard .auth-note {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: var(--cl-ink-soft);
}

/* The Yes / No pair. Bigger than the plan flow's billing switch because it is
   a question being answered, not a view being changed. */
.sb-safeguard .seg {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--cl-ivory);
}

.sb-safeguard .seg button {
    height: 40px;
    min-width: 92px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--cl-ink-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.sb-safeguard .seg.big button { height: 44px; min-width: 104px; }

.sb-safeguard .seg button[aria-pressed="true"] {
    background: var(--cl-baize);
    color: #fff;
}

/* The unanswered question, once it has been asked for. */
.sb-safeguard .seg.is-invalid { box-shadow: 0 0 0 2px #f3b4ae; }

.sb-safeguard .invalid-feedback:not(:empty) {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #b42318;
}

/*
 | The ticks are the shared sheet's — same box, same check, same 22px + 1fr
 | layout as every other consent in the flow. Only the line height is this
 | card's, because both of its labels run to a full sentence.
 */
.sb-safeguard .sb-checkbox { line-height: 1.55; }

/*
 | A guard, not a fix for anything here.
 |
 | The shared sheet gives `.sb-checkbox` and `.sb-checkbox-label` the same grid,
 | each meant to be the whole control. Nest one in the other and the inner grid
 | has only bare text to lay out, so every word lands in its own cell and the
 | sentence reads one word per line. The markup uses a plain span instead; this
 | keeps the next person who does not know that from shipping it.
 */
.sbi-flow .sb-checkbox > .sb-checkbox-label {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

/* The "not trained yet" aside. */
.sb-safeguard .note.gold {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--cl-gold-soft);
    border: 1px solid #ead9ab;
    font-size: 13.5px;
    line-height: 1.55;
    color: #7a5a06;
}

.sb-safeguard .note.gold svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 1px;
}

/* The policy itself, one click away and opening in its own tab so a
   part-filled application is never navigated out from under the club. */
.sb-safeguard-link {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--cl-line-soft);
}

.sb-safeguard-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cl-baize);
    text-decoration: none;
}

.sb-safeguard-link a:hover { text-decoration: underline; }

.sb-safeguard-link svg { width: 15px; height: 15px; }
