/* Responsive Stepper Custom Styles */

/* Base Stepper Styles (Desktop) */
.stepper-container {
    margin-bottom: 2rem;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-grow: 1;
    z-index: 2;
}

.step-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: -1;
}

.step-connector.completed {
    background-color: var(--bs-primary);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.875rem;
}

.step-item.active .step-circle {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.2);
}

.step-item.completed .step-circle {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.step-item.locked .step-circle {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.step-label {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
    color: #6c757d;
}

.step-item.active .step-label {
    color: var(--bs-primary);
}

.step-item.completed .step-label {
    color: var(--bs-body-color);
}

.step-item.locked .step-label {
    opacity: 0.5;
}

/* Vertical Stepper (Mobile) */
@media (max-width: 767.98px) {
    .stepper-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .step-item {
        flex-direction: row;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
        flex-grow: 0;
    }

    .step-item:last-child {
        margin-bottom: 0;
    }

    .step-connector {
        left: 20px;
        top: 40px;
        width: 2px;
        height: calc(100% + 1.5rem - 40px);
    }

    .step-label {
        margin-top: 0;
        margin-left: 1rem;
        text-align: left;
        font-size: 0.875rem;
    }
}
