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

/* Defaults ---------------------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

.page-body {
    margin-top: 123px;
    padding: 0;
    position: relative;
    /*background-image: url(Images/family-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;*/
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

    .page-body:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 5px;
        background: rgba(0, 85, 140, 0.8);
        border-bottom: solid 15px #ffdd43;
    }


    .page-body > .container {
        min-height: 800px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0;
    }

/*------------------------ HEADING SECTION --------------------------*/


.heading {
    position: relative;
    width: calc(50% - 10rem);
    margin: 0 5rem;
    border-bottom: 5px dotted #ffdd3e;
}

#headerH1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: normal;
    color: #ffdd4e;
    line-height: 0px;
}

    #headerH1 span:first-child {
        font-size: 6.5rem;
        line-height: 65px;
    }

    #headerH1 span:last-child {
        font-size: 4.5rem;
        line-height: 44px;
    }

    ##headerH1ChildSpan {
        line-height: 0px;
    }

/*------------------------ BODY SECTION --------------------------*/

.body-text {
    width: 50%;
    position: relative;
}

.body-text-container {
    padding: 0 5rem;
}

    .body-text-container p {
        color: whitesmoke;
        font-size: 20px;
        line-height: 24px;
    }

        .body-text-container p:first-child {
            margin-bottom: 10px;
        }

.body-logo {
    display: flex;
    justify-content: center;
}

    .body-logo img {
        height: 200px;
        width: 200px;
    }

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

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

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

.form-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    display: block;
    padding: 0;
    background: whitesmoke;
}

    .form-wrapper form {
        padding: 4rem;
    }

.fe-wrap {
    display: flex;
    flex-direction: column;
}

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

.city-wrap,
.state-wrap,
.zip-wrap,
.phone-wrap,
.email-wrap,
.dob-wrap, 
.marital-status-wrap,
.occupation-wrap,
.coverage-type-wrap,
.coverage-term-wrap
{
    width: 45%;
}

.email-wrap {
    justify-content: space-between;
}

input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8d8d8;
}

    input:focus {
        outline: none;
    }

select {
    background-color: whitesmoke;
}

.state-select,
.fe-select{
    width: 100%;
    height: 24px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #d8d8d8;
    border-radius: 0;
    padding: 0;
}

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

.dob-select {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #d8d8d8;
    border-radius: 0;
    padding-left: 0;
}

.submit-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.my-button {
    background-color: #319b42;
    width: 14rem;
    height: 3.5rem;
    border: none;
    border-radius: 12px;
    color: whitesmoke;
    font-size: 1.6rem;
    margin-top: 15px;
}

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

    .my-button:focus {
        outline: none;
    }

.consent-text {
    font-size: 11px;
    line-height: 14px;
    margin: 20px 0;
    max-width: 100%;
}

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

.fe-error {
    color: #ff0000;
    font-weight: 400;
    margin: 0;
}

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

.thank-you {
    margin: 6rem 0;
    text-align: center;
    padding: 4rem;
}

.relative {
    position: relative;
}

.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;
}

/*------------------------ THANK YOU PAGE --------------------------*/

.fe-container {
    display: flex;
    align-content: center;
}
.thank-you-container {
    background-color: #fff;
    width: 50%;
    padding: 4rem 6rem;
}

/*------------------------ MEDIA QUERIES --------------------------*/


@media (max-width: 1399px) {

    .page-body > .container {
        width: 100%;
    }
}


@media (min-width: 1400px) {
    .dob select:nth-of-type(1) {
        width: 40%;
    }

    .dob select:nth-of-type(2) {
        width: 25%;
    }

    .dob select:nth-of-type(3) {
        width: 25%;
    }
}

@media (max-width: 1199px) {
    .page-body {
        background-size: contain;
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

        .page-body > .container {
            padding-left: 0;
            padding-right: 0;
        }

    .video-container {
        bottom: 200px;
    }

    .heading {
        width: calc(100% - 10rem);
        padding: 5rem 0 3rem;
    }

    .body-text {
        width: 100%;
        padding: 0;
        order: 1;
    }

    .body-text-container {
        padding: 3rem 5rem;
    }

        .body-text-container p {
            margin-bottom: 0;
        }

    .body-logo {
        display: none;
    }

    .form-wrapper {
        position: relative;
        width: 100%;
        order: 2;
        padding: 0 10rem;
    }

    .dob select:nth-of-type(1) {
        width: 40%;
    }

    .dob select:nth-of-type(2) {
        width: 25%;
    }

    .dob select:nth-of-type(3) {
        width: 25%;
    }
}

@media (max-width: 1200px) {

    .page-body:before {
        bottom: 0;
        border-bottom: none;
    }
}


@media (max-width: 968px) {
    .video-container {
        bottom: 158px;
    }
}

@media (max-width: 875px) {
    .video-container {
        bottom: 0;
    }
}

@media (max-width: 767px) {
    .page-body {
        background-size: 929px 500px;
    }

    .heading-text-container {
        padding: 3rem;
    }

    #headerH1 span:first-child {
        font-size: 5rem;
        line-height: 42px;
    }

    #headerH1 span:last-child {
        font-size: 3rem;
    }

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

    .city-wrap,
    .state-wrap,
    .zip-wrap,
    .phone-wrap,
    .email-wrap,
    .dob-wrap {
        width: 100%;
    }

    .form-wrapper form {
        padding: 3rem 0;
    }
}

@media (max-width: 678px) {
    .video-container {
        background-image: url(Images/finalexpensebg-img.jpg);
        background-size: 894px 580px;
        background-repeat: no-repeat;
        background-position-x: center;
    }

    #bgVideo {
        display: none;
    }
}

@media (max-width: 576px) {

    .heading {
        width: calc(100% - 6rem);
        margin: 0 3rem;
        padding: 3rem 0;
        border-bottom: none;
    }

    #headerH1 span:first-child {
        font-size: 4rem;
    }

    #headerH1 span:last-child {
        font-size: 2.5rem;
        line-height: 32px;
    }

    .video-container {
        background-size: 576px 311px;
        background-position-y: -60px;
    }

    .body-text {
        order: 2;
        border-bottom: 12px solid #fff;
    }

    .form-wrapper {
        order: 1;
        margin-bottom: 0;
        padding: 0 3rem;
    }
}

@media (max-width: 375px) {
    .page-body {
        background-size: 533px 289px;
    }

    .form-wrapper form {
        padding: 3rem 0;
    }

    .dob select:nth-of-type(1),
    .dob select:nth-of-type(2),
    .dob select:nth-of-type(3) {
        width: 30%;
    }
}
