/* ============================================
   CONVERSION OPTIMIZATION STYLES
   Ezibell Tech - Lead Generation & Conversion
   ============================================ */

/* ============================================
   1. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#scrollProgress {
    height: 4px;
    background: linear-gradient(90deg, #165368, #00d4ff);
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   2. STICKY WHATSAPP & CALL BUTTONS
   ============================================ */
.sticky-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-whatsapp,
.sticky-call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
}

.sticky-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.sticky-call {
    background: linear-gradient(135deg, #165368, #0d4a5f);
}

.sticky-whatsapp:hover,
.sticky-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

/* ============================================
   3. EXIT-INTENT POPUP
   ============================================ */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #e74c3c;
}

.popup-content h2 {
    color: #165368;
    margin-bottom: 15px;
    font-size: 28px;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.popup-form input:focus {
    outline: none;
    border-color: #165368;
}

.popup-form button {
    padding: 15px;
    background: linear-gradient(135deg, #165368, #0d4a5f);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.popup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 83, 104, 0.4);
}

.popup-badge {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ============================================
   4. SOCIAL PROOF NOTIFICATION
   ============================================ */
.social-proof-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
    border-left: 4px solid #165368;
}

.social-proof-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sp-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #165368, #0d4a5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sp-content {
    flex: 1;
}

.sp-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sp-action {
    color: #666;
    font-size: 13px;
}

.sp-time {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

/* ============================================
   5. FLOATING CTA (Scroll-Triggered)
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #165368, #0d4a5f);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9996;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: bottom 0.4s ease;
}

.floating-cta.show {
    bottom: 20px;
}

.floating-cta-close {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #e74c3c;
    border: 2px solid white;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.floating-cta a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: background 0.3s;
}

.floating-cta a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   6. CUSTOM NOTIFICATIONS
   ============================================ */
.custom-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transition: top 0.4s ease;
}

.custom-notification.show {
    top: 80px;
}

.custom-notification.success {
    border-left: 4px solid #27ae60;
}

.custom-notification.error {
    border-left: 4px solid #e74c3c;
}

.custom-notification.info {
    border-left: 4px solid #3498db;
}

.custom-notification button {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* ============================================
   7. URGENCY BANNER
   ============================================ */
.urgency-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-weight: 600;
    position: fixed;
    top: 4px;
    /* Space for scroll progress bar */
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.urgency-banner span {
    color: #ffd700;
    font-size: 16px;
    font-weight: 700;
    margin: 0 5px;
}

/* ============================================
   8. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #165368, #0d4a5f);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 35px;
    background: white;
    color: #165368;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.newsletter-benefits {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.newsletter-benefit::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   9. TRUST BADGES
   ============================================ */
.trust-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
}

.trust-badge-icon {
    font-size: 24px;
    color: #27ae60;
}

/* ============================================
   10. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* ============================================
   11. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .sticky-contact-buttons {
        bottom: 15px;
        right: 15px;
    }

    .sticky-whatsapp,
    .sticky-call {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .social-proof-notification {
        max-width: 280px;
        font-size: 13px;
    }

    .floating-cta {
        flex-direction: column;
        padding: 12px 20px;
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .custom-notification {
        min-width: auto;
        max-width: 90%;
        right: 5%;
    }
}

/* ============================================
   12. LEAD MAGNET HIGHLIGHT
   ============================================ */
.lead-magnet-box {
    background: linear-gradient(135deg, #fff5e6, #ffe6cc);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.lead-magnet-box h3 {
    color: #165368;
    font-size: 24px;
    margin-bottom: 15px;
}

.lead-magnet-box .download-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #165368, #0d4a5f);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lead-magnet-box .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 83, 104, 0.4);
}

/* ============================================
   13. CONVERSION-OPTIMIZED BUTTONS
   ============================================ */
.cta-primary {
    background: linear-gradient(135deg, #165368, #0d4a5f);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(22, 83, 104, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 83, 104, 0.5);
}

.cta-secondary {
    background: white;
    color: #165368;
    border: 2px solid #165368;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-secondary:hover {
    background: #165368;
    color: white;
}