/**
 * ProSBC Premium Wizard - Progress Bar / Step Indicator
 * Version: 2.0.0
 */

/* Step Indicator Container */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.step {
    display: flex;
    align-items: center;
}

/* Step Number Circle */
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-number.active {
    background: #2b6cb0;
    color: white;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.2);
}

.step-number.completed {
    background: #38a169;
    color: white;
}

/* Checkmark for completed steps */
.step-number.completed::after {
    content: none;
}

/* Step Connector Line */
.step-line {
    width: 35px;
    height: 3px;
    background: #e8e8e8;
    margin: 0 4px;
    transition: background 0.3s ease;
    border-radius: 2px;
    flex-shrink: 0;
}

.step-line.completed {
    background: #38a169;
}

/* Animation for step transitions */
@keyframes stepPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.step-number.active {
    animation: stepPulse 0.3s ease;
}

/* Alternative progress bar style (horizontal bar) */
.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    width: 80%;
    margin: 0;
    padding: 0 0 2rem 0;
    list-style: none;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    position: relative;
    pointer-events: none;
}

.progress-step--active,
.progress-step--complete {
    cursor: pointer;
    pointer-events: all;
}

.progress-step:not(:last-child):before,
.progress-step:not(:last-child):after {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 0.25rem;
    content: '';
    transform: translateY(-50%);
    will-change: width;
    z-index: 0;
}

.progress-step:before {
    width: 100%;
    background-color: #e6e7e8;
}

.progress-step:after {
    width: 0;
    background-color: #2b6cb0;
}

.progress-step--complete:after {
    width: 100% !important;
    opacity: 1;
    transition: width 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.progress-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 35px;
    height: 35px;
    background-color: #fff;
    border: 0.25rem solid #e6e7e8;
    border-radius: 50%;
    color: transparent;
    font-size: 2rem;
    z-index: 1;
}

.progress-step__icon:before {
    display: block;
    color: #fff;
    content: '\2713';
    font-size: 20px;
}

.progress-step.progress-step--incomplete .progress-step__icon:before {
    font-size: 18px;
    color: #888;
}

.progress-step--complete.progress-step--active .progress-step__icon {
    color: #fff;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.progress-step--incomplete.progress-step--active .progress-step__icon {
    border-color: #2b6cb0;
    transition-delay: 0.5s;
}

.progress-step--complete .progress-step__icon {
    animation: bounce 0.5s ease-in-out;
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(0.9);
    }
    66% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.progress-step__label {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    margin-top: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.progress-step--incomplete.progress-step--active .progress-step__label {
    text-decoration: solid;
}

.progress-step--active .progress-step__label {
    transition: color 0.3s ease-in-out;
    transition-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .step-line {
        width: 20px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
