.popup {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
    width: 90%;
    height: 90dvh;
    transition: all 700ms ease;
}
.popup.active {
    top: 50%;
    transition: all 700ms ease;
}
.popup-content {
    height: 100%;
    overflow-y: scroll;
}
.popup-content .left {
    max-height: 180px;
    overflow: hidden;
    z-index: 2;
}
.popup-content .left img {
    object-fit: cover;
    height: calc(100% + 20px);
    width: 100%;
    object-position: center center;
}
.popup-content .right {
    padding: 20px;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.popup-content .right h2 {
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .popup-content .right h2 {
        font-size: 32px;
    }
}

.popup-content form {
    margin: 20px 0;
}
.popup-content form input:not(.button),
.popup-content form select,
.popup-content form textarea {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 20px;
    color: #757575;
    border-top: none;
    border-bottom: 1px solid #357580;
    font-size: 18px;
    background-color: #f1f5f6;
    margin-bottom: 5px;
}
.popup-content form textarea {
    max-height: 100px;
}
.popup-content .button {
    margin-top: 20px;
    font-size: 24px;
    text-transform: uppercase;
    padding: 15px;
    border-radius: 0;
}


.close-btn {
    position: absolute;
    top: 0px;
    right: 20px;
    cursor: pointer;
    font-size: 52px;
    color: white;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999;
}

.popup .wpcf7-response-output {
    margin-top: 0;
    padding: 10px;
    width: 100%;
    margin: 0;
    border: 2px solid #5d9947;
    color: #2c561d;
}

/* Responsive */
@media screen and (min-width: 768px) {
    .popup {
        width: 800px;
        height: 700px;
    }

    .popup-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .popup-content .left {
        max-height: 100%;
    }

    .close-btn {
        color: black;
    }
}

