/* Style tổng thể cho section */
.how-it-works-section {
    background: #fff8f4;
    position: relative;
}

/* Cấu trúc Timeline dọc */
.steps-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-item {
    position: relative;
    padding-bottom: 100px;
    cursor: pointer;
    opacity: 0.4;
    /* Mặc định làm mờ các bước chưa active */
    transition: all 0.3s ease;
}

/* Bước nào được active sẽ sáng lên */
.step-item.active {
    opacity: 1;
}

/* Vòng tròn số chỉnh theo thiết kế cam */
.step-number {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: #ff6600;
    /* Màu cam giống thiết kế */
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

/* Tiêu đề từng bước */
.step-content h3 {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.step-item.active .step-content h3 {
    color: #ff6600;
    /* Tiêu đề chữ cam khi active */
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Đường thẳng nối giữa các vòng tròn số */
.step-line {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background-color: #ff6600;
    /* Đường kẻ màu cam */
    z-index: 1;
}

/* Hiệu ứng chuyển ảnh mượt */
#step-image {
    transition: opacity 0.3s ease-in-out;
}

.hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 80% 20%,
            rgba(255, 255, 255, .13),
            transparent 25%),
        linear-gradient(115deg,
            #e9360b,
            #fa4810 50%,
            #ffad0c);
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border: 70px solid rgba(255, 255, 255, .035);

    border-radius: 50%;

    right: -230px;
    top: -240px;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 35px;
    padding-bottom: 35px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 13px;

    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 30px;

    background: rgba(255, 255, 255, .12);

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin-top: 18px;

    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 900;

    color: white;
}

.hero h1 span {
    color: var(--yellow);
}

.hero-description {
    max-width: 560px;

    margin-top: 22px;

    color: rgba(255, 255, 255, .9);

    font-size: 17px;
    line-height: 1.7;
}

/* FEATURES */

.feature {
    padding: 10px 13px;

    border-radius: 10px;

    background: rgba(255, 255, 255, .13);

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.feature-icon {
    width: 28px;
    height: 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-right: 6px;

    border-radius: 50%;

    background: white;

    color: var(--orange);
}

/* ================= CALCULATOR ================= */

.calculator {
    position: relative;
    z-index: 3;

    padding: 30px;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 25px 55px rgba(0, 0, 0, .18);
}

.calculator h2 {
    font-size: 27px;
    font-weight: 800;
}

.calculator-subtitle {
    color: #888;
    font-size: 13px;
}

.link-input {
    height: 62px;

    /* border: 2px solid #e5e5e5; */

    /* border-radius: 11px; */

    font-size: 14px;
}

.link-input:focus {
    /* border-color: var(--orange); */

    box-shadow:
        0 0 0 .2rem rgba(255, 75, 11, .1);
}

.input-group-text {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-right: 0;

    border-radius: 11px 0 0 11px;

    font-size: 20px;
}

.input-group .link-input {
    border-left: 0;
    border-radius: 0 11px 11px 0;
}

.btn-calculate {
    height: 58px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(135deg,
            #ff4308,
            #ff7617);

    color: white;

    font-size: 16px;
    font-weight: 800;

    transition: .2s;
}

.btn-calculate:hover {
    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(255, 75, 11, .25);
}

.security {
    margin-top: 14px;

    padding: 10px;

    border-radius: 7px;

    background: #fff3ef;

    text-align: center;

    color: #e34b32;

    font-size: 12px;
}

#result {
    display: none;

    margin-top: 15px;

    /* padding: 15px; */

    border-radius: 10px;

    /* background: #fff7ed; */

    text-align: center;
    border-color: var(--orange);
}

.result-money {
    display: block;

    color: var(--orange);

    font-size: 28px;
    font-weight: 900;
}

/* ================= PLATFORM ================= */

.platform-section {
    padding: 48px 0 65px;
}

.section-title {
    font-size: 30px;
    font-weight: 900;
}

.section-line {
    width: 50px;
    height: 4px;

    margin: 13px auto 30px;

    border-radius: 20px;

    background: var(--orange);
}

.platform-card {
    border: 1px solid #eee;

    border-radius: 12px;

    background: white;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .035);

    transition: .25s;
}

.platform-card:hover {
    transform: translateY(-6px);

    border-color: #ffd0c0;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, .09);
}

.platform-logo {
    width: 80px;
    height: 80px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: white;

    font-weight: 900;
    font-size: 34px;
}

.shopee {
    background: #ee4d2d;
}

.lazada {
    background:
        linear-gradient(135deg,
            #2515a5,
            #ee168a);

    font-size: 22px;
}

.tiktok {
    background: #111;

    /* text-shadow:
                3px 2px #25f4ee,
                -2px -2px #fe2c55; */
}

.food {
    background: #ff5b26;
}

.tiki {
    background: #20a5f5;
    font-size: 19px;
}

.commission {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: #fff0e9;

    color: #d94a20;

    font-size: 11px;
    font-weight: 800;
}

/* Mobile - không cho Safari zoom khi bấm input */
@media (max-width: 768px) {
    .link-input {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }

    .feature {
        font-size: 9px !important;
    }
}