html.no-scroll {
    overflow: hidden;
    height: 100%;
    margin-right: 15px;
}

#popup-contact-form {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: auto;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#popup-contact-form.popup-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-content {
    background: #fff;
    padding: 70px 20px 20px;
    max-width: 700px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    height: auto;
    overflow-y: auto;
    max-height: 99%;
    overflow-x: hidden;
}

.popup-close {
    position: absolute;
    top: 15px; right: 20px;
    background: #ccc;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
}

.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    cursor: pointer;
}

/* Your existing hidden form styles */
.hidden-popup-form {
    position: absolute !important;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Override hidden-popup-form styles inside the popup container */
.popup-form-container > .hidden-popup-form {
    position: static !important;
    left: auto !important;
    top: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
