/* @group Contact Form
------------------------------------ */

.contact-form {
    position: relative;
}

.contact-form .image-wrapper .bp-multimedia {
    position: relative;
    z-index: calc(var(--z-index-lowest) + 1);
}
.contact-form .image-wrapper .bp-multimedia::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(35, 31, 32, 0.00) 65%, rgba(35, 31, 32, 0.40) 100%);
    z-index: calc(var(--z-index-lowest) + 1);
}

.contact-form .title-wrapper {
    color: var(--white);
    z-index: calc(var(--z-index-lowest) + 2);
    position: absolute;
}

.contact-form .form-wrapper .wpcf7 form.sent .wpcf7-response-output {
    display: none!important;
}

.contact-form .thank-you-message {
    text-align: center;
    color: var(--white);
    background-color: var(--tower-red);
    padding-inline: 3rem;
}

@media only screen
and (min-width : 961px) {
    .contact-form .image-wrapper {
        width: 50vw;
        height: calc(100vh - var(--heightNav));
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
    }
    .contact-form .image-wrapper .bp-multimedia {
        height: 100%;
    }
    .contact-form .title-wrapper {
        top: calc(100vh - var(--heightNav) - 6rem);
    }
    .contact-form .row:has(.form-wrapper) {
        height: calc(100vh - var(--heightNav));
    }
    .contact-form .thank-you-message {
        width: 50vw;
        height: calc(100vh - var(--heightNav));
        position: absolute;
        right: 0;
        top: 0;
        padding-inline: 9rem;
        z-index: var(--z-index-lowest);
        transition: all .7s;
        transform: translate3d(100%, 0, 0);
    }
    .contact-form:is(.thank-you) .thank-you-message {
        position: relative;
        margin-left: auto!important;
    }
    .contact-form .thank-you-message h2 {
        max-width: 49rem;
    }
    .contact-form .thank-you-message h3 {
        max-width: 40rem;
    }

    .contact-form.showMessage .thank-you-message {
        transform: translate3d(0, 0, 0);
    } 
}
@media only screen
and (min-width : 961px)
and (max-width : 1440px) {
}
@media only screen
and (min-width : 0)
and (max-width : 960px) {
    .contact-form .image-wrapper .bp-multimedia {
        height: 45rem;
    }
    .contact-form .title-wrapper {
        top: calc(var(--heightNav) + 32rem);
        right: 0;
        padding-inline: 3rem!important;
    }
    .contact-form :is(.thank-you-message, .form-wrapper) {
        transition: all .5s;
    }
    .contact-form .thank-you-message {
        position: absolute;
        top: 45rem;
        height: 64.5rem;
        left: 0;
        right: 0;
        opacity: 0;
        pointer-events: none;
    }
    .contact-form:is(.thank-you) .thank-you-message {
        opacity: 1;
        pointer-events: all;
        position: relative;
        top: 0;
        height: 40rem;
    }
    .contact-form.showMessage .thank-you-message {
        opacity: 1;
        pointer-events: all;
    } 
    .contact-form.showMessage .form-wrapper {
        opacity: 0;
        pointer-events: none;
    }

    .contact-form .thank-you-message h3 {
        --ff: var(--textFont);
        --fs: 1.5rem;
    }
}

/* @end */


/* Editor
------------------------------------ */
:where(.editor-styles-wrapper) .contact-form .image-wrapper {
    width: 50%;
    height: 100vh;
    z-index: var(--z-index-lowest);
}
:where(.editor-styles-wrapper) .contact-form .image-wrapper .bp-multimedia::before {
    z-index: calc(var(--z-index-lowest) + 3);
}
:where(.editor-styles-wrapper) .contact-form .row:has(.form-wrapper) {
    height: 100vh;
}
:where(.editor-styles-wrapper) .contact-form .title-wrapper {
    z-index: calc(var(--z-index-lowest) + 4);
    top: 90vh;
}
:where(.editor-styles-wrapper) .contact-form:not(.thank-you) .thank-you-message {
    position: static;
    width: 100%;
    transform: none;
    pointer-events: all;
    padding-block: 15rem;
}
:where(.editor-styles-wrapper) .contact-form:is(.thank-you) {
    height: 100vh;
}
:where(.editor-styles-wrapper) .contact-form:is(.thank-you) .thank-you-message {
    width: 50%;
    height: 100vh;
}

/* Animations
------------------------------------ */
:where(#wrapper) .contenedor .elemento {
	opacity: 0;
	--duration: 1s;
}
:where(#wrapper) .contenedor.animateActive .elemento {
	animation: fade var(--duration) forwards;
	animation-delay: var(--delay, 0);
}
:where(#wrapper) .contenedor.animateActive .elemento {
    --delay: 0.3s;
}