/**
 * Lead Capture - Aggressive Lead Generation Styles
 */

/* ============================================
   STICKY CTA BAR (Bottom)
============================================ */
.rlg-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rlg-sticky-bar.visible {
    transform: translateY(0);
}

.rlg-sticky-bar-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.rlg-sticky-bar-text strong {
    color: #fbbf24;
}

.rlg-sticky-bar-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.rlg-sticky-bar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.rlg-sticky-bar-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   EXIT INTENT POPUP
============================================ */
.rlg-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rlg-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.rlg-popup {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.rlg-popup-overlay.visible .rlg-popup {
    transform: scale(1) translateY(0);
}

.rlg-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    z-index: 10;
    transition: all 0.2s;
}

.rlg-popup-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.rlg-popup-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1d30 100%);
    color: white;
    padding: 32px 32px 24px;
    text-align: center;
}

.rlg-popup-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rlg-popup-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.rlg-popup-body {
    padding: 32px;
}

.rlg-popup-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.rlg-popup-benefit-icon {
    font-size: 2rem;
}

.rlg-popup-benefit-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 4px;
}

.rlg-popup-benefit-text p {
    color: #15803d;
    font-size: 0.9rem;
    margin: 0;
}

.rlg-popup-form {
    margin-top: 24px;
}

.rlg-popup-form input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 12px;
    transition: all 0.2s;
    background: #f8fafc;
}

.rlg-popup-form input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.rlg-popup-form input::placeholder {
    color: #94a3b8;
}

.rlg-popup-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rlg-popup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.rlg-popup-consent {
    margin-bottom: 16px;
}

.rlg-popup-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
}

.rlg-popup-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #10b981;
    cursor: pointer;
}

.rlg-popup-consent a {
    color: #2563eb;
    text-decoration: underline;
}

.rlg-popup-footer {
    text-align: center;
    padding: 0 32px 24px;
    color: #64748b;
    font-size: 0.8rem;
}

/* ============================================
   INLINE LEAD FORM (After Calculator Results)
============================================ */
.rlg-inline-capture {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    border: 2px solid #f59e0b;
}

.rlg-inline-capture h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rlg-inline-capture p {
    color: #a16207;
    margin: 0 0 20px;
}

.rlg-inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rlg-inline-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.rlg-inline-form input:focus {
    outline: none;
    border-color: #f59e0b;
}

.rlg-inline-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.rlg-inline-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */
.rlg-floating-btn.rlg-scroll-top {
    position: fixed;
    bottom: 140px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1d30 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.rlg-floating-btn.rlg-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rlg-floating-btn.rlg-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.5);
}

.rlg-floating-btn.rlg-scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   SOCIAL PROOF NOTIFICATION
============================================ */
.rlg-social-proof {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 340px;
    z-index: 9997;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rlg-social-proof.visible {
    transform: translateX(0);
}

.rlg-social-proof-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rlg-social-proof-content strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.rlg-social-proof-content span {
    font-size: 0.8rem;
    color: #64748b;
}

.rlg-social-proof-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}

/* ============================================
   URGENCY BANNER
============================================ */
.rlg-urgency-banner {
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    background-size: 200% 100%;
    animation: urgencyGradient 3s ease infinite;
    color: white;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.rlg-urgency-banner strong {
    font-weight: 700;
}

@keyframes urgencyGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .rlg-sticky-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .rlg-sticky-bar-text {
        font-size: 0.9rem;
        text-align: center;
    }

    .rlg-sticky-bar-close {
        top: 8px;
        right: 8px;
    }

    .rlg-popup {
        margin: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .rlg-floating-btn.rlg-scroll-top {
        bottom: 140px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .rlg-social-proof {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .rlg-inline-form {
        flex-direction: column;
    }

    .rlg-inline-form input {
        min-width: auto;
    }
}
