/*** CTA Grid Block ***/

.cta_grid_block .cta_grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.cta_grid_block .grid_block {
    display: block;
    position: relative;
    background-color: #f5f5f5;
    border-radius: var(--global-border-radius);
    overflow: hidden;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    -ms-flex-item-align: stretch;
    -ms-grid-row-align: stretch;
    align-self: stretch;
}

.cta_grid_block .grid_block > div {
    height: 100%;
    padding: 60px 45px;
    position: relative;
    z-index: 3;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.cta_grid_block .grid_block > div p {
    margin-bottom: 30px;
}

.cta_grid_block .grid_block > div a.button {
    margin: 0;
    width: fit-content;
    width: max-content;
}

/* Warning Message */
.cta_grid_block .grid_block .warning_grid {
    padding: 15px 25px;
    background-color: #ee5353;
    border-radius: 10px;
    margin-top: 20px;
}

.cta_grid_block .grid_block .warning_grid h3,
.cta_grid_block .grid_block .warning_grid h4 {
    margin: 0;
    line-height: 1;
}



/* ---- Grid Sizes ---- */
.cta_grid_block .first_grid_with_calculator,
.cta_grid_block .second_row_manual {
    margin-bottom: 10px;
}



/* First Grid */
.cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(1) {
    width: calc(42.134% - 8px); /* 624px */
    background: rgb(251,217,108);
    background: -moz-linear-gradient(0deg, rgba(251,217,108,1) 0%, rgba(228,181,32,1) 80%);
    background: -webkit-linear-gradient(0deg, rgba(251,217,108,1) 0%, rgba(228,181,32,1) 80%);
    background: linear-gradient(0deg, rgba(251,217,108,1) 0%, rgba(228,181,32,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fbd96c",endColorstr="#e4b520",GradientType=1);
}
.cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(1) h4,
.cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(1) p {
    color: white;
}

.cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(2) {
    width: calc(28.934% - 8px); /* 426px */
    background: rgb(251,244,222);
    background: -moz-linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    background: -webkit-linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    background: linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fbf4de",endColorstr="#e4d6a8",GradientType=1);
}
.cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(3) {
    width: calc(28.934% - 8px); /* 426px */
    background: rgb(227,236,207);
    background: -moz-linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    background: -webkit-linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    background: linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e3eccf",endColorstr="#c7d89f",GradientType=1);
}
.cta_grid_block .first_grid_with_calculator form label {
    margin-top: 0;
    margin-bottom: 4px;
    color:var(--white);
}
.cta_grid_block .first_grid_with_calculator form input,
.cta_grid_block .first_grid_with_calculator form select{
    margin-top: 0;
    padding-top: 15px;
    padding-bottom: 11px;
}
.cta_grid_block .first_grid_with_calculator form select{
    color:var(--black);
    background-color: var(--white);

}
.cta_grid_block .first_grid_with_calculator form select option{
    font-weight: 500;
    font-family:"Segoe UI",quasimoda, sans-serif;
}

.cta_grid_block .first_grid_with_calculator form button[type="submit"]{
    margin:0;
    width: 100%;
}
.cta_grid_block .first_grid_with_calculator form button[type="submit"]:hover{
    background-color: transparent;
    border-color: var(--black);
    color:var(--black);
}
.cta_grid_block .first_grid_with_calculator form button[type="submit"]:hover:after{
    background-image: url(../../../css/buttons/assets/secondary/black_arrow.svg);
}
@media (min-width: 1200px) and (max-width: 1760px) {
    .cta_grid_block .first_grid_with_calculator form > div{
        flex:0 0 50%;
        max-width: 50%;
    }
    .cta_grid_block .first_grid_with_calculator form > div:nth-child(1){
        padding-right: 0.625rem;
    }
    .cta_grid_block .first_grid_with_calculator form > div:nth-child(2){
        padding-right: 0;
        padding-left: 0.625rem;
    }
    .cta_grid_block .first_grid_with_calculator form > div:last-of-type{
        flex:0 0 100%;
        max-width: 100%;
    }
}
@media(max-width: 991.98px) {
    .cta_grid_block .first_grid_with_calculator form input,
    .cta_grid_block .first_grid_with_calculator form select{
        padding-top: 11px;
        padding-bottom: 8px;
    }
}


/* Second Grid */
.cta_grid_block .second_row_manual .grid_block:nth-of-type(1) {
    width: calc(28.934% - 8px); /* 426px */
    background: rgb(251,244,222);
    background: -moz-linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    background: -webkit-linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    background: linear-gradient(0deg, rgba(251,244,222,1) 0%, rgba(228,214,168,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fbf4de",endColorstr="#e4d6a8",GradientType=1);
}
.cta_grid_block .second_row_manual .grid_block:nth-of-type(2) {
    width: calc(28.934% - 8px); /* 426px */
    background: rgb(227,236,207);
    background: -moz-linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    background: -webkit-linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    background: linear-gradient(0deg, rgba(227,236,207,1) 0%, rgba(199,216,159,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e3eccf",endColorstr="#c7d89f",GradientType=1);
}
.cta_grid_block .second_row_manual .grid_block:nth-of-type(3) {
    width: calc(42.134% - 8px); /* 624px */
}
.cta_grid_block .second_row_manual .grid_block:nth-of-type(3)::after {
    /*content: '';*/
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*height: 100%;*/
    /*width: 100%;*/
    /*opacity: 0.75;*/
    /*background: rgb(71,107,29);*/
    /*background: -moz-linear-gradient(0deg, rgba(71,107,29,1) 0%, rgba(41,54,26,1) 80%);*/
    /*background: -webkit-linear-gradient(0deg, rgba(71,107,29,1) 0%, rgba(41,54,26,1) 80%);*/
    /*background: linear-gradient(0deg, rgba(71,107,29,1) 0%, rgba(41,54,26,1) 80%);*/
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#476b1d",endColorstr="#29361a",GradientType=1);*/
}



.cta_grid_block .second_row_manual .grid_block:nth-of-type(3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 1;

    background-position: bottom right;
    background-size: contain;
    background-size: 450px;
    background-repeat: no-repeat;

}


.cta_grid_block .second_row_manual .grid_block:nth-of-type(3){

    background: rgb(41,54,26);
    background: -moz-linear-gradient(180deg, rgba(41,54,26,1) 0%, rgba(71,107,29,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(41,54,26,1) 0%, rgba(71,107,29,1) 100%);
    background: linear-gradient(180deg, rgba(41,54,26,1) 0%, rgba(71,107,29,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#29361a",endColorstr="#476b1d",GradientType=1);
}


.cta_grid_block .second_row_manual .grid_block:nth-of-type(3) p {
    max-width: 60%;
}
@media(max-width: 1600px) {
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(3)::after {
        background-size: 400px;
    }
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(3){
        padding-bottom: 50px;
    }
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(3) p {
        max-width: 100%;
    }
}

@media(max-width: 1399.98px) {
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(3)::after {
        background-size: 300px;
    }
}

.cta_grid_block .second_row_manual .grid_block:nth-of-type(3) h4,
.cta_grid_block .second_row_manual .grid_block:nth-of-type(3) p {
    color: white;
}


@media(max-width: 1399.98px) {
    .cta_grid_block .grid_block > div {
        padding: 35px 25px;
    }

    .cta_grid_block .grid_block > div h4 {
        line-height: 30px;
    }
}

@media(max-width: 991.98px) {

    .cta_grid_block .cta_grid {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .cta_grid_block .grid_block {
        margin-bottom: 10px;
    }

    .cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(1) {
        width: 100%;
    }
    .cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(2),
    .cta_grid_block .first_grid_with_calculator .grid_block:nth-of-type(3) {
        width: calc(50% - 5px);
    }


    .cta_grid_block .second_row_manual .grid_block:nth-of-type(1),
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(2) {
        width: calc(50% - 5px);
    }
    .cta_grid_block .second_row_manual .grid_block:nth-of-type(3) {
        width: 100%;
    }

}


@media(max-width: 575px) {
    .cta_grid_block .grid_block {
        width: 100% !important;
    }
}


/*** Animations ***/

/* Not Triggered */
.cta_grid_block .grid_animated.grid_block {
    opacity: 0;
    transition: ease all 0.8s;
    transform: scale(0.9);
}
.cta_grid_block .grid_animated.scrolled_into_view.grid_block {
    opacity: 1;
    transform: scale(1);
}

.cta_grid_block .first_grid_with_calculator .grid_animated.scrolled_into_view.grid_block:nth-of-type(1) {
    transition-delay: 0.2s;
}
.cta_grid_block .first_grid_with_calculator .grid_animated.scrolled_into_view.grid_block:nth-of-type(2) {
    transition-delay: 0.4s;
}
.cta_grid_block .first_grid_with_calculator .grid_animated.scrolled_into_view.grid_block:nth-of-type(3) {
    transition-delay: 0.6s;
}

.cta_grid_block .second_row_manual .grid_animated.scrolled_into_view.grid_block:nth-of-type(1) {
    transition-delay: 0.2s;
}
.cta_grid_block .second_row_manual .grid_animated.scrolled_into_view.grid_block:nth-of-type(2) {
    transition-delay: 0.4s;
}
.cta_grid_block .second_row_manual .grid_animated.scrolled_into_view.grid_block:nth-of-type(3) {
    transition-delay: 0.6s;
}

.cta_grid_block .grid_animated h2 {
    opacity: 0;
    transition: ease all 0.8s;
}
.cta_grid_block .grid_animated.scrolled_into_view h2 {
    opacity: 1;
}

@media(max-width: 575px) {
    .cta_grid_block .grid_block {
        transition-delay: 0s !important;
    }
}