.popup {
    display: none;
    z-index: 999;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.popup__overlay {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
}

.popup__body {
    border-radius: var(--bs-border-radius);
    overflow-y: auto;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background-color: var(--bs-white, #ffffff);
    box-shadow: 0px 232px 65px 0px rgba(0,0,0,0.01),
    0px 148px 59px 0px rgba(0,0,0,0.05),
    0px 83px 50px 0px rgba(0,0,0,0.16),
    0px 37px 37px 0px rgba(0,0,0,0.27),
    0px 9px 20px 0px rgba(0,0,0,0.31);
}

.popup__image {
    position: relative;
    width: 100%;
    height: 200px;
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: cover;
}

.popup__image:after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.15);
    position: absolute;
    top: 0;
    left: 0;
}

.contact-message__image {
    background-position: center center;
}

.popup__body--with-image .popup__content {
    width: 100%;
}

.popup__content {
    position: relative;
    max-width: 528px;
    z-index: 3;
    padding: 38px;
}

.popup__eyebrow {
    font-weight: 500;
    font-size: 11px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2.42px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.popup__text {
    font-size: 14px;
}

.popup__text p {
    margin-bottom: 0;
}

.popup label {
    color: var(--bs-body-color, #5D5D5D);
    font-size: 8px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.popup label span {
    font-weight: 500;
}

.popup .dismiss {
    display: block;
    position: absolute;
    top: 30px;
    right: 25px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    z-index: 3;
}

.popup .dismiss svg {
    display: block;
    width: 14px;
    height: 14px;
}

.popup .dismiss path {
    fill: rgba(0, 0, 0, 0.2);
    transition: all ease-in-out 0.2s;
}

.popup .dismiss:focus {
    outline: 0;
}

.popup .dismiss:hover path {
    fill: rgba(0, 0, 0, 0.75);
}

.popup.active {
    display: block;
    opacity: 1;
}

.popup.active.fade {
    opacity: 0;
    transition: opacity 0.3s;
}

@media (min-width: 992px) {
    .popup__body {
        /*min-height: 441px;*/
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .popup__image {
        position: absolute;
        max-width: 336px;
        top: 0;
        left: 0;
        height: 100%;
    }

    .popup__body--with-image {
        min-width: 862px;
    }

    .popup__content {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .popup__eyebrow {
        font-size: 10px;
    }

    .popup__title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .popup__body {
        width: 100%;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 0);
    }

    .popup__content {
        max-width: 100%;
    }
}