/**
 * Trial popup form — isolated layout (no theme banner / btn-style-four / slider styles).
 */

#popupForm.popup--no-image {
    --trial-gap: 10px;
    --trial-pad-x: 24px;
    --trial-pad-y: 18px;
    padding: 10px;
    box-sizing: border-box;
}

#popupForm.popup--no-image .popup-left {
    display: none !important;
}

#popupForm.popup--no-image .popup-inner {
    max-width: 100%;
}

#popupForm.popup--no-image .popup-content {
    max-width: 735px;
    width: 100%;
    border-width: 4px;
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#popupForm.popup--no-image .popup-right {
    width: 100%;
    padding: var(--trial-pad-y) var(--trial-pad-x);
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
}

#popupForm .trial-popup__header {
    margin: 0 0 12px;
    text-align: center;
}

#popupForm .trial-popup__title {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: rgb(10 68 41);
}

#popupForm .trial-popup__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgb(60 60 60);
}

#popupForm .trial-popup__form {
    display: flex;
    flex-direction: column;
    gap: var(--trial-gap);
    margin: 0;
}

#popupForm .trial-popup__row {
    display: grid;
    gap: var(--trial-gap);
}

#popupForm .trial-popup__row--2 {
    grid-template-columns: 1fr 1fr;
}

#popupForm .trial-popup__field {
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 2px solid #eae5e5;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.35;
    color: #000;
    box-sizing: border-box;
    background: #fff;
}

#popupForm .trial-popup__phone-wrap {
    min-width: 0;
}

#popupForm .trial-popup__phone-wrap .iti {
    width: 100%;
    margin: 0;
}

#popupForm .trial-popup__field--area {
    min-height: 78px;
    line-height: 1.45;
    padding: 10px 12px;
    margin-top: 2px;
    resize: none;
}

#popupForm .trial-popup__form .iti {
    width: 100%;
    margin: 0;
}

#popupForm .trial-popup__enroll {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    padding: 8px 10px;
    border: 2px solid #eae5e5;
    border-radius: 8px;
    background: rgb(250 250 250);
    font-size: 13px;
    line-height: 1.35;
    color: #000;
}

#popupForm .trial-popup__enroll-label {
    margin: 0;
    font-weight: 600;
    color: rgb(10 68 41);
    white-space: nowrap;
}

#popupForm .trial-popup__enroll-options {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
}

#popupForm .trial-popup__enroll-options label {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#popupForm .trial-popup__enroll-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

#popupForm .trial-popup__enroll-options label:has(input:checked) {
    border-color: rgb(29 142 90);
    background: rgb(229 243 237);
    color: rgb(10 68 41);
    font-weight: 600;
}

#popupForm .trial-popup__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#popupForm .trial-popup__captcha {
    width: 100%;
    display: flex;
    justify-content: center;
}

#popupForm .trial-popup__btn {
    display: inline-block;
    margin: 0;
    padding: 11px 36px;
    border: none;
    border-radius: 5px;
    background: #ffd050;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    line-height: 1.25;
    text-align: center;
}

#popupForm .trial-popup__btn:hover {
    background: #f4c040;
}

#popupForm .trial-popup__btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

#popupForm #submit-now-button-spinner {
    display: none;
}

#popupForm .trial-popup__feedback {
    margin: 0;
}

#popupForm .trial-popup__feedback .form-messages {
    margin: 6px 0 0;
}

#popupForm .iti__dropdown-content {
    z-index: 100010;
}

body.trial-popup-open {
    overflow-x: hidden;
}

@media screen and (min-width: 769px) and (max-height: 860px) {
    #popupForm.popup--no-image {
        --trial-gap: 9px;
        --trial-pad-y: 16px;
    }

    #popupForm.popup--no-image .popup-content {
        max-height: none;
        overflow: visible;
    }

    #popupForm .trial-popup__title {
        font-size: 19px;
        margin-bottom: 0;
    }

    #popupForm .trial-popup__lead {
        display: none;
    }

    #popupForm .trial-popup__header {
        margin-bottom: 10px;
    }

    #popupForm .trial-popup__field {
        padding: 8px 11px;
    }

    #popupForm .trial-popup__field--area {
        min-height: 72px;
    }

    #popupForm .trial-popup__footer {
        gap: 6px;
    }

    #popupForm .trial-popup__btn {
        padding: 10px 32px;
    }
}

@media (max-width: 768px) {
    #popupForm.popup--no-image .popup-content {
        width: 92%;
        max-width: 480px;
        max-height: calc(100dvh - 16px);
    }

    #popupForm .trial-popup__row--2 {
        grid-template-columns: 1fr;
    }

    #popupForm .trial-popup__enroll {
        flex-direction: column;
        align-items: stretch;
    }

    #popupForm .trial-popup__enroll-label {
        white-space: normal;
    }

    #popupForm .trial-popup__enroll-options {
        width: 100%;
    }

    #popupForm.popup--no-image .popup-right {
        padding: 18px 20px 16px;
    }

    #popupForm.popup--no-image .popup-right .trial-popup__field,
    #popupForm.popup--no-image .popup-right input,
    #popupForm.popup--no-image .popup-right select {
        margin-bottom: 0;
    }
}
