/* Contact Form Popup Notifications */

.contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    width: 90%;
    max-width: 400px;
    animation: popupSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.popup-content {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.popup-icon {
    margin-bottom: 1.5rem;
}

.popup-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

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

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

/* Popup types */
.contact-popup.success {
    border-top: 5px solid #2E5F3F;
}

.contact-popup.error {
    border-top: 5px solid #D32F2F;
}

.contact-popup.loading {
    border-top: 5px solid #1976D2;
}

/* RTL support for Arabic */
[dir="rtl"] .contact-popup {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .popup-close {
    right: auto;
    left: 15px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact-popup {
        width: 95%;
        max-width: 350px;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-message {
        font-size: 1rem;
    }
}