/* Engagement Popups - Contact Form & AI Chat Messages */

/* Contact Form Popup */
.contact-form-popup {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: #1a1f3a;
    color: #ffffff;
    padding: 1.2rem 1.8rem;
    border-radius: 18px;
    border: 2px solid rgba(0, 217, 255, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    max-width: 350px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-form-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.contact-form-popup.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(20px) scale(0.9) !important;
}

.popup-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.8rem;
    animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.contact-form-popup p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.contact-form-popup strong {
    color: #00d9ff;
    font-weight: 700;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Enhanced Chat Tooltip for Auto-Popup */
.lika-chat-tooltip.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1f3a 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal .success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal #user-email {
    color: var(--accent-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-form-popup {
        bottom: 90px;
        max-width: 90%;
        left: 50%;
    }

    .modal-content {
        padding: 2rem;
    }

    .modal h2 {
        font-size: 1.5rem;
    }
}
