@media only screen and (max-width: 767px) {
    .line-left{position: absolute;
               left: 0;
               top: 29%;
               width: 36% !important;}
    .line-right {
        position: absolute;
        right: 0;
        top: 60% !important;
        width: 34% !important;
    }
    .line-left-dt {
        top: 45%;
    }
    .font-footer {
        font-size: 38%;
    }
    .mt-1body, .mt-2body, .mt-3body {width:100%}
    .pc{display:none !important;}
    .captcha-box {
        height: 35px !important;
        width: 145px !important;
        transform: translateY(-64%) !important;
        right: 1px;
    }
    .box-ct {
        min-height: auto;
        padding-top: 10px !important;
    }
    .box-thele-ct-c2 {
        transform: translate(0, 25%) !important;
    }
    .line-thele-cttg {
        width: 45%;
    }
    .mobile80{width: 80% !important;}
    .mt-1body, .mt-2body, .mt-3body {
        margin-top: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translate(0, 0);
    }
    .top-mb{margin-top: -140px !important;z-index:10!important;}
    .terms-text {max-width: 100%;width: 100%;}
    .input-row {
        flex-wrap: wrap !important;
    }
    .input-item {
        flex: 0 0 100% !important;
        max-width: 100%;
        margin-right: 0px !important;
        margin-bottom: 5px !important;
    }
    .chainuoc {
        width: 70% !important;
        transform: translate(-50%, -10%);
    }
    .leftms {
        margin-left: 0px !important;
    }
    .lucky-width {
        margin-top: -30px !important;
    }
    /* 1. Giữ nguyên row nhưng đảo ngược thứ tự hiển thị */
    .row.mr-t-20 {
        display: flex !important;
        flex-direction: column-reverse !important; 
    }

    /* 2. Ép các cột col-6 tràn 100% chiều ngang */
    .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* 3. Style các ô input giống mẫu (bo tròn, viền xanh) */
    .field-blue {
        border-radius: 50px !important;
        border: 2px solid #0056b3 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* 4. Style nút bấm (màu đỏ rực, bo tròn to) */
    .btn-spin {
        width: 100% !important;
        background: linear-gradient(180deg, #ff0000, #b30000) !important;
        color: #fff !important;
        border-radius: 50px !important;
        border: 2px solid #fff !important;
        padding: 10px !important;
        font-weight: bold !important;
        font-size: 18px !important;
    }

    /* 5. Hiệu ứng chai nước đè lên vòng quay */
    .box-empty {
        margin-top: -60px !important; /* Đẩy chai nước lên trên */
        position: relative;
        z-index: 9;
    }

    /* 6. Đảo thứ tự bên trong Form (nếu cần nút Quay nằm dưới cùng) */
    .form-container {
        display: flex;
        flex-direction: column;
    }
    .action-row {
        order: 99; /* Đẩy nút và điều khoản xuống cuối form */
        display: flex;
        flex-direction: column-reverse;
    }
    .header-mb {
        display: block;
    }
    .background-footer {
        background-image: url(../images/body/footer.png);

    }
    .captcha-box {
        top: 50%;
    }
}
/* 2. Dành riêng cho iPad/Tablet (thường từ 768px đến 1025px) */
@media only screen and (min-width: 768px) and (max-width: 1025px) {
    
    .font-footer {
        font-size: 70%;
    }
    .mt-1body, .mt-2body, .mt-3body {width:100%}
    .pc{display:none !important;}
    .captcha-box {
        height: 35px !important;
        width: 145px !important;
        transform: translateY(-64%) !important;
        right: 1px;
    }
    .box-ct {
        min-height: auto;
        padding-top: 10px !important;
    }
    .box-thele-ct-c2 {
        transform: translate(0, 25%) !important;
    }
    .line-thele-cttg {
        width: 45%;
    }
    .mobile80{width: 80% !important;}
    .mt-1body, .mt-2body, .mt-3body {
        margin-top: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translate(0, 0);
    }
    .top-mb{margin-top: -140px !important;z-index:10!important;}
    .terms-text {max-width: 100%;width: 100%;}
    .input-row {
        flex-wrap: wrap !important;
    }
    .input-item {
        flex: 0 0 100% !important;
        max-width: 100%;
        margin-right: 0px !important;
        margin-bottom: 5px !important;
    }
    .chainuoc {
        width: 70% !important;
        transform: translate(-50%, -10%);
    }
    .leftms {
        margin-left: 0px !important;
    }
    .lucky-width {
        margin-top: -30px !important;
    }
    /* 1. Giữ nguyên row nhưng đảo ngược thứ tự hiển thị */
    .row.mr-t-20 {
        display: flex !important;
        flex-direction: column-reverse !important; 
    }

    /* 2. Ép các cột col-6 tràn 100% chiều ngang */
    .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* 3. Style các ô input giống mẫu (bo tròn, viền xanh) */
    .field-blue {
        border-radius: 50px !important;
        border: 2px solid #0056b3 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* 4. Style nút bấm (màu đỏ rực, bo tròn to) */
    .btn-spin {
        width: 100% !important;
        background: linear-gradient(180deg, #ff0000, #b30000) !important;
        color: #fff !important;
        border-radius: 50px !important;
        border: 2px solid #fff !important;
        padding: 10px !important;
        font-weight: bold !important;
        font-size: 18px !important;
    }

    /* 5. Hiệu ứng chai nước đè lên vòng quay */
    .box-empty {
        margin-top: -60px !important; /* Đẩy chai nước lên trên */
        position: relative;
        z-index: 9;
    }

    /* 6. Đảo thứ tự bên trong Form (nếu cần nút Quay nằm dưới cùng) */
    .form-container {
        display: flex;
        flex-direction: column;
    }
    .action-row {
        order: 99; /* Đẩy nút và điều khoản xuống cuối form */
        display: flex;
        flex-direction: column-reverse;
    }
    .header-mb {
        display: block;
    }
    .chainuoc {
        transform: translate(-50%, 7%);
    }
    .box-thele-ct-c2 {
        transform: translate(0, 46%) !important;
    }
    .line-left{position: absolute;
               left: 0;
               top: 29%;
               width: 36% !important;}
    .line-right {
        position: absolute;
        right: 0;
        top: 60% !important;
        width: 34% !important;
    }
    .line-left-dt {
        top: 45%;
    }
    
}