#demo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: auto;
    min-height: 100vh;
}

.demo-popup {
    position: relative;
    width: min(748px, calc(100vw - 32px));
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 48px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: calc(100vh - 40px);
    height: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.demo-popup::-webkit-scrollbar {
    display: none;
}

#errorMsg, #errorMsgcheckbox {
    color: red;
    margin-bottom: 16px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
}

.demo-popup h2 {
    width: 501px;
    max-width: 100%;
    margin: 0 auto 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 54px;
    color: #121212;
}

.demo-popup h2 span {
    color: #7ac943;
}

.demo-popup p {
    width: 580px;
    max-width: 100%;
    margin: 0 auto 32px;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #121212;
}

.icons {
    width: 192px;
    height: 60px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icons img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.field-row {
    width: 538px;
    max-width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

.field-row label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #121212;
}

.field-row input[type="email"] {
    width: 100%;
    height: 56px;
    padding: 14px 16px;
    border: 1px solid rgba(51, 51, 51, 0.4);
    border-radius: 5px;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #121212;
    box-sizing: border-box;
}

.checkbox {
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #121212;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto 28px;
    text-align: left;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #121212;
}

.cta-btn {
    width: 538px;
    max-width: 100%;
    padding: 14px 16px;
    background: #A3E635;
    border: none;
    border-radius: 10px;
    color: #121212;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 25px;
    cursor: pointer;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.2);
}

.signin {
    width: 538px;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #121212;
    text-align: center;
}

.signin a {
    color: inherit;
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
    color: #121212;
}

@media (max-width: 800px) {
    .demo-popup {
        width: 100%;
        height: auto;
        padding: 32px 24px;
    }

    .demo-popup h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .field-row,
    .cta-btn,
    .checkbox {
        width: 100%;
    }

    .icons {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .demo-popup {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .demo-popup h2 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 8px;
    }

    .demo-popup p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 24px;
    }

    .icons {
        width: 160px;
        height: 50px;
        margin-bottom: 20px;
    }

    .field-row {
        margin-bottom: 12px;
    }

    .field-row input[type="email"] {
        height: 48px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .checkbox {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 20px;
        gap: 6px;
    }

    .checkbox input {
        width: 16px;
        height: 16px;
    }

    .cta-btn {
        height: 44px;
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 12px;
    }

    .signin {
        font-size: 12px;
        line-height: 16px;
        margin-top: 6px;
    }

    .close-btn {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
        font-size: 20px;
        line-height: 28px;
    }
}
