body.no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.popup-open {
    overflow: hidden;
    height: 100vh;
}

.mini-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    display: flex;
    background-color: white;
    border-radius: 25px;
    width: 90%;
    max-width: 850px;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    will-change: transform;
}

.content {
    display: flex;
    width: 100%;
    flex-direction: row;
}

.left-section {
    width: 50%;
    padding: 30px;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.right-section {
    width: 50%;
    padding: 30px;
    background: url('../img/banner_1x.png') no-repeat center;
    background-size: cover;
    background-color: #333;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.right-section h2 {
    color: #fff;
}

.close-btn,
.close-detail-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #FFF;
    z-index: 10000;
    transition: color 0.3s;
    will-change: color;
}

.close-btn:hover,
.close-detail-btn:hover {
    color: #ccc;
}

form {
    background-color: #fff;
    padding: 0;
    flex-direction: column;
    gap: 0px;
}

form label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 0px;
    line-height: 2.0;
    display: contents;
}

form input:not([type="checkbox"]),
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    cursor: pointer;
}

form input:not([type="checkbox"]):focus,
form select:focus {
    outline: none;
    border-color: #1DA1F2;
    box-shadow: 0 0 5px rgba(29, 161, 242, 0.5);
}

form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

form input[type="checkbox"]:checked {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

form input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

form input[type="checkbox"]:focus {
    outline: 2px solid #1DA1F2;
    outline-offset: 2px;
}

form select:focus {
    outline: none;
    border-color: #1DA1F2;
    box-shadow: 0 0 5px rgba(29, 161, 242, 0.5);
}

.agree-section {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0px;
    justify-content: space-between;
}

.divider {
    border: 0;
    border-top: 1px solid #CCCCCC;
    width: 100%;
    margin: 5px 0px;
    display: block;
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 10px;
    margin-left: 30px;
    color: #000;
}

.checkbox-options.hidden {
    display: none;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    font-size: 15px;
    gap: 5px;
    color: #000;
}

.checkbox-options .divider {
    border: 0;
    border-top: 1px solid #000;
    width: calc(100% + 15px);
    margin: 5px 0 5px -15px;
}

.collapse-btn {
    background-color: transparent;
    border: none;
    font-size: 13px;
    cursor: pointer;
    color: #1DA1F2;
    margin-left: auto;
    padding: 0 5px;
}

.view-btn {
    background-color: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #1DA1F2;
    margin-left: auto;
    padding: 0 0px;
}

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
    transition: transform 0.3s ease;
}

.arrow.active {
    transform: rotate(180deg);
}

.submit-btn {
    padding: 15px;
    background-color: #0033FF;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    margin-top: 25px;
}

.left-section p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.info-section {
    margin-top: 10px;
}

.info-section p {
    font-size: 14px;
    color: #666;
}

.coupon-section h4 {
    display: none;
}

.coupon-options {
    margin-top: 0;
    display: flex;
    gap: 10px;
}

.coupon-btn {
    background-color: #fff;
    color: #000;
    border: 1px dashed #ccc;
    border-radius: 15px;
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

#detail-popup-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

#detail-popup-content .popup-left {
    width: 100%;
    padding: 0px;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.close-detail-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #808080;
    z-index: 10001;
    transition: color 0.3s;
}

#detail-popup-content hr {
    border: 0;
    border-top: 1px solid #CCCCCC;
    width: 100%;
    margin: 10px 0;
}

#detail-popup-content .detail-text {
    font-size: 15px;
    font-weight: 300;
    margin-top: 0;
    padding: 0;
    white-space: pre-line;
    overflow-wrap: break-word;
    overflow-y: auto;
    max-height: 400px;
    margin-left: 20px;
    line-height: 1.4; /* Giảm khoảng cách giữa các dòng */
    margin-bottom: 10px;
}

#detail-popup-content .detail-text br {
    content: ""; /* Xóa khoảng cách mặc định của <br> */
    display: block;
    margin-top: 2px; /* Khoảng cách nhỏ giữa các dòng khi dùng <br> */
}



.hidden {
    display: none;
}

h1 {
    font-size: 27px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    #detail-popup-content .detail-text {
        font-size: 12px;
        line-height: 1.2; /* Giảm thêm trên mobile */
    }
    h1 {
        font-size: 20px;
    }
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 20px;
    margin-left: 20px;
}

.left-section h2 {
    font-size: 27px;
    margin: 0;
}
.left-section .submit-btn {
    margin-top: auto;
}
@media (max-width: 480px) {
    .left-section h2 {
        font-size: 18px;
    }
}

h3 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.right-section h3 {
    font-size: 20px;
}

@media (max-width: 1024px) {
    #detail-popup-content .detail-text {
        font-size: 12px;
        line-height: 1.2; /* Giảm thêm trên mobile */
    }
    .popup-content {
        width: 95%;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    #detail-popup-content .detail-text {
        font-size: 12px;
        line-height: 1.2; /* Giảm thêm trên mobile */
    }
    .popup-content {
        flex-direction: column;
        width: 90%;
        min-height: auto;
    }

    .content {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
        padding: 20px;
        min-height: 150px;
    }

    .submit-btn {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        margin: 5px;
        border-radius: 10px;
    }

    .left-section,
    .right-section {
        padding: 15px;
    }

    form label {
        font-size: 13px;
    }

    form input:not([type="checkbox"]),
    form select {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        margin-top: 20px
    }

    .right-section h3 {
        font-size: 16px;
    }
}
