/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    background: var(--mfn-button-bg);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.popup__close:hover {
    opacity: 0.7;
}

.popup__close-icon {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.popup__image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.popup__content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 24px;
    max-width: 600px;
    background-color: #335484;
}

.popup__title {
    font-size: 24px;
    line-height: 1.5;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0 !important;
}

.popup__title+* {
    margin-top: 12px;
}

.popup__text {
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
}

.popup__text+* {
    margin-top: 24px;
}

.popup__text p {
    margin-bottom: 0 !important;
}

.popup__button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #fff;
    color: #000;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.popup__button:hover {
    background-color: #0095eb;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .popup {
        width: 95%;
        max-height: 85vh;
    }

    .popup__content {
        padding: 24px !important;
    }

    .popup__title {
        font-size: 20px;
    }

    .popup__text {
        font-size: 12px;
    }
}