html{overflow-x: hidden;}
body.page-template-template-funding-lp header.desktop{position: relative;}
body.page-template-template-funding-lp #primary {margin-top: 0;}
body.mobile #primary {margin-top: 63px;}
body.page-template-template-funding-lp #strip,
body.page-template-template-funding-lp #strip.show {display: none}
header.mobile{position: absolute;}

header.mobile a.menu,
header.desktop div.header_content nav {
	visibility: hidden;
	opacity: 0;
}

footer {
	display: none;
}

#funding-top-wrap {
	width: 100%;
}

#funding-top-image {
	margin: 0 auto;
	padding: 10em calc((100% - 1200px)/ 2);
	background-image: url('/wp-content/themes/angelsense/images/funding-lp/LP_funding_bg.jpg');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	display: block;
	margin-top: 70px;
	min-height: 422px;
}

#funding-form-wrap {
	width: 100%;
}

#funding-form-inner {
    background-color: white;
    padding: 2em calc((100% - 1200px)/ 2);
}

#funding-form-inner div.image {
    display: inline-block;
    vertical-align: middle;
    width: 283px;
}

#funding-title {
	margin: 0 auto;
	font-size: 50px;
	color: white;
	font-weight: 700;
	line-height: 1;
}

#funding-subtitle {
	margin: 0 auto;
	font-size: 38px;
	color: white;
	font-weight: 600;
}

#form-title {
    font-size: 23px;
    color: rgb(93, 92, 92);
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 2em;
}

#funding-form {
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    position: relative;
    width: calc(100% - 360px);
    box-sizing: border-box;
    padding-left: 5em;
}

#funding-form span.note {
    font-size: 0.9rem;
}

select {
    width: 66%;
    border: none;
    background-color: #fafafa;
    border: 1px solid rgb(207, 208, 210);
    padding: 8px;
    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.form-item.select:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 2em;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-image: url(/wp-content/themes/angelsense/images/checkout-select-arrow.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    width: 1em;
    height: 1em;
    z-index: 10000;
}

.form-item {display: block; margin: 24px 0; position: relative}
.form-item label {display: inline-block; width: 31%; color: #000; font-size: 16px;}
.form-item input {
    display: inline-block;
    width: 66%;
    border: 1px solid #cfd0d2;
    border-radius: 3px;
    padding: 8px 3px;
    background-color: #fafafa;
}

.form-item.trio .phone-prefix {
    width: 12%;
    display: inline-block;
    background-color: #f4f4f4;
    color: #41464c;
    text-align: center;
    border: 1px solid #cfd0d2;
    border-radius: 3px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
}
.form-item.trio input {
    width: 53.5%;
}
#agency-submit,
#funding-submit {
    width: 320px;
    background-color: #31d1c0;
    color: white;
    font-size: 28px;
    margin: 40px auto;
    display: block;
    border: none;
    height: 65px;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.45);
}

#funding-submit {
    margin: 40px 240px;
}

#funding-submit.show {
    background-color: black;
}

#funding-submit.orange {
    background-color: #fea465;
}

.funding-success-msg {
    display: none;
    text-align: center;
    background-color: #90eea8;
    padding: 10px;
    color: black;
    border-radius: 3px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    width: 100%;
}

.funding-error-msg {
    display: none;
    min-width: 310px;
    background-color: #ffa8a8;
    padding: 2px 30px;
    border-radius: 4px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #888;
    position: absolute;
    right: 0;
    top: -16px;
    color: black;
    font-size: 14px;
}

.response {
    padding-left: 32%;
    color: rgb(255, 0, 0);
}


/* Thank you page */
#submitted-title {
    display: block;
    text-align: center;
    font-size: 28px;
    width: 35%;
    margin: 50px auto;
    font-weight: 400;
    color: #555;
}

#submitted-subtitle,
#submitted-subtitle a {
    width: 100%;
    text-align: center;
    font-size: 29px;
    font-weight: bold;
    color: #3cb9a7;
    margin-bottom: 50px;
}

#funding-form .error {
    width: 100%;
    margin: 10px auto;
}

.lds-css.form.show {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 100000;
    visibility: visible;
    opacity: 1;
}

.error {
    text-align: center;
}

.error.success {
    color: rgb(50, 181, 167);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
}

.error.success strong {
    font-weight: 700;
}

#agency {
    text-align: center;
     padding: 2em calc((100% - 900px)/ 2);
     position: relative;
}

#agency h2 {
    font-size: 23px;
    color: rgb(93, 92, 92);
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
}

#agency p {
    margin: 1em 0em;
    font-size: 1.2rem;
}

#agency-form {
    text-align: left;
}

#agency-form h2 {
    text-align: left;
}

@media all and (min-width: 768px) {
    #chatRequest {display: none}
}

div#popup.open,
div#strip,
#phone_chat.show,
footer.delay_show a.sticky_banner
{
    display: none !important;
}

/*Tablet version*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1367px) and (orientation: landscape){
    #funding-top-wrap {
        width: 100%;
    }

    #funding-top-image {
        margin: 0 auto;
        padding: 4em calc((100% - 950px)/ 2);
        background-image: url('/wp-content/themes/angelsense/images/funding-lp/LP_funding_bg.jpg');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        display: block;
        margin-top: 59px;
        height: calc(100vw * (422 / 1813));
        min-height: auto;
    }

    #funding-title {
        font-size: 35px;
    }

    #funding-subtitle {
        font-size: 25px;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1367px) and (orientation: landscape){
    #funding-top-wrap {
        width: 100%;
    }

    #funding-top-image {
        margin: 0 auto;
        padding: 4em calc((100% - 950px)/ 2);
        background-image: url('/wp-content/themes/angelsense/images/funding-lp/LP_funding_bg.jpg');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        display: block;
        margin-top: 59px;
        height: calc(100vw * (422 / 1813));
        min-height: auto;
    }

    #funding-title {
        font-size: 35px;
    }

    #funding-subtitle {
        font-size: 25px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #funding-top-wrap {
        width: 100%;
    }

    #funding-top-image {
        margin: 0 auto;
        padding: 4em calc((100% - 750px)/ 2);
        background-image: url('/wp-content/themes/angelsense/images/funding-lp/LP_funding_bg.jpg');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        display: block;
        margin-top: 59px;
        height: calc(100vw * (422 / 1813));
        min-height: auto;
    }

    #funding-title {
        font-size: 30px;
    }

    #funding-subtitle {
        font-size: 20px;
    }

    #agency {
        padding: 2em calc((100% - 650px)/ 2);
    }

    #funding-form-inner div.image {
        display: none;
    }

    #funding-form {
        display: block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}