/*
 * Onboarding step rail - styled after the /schedule calendar controls
 * (.month-navigation) so onboarding navigation matches the rest of the site:
 * dark gradient rail, muted Apex caps for idle steps, and a chamfered red
 * panel for the current step.
 */

.registration-journey {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 10px;
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Rail ---------------------------------------------------------- */
.signup-progress.step-indicator {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
}

.registration-journey .signup-progress {
    margin-bottom: 0;
}

/* --- Steps read as tabs on that rail ------------------------------- */
.signup-progress .step {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
    font-family: 'Apex', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #888;
}

/* Current step: red panel behind the label pair, chamfered like .division-tab.active
   and .current-month-display (the panel is a ::before so the corners stay cut). */
.signup-progress .step.current { color: #fff; }
.signup-progress .step.current::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, #f4012b 0%, #d00124 100%);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* Steps still ahead read dimmer than finished ones, like .month-nav-btn.disabled */
.signup-progress .step:not(.current):not(.completed) { color: #4a4a4a; }

/* Icon / number inside a step is a plain glyph now - the circles are gone */
.signup-progress .step-number {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    height: auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font-family: 'Apex', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    z-index: auto;
}

.signup-progress .step-number.completed { color: #3bd977; }
.signup-progress .step-number.current { color: #fff; }
.signup-progress .step-number.pending { color: inherit; }

.signup-progress .step-number i,
.signup-progress .step-number svg {
    font-size: 0.7rem;
}

.signup-progress .step-apex-logo {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
    opacity: 0.55;
}

.signup-progress .step.current .step-apex-logo { opacity: 1; }
.signup-progress .step.completed .step-apex-logo { opacity: 0.75; }

.signup-progress .step-label {
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
}

.signup-progress .step-label.current { color: #fff; }

/* The calendar rail separates items with its own gap - no connector lines. */
.signup-progress .step-connector { display: none; }

/* --- Mobile caption (labels collapse, caption keeps the context) ---- */
.signup-progress-caption {
    display: none;
}
.signup-progress-caption:empty {
    display: none !important;
}

@media (max-width: 960px) {
    .registration-journey {
        max-width: 560px;
    }
}

@media (max-width: 700px) {
    .registration-journey {
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .signup-progress.step-indicator {
        width: 100%;
        justify-content: space-between;
        padding: 0.3rem;
        gap: 0.15rem;
    }

    .signup-progress .step {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.55rem 0.35rem;
        font-size: 0.66rem;
        letter-spacing: 0.3px;
        gap: 0.3rem;
    }

    .signup-progress .step-apex-logo { width: 12px; height: 12px; }
    .signup-progress .step-number { font-size: 0.62rem; }
}

/* Icons only on very narrow screens - the caption below carries the step name. */
@media (max-width: 560px) {
    .signup-progress .step {
        flex: 0 0 auto;
        padding: 0.5rem 0.45rem;
        gap: 0;
    }

    .signup-progress .step-label { display: none; }

    .signup-progress .step-connector {
        display: block;
        flex: 1 1 auto;
        width: auto;
        min-width: 6px;
        height: 2px;
        margin: 0 3px;
        background: linear-gradient(90deg, rgba(244, 1, 43, 0.38), rgba(255, 255, 255, 0.1));
    }

    .signup-progress-caption {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0.32rem 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
        text-align: center;
        line-height: 1;
    }
    .signup-progress-caption .caption-count {
        display: inline-flex;
        align-items: center;
        font-family: 'Apex', sans-serif;
        font-size: 0.58rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #ff2a4f;
        white-space: nowrap;
    }
    .signup-progress-caption .caption-sep {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        font-size: 0;
    }
    .signup-progress-caption .caption-label {
        font-family: 'Apex', sans-serif;
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.2px;
        color: #fff;
        white-space: nowrap;
    }
}
