/*
 * Modern wizard shell: step sidebar, card headers, and the "can't skip
 * ahead" validation banner. Originally built for the Training Provider
 * (SDP) wizard and extracted here so every step-wizard form can opt in by
 * adding the "modern-wizard" class instead of duplicating the rules.
 *
 * Colours come from the brand tokens in _Layout.cshtml (--nexus-*) and the
 * theme family (--vz-*), never literals: the gradient here used to be the
 * old flame orange, which survived the indigo rebrand precisely because it
 * was hardcoded - and the light greys stayed light in dark mode.
 */

.modern-wizard .custom-nav {
    gap: 6px;
}

.modern-wizard .custom-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid var(--vz-border-color);
    background: var(--vz-secondary-bg);
    color: var(--vz-secondary-color);
    font-weight: 600;
    font-size: 13px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.modern-wizard .custom-nav .nav-link .step-title {
    display: flex;
    align-items: center;
    margin: 0;
}

.modern-wizard .custom-nav .nav-link .step-icon {
    font-size: 18px;
    color: var(--vz-border-color);
}

.modern-wizard .custom-nav .nav-link.active {
    background: linear-gradient(135deg, var(--nexus-abyss, #13113A) 0%, var(--nexus-deep, #1E1B4B) 58%, var(--nexus-primary, #6366F1) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--vz-primary-rgb), .22);
    transform: translateX(2px);
}

.modern-wizard .custom-nav .nav-link.active .step-icon {
    color: #fff;
}

.modern-wizard .custom-nav .nav-link.done:not(.active) {
    border-color: rgba(var(--vz-success-rgb), .35);
    background: rgba(var(--vz-success-rgb), .08);
    color: var(--vz-success-text-emphasis, var(--vz-success));
}

.modern-wizard .custom-nav .nav-link.done:not(.active) .step-icon {
    color: var(--vz-success);
}

.modern-wizard .custom-nav .nav-link.done:not(.active) .step-icon::before {
    content: "\ecbd"; /* ri-checkbox-circle-fill */
}

.modern-wizard .custom-nav .nav-link:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.modern-wizard .card {
    border: 1px solid var(--vz-border-color);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(var(--vz-primary-rgb), .06);
    overflow: hidden;
}

.modern-wizard .dropdown-head {
    border-radius: 0 !important;
    background: linear-gradient(135deg, var(--nexus-abyss, #13113A) 0%, var(--nexus-deep, #1E1B4B) 58%, var(--nexus-primary, #6366F1) 100%) !important;
}

.modern-wizard .is-invalid,
.modern-wizard .is-invalid.e-control-wrapper,
.modern-wizard .e-control-wrapper.is-invalid.e-outline {
    border-color: var(--vz-danger) !important;
    box-shadow: 0 0 0 1px rgba(var(--vz-danger-rgb), .25) !important;
    border-radius: 6px;
}

.modern-wizard .invalid-feedback {
    display: block;
    color: var(--vz-danger);
    font-size: 12px;
    margin-top: 4px;
}

.wizard-validation-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--vz-danger-rgb), .08);
    border: 1px solid rgba(var(--vz-danger-rgb), .35);
    color: var(--vz-danger-text-emphasis, var(--vz-danger));
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}
