/* WhatsApp Popup CSS - Fixed Beautiful Design */
.whatsapp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-popup {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.whatsapp-popup.show {
    transform: scale(1);
    opacity: 1;
}

.whatsapp-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.whatsapp-popup-close:hover {
    color: #333;
    background: #f5f5f5;
}

.whatsapp-icon {
    margin-bottom: 20px;
    font-size: 64px;
    position: relative;
}

.whatsapp-icon i {
    font-size: 80px;
    color: #25D366;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
    display: inline-block;
    line-height: 1;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #25D366;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.whatsapp-popup-title {
    color: #4a4a68;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px 0;
    padding: 0;
}

.whatsapp-popup-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 30px 0;
}

.whatsapp-popup-buttons {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-popup-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
    box-sizing: border-box;
    border: 2px solid transparent;
    cursor: pointer;
}

.whatsapp-popup-button.primary {
    background: #25D366;
    color: white;
    margin-bottom: 10px;
}

.whatsapp-popup-button.primary:hover {
    background: #22c55e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-popup-button.secondary {
    background: transparent;
    color: #888;
    font-size: 14px;
    border: 1px solid #ddd;
}

.whatsapp-popup-button.secondary:hover {
    background: #f5f5f5;
    color: #666;
}

.whatsapp-popup-privacy {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    max-width: 350px;
    margin: 0 auto;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .whatsapp-popup-overlay {
        padding: 15px;
    }
    
    .whatsapp-popup {
        padding: 30px 25px;
        max-width: 380px;
        border-radius: 16px;
    }
    
    .whatsapp-popup-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .whatsapp-popup-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .whatsapp-icon i {
        font-size: 65px;
        padding: 12px;
    }
    
    .pulse-ring {
        width: 100px;
        height: 100px;
    }
    
    .whatsapp-popup-button {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .whatsapp-popup-close {
        font-size: 24px;
        top: 12px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-popup-overlay {
        padding: 10px;
    }
    
    .whatsapp-popup {
        padding: 25px 20px;
        max-width: 320px;
        border-radius: 14px;
    }
    
    .whatsapp-popup-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .whatsapp-popup-subtitle {
        font-size: 14px;
    }
    
    .whatsapp-icon i {
        font-size: 55px;
        padding: 10px;
    }
    
    .pulse-ring {
        width: 85px;
        height: 85px;
    }
    
    .whatsapp-popup-button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .whatsapp-popup-privacy {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .whatsapp-popup {
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .whatsapp-popup-title {
        font-size: 16px;
    }
    
    .whatsapp-icon i {
        font-size: 45px;
        padding: 8px;
    }
    
    .pulse-ring {
        width: 70px;
        height: 70px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .whatsapp-popup-overlay {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .whatsapp-popup {
        margin-top: 10px;
        padding: 20px;
    }
    
    .whatsapp-popup-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .whatsapp-icon {
        margin-bottom: 10px;
    }
    
    .whatsapp-icon i {
        font-size: 40px;
        padding: 8px;
    }
    
    .pulse-ring {
        width: 60px;
        height: 60px;
    }
}