body.lead-modal-open {
    overflow: hidden;
}

.lead-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(15, 23, 42, .72);
}

.lead-modal[hidden] {
    display: none;
}

.lead-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .3);
}

.lead-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #173f66;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.lead-modal__close:hover,
.lead-modal__close:focus-visible {
    background: #dfe8f1;
    outline: 3px solid rgba(245, 158, 11, .28);
}

.lead-modal__kicker {
    margin: 0 44px 6px 0;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lead-modal__title {
    margin: 0;
    color: #173f66;
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.2;
}

.lead-modal__intro {
    margin: 10px 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.lead-form {
    display: grid;
    gap: 16px;
}

.lead-form__field {
    display: grid;
    gap: 7px;
}

.lead-form__field span {
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}

.lead-form__field input:not([type="radio"]),
.lead-form__field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: #1e293b;
    font: inherit;
}

.lead-form__field input:not([type="radio"]):focus,
.lead-form__field select:focus {
    border-color: #f59e0b;
    outline: 3px solid rgba(245, 158, 11, .18);
}

.lead-form__fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.lead-form__fieldset legend {
    margin-bottom: 7px;
    padding: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}

.lead-form__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lead-form__radio {
    display: flex;
    min-height: 58px;
    padding: 11px 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.lead-form__radio:hover {
    border-color: #f59e0b;
    background: #fffaf0;
}

.lead-form__radio:has(input:checked) {
    border-color: #f59e0b;
    background: #fff7df;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.lead-form__radio input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #f59e0b;
}

.lead-form__radio span {
    line-height: 1.35;
}

.lead-form__status {
    min-height: 22px;
    margin: -2px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.lead-form__status.is-error {
    color: #dc2626;
}

.lead-form__status.is-success {
    color: #15803d;
}

.lead-form__submit {
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    background: #f59e0b;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible {
    background: #d97706;
    outline: 3px solid rgba(245, 158, 11, .28);
}

.lead-form__submit:disabled {
    cursor: wait;
    opacity: .7;
}

@media (max-width: 767px) {
    .lead-modal {
        padding: 12px;
        align-items: end;
    }

    .lead-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 28px 20px 22px;
        border-radius: 20px 20px 14px 14px;
    }

    .lead-form__options {
        grid-template-columns: 1fr;
    }
}
