.blur-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
}

.popUp {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    z-index: 1000;
    color: black;
    display: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: #EBF7FF;
    /* border: 2px solid red; */
    overflow-y: auto; /* Enable scrolling on the entire popup */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: transparent;
    color: black;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.close-button:hover {
    color: #FF6B6B;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 1s ease;
}

.popup-container {
    display: flex;
    flex: 1; /* Allow container to take the full height */
    width: 100%;
    overflow: hidden; /* Keep internal sections from overflowing */
    /* border: 2px solid green; */
}

.popup-contents {
    flex: 1; /* Allow the content section to grow */
    margin: 1rem;
    overflow-y: auto; /* Enable scroll within this section if needed */
    /* border: 2px solid red; */
    padding: 10px;
}

.h1-heading {
    background: #4EBDFF;
    box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    margin: 0 auto;
    padding: 0.25em 0;
    position: relative;
    width: 80%;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.h1-heading:before,
.h1-heading:after {
    border: 1.5em solid #4EBDFF;
    content: "";
    display: block;
    position: absolute;
    bottom: -1em;
    z-index: -1;
}

.h1-heading:before {
    left: -2em;
    border-right-width: 1.5em;
    border-left-color: transparent;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.h1-heading:after {
    right: -2em;
    border-left-width: 1.5em;
    border-right-color: transparent;
    box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.5);
}

.h1-content {
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.08),
    inset 0px -1px 1px rgba(255, 255, 255, 0.08),
    0px -1px 1px rgba(255, 255, 255, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.08);
    display: block;
    padding: 2em 0.6875em;
    color: black !important;
}

.popup-contents h3 {
    font-size: 1rem;
    color: #FFF;
    background-color: #4EBDFF;
    margin: 1rem;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.popup-contents .inner-popup-contents {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.inner-popup-contents img {
    margin-top: 0.5rem;
    height: 25px;
    width: auto;
    font-weight: bold;
}

.inner-popup-contents p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    flex: 1;
}

.popup-contactform {
    width: 50%;
    margin-top: 1rem;
    height: 100%; /* Remove unnecessary height restrictions */
    /* border: 2px solid blue; */
    padding: 10px;
    text-align-last: center;
}

.popup-contactform iframe {
    position: relative;
    border-radius: 5px;
}

@media (max-width: 850px) {
    .popup-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .popup-contents,
    .popup-contactform {
        width: 100%;
        height: auto;
    }

    .popup-contactform {
        text-align-last: center;
    }

    .popUp {
        height: 90% !important;
        width: 100%;
    }
}
