.popup-form-container {
    display: none;
}

.popup-form-container.active {
    display: block;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-form-wrapper {
    position: relative;
    width: 100%;
}

.popup-form-container.active .popup-content {
    opacity: 1;
}

.mc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    color: #FFFFFF;
}

.mc-popup-close.popup-close-dark {
    color: #2D5181;
}

.popup-form-close {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.mc-popup-close:hover {
    opacity: 0.7;
}

.mc-popup-close svg {
    width: 44px;
    height: 44px;
}

.popup-form-wrapper {
    position: relative;
}

body.popup-active {
    overflow: hidden;
}

@media (max-width: 767px) {
    .popup-content {
        max-height: 95vh;
        width: 95%;
    }
    
    .popup-form-close {
        top: 20px !important;
        right: 20px !important;
    }
    
    .mc-popup-close svg {
        width: 36px;
        height: 36px;
    }
}
