/* reformatting the page */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Lato', sans-serif;
}


.page-body {
    margin-top: 123px;
    padding: 0 0 3rem;
    position: relative;
}

    .page-body * {
        font-family: 'Lato', sans-serif !important;
    }

input, select {
    margin-bottom: 2rem !important;
}


.heading {
    padding-top: 5em;
    padding-bottom: 5em;
    /*background-image: url(Images/headstart-background-image1.jpg);
    background-position: 50% 55%;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;*/
    border-bottom: 24px solid #ffdd4e;
    height: 40vw;
    position: relative;
}

    .heading:before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#474c55+0,474c55+100&0+0,0.7+100 */
        background: -moz-linear-gradient(top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.4) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.4) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00474c55', endColorstr='#b3474c55',GradientType=0 ); /* IE6-9 */
    }

.video-container {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

#bgVideo {
    width: 100%;
    height: 100%;
}

.heading-text-container {
    width: 100%;
    bottom: 2rem;
    position: absolute;
}

h1 {
    margin-bottom: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .25px;
}

    h1 span {
        display: block;
    }

        h1 span:first-child {
            color: #ffdd4e;
            margin-bottom: 1rem;
        }

        h1 span:last-child {
            color: #fff;
        }

.body-text h3 {
    font-weight: 600;
    margin-top: 48px;
}

.body-text p {
    font-size: 20px;
    line-height: 2;
}

    .body-text p:last-of-type {
        margin-bottom: 0;
    }





/*------------------------ FORM SECTION --------------------------*/

.form-wrapper, .form-wrapper-es {
    position: absolute;
    display: block;
    padding: 0;
    z-index: 1;
}

.form-wrapper {
    bottom: 1024px;
}

.form-wrapper-es {
    bottom: 1205px;
}


.form-container {
    border-radius: 40px;
    box-shadow: 10px 10px 50px rgba(0,0,0,.2);
}


.form-wrapper h2, .form-wrapper-es h2 {
    padding: 3rem 3rem 0;
    font-weight: 900;
    background: #fff;
    color: #00558C;
    border-top-right-radius: 40px;
    border-top-left-radius: 40px;
    margin: 0;
    letter-spacing: .5px;
}

.form-wrapper form, .form-wrapper-es form {
    padding: 3rem;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    background: #fff;
}








/*----------- FORM STYLE -----------*/
input {
    width: 100%;
    height: 2.6rem;
    margin: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8d8d8;
}

::placeholder {
    color: rgb(102,102,102);
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: rgb(102,102,102);
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: rgb(102,102,102);
}

select {
    margin: 1rem 0;
}


input:focus {
    outline: none;
}

.half-container {
    display: flex;
    justify-content: space-between;
}

.form-input-div input {
    padding: 0 4px;
}

.form-submit-button {
    margin: 2.5rem auto;
    background-color: #319b42;
    width: 14rem;
    padding: 8px 0;
    border: none;
    border-radius: 12px;
    color: whitesmoke;
    font-size: 1.6rem;
    display: table;
}

    .form-submit-button:hover {
        border: none;
        background-color: #00558c;
    }

.form-error {
    color: #ff0000;
    font-weight: 400;
    margin: 10px 0;
}

.thank-you {
    margin: 8rem 0;
    text-align: center;
}

.err-border {
    border-bottom-color: #ff0000 !important;
}

#title-right {
    color: #00558c !important;
    font-size: 2.4rem;
    font-weight: 600;
    margin: 1.5rem;
}

.state-select, .dob-select {
    height: 26px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #d8d8d8;
    border-radius: 0;
    padding: 0;
    margin-top: 1rem;
}

.state-select,
.dob-select {
    width: 100%;
}

#dob-label {
    margin-bottom: 0;
    font-weight: 900;
    margin-top: 1rem;
    text-transform: uppercase;
}

.loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.7)
}

.loading-gif {
    height: 150px;
    width: 150px;
}



/* Media Queries ---------------------------------------------- */
@media (min-width: 1600px) {
    h1 span:first-child {
        font-size: 10rem;
    }

    h1 span:last-child {
        font-size: 6rem;
        line-height: 1.5;
    }
}

@media (min-width: 1400px) {
    .container {
        width: 1380px;
    }

    .form-wrapper {
        bottom: 500px;
    }

    .form-wrapper-es {
        bottom: 670px;
    }

    .form-container {
        width: 600px;
    }

    h1 span:first-child {
        font-size: 10rem;
    }

    h1 span:last-child {
        font-size: 6rem;
        line-height: 1.5;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }

    .form-wrapper, .form-wrapper-es {
        right: 0px;
        width: calc(50% - 60px);
    }

    .form-container {
        width: 495px;
        min-height: 190px;
    }

    h1 span:first-child {
        font-size: 7.1rem;
    }

    h1 span:last-child {
        font-size: 3.3rem;
    }
}

@media (max-width: 1199px) {

    .page-body {
        display: flex;
        flex-direction: column;
    }

    h1 span:first-child {
        font-size: calc(.08 * calc(100vw - 30px));
    }

    h1 span:last-child {
        font-size: calc(.04 * calc(100vw - 30px));
    }


    .form-wrapper, .form-wrapper-es {
        position: relative;
        top: initial;
        right: initial;
        box-shadow: none;
        border-radius: 0;
        order: 2;
        padding: 5rem 0;
        bottom: 0;
    }

    .form-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 15px;
        box-shadow: none;
        border-radius: 0;
    }

    .body-text h3 {
        color: #fff;
    }


    .body-text {
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#00558c+0,0d5e92+50,005185+100 */
        background: rgb(0,85,140); /* Old browsers */
        background: -moz-linear-gradient(-45deg, rgba(0,85,140,1) 0%, rgba(13,94,146,1) 50%, rgba(0,81,133,1) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(-45deg, rgba(0,85,140,1) 0%,rgba(13,94,146,1) 50%,rgba(0,81,133,1) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(135deg, rgba(0,85,140,1) 0%,rgba(13,94,146,1) 50%,rgba(0,81,133,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00558c', endColorstr='#005185',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
        color: #fff !important;
    }

    .form-wrapper h2, .form-wrapper-es h2 {
        background: none;
        color: #00558C;
        border-radius: 0;
        padding: 0;
        margin-bottom: 3rem;
    }

    .form-wrapper form, .form-wrapper-es form {
        background: none;
        border-radius: 0;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 500px) and (max-width: 767px) {
    .heading {
        padding-top: 9rem;
    }
}

@media (max-width: 767px) {
    /*.heading {
        height: initial;
    }*/

    h1 {
        margin-top: 3rem;
    }

        h1 span:first-child {
            font-size: 5rem;
        }

        h1 span:last-child {
            font-size: 2.5rem;
        }

    .half-container {
        flex-direction: column;
    }

    .form-input-div {
        width: 100%;
    }

    .heading:before {
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#474c55+0,474c55+100&0.3+0,0.9+100 */
        background: -moz-linear-gradient(top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.4) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.4) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d474c55', endColorstr='#e6474c55',GradientType=0 ); /* IE6-9 */
    }
}


@media (max-width: 500px) {
    .heading {
        height: 60vw;
    }

    h1 span:first-child {
        font-size: 34px;
    }

    h1 span:last-child {
        font-size: 17px;
    }

    .page-body {
        padding-bottom: 8rem;
    }

    .form-wrapper, .form-wrapper-es {
        order: 0;
    }

    .body-text p {
        line-height: 1.5;
    }
}

/*@media (min-width: 500px) and (max-width: 767px) {
    .heading {
    }

}*/
