/* Popup Manager - Frontend Styles */

/* Overlay */
.popup-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    overflow: auto !important;
    padding: 20px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
}

.popup-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Container */
.popup-container {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Position variants */
.popup-overlay.popup-position-top {
    align-items: flex-start !important;
    padding-top: 50px !important;
}

.popup-overlay.popup-position-center {
    align-items: center !important;
}

.popup-overlay.popup-position-bottom {
    align-items: flex-end !important;
    padding-bottom: 50px !important;
}

/* Popup Content */
.popup-content {
    position: relative !important;
    background: #fff !important;
    margin: 0 auto !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Close Button */
.popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 24px !important;
    color: #000000 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
    padding-bottom: 5.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup-close:hover {
    background: rgb(255, 0, 0) !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

/* Popup Image */
.popup-image {
    margin: -30px -30px 20px -30px !important;
    overflow: hidden !important;
    max-height: 300px !important;
}

.popup-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Popup Body */
.popup-body {
    text-align: center !important;
}

.popup-title {
    margin: 0 0 15px 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.popup-subtitle {
    margin: 0 0 25px 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    opacity: 0.9 !important;
}

/* Popup Action */
.popup-action {
    margin-top: 25px !important;
}

.popup-button {
    display: inline-block !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.popup-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-form {
    margin-top: 20px;
}
.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"],
.popup-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.popup-form input[type="submit"],
.popup-form button[type="submit"] {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.popup-overlay.active {
    animation: fadeIn 0.3s ease;
}

.popup-animation-fade .popup-content {
    animation: fadeIn 0.3s ease;
}

.popup-animation-slide-down .popup-content {
    animation: slideDown 0.4s ease;
}

.popup-animation-slide-up .popup-content {
    animation: slideUp 0.4s ease;
}

.popup-animation-zoom .popup-content {
    animation: zoomIn 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        max-width: 95% !important;
    }
    
    .popup-image {
        margin: -20px -20px 15px -20px !important;
    }
}

