.mb-lead-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.mb-lead-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mb-lead-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    border-top: 7px solid #f28c28;
    border-radius: 14px;
    background: #fff;
    color: #1c2520;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    transform: translateY(-120vh) scale(.9);
}

.mb-lead-overlay.is-open .mb-lead-modal {
    animation: mbLeadBounceIn .8s cubic-bezier(.22, .85, .28, 1.15) forwards;
}

@keyframes mbLeadBounceIn {
    0%   { transform: translateY(-120vh) scale(.9); }
    62%  { transform: translateY(24px) scale(1.02); }
    78%  { transform: translateY(-12px) scale(.99); }
    90%  { transform: translateY(6px) scale(1); }
    100% { transform: translateY(0) scale(1); }
}

.mb-lead-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mb-lead-modal h2 {
    margin: 0 35px 8px 0;
    color: #154d2a;
    font-size: 28px;
    line-height: 1.2;
}

.mb-lead-intro {
    margin: 0 0 20px;
    color: #55605a;
}

.mb-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mb-lead-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mb-lead-full { grid-column: 1 / -1; }

.mb-lead-field label {
    font-weight: 700;
    font-size: 14px;
}

.mb-lead-field input,
.mb-lead-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #b8c1bc;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fff;
    color: #172019;
    font: inherit;
}

.mb-lead-field input:focus,
.mb-lead-field select:focus {
    outline: 3px solid rgba(31, 107, 58, .18);
    border-color: #1f6b3a;
}

.mb-lead-send {
    width: 100%;
    min-height: 50px;
    margin-top: 19px;
    border: 0;
    border-radius: 8px;
    background: #f28c28;
    color: #151515;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}

.mb-lead-send:hover { filter: brightness(.95); }

.mb-lead-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 7px;
    font-weight: 700;
}

.mb-lead-notice.success { color: #155724; background: #dff2e3; }
.mb-lead-notice.error { color: #842029; background: #f8d7da; }

.mb-lead-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .mb-lead-modal { padding: 25px 20px; }
    .mb-lead-grid { grid-template-columns: 1fr; }
    .mb-lead-full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .mb-lead-overlay.is-open .mb-lead-modal {
        animation: none;
        transform: none;
    }
}
