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

.ww-lead-modal.is-open {
    display: flex;
}

.ww-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(4px);
}

.ww-lead-dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 22px;
    padding: 30px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    animation: wwLeadIn .25s ease-out;
}

.ww-lead-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    background: transparent;
    color: inherit;
}

.ww-lead-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d9232e;
}

.ww-lead-dialog h2 {
    margin: 0 35px 10px 0;
    font-size: 27px;
    line-height: 1.2;
}

.ww-lead-description {
    margin: 0 0 22px;
    line-height: 1.6;
    opacity: .78;
}

.ww-lead-field {
    margin-bottom: 15px;
}

.ww-lead-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.ww-lead-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d7dce5;
    border-radius: 11px;
    outline: none;
    font: inherit;
    background: #fff;
    color: #172033;
}

.ww-lead-field input:focus {
    border-color: #d9232e;
    box-shadow: 0 0 0 3px rgba(217, 35, 46, .12);
}

.ww-lead-primary {
    width: 100%;
    min-height: 49px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    background: #d9232e;
    color: #fff;
}

.ww-lead-primary:disabled {
    cursor: wait;
    opacity: .65;
}

.ww-lead-secondary {
    display: block;
    margin: 14px auto 0;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    opacity: .7;
}

.ww-lead-status {
    display: none;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.45;
}

.ww-lead-status.is-visible {
    display: block;
}

.ww-lead-status.is-error {
    background: rgba(200, 30, 45, .1);
    color: #b01928;
}

.ww-lead-status.is-success {
    background: rgba(20, 145, 80, .1);
    color: #08753d;
}

.ww-lead-otp-view {
    display: none;
}

.ww-lead-modal.show-otp .ww-lead-details-view {
    display: none;
}

.ww-lead-modal.show-otp .ww-lead-otp-view {
    display: block;
}

.ww-lead-privacy {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    opacity: .62;
}

@keyframes wwLeadIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

html[data-theme="dark"] .ww-lead-dialog {
    background: #151923;
    color: #f5f7fb;
    border: 1px solid rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .ww-lead-field input {
    background: #0f131c;
    border-color: #353b48;
    color: #fff;
}

html[data-theme="dark"] .ww-lead-status.is-error {
    color: #ff9ca5;
}

html[data-theme="dark"] .ww-lead-status.is-success {
    color: #75e3aa;
}

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

    .ww-lead-dialog {
        width: 100%;
        padding: 25px 20px;
        border-radius: 20px 20px 14px 14px;
    }

    .ww-lead-dialog h2 {
        font-size: 24px;
    }
}
