.masthead--homepage {
    color: #fff;
    position: relative;
}

.masthead__image,
.masthead__imagex {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 609px;
}

.masthead__image::before,
.masthead__imagex::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(245,245,245,0.98) 4%,rgba(245,245,245,0.6) 50%,rgba(245,245,245,0.1) 85%,rgba(245,245,245,0.0) 100%);
    z-index: 1;
}

.masthead__wrap {
    position: relative;
    z-index: 2;
    padding-top: 58px;
}

.masthead__text {
    text-align: center;
    margin: 0 auto;
}

.masthead__text h1 {
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.26em;
    font-weight: 400;
    font-size: 50px;
    color: #003499;
    text-transform: uppercase;
}

.js-masthead-homepage-slider {
    padding-bottom: 76px;
}

.js-masthead-homepage-slider ul.slick-dots li.slick-active button {
    background-color: #fff;
}

.masthead-wave {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
}

.masthead__form {
    margin-top: 86px;
}

.masthead__form__wrap {
    position: relative;
    z-index: 1;
    padding: 0 13px 20px;
    color: #FFFFFF;
}

.masthead__form__wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,52,153,0.75);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    z-index: -1;
}

.masthead__form__heading {
    position: relative;
    text-align: center;
    width: 240px;
    margin: 0 auto;
}

.masthead__form__heading__bg {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 240px;
    height: 98px;
}

.masthead__form__heading span {
    margin: 0 0 5px;
    padding: 3px 0 0;
    line-height: 1.26em;
    font-weight: 400;
    font-size: 16px;
    color: #F5F5F5;
    text-transform: uppercase;
    position: relative;
    display: block;
}

.masthead__form__heading h4 {
    margin: 0 0 5px;
    padding: 0;
    line-height: 1.26em;
    font-weight: 700;
    font-size: 16px;
    color: #F5F5F5;
    text-transform: uppercase;
    font-family: "Work Sans", sans-serif; 
    position: relative;
    text-align: center;
}

.masthead__form__content {
    padding-top: 40px;
}

.masthead__form__content p {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.71em;
    font-weight: 300;
    color: #FFFFFF;
    font-family: "Work Sans", sans-serif; 
    text-align: center;
}

.masthead__form__content p span {
    font-weight: 700;
}

.masthead__form__content .btn {
    background: #F5F5F5;
    color: #003499;
}

.masthead__form__content .btn::after {
    color: #F5F5F5;
    background: #D22121;
}

.masthead__form__content .btn:hover {
    background: #e0e6f4;
    color: #090809;
}

.masthead__form__content .btn:hover:after {
    background: #003499;
    color: #FFF;
}

span[data-name="your-email"] .wpcf7-not-valid-tip {
    display: none;
}

.masthead-slide-image,
.js-for-masthead-homepage-slider,
.js-for-masthead-homepage-slider.fx-slider.slick-initialized.slick-slider .slick-list,
.js-for-masthead-homepage-slider.fx-slider.slick-initialized.slick-slider .slick-track,
.js-for-masthead-homepage-slider.fx-slider.slick-initialized.slick-slider .slick-slide,
.js-for-masthead-homepage-slider.fx-slider.slick-initialized.slick-slider .slick-slide div {
    height: 100%;
}

@media (min-width: 768px) {
    .masthead__image {
        height: 540px;
    }
    
    .masthead__image::before {
        background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(245,245,245,0.98) 10%,rgba(245,245,245,0.6) 55%,rgba(245,245,245,0.1) 85%,rgba(245,245,245,0.0) 100%);
    }
    
    .masthead__wrap {
        padding-top: 58px;
    }
    
    .masthead__text {
        max-width: 100%;
    }
    
    .masthead__text h1 {
        margin: 0 0 20px;
        font-size: 64px;
    }
    
    .js-masthead-homepage-slider {
        padding-bottom: 55px;
    }
    
    .masthead__form {
        margin-top: 60px;
    }
    
    .masthead__form__wrap {
        padding: 0 30px 30px;
        max-width: 551px;
        margin: 0 auto;
    }
    
    .masthead__form__wrap::before {
        background: rgba(0,52,153,0.75);
        backdrop-filter: blur(2px);
    }
    
    .masthead__form__heading {
        width: 344px;
    }
    
    .masthead__form__heading__bg {
        top: -16px;
        width: 344px;
        height: 108px;
    }
    
    .masthead__form__heading span {
        margin: 0 0 0;
        padding: 6px 0 0;
        line-height: 1.22em;
        font-size: 20px;
    }
    
    .masthead__form__heading h4 {
        margin: 0 0 0;
        font-size: 20px;
    }
    
    .masthead__form__content {
        padding-top: 50px;
    }
    
    .masthead__form__content p br {
        display: none;
    }
    
    .masthead__form__content p span {
        font-weight: 700;
    }
    
    .masthead__form__content .btn {
        background: #F5F5F5;
        color: #003499;
    }
    
    .masthead__form__content .btn::after {
        color: #F5F5F5;
        background: #D22121;
    }
}

@media (min-width: 1200px) {
    .masthead__image {
        height: 100%;
    }

    .masthead-wave {
        bottom: -2px;
    }
    
    .masthead__image::before {
        background: linear-gradient(to bottom,  rgba(245,245,245,1) 0%,rgba(245,245,245,0.98) 10%,rgba(245,245,245,0.6) 40%,rgba(245,245,245,0.1) 85%,rgba(245,245,245,0.1) 100%);
    }
    
    .masthead__wrap {
        padding: 180px 0 240px;
    }

    .masthead__content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .masthead__content__wrap {
        width: calc(100% - 400px);
        padding-right: 50px;
    }
    
    .masthead__text {
        max-width: 750px;
        margin: 77px 0 0;
        text-align: left;
    }

    .masthead__content .sub-heading {
        margin-bottom: 10px;
    }
    
    .masthead__text h1 {
        margin: 0 0 40px;
    }

    .masthead__text .btn {
        font-family: "Work Sans", sans-serif; 
    }
    
    .js-masthead-homepage-slider {
        padding-bottom: 210px;
    }

    .js-masthead-homepage-slider ul.slick-dots {
        justify-content: flex-start;
        gap: 16px;
    }

    .js-masthead-homepage-slider ul.slick-dots li:nth-child(2) button {
        background: #E0E6F3;
    }

    .js-masthead-homepage-slider ul.slick-dots li:last-child button {
        background: #B3CCFF;
    }
    
    .masthead__form {
        margin-top: 0;
        width: 400px;
    }
    
    .masthead__form__wrap {
        padding: 0 30px 40px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .masthead__form__wrap::before {
        background: rgba(0,52,153,0.75);
        backdrop-filter: blur(2px);
    }
    
    .masthead__form__heading {
        width: auto;
        position: initial;
    }
    
    .masthead__form__heading__bg {
        top: -18px;
        width: 357px;
        height: 114px;
    }
    
    .masthead__form__heading span {
        margin: 0 0 8px;
        padding: 0 0 0;
        line-height: 1.16em;
        font-size: 24px;
    }
    
    .masthead__form__heading h4 {
        margin: 0 0 0;
        font-size: 24px;
        line-height: 1.16em;
    }
    
    .masthead__form__content {
        padding: 50px 20px 0;
    }

    .masthead__form__content p {
        font-size: 16px;
        line-height: 1.5em;
        margin-bottom: 15px;
    }
    
    .masthead__form__content p br {
        display: block;
    }
    
    .masthead__form__content p span {
        font-weight: 700;
    }
    
    .masthead__form__content .btn {
        background: #F5F5F5;
        color: #003499;
    }
    
    .masthead__form__content .btn::after {
        color: #F5F5F5;
        background: #D22121;
    }

    .masthead__form__content .form-col {
        margin-bottom: 12px;
    }

    .masthead__form__content [type="text"],
    .masthead__form__content [type="email"],
    .masthead__form__content [type="tel"] {
        padding: 0 14px;
        font-size: 14px;
        height: 30px;
    }

    .masthead__form__content textarea {
        padding: 11px 13px;
        font-size: 14px;
    }

    .sub-btn {
        padding-top: 18px;
    }
}

@media (min-width: 1600px) {
    .masthead__image {
        height: calc(100% - 87px);
    }

    .masthead-wave {
        bottom: -87px;
    }
}
