/**
 * Ring Builder — Stepper Component.
 *
 * @since 2.1.0
 */

.ns-rb-stepper {
    margin: 0 auto 2rem;
    max-width: 600px;
    position: relative;
    padding: 0 1rem;
}

.ns-rb-stepper__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.ns-rb-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.ns-rb-stepper__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.ns-rb-stepper__link {
    cursor: pointer;
}

a.ns-rb-stepper__link:hover .ns-rb-stepper__circle {
    border-color: var(--ns-primary, #2563eb);
    background: var(--ns-primary-light, #eff6ff);
}

.ns-rb-stepper__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    color: #9ca3af;
}

.ns-rb-stepper__item--active .ns-rb-stepper__circle {
    border-color: var(--ns-primary, #2563eb);
    background: var(--ns-primary, #2563eb);
    color: #fff;
}

.ns-rb-stepper__item--completed .ns-rb-stepper__circle {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.ns-rb-stepper__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}

.ns-rb-stepper__item--active .ns-rb-stepper__label {
    color: var(--ns-primary, #2563eb);
    font-weight: 600;
}

.ns-rb-stepper__item--completed .ns-rb-stepper__label {
    color: #22c55e;
}

/* Progress bar behind circles */
.ns-rb-stepper__progress {
    position: absolute;
    top: 20px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.ns-rb-stepper__progress-bar {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .ns-rb-stepper__circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .ns-rb-stepper__circle svg {
        width: 12px;
        height: 12px;
    }

    .ns-rb-stepper__label {
        font-size: 0.6875rem;
    }

    .ns-rb-stepper__progress {
        top: 16px;
    }
}
