/* ACF Popup Styles */
.acf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.acf-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.acf-popup-container {
    position: relative;
    /* background: var(--roGreen); */
    background-color: #84a348;
    background-image: url(/wp-content/uploads/2025/09/white-tree.webp);
    background-position: bottom right -54px;
    background-repeat: no-repeat;
    background-size: 210px;
    color:#fff;
    width: 560px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.acf-popup-overlay.active .acf-popup-container {
    transform: scale(1) translateY(0);
}

.acf-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.acf-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.acf-popup-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.acf-popup-content {
    padding:  32px 32px 8px 32px;
    width: 66.66%;
    margin: 2rem auto 0 auto;
}

.acf-popup-content>*:first-child {
    margin-top: 0;
}

.acf-popup-content>*:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .acf-popup-container {
        width: 95%;
        max-height: 85vh;
    }

    .acf-popup-content {
        padding: 35px 20px 0 20px;
    }

    .acf-popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}