:root {
    --max-container-width: 1390px;
    --step-number-size: 40px;
    --line-height: 2px;
    --dot-size: 6px;
    --dot-gap: 10px;
}

.steps-container {
    width: 100%;
    max-width: var(--max-container-width);
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.steps-top {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 calc(var(--step-number-size) / 2);
}

.connecting-line {
    position: absolute;
    top: calc(var(--step-number-size) / 2);
    left: calc(var(--step-number-size) + 10px);
    right: calc(var(--step-number-size) + 10px);
    height: var(--line-height);
    background-image: radial-gradient(circle, #333 var(--dot-size), transparent 0);
    background-size: calc(var(--dot-size) + var(--dot-gap)) 100%;
    background-repeat: repeat-x;
    z-index: 1;
}

.connecting-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: transparent;
    background-image: radial-gradient(circle, #333 var(--dot-size), transparent 0);
    background-size: calc(var(--dot-size) + var(--dot-gap)) 100%;
    background-repeat: repeat-x;
}
.step-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.step-number {
    width: var(--step-number-size);
    height: var(--step-number-size);
    /* border: 2px solid #333; */
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: #FF6D38;
    /* color: #080808; */
    margin-bottom: 10px;
    position: relative;
}

.step-text {
    text-align: center;
    font-size: 20px;
    color: #000;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    word-break: break-word;
}

@media (max-width: 768px) {
    .steps-top {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin: 0;
    }
    
    .connecting-line {
        display: none;
    }
    
    .step-group {
        width: 100%;
    }
    
    .step-text {
        max-width: 300px;
    }
}