.gta-popup[hidden] { display: none !important; }
.gta-popup { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.gta-popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(1px); }
.gta-popup__dialog { position: relative; z-index: 1; width: 100%; max-height: calc(100vh - 40px); overflow: auto; background: transparent; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.28); outline: none; }
.gta-popup--width-small .gta-popup__dialog { max-width: 420px; }
.gta-popup--width-medium .gta-popup__dialog { max-width: 560px; }
.gta-popup--width-large .gta-popup__dialog { max-width: 760px; }
.gta-popup__close { position: absolute; top: 8px; right: 10px; z-index: 3; width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; background: rgba(255,255,255,.94); color: #1f2937; cursor: pointer; font-size: 27px; line-height: 33px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.gta-popup__close:hover { background: #fff; }
.gta-popup__close:focus-visible { outline: 3px solid rgba(217,119,6,.35); outline-offset: 2px; }
.gta-popup__content .gta-lead-form-wrap { max-width: none; margin: 0; }
.gta-popup__content .gta-lead-form-wrap--shadow { box-shadow: none; }
body.gta-popup-open { overflow: hidden; }
.gta-popup-trigger { cursor: pointer; }
@media (max-width: 600px) {
    .gta-popup { padding: 10px; align-items: center; }
    .gta-popup__dialog { max-height: calc(100vh - 20px); border-radius: 12px; }
    .gta-popup__close { top: 5px; right: 6px; }

    .gta-popup--mobile-compact {
        padding: 12px;
        align-items: center;
    }

    .gta-popup--mobile-compact .gta-popup__dialog {
        width: 100%;
        max-width: 430px;
        max-height: 88vh;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 12px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .gta-popup--mobile-compact .gta-popup__content .gta-lead-form-wrap {
        margin: 0;
    }

    .gta-popup--mobile-compact .gta-popup__close {
        top: 6px;
        right: 6px;
        width: 34px;
        height: 34px;
        font-size: 23px;
        line-height: 29px;
    }

    .gta-popup--mobile-compact .gta-lead-form-wrap:not(.gta-lead-form-wrap--contrast) {
        padding: 1rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__intro {
        padding-right: 3rem;
    }

    .gta-popup--mobile-compact .gta-lead-form-wrap--contrast .gta-lead-form__intro {
        padding: 1.15rem 3rem 0.9rem 1rem;
    }

    .gta-popup--mobile-compact .gta-lead-form-wrap--contrast .gta-lead-form {
        padding: 0.8rem 1rem 0.95rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__title {
        margin-bottom: 0.45rem;
        font-size: 1.2rem;
        line-height: 1.22;
    }

    .gta-popup--mobile-compact .gta-lead-form__description {
        margin-bottom: 0.8rem;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .gta-popup--mobile-compact .gta-lead-form__description p {
        margin-bottom: 0.45rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__field {
        margin-bottom: 0.68rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__label {
        margin-bottom: 0.28rem;
        font-size: 0.86rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__input {
        min-height: 44px;
        padding: 0.58rem 0.72rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__consent {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .gta-popup--mobile-compact .gta-lead-form__privacy-link {
        margin-top: 0.3rem;
    }

    .gta-popup--mobile-compact .gta-lead-form__turnstile {
        max-width: 100%;
        margin: 0.1rem 0 0.65rem;
        overflow: hidden;
    }

    .gta-popup--mobile-compact .gta-lead-form__button,
    .gta-popup--mobile-compact .gta-lead-form__download {
        min-height: 44px;
        padding: 0.64rem 1rem;
        font-size: 0.9rem;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 600px) {
        .gta-popup--mobile-compact .gta-popup__dialog {
            max-height: 88dvh;
        }
    }
}
