:root:has(.exit-lead[open]) {
    overflow: hidden;
}

.exit-lead {
    --exit-lead-accent: #a91e2a;
    --exit-lead-ink: #222229;
    position: fixed;
    inset: 0;
    width: min(672px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--exit-lead-ink);
    font: 400 1rem/1.5 Onest, sans-serif;
    box-shadow: 0 18px 56px rgb(14 13 20 / 22%);
}

.exit-lead:not([open]) {
    display: none;
}

.exit-lead::backdrop {
    background: rgb(19 17 23 / 45%);
}

.exit-lead__top {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
}

.exit-lead__close {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #514a54;
    font: 600 .8125rem/1.25 Onest, sans-serif;
    cursor: pointer;
}

.exit-lead__close:hover {
    background: #f6f1f0;
}

.exit-lead__layout {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: stretch;
}

.exit-lead__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 26px;
    background: #f7f3f1;
}

.exit-lead__intro h2 {
    margin: 0;
    color: inherit;
    font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.12 Jost, sans-serif;
    letter-spacing: -.025em;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.exit-lead__intro p {
    margin: 0;
    color: #514a54;
    font-size: .875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.exit-lead__lawyer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
    line-height: 1.35;
}

.exit-lead__lawyer img {
    width: 52px;
    height: 58px;
    flex: 0 0 52px;
    border-radius: 6px;
    background: #ece5e2;
    object-fit: cover;
    object-position: center top;
}

.exit-lead__lawyer strong,
.exit-lead__lawyer span {
    display: block;
}

.exit-lead__lawyer strong {
    font-size: .875rem;
}

.exit-lead__lawyer span {
    margin-top: 2px;
    color: #514a54;
    font-size: .8125rem;
}

.exit-lead__form {
    position: relative;
    align-self: center;
    margin: 0;
    padding: 16px 24px 24px;
}

.exit-lead__instruction {
    margin: 0 0 14px;
    color: var(--exit-lead-ink);
    font-size: .875rem;
    line-height: 1.45;
}

.exit-lead__phone {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--exit-lead-ink);
    font-size: .875rem;
    font-weight: 600;
}

.exit-lead__phone input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #bab6bd;
    border-radius: 9px;
    background: #fff;
    color: var(--exit-lead-ink);
    caret-color: var(--exit-lead-accent);
    font: 400 1rem/1.3 Onest, sans-serif;
    font-variant-numeric: tabular-nums;
}

.exit-lead__phone input::placeholder {
    color: #716a73;
}

.exit-lead__consent {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 6px 0 8px;
    color: #514a54;
    font-size: .8125rem;
    line-height: 1.4;
    cursor: pointer;
}

.exit-lead__consent input {
    appearance: auto;
    position: static;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    opacity: 1;
    accent-color: var(--exit-lead-accent);
    cursor: inherit;
}

.exit-lead__action.form-group {
    margin: 0;
}

.exit-lead__submit {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    background: var(--exit-lead-accent);
    color: #fff;
    font: 600 1rem/1.3 Onest, sans-serif;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.exit-lead__submit:hover {
    background: #ad101d;
}

.exit-lead__submit:disabled {
    background: #81454c;
    cursor: wait;
}

.exit-lead__call,
.exit-lead__consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.exit-lead__call {
    display: block;
    margin-top: 12px;
    color: #4f4752;
    font-size: .8125rem;
    text-align: center;
}

.exit-lead .form-error {
    color: #ad101d;
}

.exit-lead :focus-visible {
    outline: 2px solid var(--exit-lead-accent);
    outline-offset: 3px;
}

.exit-lead ::selection {
    background: #f6ccd0;
    color: var(--exit-lead-ink);
}

@media (max-width: 620px) {
    .exit-lead {
        width: min(440px, calc(100% - 24px));
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .exit-lead__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .exit-lead__intro {
        padding: 16px 18px;
    }

    .exit-lead__form {
        padding: 16px 18px 20px;
    }
}
