.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-popup.is-open {
    display: flex;
}

.lead-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 11, 29, 0.82);
    backdrop-filter: blur(5px);
}

.lead-popup__dialog {
    position: relative;
    width: min(100%, 640px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 28px;
    background: #0b132b;
    color: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lead-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.lead-popup__close:hover,
.lead-popup__close:focus-visible {
    background: #facc15;
    color: #0f172a;
}

.lead-popup__header {
    padding: 36px 70px 22px 36px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.46), rgba(15, 23, 42, 0));
}

.lead-popup__eyebrow {
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead-popup__title {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(27px, 5vw, 38px);
    line-height: 1.12;
    font-weight: 800;
}

.lead-popup__intro {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

.lead-popup__form {
    padding: 0 36px 36px;
}

.lead-popup__progress {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.lead-popup__progress span {
    height: 4px;
    flex: 1;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
}

.lead-popup[data-step="1"] .lead-popup__progress span:first-child,
.lead-popup[data-step="2"] .lead-popup__progress span {
    background: #facc15;
}

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

.lead-popup__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lead-popup__field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.lead-popup__field label {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.lead-popup__field input,
.lead-popup__field select,
.lead-popup__field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: #fff;
    color: #0f172a;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.lead-popup__field textarea {
    min-height: 86px;
    resize: vertical;
}

.lead-popup__field input:focus,
.lead-popup__field select:focus,
.lead-popup__field textarea:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.lead-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 18px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

.lead-popup__consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #facc15;
}

.lead-popup__consent a {
    color: #facc15;
    text-decoration: underline;
}

.lead-popup__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lead-popup__button {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    background: #facc15;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.lead-popup__button:hover,
.lead-popup__button:focus-visible {
    background: #fff;
}

.lead-popup__button--back {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-popup__button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.lead-popup__error {
    margin-top: -2px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
}

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

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

.lead-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #eab308;
    padding: 8px 20px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lead-footer-cta:hover,
.lead-footer-cta:focus-visible {
    background: #facc15;
}

.lead-footer-trigger {
    border: 0;
    background: transparent;
}

.lead-footer-trigger:hover .lead-footer-trigger__icon,
.lead-footer-trigger:focus-visible .lead-footer-trigger__icon {
    background: #eab308;
    color: #0f172a;
}

@media (max-width: 600px) {
    .lead-popup {
        padding: 10px;
    }

    .lead-popup__dialog {
        max-height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .lead-popup__header {
        padding: 28px 58px 18px 22px;
    }

    .lead-popup__form {
        padding: 0 22px 24px;
    }

    .lead-popup__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lead-popup__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .lead-popup__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lead-popup.is-open .lead-popup__dialog {
        animation: lead-popup-in 220ms ease-out;
    }

    @keyframes lead-popup-in {
        from { opacity: 0; transform: translateY(14px) scale(0.985); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}
