/* Popup Styles - Mobile Responsive */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.3s ease-in-out;
    padding: 1rem;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-container {
    max-width: 560px;
    width: 100%;
    background: transparent;
    border-radius: 2rem;
    position: relative;
    margin: 0 auto;
    animation: fadeSlideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-card {
    background: transparent;
    border-radius: 2rem;
    overflow: hidden;
    text-align: center;
    padding: 0;
}

.flyer-image {
    width: 100%;
    display: block;
    border-radius: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.flyer-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
    object-fit: contain;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #0A2F44;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    min-width: 190px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.popup-btn:hover {
    background: #0A2F44CC;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.popup-btn:active {
    transform: translateY(1px);
}

.close-popup {
    position: absolute;
    top: -14px;
    right: -10px;
    background: white;
    width: 42px;
    height: 42px;
    border-radius: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0A2F44;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
    z-index: 10;
    border: none;
}

.close-popup:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 550px) {
    .popup-container {
        max-width: 94%;
    }
    
    .popup-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: 170px;
    }
    
    .close-popup {
        width: 36px;
        height: 36px;
        top: -12px;
        right: -8px;
        font-size: 1.4rem;
    }
    
    .flyer-image {
        margin-bottom: 1rem;
    }
}

@media (max-width: 380px) {
    .popup-btn {
        width: 85%;
        padding: 0.7rem 1rem;
    }
    
    .close-popup {
        width: 32px;
        height: 32px;
        top: -10px;
        right: -6px;
        font-size: 1.2rem;
    }
}

body.modal-open {
    overflow: hidden;
}

.popup-btn i {
    transition: transform 0.2s;
}

.popup-btn:hover i {
    transform: translateX(4px);
}