/* WP Popup Manager - Frontend Styles */

.wp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-popup-overlay.wp-popup-active {
    display: flex;
    opacity: 1;
}

/* Container */
.wp-popup-container {
    position: relative;
    width: 100%;
    padding: 40px 30px;
    overflow: auto;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wp-popup-active .wp-popup-container {
    transform: scale(1);
}

/* Position Variants */
.wp-popup-position-center {
    margin: auto;
}

.wp-popup-position-top {
    margin-top: 20px;
    margin-bottom: auto;
}

.wp-popup-position-bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

/* Animation Variants */
.wp-popup-animation-fade .wp-popup-container {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wp-popup-active.wp-popup-animation-fade .wp-popup-container {
    opacity: 1;
}

.wp-popup-animation-slide-down .wp-popup-container {
    transform: translateY(-50px);
    transition: transform 0.4s ease;
}

.wp-popup-active.wp-popup-animation-slide-down .wp-popup-container {
    transform: translateY(0);
}

.wp-popup-animation-slide-up .wp-popup-container {
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.wp-popup-active.wp-popup-animation-slide-up .wp-popup-container {
    transform: translateY(0);
}

.wp-popup-animation-zoom .wp-popup-container {
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wp-popup-active.wp-popup-animation-zoom .wp-popup-container {
    transform: scale(1);
}

/* Close Button */
.wp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.wp-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

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

.wp-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Content */
.wp-popup-content {
    line-height: 1.6;
}

.wp-popup-content h1,
.wp-popup-content h2,
.wp-popup-content h3,
.wp-popup-content h4,
.wp-popup-content h5,
.wp-popup-content h6 {
    margin-top: 0;
    margin-bottom: 15px;
}

.wp-popup-content p {
    margin-bottom: 15px;
}

.wp-popup-content p:last-child {
    margin-bottom: 0;
}

.wp-popup-content img {
    max-width: 100%;
    height: auto;
}

.wp-popup-content a {
    color: inherit;
    text-decoration: underline;
}

.wp-popup-content a:hover {
    text-decoration: none;
}

.wp-popup-content ul,
.wp-popup-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.wp-popup-content li {
    margin-bottom: 8px;
}

.wp-popup-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

/* Form Elements in Popup */
.wp-popup-content input[type="text"],
.wp-popup-content input[type="email"],
.wp-popup-content input[type="tel"],
.wp-popup-content input[type="url"],
.wp-popup-content textarea,
.wp-popup-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.wp-popup-content button,
.wp-popup-content input[type="submit"] {
    padding: 12px 24px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.wp-popup-content button:hover,
.wp-popup-content input[type="submit"]:hover {
    background-color: #135e96;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wp-popup-overlay {
        padding: 10px;
    }
    
    .wp-popup-container {
        padding: 30px 20px;
        max-width: 100% !important;
    }
    
    .wp-popup-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .wp-popup-container {
        padding: 25px 15px;
    }
    
    .wp-popup-content {
        font-size: 14px;
    }
}

/* Prevent body scroll when popup is open */
body.wp-popup-open {
    overflow: hidden;
}

/* Accessibility */
.wp-popup-overlay:focus {
    outline: none;
}

.wp-popup-close:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Print - Hide popups when printing */
@media print {
    .wp-popup-overlay {
        display: none !important;
    }
}

