/* Shared lead-modal polish for / and /maler. Loaded after each page stylesheet. */
.lead-modal .lead-panel {
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 34px 100px rgba(7, 13, 26, .34);
}

.lead-modal .lead-panel[data-current-step="form"] {
    width: min(760px, 100%);
    padding: 42px 44px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(95, 88, 245, .09), transparent 31%),
        #fff;
}

.lead-modal .lead-panel[data-current-step="form"]::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px rgba(255, 255, 255, .9);
    pointer-events: none;
    content: "";
}

.lead-modal .lead-panel[data-current-step="form"] > [data-lead-step="form"] {
    position: relative;
    z-index: 1;
}

.lead-modal .lead-progress {
    z-index: 3;
    height: 5px;
}

.lead-modal .lead-progress i {
    background: linear-gradient(90deg, #5f58f5, #8b5cf6);
}

.lead-modal .lead-close {
    top: 18px;
    right: 18px;
    width: 41px;
    height: 41px;
    color: #68748a;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px -17px rgba(17, 26, 46, .8);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.lead-modal .lead-close:hover {
    border-color: #cbd2de;
    color: #111a2e;
    background: #fff;
    transform: rotate(4deg);
}

.lead-modal .lead-panel[data-current-step="form"] .eyebrow,
.lead-modal .lead-panel[data-current-step="form"] .lead-eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
}

.lead-modal .lead-panel[data-current-step="form"] h2 {
    margin: 14px 48px 9px 0;
    font-size: 39px;
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.05em;
}

.lead-modal .lead-panel[data-current-step="form"] [data-lead-step] > p {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.lead-modal .lead-form {
    gap: 15px;
}

.lead-modal .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.lead-modal .field-row > label,
.lead-modal .field-row input {
    min-width: 0;
}

.lead-modal .lead-form > label,
.lead-modal .field-row label,
.lead-modal .interest-selector legend {
    color: #39465d;
    font-size: 12px;
    font-weight: 800;
}

.lead-modal .lead-form label small {
    font-size: 10px;
}

.lead-modal .lead-form input:not([type="hidden"]) {
    min-height: 52px;
    padding-inline: 15px;
    border-color: #cbd4e1;
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lead-modal .lead-form input:not([type="hidden"]):hover {
    border-color: #adb8c9;
    background: #fff;
}

.lead-modal .lead-form input:focus {
    border-color: #655ef7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95, 88, 245, .11);
}

.lead-modal .interest-selector {
    gap: 9px;
}

.lead-modal .interest-selector legend {
    margin-bottom: 9px;
}

.lead-modal .interest-selector span {
    min-height: 58px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    border-color: #cbd4e1;
    border-radius: 12px;
    color: #46536a;
    background: rgba(255, 255, 255, .84);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lead-modal .interest-selector span::before {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1.5px solid #c1cad8;
    border-radius: 50%;
    color: #fff;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    content: "";
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.lead-modal .interest-selector input:checked + span {
    border-color: #655ef7;
    color: #2f2a91;
    background: linear-gradient(135deg, #f0efff, #f7f7ff);
    box-shadow: inset 0 0 0 1px rgba(95, 88, 245, .22), 0 10px 24px -21px rgba(79, 70, 229, .9);
}

.lead-modal .interest-selector input:checked + span::before {
    border-color: #5f58f5;
    background: linear-gradient(135deg, #6c64f8, #5148ec);
    box-shadow: 0 5px 12px -6px rgba(79, 70, 229, .9);
    content: "✓";
    transform: scale(1.04);
}

.lead-modal .form-submit {
    min-height: 58px;
    margin-top: 1px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 16px 28px -20px rgba(17, 26, 46, .95);
}

.lead-modal .button-spinner {
    transform: none;
    transition: opacity .16s ease;
    will-change: transform;
}

.lead-modal .form-submit.is-loading .button-spinner {
    transform: none;
    animation: estimas-spinner-rotate .68s linear infinite !important;
}

@keyframes estimas-spinner-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lead-modal .form-submit:hover:not(:disabled) {
    background: #080e1c;
    box-shadow: 0 18px 32px -19px rgba(17, 26, 46, .95);
    transform: translateY(-1px);
}

.lead-modal .form-microcopy {
    color: #7f8a9d;
    font-size: 10px;
    line-height: 1.45;
}

@media (hover: hover) {
    .lead-modal .interest-selector label:hover span {
        border-color: #aaa7fb;
        background: #fafaff;
        transform: translateY(-1px);
    }
}

@media (max-width: 560px) {
    .lead-modal .lead-panel[data-current-step="form"] {
        width: 100%;
        max-height: calc(100dvh - 8px);
        padding: 30px 17px max(18px, env(safe-area-inset-bottom));
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
    }

    .lead-modal .lead-close {
        top: 12px;
        right: 12px;
        width: 39px;
        height: 39px;
    }

    .lead-modal .lead-panel[data-current-step="form"] .eyebrow,
    .lead-modal .lead-panel[data-current-step="form"] .lead-eyebrow {
        font-size: 11px;
    }

    .lead-modal .lead-panel[data-current-step="form"] h2 {
        margin-top: 11px;
        font-size: 31px;
        line-height: 1.04;
    }

    .lead-modal .lead-panel[data-current-step="form"] [data-lead-step] > p {
        margin-bottom: 17px;
        font-size: 13px;
    }

    .lead-modal .lead-form {
        gap: 11px;
    }

    .lead-modal .field-row {
        gap: 9px;
    }

    .lead-modal .lead-form > label,
    .lead-modal .field-row label,
    .lead-modal .interest-selector legend {
        font-size: 11px;
    }

    .lead-modal .lead-form input:not([type="hidden"]) {
        min-height: 48px;
        padding-inline: 12px;
        font-size: 15px;
    }

    .lead-modal .interest-selector {
        gap: 7px;
    }

    .lead-modal .interest-selector span {
        min-height: 49px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .lead-modal .form-submit {
        min-height: 54px;
        font-size: 16px;
    }
}
