/* Progress bar wrapper */
.car-progress-bar-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 40px auto;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.car-progress-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    justify-content: space-between;
}

.car-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1 1 0;
    min-width: 60px;
    max-width: 120px;
}

.car-progress-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 6px;
    z-index: 2;
    transition: background 0.2s;
}

.car-progress-done .car-progress-circle {
    background: #4caf50;
    color: #fff;
}
.car-progress-error .car-progress-circle {
    background: #ff6f61;
    color: #fff;
}
.car-progress-current .car-progress-circle {
    background: #673ab7;
    color: #fff;
    border: 3px solid #b39ddb;
}
.car-progress-todo .car-progress-circle {
    background: #e0e0e0;
    color: #bdbdbd;
}

.car-progress-label {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    text-align: center;
    min-width: 70px;
    max-width: 110px;
    word-break: break-word;
}
.car-progress-done .car-progress-label {
    color: #388e3c;
    font-weight: 500;
}
.car-progress-error .car-progress-label {
    color: #d84315;
    font-weight: 500;
}
.car-progress-current .car-progress-label {
    color: #673ab7;
    font-weight: 600;
}

.car-progress-line {
    position: absolute;
    top: 19px;
    left: 100%;
    width: calc(100% - 38px);
    max-width: 90px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}
.car-progress-done ~ .car-progress-line,
.car-progress-done .car-progress-line {
    background: #4caf50;
}
.car-progress-error ~ .car-progress-line,
.car-progress-error .car-progress-line {
    background: #ff6f61;
}
.car-progress-current ~ .car-progress-line,
.car-progress-current .car-progress-line {
    background: #b39ddb;
}

@media (max-width: 900px) {
    .car-progress-bar-wrapper {
        max-width: 100vw;
        padding: 0 4vw;
    }
    .car-progress-bar {
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    .car-progress-bar {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }
    .car-progress-step {
        flex-direction: row;
        align-items: center;
        min-width: 0;
        margin-bottom: 18px;
        max-width: 100%;
    }
    .car-progress-label {
        margin-left: 12px;
        margin-top: 0;
        min-width: 0;
        max-width: 180px;
        font-size: 15px;
        text-align: left;
    }
    .car-progress-line {
        position: static;
        width: 30px;
        height: 4px;
        margin-left: 10px;
        margin-right: 10px;
        max-width: 30px;
    }
} 