/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/* Mobile Menu Collapsible */
.mobile-header-buttons {
    display: none;    
}
#main-header .et_mobile_menu li ul.hide {
	display: none !important;
}

#mobile_menu .menu-item-has-children {
	position: relative;
}
#mobile_menu .menu-item-has-children > a {
	background: transparent;	
}
  
#mobile_menu .menu-item-has-children > a + span {
	position: absolute;
	right: 0;
	top: 0;
	padding: 10px 20px;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	z-index: 3;
}
  
span.menu-closed:before {
	content: "\4c";
	display: block;
	color: #ffcc80;
	font-size: 16px;
	font-family: ETmodules;
}
  
span.menu-closed.menu-open:before {
	content: "\4d";
}
/* - */



/* Lead Form */

input#uPhoneSubscribed,
label[for=uPhoneSubscribed] {
    display: none;
}

.contactForm {
    position: absolute;
    float: right;
    /*width: 20%;*/
    width: 350px;
    right: 30px;
    margin-top: 0;
    transition: .4s all ease-in-out;
    top: 100%;
}
.contactForm .quickform {
    width: 100%;
    padding: 10px 20px 10px;
	/*background-color: #9e6912;*/
	background-color: #b49a69;
    transition: .4s all ease-in-out;
}
.contactForm .quickform .formhead {
    text-align: center;
    color: #fff;
}
.contactForm .quickform .line1 {
    text-transform: uppercase;
    font-size: 16px;
}
/* .quickform .line1:after {
    position: absolute;
    top: 7px;
    right: 0;
    font-family: ETmodules;
    font-size: 25px;
    font-weight: 500;
    content: "3";
    color: #fff;
    padding-right: 5px;
} */
/* .quickform.expanded .line1:after {
    content: "2";
} */
.contactForm .quickform .formbody {
    height: 0;
    overflow: hidden;
    transition: .4s all ease-in-out;
}
.contactForm .quickform.expanded .formbody {
    height: auto;
    transition: .4s all ease-in-out;
    padding-top: 5px;
}
.contactForm .quickform #fName, .contactForm .quickform #lName {
    width: 49.5%;
    float: left;
    height: 34px;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform #fName {
    margin-right: 1%;
}
.contactForm .quickform #uEmail {
    width: 100%;
    height: 34px;
    margin-top: 1%;
    margin-bottom: 1%;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform #uPhone, .contactForm .quickform #uZip {
    width: 49.5%;
    float: left;
    height: 34px;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform #uPhone {
    margin-right: 1%;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform #uProc {
    width: 100%;
    height: 34px;
    margin-top: 1%;
    margin-bottom: 1%;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform #uMsg {
    width: 100%;
    border-radius: 0;
    border: 0 !important;
}
.contactForm .quickform .formsubmit {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: .4s all ease-in-out;
}
.contactForm .quickform.expanded .formsubmit {
    height: auto;
    opacity: 1;
}
.contactForm .quickform #sndForm {
    position: static;
    width: 100%;
    float: none;
    border: 0;
    background-color: #142954;
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    text-transform: uppercase;
    padding: 10px 0;
}

.rsi-leadform .quickform {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.rsi-leadform .formhead {
    padding-bottom: 20px;    
}
.rsi-leadform .line1 {
    font-size: 32px;    
}
.rsi-leadform input[type=text],
.rsi-leadform select,
.rsi-leadform textarea {
    width: 100%;
    height: 40px;
    margin-top: 1%;
    margin-bottom: 1%;
    border-radius: 0;
    border: 1px solid #142954 !important;
    padding-left: 10px;
}
.rsi-leadform textarea {
    height: 90px;   
}
.rsi-leadform input[type=submit] {
    font-size: 20px;
    background: #142954;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 20px 40px;
    text-transform: uppercase;
}

/* Custom CSS */

body .container {
    width: 90%;    
}

#et-top-navigation .nav li ul {
    width: 300px;
}
#et-top-navigation .nav li ul a {
    width: 260px;    
}
#et-top-navigation .nav li.et-reverse-direction-nav li ul {
    left: auto;
    right: 300px;
}
#et-top-navigation .nav li li ul {
    left: 300px;    
}
#et-top-navigation .submenu-two-column > .sub-menu {
    width: 600px;
    display: flex;
    flex-wrap: wrap;
}
#et-top-navigation #top-menu.nav>li:last-child>.sub-menu,
#et-top-navigation .submenu-right > .sub-menu {
    left: -190px;
}

/*
body.home #main-header:not(.et-fixed-header) #top-menu > li > a {
    color: #152a53;
}

body.home #main-header:not(.et-fixed-header) .fixed-home-logo {
    display: inline-block;
}
body.home #main-header.et-fixed-header .fixed-home-logo {
    display: none;
}

body.home #main-header.et-fixed-header #logo {
    display: inline-block;
}
body.home #main-header:not(.et-fixed-header) #logo {
    display: none;
}
body.home .fixed-home-logo img {
    float: none;
    vertical-align: middle;
    -webkit-transform: translate3d(0, 0, 0);
}
*/

#main-header .logo_container {
    
}
#main-header .mobile_menu_bar:before, #main-header .mobile_menu_bar:after {
    color: #fff;    
}

#main-content .et_builder_inner_content .et_pb_text_inner ul,
#main-content .et_builder_inner_content .et_pb_text_inner ol {
    padding-left: 50px;    
}
#main-content .et_builder_inner_content .et_pb_text_inner li {
    margin-bottom: 15px;    
}

#main-content .et_builder_inner_content .et_pb_text_inner h2,
#main-content .et_builder_inner_content .et_pb_text_inner h3 {
    padding-bottom: 25px;
}

#et-top-navigation {
    padding-left: 0 !important;    
}
#et-top-navigation #top-menu > li:last-child > .sub-menu {
    right: 100%;
    left: -100%;
}

/* Gallery */
.gallery-row {
    
}
.et_pb_row.gallery-row .gallery-button {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.et_pb_row.gallery-row .et_pb_button_module_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: all .4s ease;
}
.et_pb_row.gallery-row > .et_pb_column:hover > .et_pb_button_module_wrapper {
    opacity: 1;
}

.footer-menu ul {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}
.footer-menu ul li {
    display: table;
    width: auto;
    margin-bottom: 10px;
    padding-bottom: 5px;
    padding-right: 10px;
    border-bottom: 1px dotted #ffffff8a;    
}

body:not(.home) #main-header {
    background-color: #142954;
}

#footer-menu-section ul {
    display: flex;
    padding-left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
}

body:not(.home) .et_pb_post_content .et_pb_text h2 {
    text-transform: capitalize;    
}

#gform_wrapper_1 .gform_button.button,
#gform_wrapper_2 .gform_button.button,
#gform_wrapper_3 .gform_button.button {
    background: #142954;
    color: #fff;
    padding: 10px 30px;
    border: 0;
    font-size: 20px;
}

#gform_submit_button_4 {
    background: #b49a69;
    border: 0;
    color: #fff;
    padding: 20px;
    width: 100%;
}

#media-feed article {
    float: left;
    width: 27%;
    margin: 10px 3% 40px;
    box-shadow: 2px 2px 4px 0px rgba(230,230,230,0.9);
    -webkit-box-shadow: 2px 2px 4px 0px rgba(230,230,230,0.9);
    -moz-box-shadow: 2px 2px 4px 0px rgba(230,230,230,0.9);
}
#media-feed article:nth-child(3n+4) {
    clear: both;
    content: '';
}
#media-feed article .entry-title,
#media-feed article .post-content {
    padding: 0 15px 15px;
}

.page-id-202 .et_pb_post_title.et_pb_featured_bg ,
.page-id-245 .et_pb_post_title.et_pb_featured_bg {
    background-position: center -100px !important;
}

#gform_confirmation_message_4 {
    text-align: center;    
}

body:not(.home) .et-l--post .et_pb_section_0 > .et_pb_row:first-child .et_pb_text_inner,
body:not(.home) .et-l--post .et_pb_section_0 > .et_pb_row:first-child .et_pb_text_inner p {
    text-align: justify;    
}

body:not(.home):not(.page-template-page-template-blank) .et-l--post .et_pb_text_inner h2 {
    text-align: center;    
}

body:not(.home) .et-l--post .et_pb_section.et_pb_with_background {
    margin-bottom: 2% !important;    
}
body:not(.home) .et-l--post .et_pb_section:last-child {
    margin-bottom: 0 !important;    
}

body.page-id-654 .et_pb_post_title,
body.page-id-660 .et_pb_post_title {
    padding: 16% 0%;    
}

body:not(.home) .et_pb_section_0_tb_body > .et_pb_row.et_pb_row_0_tb_body {
    max-width: 100%;    
}

body.page-template-page-template-blank .et-l--post .et_pb_section#pageheader,
body.page-template-page-template-blank .et-l--post .et_pb_section.no-margin {
	margin-bottom: 0 !important;
}

div#lead-appointment,
#schedule-consultation {
    border-radius: 20px;
}

/* Gravity Forms Lead Form */
.quickform #gform_wrapper_5 .gfield_label,
.quickform #gform_wrapper_5 .validation_message {
    display: none;    
}
.quickform .gform_wrapper.gravity-theme#gform_wrapper_5 .gform_fields {
    grid-row-gap: 10px;
}
.quickform #gform_wrapper_5 textarea {
    height: 80px;    
}
.quickform .gform_footer.top_label {
    padding: 5px 0;
}
.quickform .gform_button.button {
    border: 0;
    width: 100%;
    background: #142954;
    color: #fff;
    padding: 10px 0;
}
.quickform #gform_wrapper_5 input::-webkit-input-placeholder,
.quickform #gform_wrapper_5 select::-webkit-input-placeholder,
.quickform #gform_wrapper_5 textarea::-webkit-input-placeholder {
  color: #000;
}
.quickform #gform_wrapper_5 input::-moz-placeholder,
.quickform #gform_wrapper_5 select::-moz-placeholder,
.quickform #gform_wrapper_5 textarea::-moz-placeholder {
  color: #000;
}
.quickform #gform_wrapper_5 input:-ms-input-placeholder,
.quickform #gform_wrapper_5 select:-ms-input-placeholder,
.quickform #gform_wrapper_5 textarea:-ms-input-placeholder {
  color: #000;
}
.quickform #gform_wrapper_5 input:-moz-placeholder,
.quickform #gform_wrapper_5 select:-moz-placeholder,
.quickform #gform_wrapper_5 textarea:-moz-placeholder {
  color: #000;
}

.contactForm.landingpage {
	position: relative;
	float: none;
	right: auto;
    width: 100%;
}
.contactForm.landingpage .quickform .formhead {
    display: none !important;
}
.contactForm.landingpage .quickform .formbody {
	height: auto;
	padding-top: 0;
}
.contactForm.landingpage .quickform .formsubmit {
    height: auto;
    opacity: 1;
}

/* Responsive */

/* Fix for the subtitle in services pages */
@media (min-width:1400px) {
    body:not(.home) #header-subtitle {
        transform: translate(-50%,440px) !important;
    }
    body:not(.home) .et_pb_post_title.et_pb_featured_bg {
        padding: 16% 50px !important;
    }
}
@media (min-width:1900px) {
    body:not(.home) #header-subtitle {
        transform: translate(-50%,475px) !important;
    }
    body:not(.home) .et_pb_post_title.et_pb_featured_bg {
        padding: 12% 0px !important;
    }
}
@media (min-width:2200px) {
    body:not(.home) #header-subtitle {
        transform: translate(-50%,500px) !important;
    }
    body:not(.home) .et_pb_post_title.et_pb_featured_bg {
        padding: 16% 50px !important;
    }
}
@media (min-width:2400px) {
    body:not(.home) #header-subtitle {
        transform: translate(-50%,525px) !important;
    }
    body:not(.home) .et_pb_post_title.et_pb_featured_bg {
        padding: 16% 50px !important;
    }
}
/* End of Subtitle fix */

@media (min-width:1200px) {
}
@media (min-width: 1200px) and (max-width: 1500px) {
    #logo {
        max-height: 40%;
    }
    #top-menu li {
        padding-right: 10px;
    }
    #top-menu li a {
        font-size: 15px;
    }
}

@media (max-width: 1199px) {
}

@media (min-width: 981px) and (max-width: 1024px) {
    #main-header #top-menu li a {
        font-size: 13px;
    }
    #main-header #logo {
        max-height: 40%;
    }
}

@media (max-width:980px) {
    body:not(.home) .et_pb_section_first {
        padding-top: 0 !important;    
    }
    .mobile-swap-columns {
        display: flex;
        flex-direction: column;
    }
    .mobile-swap-columns > .et_pb_column:first-child {
        order: 2;
    }
    .mobile-swap-columns > .et_pb_column:last-child {
        order: 1;
    }
    .mobile-header-buttons {
        display: block;
        background: #142954;
        position: relative;
        width: 100%;
        padding: 10px 0;
    }
    .mobile_menu_bar.mobile_menu_bar_toggle {
        display: none;    
    }
    a.mobile-btn:before {
        display: inline-block !important;
        width: 32%;
        text-align: center;
        position: relative;
        top: 0;
        left: 0;
        font-size: 25px;
        content: "\61";
        color: #fff;
        cursor: pointer;
        text-shadow: 0 0;
        font-family: ETmodules!important;
        font-weight: 400;
        font-style: normal;
        font-variant: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1;
        text-transform: none;
        speak: none;
    }
    .mobile-btn.call:before {
        content: "\e090";
    }
    .mobile-btn.location:before {
        content: "\e01d";
    }
    .mobile-btn.menu:before {
        font-size: 30px;
    }
    
    #page-container {
        padding-top: 0 !important;    
        margin-top: 0 !important;
    }
    body #main-header {
        position: relative !important;
        top: auto !important;
        text-align: center;
        padding-top: 20px;
    }
    #main-header>.container {
        width: 100%;
    }
    #main-header .logo_container {
        position: relative;
        text-align: center;
    }
    .logo_container #logo {
        width: 280px;
        height: auto;
        max-width: 100%;
        max-height: none;
    }
    .contactForm {
        width: 100%;
        right: auto;
        position: relative;
        top: 0;
        margin-top: 10px;
        float: none;
    }
    #main-content .et_pb_button_module_wrapper {
        text-align: center;
    }
    #media-feed article {
        float: none;
        width: 100%;
        margin: 0 0 60px;
    }
}

/* Mobile */
@media (max-width: 767px) {
	#main-header .et_mobile_menu {
		background: #142954 !important;
	}
    #homepage-doctor-aff-row {
        display: flex !important;
        justify-content: center !important;
    }
    #homepage-doctor-aff-row > .et_pb_column {
        width: 30% !important;
        margin: 10px 1% !important;
    }
	#footer-menu-section ul {
		display: flex;
    	align-items: center;
    	flex-direction: column;
	}
	#footer-menu-section ul li {
		margin-bottom: 10px;
	}
}
/* - */