/**
 * WhiteR Pro - Contact Form Popup Styles
 * @package WhiteR_Pro
 */

.whiter-contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whiter-contact-popup.active {
    opacity: 1;
    visibility: visible;
}

.whiter-contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.whiter-contact-popup-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--color-bg, #ffffff);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.whiter-contact-popup.active .whiter-contact-popup-content {
    transform: scale(1);
}

.whiter-contact-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-text, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.whiter-contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.whiter-contact-popup-close:active {
    transform: scale(0.95);
}

/* Dark mode támogatás */
.dark .whiter-contact-popup-content {
    background: var(--color-bg-dark, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .whiter-contact-popup-close {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.dark .whiter-contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile optimalizálás */
@media (max-width: 640px) {
    .whiter-contact-popup {
        padding: 0;
        align-items: flex-end;
    }
    
    .whiter-contact-popup-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        padding: 24px;
    }
}

/* Smooth scrollbar */
.whiter-contact-popup-content::-webkit-scrollbar {
    width: 8px;
}

.whiter-contact-popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.whiter-contact-popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.whiter-contact-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.dark .whiter-contact-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dark .whiter-contact-popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.dark .whiter-contact-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
