.sd-lead-gate[hidden] {
    display: none !important;
}

.sd-lead-gate {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.sd-lead-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 13, 0.54);
    backdrop-filter: blur(2px);
}

.sd-lead-gate__panel {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    margin: min(12vh, 84px) auto 0;
    padding: 24px;
    border: 1px solid var(--sd-accent-border, #bfe0c8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(17, 24, 18, 0.18);
}

.sd-lead-gate__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 18, 13, 0.06);
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.sd-lead-gate__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--sd-accent, #00a651);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sd-lead-gate__panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
}

.sd-lead-gate__body {
    margin: 0 0 18px;
    color: rgba(18, 30, 21, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.sd-lead-gate__field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.sd-lead-gate__field span {
    font-size: 13px;
    font-weight: 700;
}

.sd-lead-gate__field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--sd-border, #d9e3dc);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.sd-phone-input { display:flex; align-items:center; min-height:48px; border:1px solid var(--sd-border, #d9e3dc); border-radius:14px; background:#fff; overflow:hidden; }
.sd-phone-input__prefix { display:inline-flex; align-items:center; gap:8px; height:100%; padding:0 12px; border-right:1px solid var(--sd-border, #d9e3dc); background:#f7faf7; color:#46614d; font-size:12px; font-weight:700; flex:none; }
.sd-phone-input__prefix svg { width:18px; height:18px; display:block; }
.sd-phone-input input { border:0 !important; box-shadow:none !important; background:transparent; min-height:46px; padding:0 14px; width:100%; }

.sd-lead-gate__error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff2f0;
    color: #a3392b;
    font-size: 13px;
    font-weight: 600;
}

.sd-lead-gate__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.sd-lead-gate__btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sd-lead-gate__btn--secondary {
    border: 1px solid var(--sd-border, #d9e3dc);
    background: #fff;
    color: inherit;
}

.sd-lead-gate__btn--primary {
    border: 1px solid var(--sd-accent, #00a651);
    background: var(--sd-accent, #00a651);
    color: #fff;
}

body.sd-lead-gate-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sd-lead-gate__panel {
        width: calc(100vw - 20px);
        margin-top: 24px;
        padding: 20px;
        border-radius: 20px;
    }

    .sd-lead-gate__actions {
        flex-direction: column-reverse;
    }

    .sd-lead-gate__btn {
        width: 100%;
    }
}
