/**
 * Lead-magnet email-capture modal. Shown before PDF export on the
 * Financial Literacy Check and Financial Health Assessment tools.
 *
 * Extracted from `bv_add_lead_magnet_gate()` in functions.php
 * (~174 lines of inline CSS that ran in the footer of those two pages).
 */

.bv-lead-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bv-lead-modal-overlay.active {
    display: flex;
}

.bv-lead-modal {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: bvModalSlideIn 0.3s ease-out;
}

@keyframes bvModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bv-lead-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bv-accent, #0891b2), var(--bv-accent-hover, #0e7490));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.bv-lead-modal-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.bv-lead-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin: 0 0 12px 0;
}

.bv-lead-modal p {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.bv-lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bv-lead-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.bv-lead-input:focus {
    outline: none;
    border-color: var(--bv-accent, #0891b2);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.bv-lead-input.error {
    border-color: #ef4444;
}

.bv-lead-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--bv-accent, #0891b2), var(--bv-accent-hover, #0e7490));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bv-lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.bv-lead-skip {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.bv-lead-skip:hover {
    color: #6b7280;
    text-decoration: underline;
}

.bv-lead-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 16px;
}

.bv-lead-privacy-link {
    color: var(--bv-accent);
    text-decoration: underline;
}

.bv-lead-error {
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
    margin-top: -8px;
}

[data-neve-theme="dark"] .bv-lead-modal {
    background: #1f2937;
}

[data-neve-theme="dark"] .bv-lead-modal h3 {
    color: #f9fafb;
}

[data-neve-theme="dark"] .bv-lead-modal p {
    color: #9ca3af;
}

[data-neve-theme="dark"] .bv-lead-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-neve-theme="dark"] .bv-lead-input:focus {
    border-color: var(--bv-accent-bright, #14b8a6);
}
