/* Join / onboarding form. Scoped to .ehz-join; the theme may restyle everything. */

.ehz-join {
    --ehz-surface: var(--ehz-shell, #fffdf9);
    --ehz-accent: var(--ehz-sea, #2f6f62);
    --ehz-accent-soft: var(--ehz-mist, #e8f1ee);
    --ehz-radius: 12px;

    color: var(--ehz-ink);
    margin: 0 auto;
    max-width: 48rem;
}

.ehz-join *,
.ehz-join *::before,
.ehz-join *::after {
    box-sizing: border-box;
}

.ehz-join__eyebrow {
    color: var(--ehz-accent);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}

.ehz-join__heading {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 .35em;
}

/* p.-prefixed so the page prose (".ehz-prose p { margin-bottom: 0 }") cannot pull the next block up against it. */
.ehz-join p.ehz-join__lead {
    color: var(--ehz-muted);
    margin: 0 0 2rem;
}

/* Text to button: the theme's 1.8rem (thank-you CTA), also when the lead's own margin is overridden. */
.ehz-join--invalid p.ehz-join__lead {
    margin-bottom: 0;
}

.ehz-join--done p.ehz-join__lead {
    margin-bottom: 1.5rem;
}

.ehz-join--invalid .ehz-join__actions--stack,
.ehz-join--done .ehz-join__actions--stack {
    margin-top: 1.8rem;
}

.ehz-join--done .ehz-join__next + .ehz-join__actions--stack {
    margin-top: 1.5rem;
}

/* .ehz-join prefix: the theme's "body .ehz-join__actions" centres the row otherwise. */
.ehz-join .ehz-join__actions--stack {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ehz-join__actions--stack .ehz-btn {
    margin-bottom: .65rem;
}

.ehz-join p.ehz-join__alt,
.ehz-join p.ehz-join__small {
    color: var(--ehz-muted);
    font-size: .9375rem;
    margin: 0;
}

.ehz-join p.ehz-join__small {
    margin-top: 1.25rem;
}

.ehz-join__alt a {
    color: var(--ehz-accent);
    font-weight: 600;
}

.ehz-join__alt-note {
    display: block;
    font-size: .8125rem;
    margin-top: .15rem;
}

.ehz-join .ehz-join__errors-action,
.ehz-join .ehz-join__errors-hint {
    margin: .75rem 0 0;
}

.ehz-join .ehz-join__errors-hint {
    font-size: .875rem;
    font-weight: 400;
}

.ehz-join__errors {
    background: var(--ehz-error-bg, #fdf1ee);
    border: 1px solid var(--ehz-error-line, #e0b4a8);
    border-radius: var(--ehz-radius);
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
}

.ehz-join__errors p {
    font-weight: 600;
    margin: 0 0 .5rem;
}

.ehz-join__errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.ehz-join__review-note {
    background: var(--ehz-accent-soft);
    border-left: 4px solid var(--ehz-accent);
    border-radius: 0 var(--ehz-radius) var(--ehz-radius) 0;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
}

.ehz-join__review-note p {
    margin: 0;
}

.ehz-join__review-title {
    font-weight: 700;
    margin-bottom: .35rem !important;
}

/* Sections */

.ehz-join__section {
    background: var(--ehz-surface);
    border: 1px solid var(--ehz-line);
    border-radius: var(--ehz-radius);
    margin: 0 0 1.5rem;
    padding: 1.5rem 1.25rem 1.25rem;
}

.ehz-join__section-title {
    align-items: center;
    display: flex;
    font-size: 1.15rem;
    font-weight: 600;
    gap: .6rem;
    padding: 0 .35rem;
}

.ehz-join__step {
    align-items: center;
    background: var(--ehz-accent);
    border-radius: 999px;
    color: var(--ehz-on-accent, #fff);
    display: inline-flex;
    flex: none;
    font-size: .875rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

/* Fields */

.ehz-join__field {
    margin: 0 0 1.25rem;
}

.ehz-join__row {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.ehz-join__label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.ehz-join__req {
    color: var(--ehz-error, #b4522f);
}

.ehz-join__input {
    background: var(--ehz-shell, #fff);
    border: 1px solid var(--ehz-line);
    border-radius: 8px;
    color: inherit;
    display: block;
    font: inherit;
    padding: .6rem .75rem;
    width: 100%;
}

.ehz-join__input--narrow {
    max-width: 10rem;
}

.ehz-join__input:focus,
.ehz-join__file:focus {
    border-color: var(--ehz-accent);
    outline: 2px solid var(--ehz-accent);
    outline-offset: 1px;
}

textarea.ehz-join__input {
    line-height: 1.5;
    resize: vertical;
}

.ehz-join__hint {
    color: var(--ehz-muted);
    display: block;
    font-size: .875rem;
    margin-top: .35rem;
}

.ehz-join__hint.is-limit {
    color: var(--ehz-error, #b4522f);
    font-weight: 600;
}

.ehz-join__note {
    margin: 0 0 1rem;
}

.ehz-join__group {
    border: 0;
    margin: 0 0 1.25rem;
    padding: 0;
}

.ehz-join__tiers {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    margin-top: .75rem;
}

/* Chip checkboxes: the shared .ehz-chip (theme). Primary areas read as a second, quieter choice. */

.ehz-join__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

.ehz-join .ehz-join__chip--primary:has(.ehz-chip__input:checked) {
    background: var(--ehz-gold-wash, #e8ce9a4d);
    border-color: var(--ehz-gold, #c08a34);
    color: var(--ehz-ink);
}

/* Plain checkboxes (consent, payout opt-in) */

.ehz-join__check {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    line-height: 1.45;
}

.ehz-join__check input {
    flex: none;
    margin: .25rem 0 0;
}

.ehz-join__field--consent {
    margin-bottom: 0;
}

/* Portrait */

.ehz-join__portrait {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.ehz-join__preview {
    align-items: center;
    background: var(--ehz-accent-soft);
    border: 1px dashed var(--ehz-line);
    border-radius: var(--ehz-radius);
    display: flex;
    flex: none;
    height: 9rem;
    justify-content: center;
    overflow: hidden;
    width: 9rem;
}

.ehz-join__preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ehz-join__preview-empty {
    color: var(--ehz-muted);
    font-size: .8125rem;
    padding: .5rem;
    text-align: center;
}

.ehz-join__portrait-body {
    flex: 1 1 16rem;
    min-width: 0;
}

/* Beats .ehz-join__hint on the same element: a refused photo must not read like the grey hint above it. */
.ehz-join__hint.ehz-join__portrait-error {
    color: var(--ehz-error, #b4522f);
    font-size: var(--ehz-size-body, 1rem);
    font-weight: 600;
    margin-top: .5rem;
}

[data-ehz-portrait].is-error .ehz-join__preview {
    outline: 2px solid var(--ehz-error, #b4522f);
    outline-offset: 2px;
}

.ehz-join__file {
    font: inherit;
    max-width: 100%;
}

/* Flash notes and "what happens next" */

.ehz-join__flash {
    background: var(--ehz-accent-soft);
    border-radius: 8px;
    margin: 0 0 1rem;
    padding: .75rem 1rem;
}

.ehz-join__flash--ok {
    border-left: 4px solid var(--ehz-accent);
}

.ehz-join__flash--warn {
    background: var(--ehz-error-bg, #fdf1ee);
    border-left: 4px solid var(--ehz-error, #b4522f);
}

.ehz-join__next-box {
    background: var(--ehz-accent-soft);
    border-radius: var(--ehz-radius);
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.ehz-join__next-title {
    font-weight: 700;
    margin: 0 0 .5rem;
}

.ehz-join__next {
    margin: 0;
    padding-left: 1.25rem;
}

.ehz-join__next li {
    margin-bottom: .35rem;
}

.ehz-join__next li:last-child {
    margin-bottom: 0;
}

.ehz-join__actions {
    margin: 0;
}

/* Honeypot: off-screen, never focusable by tabbing. */

.ehz-join__hp {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.ehz-join .ehz-btn {
    background: var(--ehz-accent);
    border: 1px solid var(--ehz-accent);
    border-radius: 999px;
    color: var(--ehz-on-accent, #fff);
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 600;
    padding: .75rem 1.6rem;
    text-decoration: none;
}

.ehz-join .ehz-btn--ghost {
    background: transparent;
    border-color: var(--ehz-line);
    color: var(--ehz-ink);
}

.ehz-join .screen-reader-text {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 30rem) {
    .ehz-join__section {
        padding: 1.25rem 1rem 1rem;
    }

    .ehz-join__preview {
        height: 7rem;
        width: 7rem;
    }
}

.ehz-join p.ehz-join__signin {
    border-left: 4px solid var(--ehz-accent);
    margin: -1rem 0 1.5rem;
}

/* -------------------------------------------------------------------------
 * Wizard (join.js adds .is-wizard). Without it every step stacks as before.
 * Theme rules here are "body .ehz-join__...", so overrides carry .ehz-join--wizard on top.
 * ---------------------------------------------------------------------- */

.ehz-join [hidden] {
    display: none !important;
}

body .ehz-join .ehz-join__step-title {
    font-family: var(--ehz-font-display, inherit);
    font-size: var(--ehz-size-h3, 1.25rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.ehz-join__step-title:focus {
    outline: none;
}

body .ehz-join--wizard .ehz-join__step-hint {
    color: var(--ehz-muted);
    font-size: var(--ehz-size-small, .875rem);
    margin: .35rem 0 0;
}

.ehz-join__form,
.ehz-join--wizard .ehz-join__progress-wrap {
    max-width: 36rem;
    min-width: 0;
}

.ehz-join__count {
    color: var(--ehz-muted);
    font-size: var(--ehz-size-tiny, .78rem);
    font-weight: 600;
    letter-spacing: .08em;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}

body .ehz-join--wizard .ehz-join__progress {
    margin: 0 0 2rem;
}

/* Fields in a two-column row keep their own height; the theme's grid would stretch the shorter input. */
body .ehz-join--wizard .ehz-join__field {
    align-content: start;
}

/* Six steps on one line beside the form: shorter hairlines between the discs. */
.ehz-join--wizard .ehz-join__progress {
    gap: .5rem .6rem;
}

.ehz-join--wizard .ehz-join__progress .ehz-funnel__progress-step + .ehz-funnel__progress-step::before {
    margin-right: .1rem;
    width: .9rem;
}

/* One step at a time: no dividers, no number disc (the progress row carries it). */
body .ehz-join--wizard.is-wizard .ehz-join__section {
    border-top: 0;
    padding-top: 0;
}

.ehz-join--wizard.is-wizard .ehz-join__step {
    display: none;
}

body .ehz-join--wizard.is-wizard .ehz-join__form {
    gap: 0;
    margin-top: 0;
}

/* Inline problems: client side (join.js) and after a round trip (template). */
body .ehz-join--wizard .ehz-join__error {
    color: var(--ehz-error, #a63b2e);
    display: block;
    font-size: var(--ehz-size-small, .875rem);
    font-weight: 600;
    line-height: 1.45;
    margin-top: .15rem;
}

body .ehz-join--wizard [aria-invalid="true"].ehz-join__input,
body .ehz-join--wizard [aria-invalid="true"].ehz-join__file,
body .ehz-join--wizard .is-invalid .ehz-join__input {
    border-color: var(--ehz-error, #a63b2e);
}

/* Cliniko note in the sessions step. */
.ehz-join__panel {
    align-items: flex-start;
    background: var(--ehz-mist, #e4efec);
    border-radius: 16px;
    color: var(--ehz-ink);
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.ehz-join__panel-icon {
    color: var(--ehz-sea, #1f6f6b);
    flex: none;
    margin-top: .1rem;
}

.ehz-join .ehz-join__panel p {
    font-size: var(--ehz-size-small, .875rem);
    line-height: 1.6;
    margin: 0;
}

/* Booking choice in the sessions step: three radio cards, the chosen one opens its link field. */
.ehz-join__booking {
    margin-top: 1.5rem;
}

.ehz-join__choices {
    display: grid;
    gap: .6rem;
    margin-top: .5rem;
}

.ehz-join__choice {
    align-items: flex-start;
    background: var(--ehz-shell, #fff);
    border: 1px solid var(--ehz-line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: .75rem;
    padding: .85rem 1rem;
}

.ehz-join__choice:has(.ehz-join__choice-input:checked) {
    background: var(--ehz-accent-soft);
    border-color: var(--ehz-accent);
}

.ehz-join__choice:has(.ehz-join__choice-input:focus-visible) {
    outline: 2px solid var(--ehz-accent);
    outline-offset: 2px;
}

.ehz-join__choice-input {
    accent-color: var(--ehz-accent);
    flex: none;
    margin: .2rem 0 0;
}

.ehz-join__choice-body {
    display: grid;
    gap: .2rem;
    line-height: 1.45;
}

.ehz-join__choice-text {
    color: var(--ehz-muted);
    font-size: .875rem;
}

.ehz-join__choice-more {
    margin: -.1rem 0 .3rem 2.6rem;
}

.ehz-join__choice-more .ehz-join__field {
    margin-bottom: 0;
}

.ehz-join__booking.is-invalid .ehz-join__choice {
    border-color: var(--ehz-error, #a63b2e);
}

/* Getting paid: the three facts. */
.ehz-join__how {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding-left: 1.25rem;
}

.ehz-join__how li::marker {
    color: var(--ehz-gold-ink, #8a5f16);
    font-weight: 600;
}

/* Long consent and payout lines: a rounded box instead of the theme's pill. */
body .ehz-join .ehz-join__check--box {
    align-items: flex-start;
    border-radius: var(--ehz-radius-field, 12px);
    display: flex;
    padding: .75rem 1rem;
}

body .ehz-join .ehz-join__check--box input {
    margin-top: .2rem;
}

/* Review summary */
.ehz-join__summary {
    display: grid;
    gap: .75rem;
}

.ehz-join__sum {
    border: 1px solid var(--ehz-line);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

.ehz-join__sum-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.ehz-join .ehz-join__sum-title {
    font-family: var(--ehz-font-body, inherit);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.ehz-join__sum-edit {
    background: none;
    border: 0;
    color: var(--ehz-sea, #1f6f6b);
    cursor: pointer;
    font: inherit;
    font-size: var(--ehz-size-small, .875rem);
    font-weight: 600;
    min-height: 44px;
    padding: 0 .25rem;
    text-decoration: underline;
    text-decoration-color: var(--ehz-gold, #c08a34);
    text-underline-offset: .2em;
}

.ehz-join__sum-list {
    display: grid;
    font-size: var(--ehz-size-small, .875rem);
    gap: .35rem 1rem;
    grid-template-columns: minmax(7rem, 35%) minmax(0, 1fr);
    line-height: 1.5;
    margin: 0;
}

.ehz-join__sum-list dt {
    color: var(--ehz-muted);
}

.ehz-join__sum-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ehz-join__sum-list dd.is-empty {
    color: var(--ehz-muted);
    font-style: italic;
}

/* Back / Next / Send */
body .ehz-join--wizard .ehz-join__nav {
    border-top: 1px solid var(--ehz-line);
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

body .ehz-join--wizard .ehz-join__nav .ehz-btn {
    font-size: 1.03rem;
    line-height: 1.3;
    margin: 0;
    padding: 1rem 1.9rem;
}

.ehz-join--wizard .ehz-join__next-btn,
.ehz-join--wizard .ehz-join__submit {
    margin-left: auto !important;
}

/* Done screens: payout box and its button */
.ehz-join--done .ehz-join__payout-box {
    margin-top: 1.5rem;
}

.ehz-join .ehz-join__payout-box p {
    margin: 0 0 .75rem;
}

.ehz-join .ehz-join__payout-box p:last-child {
    margin-bottom: 0;
}

.ehz-join p.ehz-join__payout-action {
    margin: 1rem 0;
}

/* -------------------------------------------------------------------------
 * Live preview: sticky column from 1000px, bottom sheet below.
 * ---------------------------------------------------------------------- */

.ehz-join__card .ehz-card,
.ehz-join__card .ehz-card:hover {
    border-color: var(--ehz-line);
    box-shadow: var(--ehz-shadow-card);
    transform: none;
}

.ehz-join__card .ehz-card:hover .ehz-card__photo img {
    transform: none;
}

.ehz-join__card a {
    cursor: default;
}

.ehz-join__card .ehz-card__cta {
    pointer-events: none;
}

.ehz-join__card .is-placeholder {
    opacity: .55;
}

.ehz-join__preview-title {
    color: var(--ehz-gold-ink, #8a5f16);
    font-size: var(--ehz-size-tiny, .78rem);
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0;
    text-transform: uppercase;
}

.ehz-join .ehz-join__preview-note {
    color: var(--ehz-muted);
    font-size: var(--ehz-size-small, .875rem);
    margin: .75rem 0 0;
    text-align: center;
}

.ehz-join__sheet-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .75rem;
    min-height: 44px;
}

.ehz-join__sheet:focus {
    outline: none;
}

.ehz-join__sheet-close {
    align-items: center;
    background: transparent;
    border: 1.5px solid var(--ehz-line-strong);
    border-radius: 999px;
    color: var(--ehz-ink);
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.ehz-join__sheet-close:hover {
    background: var(--ehz-dawn);
}

.ehz-join__fab {
    align-items: center;
    background: var(--ehz-shell);
    border: 1.5px solid var(--ehz-line-strong);
    border-radius: 999px;
    bottom: 16px;
    box-shadow: var(--ehz-shadow-bar);
    color: var(--ehz-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    gap: .5rem;
    min-height: 48px;
    padding: .65rem 1.2rem .65rem 1rem;
    position: fixed;
    right: 16px;
    z-index: 60;
}

.ehz-join__fab:hover {
    background: var(--ehz-dawn);
}

.ehz-join__fab:focus-visible,
.ehz-join__sheet-close:focus-visible,
.ehz-join__sum-edit:focus-visible {
    outline: 2px solid var(--ehz-sea, #1f6f6b);
    outline-offset: 3px;
}

@media (min-width: 1000px) {
    /* The wizard brings its own right column, so the page's side teaser steps aside (as for funnel results). */
    .ehz-page__grid:has(.ehz-join--wizard.is-wizard) {
        grid-template-columns: minmax(0, 1fr);
    }

    .ehz-page__grid:has(.ehz-join--wizard.is-wizard) > .ehz-page__aside {
        display: none;
    }

    .ehz-prose:has(> .ehz-join--wizard.is-wizard) {
        max-width: none;
    }

    body .ehz-join--wizard.is-wizard {
        max-width: none;
    }

    /* Title and intro run across both columns, so the intro stays on one line. */
    .ehz-join--wizard.is-wizard > .ehz-join__flash,
    .ehz-join--wizard.is-wizard > .ehz-join__errors,
    .ehz-join--wizard.is-wizard > .ehz-join__review-note {
        max-width: 36rem;
    }

    .ehz-join--wizard.is-wizard .ehz-join__progress-wrap {
        max-width: none;
    }

    .ehz-join--wizard.is-wizard .ehz-join__layout {
        align-items: start;
        display: grid;
        gap: 4rem;
        grid-template-columns: minmax(0, 36rem) minmax(17rem, 20rem);
        justify-content: space-between;
    }

    .ehz-join__aside {
        position: sticky;
        top: calc(var(--ehz-header-h, 4.75rem) + 1.5rem);
    }

    .ehz-join__sheet-head {
        min-height: 0;
    }

    .ehz-join__sheet-close,
    .ehz-join__fab {
        display: none !important;
    }
}

@media (max-width: 999px) {
    /* Room under the last button for the Preview button. */
    .ehz-join--wizard.is-wizard {
        padding-bottom: 5rem;
    }

    .ehz-join__aside {
        display: none;
    }

    .ehz-join--wizard.is-sheet-open .ehz-join__aside {
        align-items: flex-end;
        background: var(--ehz-scrim-tool, #0e3a3873);
        display: flex;
        inset: 0;
        justify-content: center;
        position: fixed;
        z-index: 1000;
    }

    .ehz-join__sheet {
        background: var(--ehz-sand, #f6f1e8);
        border-radius: var(--ehz-radius-panel, 26px) var(--ehz-radius-panel, 26px) 0 0;
        box-shadow: var(--ehz-shadow-sheet);
        max-height: 92vh;
        max-height: 92dvh;
        max-width: 26rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1rem 1rem 1.5rem;
        width: 100%;
    }

    .is-sheet-open .ehz-join__sheet {
        animation: ehz-join-sheet .24s ease-out;
    }

    .ehz-join--wizard.is-sheet-open .ehz-join__fab {
        display: none;
    }

    html.ehz-join-sheet-lock {
        overflow: hidden;
    }
}

@keyframes ehz-join-sheet {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 559px) {
    /* Primary action first, everything full width (as in the funnel). */
    body .ehz-join--wizard .ehz-join__nav {
        align-items: stretch;
        flex-direction: column;
    }

    body .ehz-join--wizard .ehz-join__nav .ehz-btn {
        width: 100%;
    }

    .ehz-join--wizard .ehz-join__next-btn,
    .ehz-join--wizard .ehz-join__submit {
        margin-left: 0 !important;
        order: 1;
    }

    .ehz-join--wizard .ehz-join__back {
        order: 2;
    }

    .ehz-join__sum-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .1rem;
    }

    .ehz-join__sum-list dd + dt {
        margin-top: .5rem;
    }

    .ehz-join__panel {
        padding: 1rem;
    }

    /* Six discs on one line at 360px: no hairlines between them. */
    .ehz-join--wizard .ehz-join__progress .ehz-funnel__progress-step + .ehz-funnel__progress-step::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-sheet-open .ehz-join__sheet {
        animation: none;
    }

    .ehz-join .ehz-chip,
    .ehz-join__card .ehz-card {
        transition: none;
    }
}

/* "What you earn" in the sessions step: read-only, prices come from the network. */
.ehz-join__earn {
    border: 1px solid var(--ehz-line);
    border-radius: 16px;
    display: grid;
    gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
}

body .ehz-join .ehz-join__earn-title {
    font-family: var(--ehz-font-body, inherit);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

body .ehz-join .ehz-join__earn .ehz-join__hint {
    margin: 0;
}

.ehz-join__earn-table {
    border-collapse: collapse;
    font-size: var(--ehz-size-small, .875rem);
    line-height: 1.4;
    margin: 0;
    width: 100%;
}

.ehz-join__earn-table th,
.ehz-join__earn-table td {
    border-bottom: 1px solid var(--ehz-line);
    padding: .5rem .5rem .5rem 0;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.ehz-join__earn-table thead th {
    color: var(--ehz-muted);
    font-size: var(--ehz-size-tiny, .78rem);
    font-weight: 600;
}

.ehz-join__earn-table th:first-child {
    text-align: left;
    white-space: normal;
}

.ehz-join__earn-table tbody th {
    font-weight: 600;
}

.ehz-join__earn-table tbody tr:last-child > * {
    border-bottom: 0;
}

.ehz-join__earn-kind {
    color: var(--ehz-muted);
    display: block;
    font-weight: 400;
}

.ehz-join__earn-you {
    color: var(--ehz-f-ink, #134b48);
    font-weight: 600;
}

.ehz-join__earn-pct {
    color: var(--ehz-muted);
    display: block;
    font-size: var(--ehz-size-tiny, .78rem);
    font-weight: 400;
}

body .ehz-join .ehz-join__forecast {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: .25rem 0 0;
    padding: 0;
}

body .ehz-join .ehz-join__forecast > .ehz-join__tile {
    background: var(--ehz-mist, #e4efec);
    border-radius: 12px;
    display: grid;
    gap: .1rem;
    margin: 0;
    padding: .75rem;
}

.ehz-join__tile-clients,
.ehz-join__tile-unit {
    color: var(--ehz-muted);
    font-size: var(--ehz-size-tiny, .78rem);
    line-height: 1.35;
}

.ehz-join__tile-amount {
    color: var(--ehz-ink);
    font-family: var(--ehz-font-display, inherit);
    font-size: 1.3rem;
    line-height: 1.2;
}

@media (max-width: 559px) {
    .ehz-join__earn {
        padding: 1rem;
    }

    /* Phone: one block per package, the column names inline. */
    .ehz-join__earn-table thead {
        display: none;
    }

    .ehz-join__earn-table,
    .ehz-join__earn-table tbody,
    .ehz-join__earn-table tr {
        display: block;
    }

    .ehz-join__earn-table tr {
        border-bottom: 1px solid var(--ehz-line);
        padding: .6rem 0;
    }

    .ehz-join__earn-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ehz-join__earn-table th,
    .ehz-join__earn-table td {
        border: 0;
        padding: 0;
    }

    .ehz-join__earn-table tbody th {
        display: block;
        margin-bottom: .2rem;
    }

    .ehz-join__earn-kind {
        display: inline;
    }

    .ehz-join__earn-table td {
        align-items: baseline;
        display: flex;
        gap: 1rem;
    }

    .ehz-join__earn-table td::before {
        color: var(--ehz-muted);
        content: attr(data-label);
        font-weight: 400;
        margin-right: auto;
    }

    .ehz-join__earn-pct {
        display: inline;
        margin-left: .35rem;
    }

    body .ehz-join .ehz-join__forecast {
        gap: .4rem;
    }

    body .ehz-join .ehz-join__forecast > .ehz-join__tile {
        padding: .6rem .5rem;
    }

    .ehz-join__tile-amount {
        font-size: 1.1rem;
    }
}

/* -------------------------------------------------------------------------
 * Wizard head: 8 / 20 / 16 / 24 / 4 / 20 px from the title down to the first field (phones 4px less).
 * The eyebrow sits tight on the title; the theme's prose h2 margin would add a second section gap.
 * ---------------------------------------------------------------------- */

.ehz-join--wizard {
    --ehz-join-r-lead: 8px;
    --ehz-join-r-progress: 20px;
    --ehz-join-r-divider: 16px;
    --ehz-join-r-step: 24px;
    --ehz-join-r-hint: 4px;
    --ehz-join-r-field: 20px;
}

body .ehz-join--wizard > .ehz-join__eyebrow {
    margin: 0 0 8px;
}

body .ehz-prose .ehz-join--wizard > .ehz-join__heading,
body .ehz-join--wizard > .ehz-join__heading {
    margin: 0;
}

body .ehz-join--wizard > p.ehz-join__lead {
    margin: var(--ehz-join-r-lead) 0 var(--ehz-join-r-progress);
    max-width: none;
}

/* Without the progress row (no JS) the first step follows the intro with the step gap. */
body .ehz-join--wizard:not(.is-wizard) > p.ehz-join__lead {
    margin-bottom: var(--ehz-join-r-step);
}

body .ehz-join--wizard .ehz-join__progress-wrap .ehz-join__progress {
    margin: 0 0 var(--ehz-join-r-step);
    padding: 0 0 var(--ehz-join-r-divider);
}

body .ehz-join--wizard .ehz-join__step-hint {
    margin: var(--ehz-join-r-hint) 0 calc(var(--ehz-join-r-field) - 1.1rem);
}

body .ehz-join--wizard .ehz-join__section-title {
    margin: 0;
    padding: 0;
}

@media (max-width: 559px) {
    .ehz-join--wizard {
        --ehz-join-r-lead: 4px;
        --ehz-join-r-progress: 16px;
        --ehz-join-r-divider: 12px;
        --ehz-join-r-step: 20px;
        --ehz-join-r-hint: 0px;
        --ehz-join-r-field: 16px;
    }
}

/* Validation: a field brought into view (join.js reveal) clears the sticky header. */
.ehz-join__field,
.ehz-join__group,
.ehz-join__errors,
.ehz-join--done {
    scroll-margin-top: 7rem;
}

/* The summary of several server errors sits at the top of the step it opened on. */
.ehz-join__section > .ehz-join__errors {
    margin: 0 0 1.25rem;
}

/* Done screens: check mark like the order thank-you page (.ehz-woo-thanks__lead.is-paid). */
.ehz-join__done-mark {
    height: 4rem;
    margin: 0 0 1.25rem;
    width: 4rem;
}

.ehz-join__done-mark svg {
    display: block;
    height: 100%;
    overflow: visible;
    width: 100%;
}

.ehz-join__done-ring {
    animation: ehz-join-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
    fill: var(--ehz-sea, #1f6f6b);
    transform-box: fill-box;
    transform-origin: center;
}

.ehz-join__done-tick {
    animation: ehz-join-draw .45s ease-out .35s both;
    fill: none;
    stroke: #fffcf7;
    stroke-dasharray: 36;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

@keyframes ehz-join-pop {
    from { opacity: 0; transform: scale(.4); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes ehz-join-draw {
    from { stroke-dashoffset: 36; }
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ehz-join__done-ring,
    .ehz-join__done-tick {
        animation: none;
    }
}

.ehz-join--done .ehz-join__payout-box + .ehz-join__actions--stack {
    margin-top: 1.5rem;
}

/* Plans the practitioner offers (Standard / Coaching), each with its sessions a month. */
.ehz-join__plan-list { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.ehz-join__plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.ehz-join__plan-sessions { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--ehz-muted, inherit); }
.ehz-join__input--tiny { width: 5rem; }
