.stepper-container {
    width: 100%;
    background: #fff;
    /*border: 1px solid #e5e7eb;*/
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

    /* ซ่อน scrollbar */
    .stepper-container::-webkit-scrollbar {
        display: none;
    }

.stepper-wrapper {
    display: flex;
    align-items: center;
    min-width: max-content;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.stepper-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #d8dee8;
    background: #fff;
    color: #94a3b8;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-label {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.stepper-line {
    width: 90px;
    height: 2px;
    background: #d8dee8;
    margin: 0 16px;
    flex-shrink: 0;
}

/* ACTIVE */
.stepper-item.active .stepper-circle {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
}

.stepper-item.active .stepper-label {
    color: #003b1f;
    font-weight: 700;
}

/* COMPLETED */
.stepper-item.completed .stepper-circle {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
}

.stepper-item.completed .stepper-label {
    color: #7c8aa5;
}

/* ACTIVE LINE */
.stepper-line.active-line {
    background: #00a651;
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {

    .stepper-container {
        padding: 18px 15px;
    }

    .stepper-line {
        width: 60px;
        margin: 0 12px;
    }

    .stepper-label {
        font-size: 14px;
    }

    .stepper-circle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .stepper-container {
        justify-content: flex-start;
        padding: 15px 12px;
    }

    .stepper-label {
        display: none;
    }

    .stepper-line {
        width: 45px;
        margin: 0 10px;
    }

    .stepper-circle {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .stepper-container {
        padding: 18px 16px;
        overflow-x: auto;
        justify-content: center;
        /* ซ่อน scrollbar */
        scrollbar-width: none;
    }

        .stepper-container::-webkit-scrollbar {
            display: none;
        }

    .stepper-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        width: max-content;
        margin: auto;
    }

    /* REMOVE LINE */
    .stepper-line {
        display: none;
    }

    .stepper-item {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .stepper-circle {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
        font-weight: 700;
    }

    .stepper-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        line-height: 1;
        margin-top: 1px;
    }
}

/* FIX MOBILE SIZE */
.stepper-container-fixed {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}

/* STEP WRAPPER */
.stepper-wrapper-fixed {
    width: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* STEP */
.stepper-item-fixed {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 8px;
}

/* CIRCLE */
.stepper-circle-fixed {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
}

/* LABEL */
.stepper-label-fixed {
    font-size: 14px;
    white-space: nowrap;
}
