body.has-lead-popup {
    overflow: hidden;
}

.kk-popup-lead {
    position: fixed;
    z-index: 10000;
    inset: 0;

    display: grid;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: clamp(16px, 4vw, 70px);
    place-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.kk-popup-lead[hidden] {
    display: none !important;
}

.kk-popup-lead.is-open {
    opacity: 1;
    visibility: visible;
}

.kk-popup-lead__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(24, 28, 33, 0.72);
    backdrop-filter: blur(5px);
}

.kk-popup-lead__dialog.kk-lead-form {
    position: relative;
    overflow: auto;

    width: min(100%, 1180px);
    max-width: 1180px;
    max-height: calc(100dvh - clamp(32px, 8vw, 140px));
    margin: 0;
    padding: clamp(38px, 6vw, 72px) clamp(24px, 7vw, 96px);

    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);

    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.kk-popup-lead.is-open .kk-popup-lead__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kk-popup-lead__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 18px;

    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;

    background: transparent;
    color: #626b75;
    border: 0;
    border-radius: 50%;

    font: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.kk-popup-lead__close:hover,
.kk-popup-lead__close:focus-visible {
    background: #edf6ff;
    color: #176db4;
}

.kk-popup-lead__content {
    width: min(100%, 620px);
    margin: 0 auto;
    text-align: center;
}

.kk-popup-lead__badge {
    display: inline-flex;
    min-height: 38px;
    padding: 0 20px;
    align-items: center;

    background: #edf6ff;
    color: #176db4;
    border: 1px solid #cfe6ff;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kk-popup-lead__title {
    margin: 22px 0 10px !important;
    color: #303030 !important;
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.kk-popup-lead__title span {
    color: #176db4;
}

.kk-popup-lead__description {
    margin: 0 !important;
    color: #555e68;
    font-size: clamp(16px, 2vw, 19px) !important;
    line-height: 1.55 !important;
}

.kk-popup-lead__social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0;

    color: #626b75;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.kk-popup-lead__stars {
    color: #b94f00;
    letter-spacing: 2px;
}

.kk-popup-lead__form.kk-lead-form__form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 !important;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.kk-popup-lead__label {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.kk-popup-lead__form .kk-lead-form__field input,
.kk-popup-lead__form .iti input.kk-lead-form__phone {
    height: 58px !important;
    padding-right: 18px !important;

    background: #f9fafb !important;
    border-color: #d8dde3 !important;
    border-radius: 12px !important;

    font-size: 15px !important;
}

.kk-popup-lead__form .iti input.kk-lead-form__phone {
    padding-left: 54px !important;
}

.kk-popup-lead__form .iti {
    width: 100%;
}

.kk-popup-lead__form .kk-lead-form__action {
    display: block;
}

.kk-popup-lead__submit.kk-lead-form__button {
    width: 100%;
    min-height: 58px;
    background: #b94f00 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
}

.kk-popup-lead__submit.kk-lead-form__button:hover {
    background: #a84300 !important;
}

.kk-popup-lead__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 0 !important;

    color: #626b75;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.kk-popup-lead__phone-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;

    background: #eaf6ef;
    color: #247a55;
    border-radius: 50%;
    font-size: 18px;
}

@media (max-width: 640px) {
    .kk-popup-lead {
        padding: 12px;
    }

    .kk-popup-lead__dialog.kk-lead-form {
        max-height: calc(100dvh - 24px);
        padding: 54px 18px 28px;
        border-radius: 18px;
    }

    .kk-popup-lead__title {
        margin-top: 17px !important;
    }

    .kk-popup-lead__social-proof {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        margin: 17px 0;
    }

    .kk-popup-lead__note {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kk-popup-lead,
    .kk-popup-lead__dialog {
        transition: none;
    }
}
