#hero.letterbox,
#page-title.letterbox {
    height: 90vh;
    max-height: 820px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
}

#hero.letterbox h1,
#hero.letterbox .text,
#page-title.letterbox h1,
#page-title.letterbox .text {
    color: #fff;

}

#hero.letterbox h1 em,
#hero.letterbox .text em,
#page-title.letterbox h1 em,
#page-title.letterbox .text em {
    color: #F2C332;
}

#hero.letterbox picture,
#page-title.letterbox picture {
    mask-image: none;
    background: transparent;
    mask-size: auto;
    mask-repeat: no-repeat;
    padding: 0;
}

#hero .hero_sub_logo {
    max-width: 102px;
    height: auto;
    position: absolute;
    bottom: 50px;
    right: 120px;
}

#hero.letterbox picture img,
#page-title.letterbox picture img {
    mask-image: none;
}

#page-title.letterbox .breadcrumbs, #page-title.letterbox .breadcrumbs a {
    color: #fff;
}

@media only screen and (min-width: 768px) and (max-width: 1320px) {
    #hero .hero_sub_logo {
        right: 60px;
        max-width: 90px;
    }
}

@media only screen and (max-width: 767px) {
    #hero .hero_sub_logo {
        max-width: 70px;
        right: 60px;
    }
    #hero.letterbox .button {
        padding: 20px;
        font-size: 18px;
    }
}

#hero.letterbox,
#page-title.letterbox {
    height: auto;
    padding: 100px 0px;
}

.latch_contact_prompt {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #FDC400 0%, #FFA300 100%);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0px 6px 6px #00000029;
    border: 1px solid #FFFFFF;
    max-width: 102px;
    text-align: center;
    cursor: pointer;
    transition: 0.5s all;
    z-index: 1000;
}

.latch_contact_prompt:hover {
    transform: translateY(-54%);
}

.latch_contact_prompt i {
    font-size: 27px;
}

.latch_contact_prompt .label_text {
    margin-bottom: 9px;
}

.latch_contact_prompt p {
    margin-bottom: 0;
    font-weight: 500;
    line-height: 19px;
}

.foldout_contact_form {
    position: fixed;
    right: -200vw;
    top: 100px;
    height: calc(100vh - 125px);
    background: linear-gradient(to right, #FDC400 0%, #FFA300 100%);
    border-radius: 6px;
    box-shadow: 0px 6px 6px #00000029;
    padding: 0px 25px 50px;
    z-index: 10000;
    width: 90vw;
    max-width: 630px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: scroll;
}

.foldout_contact_form .contact-form__panel form .label-container textarea {
    height: 120px;
    min-height: 120px;
}

.foldout_contact_form.active {
    right: 0;
}

.foldout_contact_form .closer {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: #53565a;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.foldout_contact_form .contact-form__panel {
    background-color: transparent;
    margin: 0px;
    padding: 0;
    box-shadow: none;
}

.foldout_contact_form .contact-form__panel form {
    grid-gap: 10px;
}

.foldout_contact_form .contact-form__panel form .label-container {
    background-color: #fff;
    padding: 10px;
}

.foldout_contact_form .contact-form__panel form .full.terms {
    font-size: 14px;
    line-height: 1.7;
}


/* Popup wrapper and overlay */
#exitPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px); /* start slightly below center */
    width: 100vw;
    height: 100vh;
    opacity: 0;
    z-index: 10001; /* popup above overlay */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: none;
}

/* Overlay using ::before on wrapper */
#exitPopup::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7); /* semi-transparent overlay */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10000; /* below popup */
    pointer-events: none;
}

/* Inner popup container */
#exitPopup .exit_popup_container {
    max-width: 900px; /* container max-width */
    width: 90vw;
    background: linear-gradient(to right, #FDC400 0%, #FFA300 100%);
    border-radius: 6px;
    box-shadow: 0px 6px 6px #00000029;
    padding: 25px;
    position: relative;
    margin: 0 auto;
    display: block;
    transform: scale(0.85);
    z-index: 10002; /* above overlay */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* Fade-up effect for container when active */
#exitPopup.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

#exitPopup.active::before {
    opacity: 1;
    pointer-events: auto; /* overlay clickable when active */
}

#exitPopup.active .exit_popup_container {
    transform: scale(0.85);
    opacity: 1;
}

/* Closer button */
#exitPopup .closer {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: #53565a;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Headings & text */
#exitPopup h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 0;
}

#exitPopup p {
    text-align: center;
}

#exitPopup .contact-form__panel {
    background-color: transparent;
    margin: 0px;
    padding: 0;
    box-shadow: none;
    max-width: 900px;
}

#exitPopup .contact-form__panel form {
    grid-gap: 10px;
}

#exitPopup .contact-form__panel form .label-container {
    background-color: #fff;
    padding: 10px;
}

#exitPopup .contact-form__panel form .label-container textarea {
    height: 95px;
    min-height: 95px;
}

#exitPopup .contact-form__panel form .full.terms {
    font-size: 14px;
    line-height: 1.7;
}


@media only screen and (max-width: 767px) {
    .latch_contact_prompt {
        right: 50%;
        transform: translateX(50%);
        top: unset;
        bottom: 0;
        max-width: 225px;
        width: 100%;
        height: auto;
        display: -webkit-flex;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    .latch_contact_prompt:hover {
        transform: translateX(50%) translateY(5px);
    }
    .latch_contact_prompt .click_label {
        display: none;
    }
    .latch_contact_prompt .label_text {
        order: 1;
        margin-left: 1rem;
        margin-bottom: 0;
    }
    .foldout_contact_form {
        right: 50%;
        transform: translateX(50%);
        bottom: -200vh;
        top: unset;
    }
    .foldout_contact_form.active {
        bottom: 0;
        right: 50%;
        top: unset;
    }

    #exitPopup {
        display: none !important;
    }

}