<?php
/**
 * @package LZ Fitness Premium
 */ 

function total_dymanic_styles(){
    global $post;
	$primColor = get_theme_mod( 'lz_fitness_template_color', '#f4b601' );
	// $color_rgba = total_hex2rgba($color, 0.9);
	// echo 'light color: '.
	// $color_rgba = lz_fitness_hex2rgba($primColor, 0.9);
	$color_rgba = totalColourBrightness($primColor, 0.3);
	// echo '<br>Dark color: '.
	$darker_color = totalColourBrightness($primColor, -0.5);

	$header_image = get_header_image();
    // DYNAMIC FONTS
    // echo '<br> heading font '.
	$headeingFontRow = get_theme_mod('lz_fitness_general_headeing_font', '25');
    // echo '<br> text font '.
	$textFontRow = get_theme_mod('lz_fitness_general_text_font', '16');
    $header = get_theme_mod('header_textcolor', '#666666'); //header color
    $headingFont = getFonts(false, (int)$headeingFontRow);
    $textFont = getFonts(false, (int)$textFontRow);
    $custom_css = '';
    $custom_css = " body, * {font-family: $textFont;}
    h2.lz-about-heading, h2.lz-facility-heading, .ht-section-title, .lz-fitness-h2, .ht-title-wrap, .ht-slide-cap-title, .ht-slide-cap-title span, #ht-princing-post-section .ht-princing-icon,h1, h2, h3, h4, h5, h6,#pricing-page .ht-princing-icon .ht-slide-cap-descmore a{font-family: $headingFont; }
        #ht-masthead { background: #FFF url('$header_image'); background-repeat: no-repeat; background-size: cover;}
        #ht-masthead, .ht-site-description a, .page-template-home-template .ht-main-navigation .menu-item > a, .ht-main-navigation a, .ht-main-navigation ul ul a {color: #{$header};}
    .page-template-home-template .ht-main-navigation .current_page_item > a {color: #000; background-color:none;}
    li.current_page_item > a {color: #ffffff;}
    ";

    $custom_css .= "
    button,
    input[type='button'],
    input[type='reset'],
    input[type='submit'],
    .widget-area .widget-title:after,
    h3#reply-title:after,
    h3.comments-title:after,
    .nav-previous a,
    .nav-next a,
    .pagination .page-numbers,    
    .ht-progress-bar-length,


    .ht-service-post-wrap:after,
    .ht-service-icon,
    .ht-counter:after,
    .ht-counter:before,
    .ht-testimonial-wrap .bx-wrapper .bx-controls-direction a,
    .ht-cta-buttons a.ht-cta-button1,
    .ht-cta-buttons a.ht-cta-button2:hover,
	#ht-back-top:hover,
    .entry-readmore a,
    .woocommerce #respond input#submit, 
    .woocommerce a.button, 
    .woocommerce button.button, 
    .woocommerce input.button,
    .woocommerce ul.products li.product:hover .button,
    .woocommerce #respond input#submit.alt, 
    .woocommerce a.button.alt, 
    .woocommerce button.button.alt, 
    .woocommerce input.button.alt,
    .woocommerce nav.woocommerce-pagination ul li a, 
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce span.onsale,
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active,
    .woocommerce #respond input#submit.disabled, 
    .woocommerce #respond input#submit:disabled, 
    .woocommerce #respond input#submit:disabled[disabled], 
    .woocommerce a.button.disabled, .woocommerce a.button:disabled, 
    .woocommerce a.button:disabled[disabled], 
    .woocommerce button.button.disabled, 
    .woocommerce button.button:disabled, 
    .woocommerce button.button:disabled[disabled], 
    .woocommerce input.button.disabled, 
    .woocommerce input.button:disabled, 
    .woocommerce input.button:disabled[disabled],
    .woocommerce #respond input#submit.alt.disabled, 
    .woocommerce #respond input#submit.alt.disabled:hover, 
    .woocommerce #respond input#submit.alt:disabled, 
    .woocommerce #respond input#submit.alt:disabled:hover, 
    .woocommerce #respond input#submit.alt:disabled[disabled], 
    .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 
    .woocommerce a.button.alt.disabled, 
    .woocommerce a.button.alt.disabled:hover, 
    .woocommerce a.button.alt:disabled, 
    .woocommerce a.button.alt:disabled:hover, 
    .woocommerce a.button.alt:disabled[disabled], 
    .woocommerce a.button.alt:disabled[disabled]:hover, 
    .woocommerce button.button.alt.disabled, 
    .woocommerce button.button.alt.disabled:hover, 
    .woocommerce button.button.alt:disabled, 
    .woocommerce button.button.alt:disabled:hover, 
    .woocommerce button.button.alt:disabled[disabled], 
    .woocommerce button.button.alt:disabled[disabled]:hover, 
    .woocommerce input.button.alt.disabled, 
    .woocommerce input.button.alt.disabled:hover, 
    .woocommerce input.button.alt:disabled, 
    .woocommerce input.button.alt:disabled:hover, 
    .woocommerce input.button.alt:disabled[disabled], 
    .woocommerce input.button.alt:disabled[disabled]:hover,
    .woocommerce .widget_price_filter .ui-slider .ui-slider-range,
    .woocommerce-MyAccount-navigation-link a,
    #ht-princing-post-section .ht-princing-icon,
    #ht-princing-post-section .plan-amount,
	.ht-princing-icon,
	.plan-amount,
    .ht-princing-link a:hover,       
    .readmore a,
    .page-main-header,
    #ht-contactus-wrap .contact-page-form,
    .contact-mapbox iframe,
    #content-box ol li:before,
	.ht-slide-cap-descmore a,
	.ht-princing-link a,
	.days-time-day,
    .lz-facility-text ul li i,
    .ht-blog-date,
    .post-right .blog-read-more a,
    #blog-box .blog-read-more a,
    .pagingation .current,
    .pagingation a:hover,
    .sect-height-appointment-section,
    .ht-appintment-member-wrap:after,
    .ht-main-navigation ul ul,
    #services-post-section .services-post:hover .services-data,
      #innerpage-box .services-readmore a.btn,
     #innerpage-box .services-post:hover .services-data,
    #innerpage-box .sec-icn a,
     #featured-new-section .featured-new-icon:hover,
    #services-post-section .services-readmore a.btn,
    #ht-about-us-section .readmore a,
    .total-count .count,
    .facility-post:hover,
    .sect-height-appointment-section:after,
    #quote-carousel .carousel-control:hover,
    .faq h6:after,
    .post-date-publishable,
    .add-to-cart

    {
    	background:{$primColor};
    }

    
    .ht-post-info .entry-date span.ht-day,
    .entry-categories .fa,
    .widget-area a:hover,
    .comment-list a:hover,
    .no-comments,
    .ht-site-title a,
    .woocommerce .woocommerce-breadcrumb a:hover,
	#total-breadcrumbs a:hover,
    .ht-featured-link a,
    .ht-portfolio-cat-name-list .fa,
    .ht-portfolio-cat-name:hover, 
    .ht-portfolio-cat-name.active,
    .ht-portfolio-caption a,
    .ht-team-detail,
    .ht-counter-icon,
    .woocommerce ul.products li.product .price,
    .woocommerce div.product p.price, 
    .woocommerce div.product span.price,
    .woocommerce .product_meta a:hover,
    .woocommerce-error:before, 
    .woocommerce-info:before, 
    .woocommerce-message:before,
	.services-post:after,
	.services-post:before,
	.featured-link a,
    .breadcrumbbox a,
    #ht-colophon .social-profile-icons a:hover,
    footer#ht-colophon ul li a:hover,
    .ht-footer .textwidget .fa,
    h6.secondry-text,
    #ht-about-us-section ul li:before,
    #innerpage-box .team-member-designation,
    .pluses.text-right i.fa.fa-plus,
    .ht-section-tagline.lz-newslatter-text b,
    #content-box ul li:before,
    .page-template-home-template .ht-main-navigation .current_page_item > a,
    #ht-site-navigation ul li a:hover,
    .header-social-links a:hover,
    .lz-featured-Post-heading:before,
    .lz-featured-Post-heading:after,
    .ht-slide-cap-desc span,
    .featured-new-post h5:hover,
    #ht-about-us-section .ht-section-tagline span,
    #ht-about-us-section .lz-about-text span,
    .ht-project-member .project-readmore a,
    .ht-team-social-id a:hover,
    .ht-team-member h6:hover,
    .faq-description p a,
    .contact-page-address a,
    .main#innerpage-box span.fa,
    #content-box ol li a,
    #commentsAdd p a,
    .product-name a,
    .cart_totals p a,
    #innerpage-box .socialMedia a:hover,
    .edit-link a,
    main#innerpage-box span.fa:hover,
    .ht-main-navigation li.current_page_item a,
	.lz-fitness-time div:nth-child(8) div.days-time-day,
    #innerpage-box .services-post:hover .sec-icn a,
    #innerpage-box .services-post:hover .sec-icn a i
	{
    	color:{$primColor};
    }

    .ht-main-navigation ul ul,
    .ht-featured-link a,
    .ht-counter,
    .ht-testimonial-wrap .bx-wrapper img,
    .ht-blog-post,
	#ht-colophon,
    .woocommerce ul.products li.product:hover, 
    .woocommerce-page ul.products li.product:hover,
    .woocommerce #respond input#submit, 
    .woocommerce a.button, 
    .woocommerce button.button, 
    .woocommerce input.button,
    .woocommerce ul.products li.product:hover .button,
    .woocommerce #respond input#submit.alt, 
    .woocommerce a.button.alt, 
    .woocommerce button.button.alt, 
    .woocommerce input.button.alt,
    .woocommerce div.product .woocommerce-tabs ul.tabs,
    .woocommerce #respond input#submit.alt.disabled, 
    .woocommerce #respond input#submit.alt.disabled:hover, 
    .woocommerce #respond input#submit.alt:disabled, 
    .woocommerce #respond input#submit.alt:disabled:hover, 
    .woocommerce #respond input#submit.alt:disabled[disabled], 
    .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 
    .woocommerce a.button.alt.disabled, 
    .woocommerce a.button.alt.disabled:hover, 
    .woocommerce a.button.alt:disabled, 
    .woocommerce a.button.alt:disabled:hover, 
    .woocommerce a.button.alt:disabled[disabled], 
    .woocommerce a.button.alt:disabled[disabled]:hover, 
    .woocommerce button.button.alt.disabled, 
    .woocommerce button.button.alt.disabled:hover, 
    .woocommerce button.button.alt:disabled, 
    .woocommerce button.button.alt:disabled:hover, 
    .woocommerce button.button.alt:disabled[disabled], 
    .woocommerce button.button.alt:disabled[disabled]:hover, 
    .woocommerce input.button.alt.disabled, 
    .woocommerce input.button.alt.disabled:hover, 
    .woocommerce input.button.alt:disabled, 
    .woocommerce input.button.alt:disabled:hover, 
    .woocommerce input.button.alt:disabled[disabled], 
    .woocommerce input.button.alt:disabled[disabled]:hover,
    .woocommerce .widget_price_filter .ui-slider .ui-slider-handle
	.ht-main-navigation .current_page_item > a,
    .ht-main-navigation .current-menu-item > a,
    .ht-main-navigation .current_page_ancestor > a,
	.ht-main-navigation li:hover > a,
    .page-template-home-template .ht-main-navigation li:hover > a,
    .home.blog .ht-main-navigation li:hover > a,
    .page-template-home-template .ht-main-navigation .current > a,
    .home.blog .ht-main-navigation .current > a,
	.services-post:before,
    .ht-project-member .project-readmore a,
    #blog-box .blog-read-more a,
    .sect-height-appointment-box,
    #innerpage-box .ht-team-member-image,
    .ht-team-social-id a:hover,
    .lz-services-Post-heading:before,
    .lz-services-Post-heading:after,
    .lz-featured-new-heading:before,
    .lz-featured-new-heading:after,
    .lz-about-heading:before,
    .lz-about-heading:after,
    .lz-facility-heading:before,
    .lz-facility-heading:after,
    .lz-team-heading:before,
    .lz-team-heading:after,
    .lz-featured-product-heading:before,
    .lz-featured-product-heading:after, 
    .lz-testimonials-heading:before,
     .lz-testimonials-heading:after,
    .faq-heading:before,
    .faq-heading:after,
    .lz-blog-heading:before,
    .lz-blog-heading:after,
    .tag-heading:before,
    .tag-heading:after, 
    .ht-team-member-image,
    .lz-project-heading:before,
    .lz-project-heading:after,
    .newsletter-form-box input[type='email']
    {
    	border-color: {$primColor};
    }

	#ht-masthead,
    .woocommerce-error, 
    .woocommerce-info, 
    .woocommerce-message{
    	border-top-color: {$primColor};
    }

    .nav-next a:after{
    	border-left-color: {$primColor};
    }

    .nav-previous a:after{
    	border-right-color: {$primColor};
    }

    .ht-active .ht-service-icon{
    	box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 4px {$primColor};
    }

    .woocommerce ul.products li.product .onsale:after{
    	border-color: transparent transparent {$darker_color} {$darker_color};
    }

    .woocommerce span.onsale:after{
    	border-color: transparent {$darker_color} {$darker_color} transparent
    }


    @media screen and (max-width: 1000px){
    	.toggle-bar,
    	.ht-main-navigation .ht-menu{
    		background:{$primColor}
    	}
    }";
	
	
    // heading text colour 
    $headingColor = get_theme_mod('lz_fitness_title_color', '#fe5722');
    $custom_css .= '.title-color{color:'.$headingColor.';}';

	// START SECONDARY COLOR CSS
    $secondary = get_theme_mod('theme_secondary_color', '#ffffff');
    $custom_css .='
   .secondry-bg{
       // background-color:'.$secondary.'
    }	 
	 
	 
	 {border-color: '.$secondary.';}
 
	#ht-newslatter-section .lz-newslatter-heading,
	
	 {color:'.$secondary.';}	 
 
	 
	 {border-color: '.$secondary.';}
	 
	
	 {background-color:'.$secondary.'}
		';
    // ENDS SECONDARY COLOR CSS
	
    // services section
        if(get_theme_mod('lz_fitness_premium_services_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_services_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.png';
        
        $custom_css .= '#services-post-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_services_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#services-post-section {background-color: '.$color.';}';
        }
    }

    // about section
    if(get_theme_mod('lz_fitness_premium_about_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_about_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.png';
        
        $custom_css .= '#ht-about-us-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_about_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#ht-about-us-section {background-color: '.$color.';} .about-post{border-color:'.$color.';}';
        }
    }

    // gym 
    if(get_theme_mod('lz_fitness_premium_gym_section_background') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_gym_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.png';
        
        $custom_css .= '#time-address-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_gym_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#time-address-section {background-color: '.$color.';} .time-post{border-color:'.$color.';}';
        }
    }

    // pricing 
    
     if(get_theme_mod('lz_fitness_premium_pricing_section_background') == 'on' ){
        $custom_css .= '#ht-princing-post-section {background-image: url(\''.get_theme_mod('lz_fitness_pricing_bg_image').'\');background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_pricing_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#ht-princing-post-section, #ht-princing-post-section .ht-featured-icon {background: '.$color.';}#ht-princing-post-section .ht-featured-link a {border-color: '.$color.';color: '.$color.';}';
        }else{
            // $custom_css .= '#ht-princing-post-section {background-image: url(\''. get_template_directory_uri().'/images/man-461195_1280.jpg'.'\');background-position: top;background-size: cover;}';
            $custom_css .= '.ht-plan-block{border-color:'.$primColor.'}';
        }
    }
    // newsletter


     if(get_theme_mod('lz_fitness_premium_newslatter_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_newslatter_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#ht-newslatter-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_newslatter_bg_color', '#f6f6f6');
        if('#f6f6f6' != $color){
            $custom_css .= '#ht-newslatter-section {background-color: '.$color.';}';
        }
    } 
//

// if(get_theme_mod('lz_fitness_premium_newslatter_section_background','on') == 'on' ){
        
//         $bgimg = get_theme_mod('lz_fitness_newslatter_bg_image');
//         $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/newsletter.jpg';
        
//         $custom_css .= '#ht-newslatter-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
//     }else{
//         $color = get_theme_mod('lz_fitness_newslatter_bg_color', '#fff');
//         if('#fff' != $color){
//             $custom_css .= '#ht-newslatter-section {background-color: '.$color.';}';
//         }
//     } 
    //
	//about us heading & text color
     $aboutHeadingColor = get_theme_mod('lz_fitness_aboutus_page_HeadingColor', '#333333');
        $aboutTextColor = get_theme_mod('lz_fitness_aboutus_page_TextColor', '#333333');
    $custom_css .= '#ht-about-us-section .lz-about-heading, .ht-content.lz-about-text h3{color: '.$aboutHeadingColor.';} 
    #ht-about-us-section .ht-section-tagline, #ht-about-us-section ul li, #ht-about-us-section .lz-about-text{color: '. $aboutTextColor.';}';

 // main header background color

$TopHeaderColor = get_theme_mod('lz_fitness_header_TopHeaderbackgroundColor', '#303030');
$MedalHeaderColor = get_theme_mod('lz_fitness_header_MedalHeaderbackgroundColor', '#fff');
$NavHeaderColor = get_theme_mod('lz_fitness_header_NavHeaderbackgroundColor', '#303030');
$maintaglineColor = get_theme_mod('lz_fitness_header_taglineColor', '#fff');
$socialtaglineColor = get_theme_mod('lz_fitness_header_socialtaglineColor', '#fff');
$socialColor = get_theme_mod('lz_fitness_header_socialColor', '#fff');
$headericonColor = get_theme_mod('lz_fitness_header_iconColor', '#8e8e8e');
$headertitleColor = get_theme_mod('lz_fitness_header_titleColor', '#000');
$headerdataColor = get_theme_mod('lz_fitness_header_dataColor', '#000');
$headeremailColor = get_theme_mod('lz_fitness_header_emailColor', '#000');

$headesicnbgClr = get_theme_mod('lz_fitness_header_sicnbgClr', '#f4b601');
$headesicnClr = get_theme_mod('lz_fitness_header_sicnClr', '#fff');

$headerserchbtnbx = get_theme_mod( 'header_serchbtnbx', '#f4b601' );
$headerserchbtntxtbx = get_theme_mod( 'header_serchbtntxtbx', '#fff' );
$headerserchbtntxtbxbrd = get_theme_mod( 'header_serchbtntxtbxbrd', '#fff' );
$headerserchbtntxt = get_theme_mod( 'header_serchbtntxt', '#000' );
$headerserchbtnbxbtnbg = get_theme_mod( 'header_serchbtnbxbtnbg', '#000' );
$headerserchbtnbxbtntxt = get_theme_mod( 'header_serchbtnbxbtntxt', '#fff' );


    $custom_css .= '.header-top {background-color: '.$TopHeaderColor.';} 
.medal-header{background-color: '.$MedalHeaderColor.';}
header#ht-masthead{background-color: '.$NavHeaderColor.';}
.ht-site-description a{color: '.$maintaglineColor.';}
.header-social-links{color: '.$socialtaglineColor.';}
.header-social-links a{color: '.$socialColor.';}
#ht-masthead .header-right-box i{color: '.$headericonColor.';}
.header-right-box .themetext{color: '.$headertitleColor.';}
.header-right-box .data{color: '.$headerdataColor.';}
.header-right-box .mailto a{color: '.$headeremailColor.';}
header button#formButton{background-color: '.$headesicnbgClr.';}
header button#formButton{color: '.$headesicnClr.';}

header .top-form form{background-color: '.$headerserchbtnbx.';}
header .top-form form input[type="text"]{background-color: '.$headerserchbtntxtbx.';}
header .top-form form input[type="text"]{border-color: '.$headerserchbtntxtbxbrd.'!important;}
header .top-form form input[type="text"]{color: '.$headerserchbtntxt.';}
header .top-form form input[type="submit"],
header .top-form form input[type="button"]{background-color: '.$headerserchbtnbxbtnbg.';}
header .top-form form input[type="submit"], header .top-form form input[type="button"]{color: '.$headerserchbtnbxbtntxt.';}

    ';


 //Header Menu Color
     $headermenuColor = get_theme_mod('lz_fitness_headermenu_color', '#fff');
     $headersubmenuColor = get_theme_mod('lz_fitness_headersubmenu_color', '#fff');
     $headersubmenubgColor = get_theme_mod('lz_fitness_headersubmenubg_color', '#272727');
     $custom_css .= '
     .ht-main-navigation li a{color: '.$headermenuColor.';}

     .mainmenu .sub-menu li a{color: '.$headersubmenuColor.';}
     .ht-main-navigation ul ul{background-color: '.$headersubmenubgColor.';}';

    //Footer background color
    $footerbgColor = get_theme_mod('lz_fitness_footer_bg_color', '#2e2e2e');
     $footercopyrighttextColor = get_theme_mod('lz_fitness_footer_copyrighttext_color', '#AAA');
    $footercopyrightbgColor = get_theme_mod('lz_fitness_footer_copyrightbg_color', '#2a2a2a');
    $custom_css .= '#ht-top-footer {background-color: '.$footerbgColor.';}
    #ht-bottom-footer {color: '.$footercopyrighttextColor.';}
    #ht-bottom-footer {background-color: '.$footercopyrightbgColor.';}';

       //Inner page title color
    $innertitleColor = get_theme_mod('lz_fitness_template_innerpage_titlecolor', '#fff');
    $custom_css .= '.ht-main-title {color: '.$innertitleColor.';}';



// Inner contact us page background color
    $ContactusdetailtitleColor = get_theme_mod('lz_fitness_contactus_detailtitleColor', '#444');
    $ContactusdetailinfoColor = get_theme_mod('lz_fitness_contactus_detailinfoColor', '#444');
    $ContactusdetailemailColor = get_theme_mod('lz_fitness_contactus_detailemailColor', '#f4b601');
    $ContactusformtitleColor = get_theme_mod('lz_fitness_contactus_formtitleColor', '#fff');
    $ContactusformbgColor = get_theme_mod('lz_fitness_contactus_formbgColor', '#f4b601');
    $ContactusformbtnColor = get_theme_mod('lz_fitness_contactus_formbtnColor', '#f4b601');
    $ContactussocialtitleColor = get_theme_mod('lz_fitness_contactus_SocialtitleColor', '#303030');
    $ContactussocialColor = get_theme_mod('lz_fitness_contactus_SocialTitleColor', '#303030');
    $custom_css .= '.contact-page-address .ht-section-tagline, .contact-page-address .ht-section-tagline span {color: '.$ContactusdetailtitleColor.';}
    .contact-page-address .contact-info {color: '.$ContactusdetailinfoColor.';}
    .contact-page-address a {color: '.$ContactusdetailemailColor.';}
    #ht-contactus-wrap h4 {color: '.$ContactusformtitleColor.';}
    #ht-contactus-wrap .contact-page-form {background-color: '.$ContactusformbgColor.';}
    #ht-contactus-wrap input[type="submit"] {color: '.$ContactusformbtnColor.';}
    #ht-contactus-wrap h3 {color: '.$ContactussocialtitleColor.';}
    #ht-contactus-wrap .contact-sm-links li a {color: '.$ContactussocialColor.';}';

    // slider color
    $slidertitleColor = get_theme_mod('lz_fitness_slider_TitleColor', '#fff');
     $slidersubtitlehighlightColor = get_theme_mod('lz_fitness_slider_HighlightSubTitleColor', '#f4b601');
    $slidersubtitleColor = get_theme_mod('lz_fitness_slider_SubtitleColor', '#fff');
    $sliderbuttontextColor = get_theme_mod('lz_fitness_slider_buttontextColor', '#fff');
    $sliderbtnbgColor = get_theme_mod('lz_fitness_slider_buttonbgColor', '#f4b601');
    $custom_css .= '.ht-slide-cap-title span, .ht-slide-cap-title {color: '.$slidertitleColor.';}
    .ht-slide-cap-desc span {color: '.$slidersubtitlehighlightColor.';}
    .ht-slide-cap-desc {color: '.$slidersubtitleColor.';}
    .ht-slide-cap-descmore a {color: '.$sliderbuttontextColor.';}
    .ht-slide-cap-descmore a {background-color: '.$sliderbtnbgColor.';}';

// services  section heading & text color
    $servicesHeadingColor = get_theme_mod('lz_services_HeadingColor', '#161616');
    /*if($primColor == $servicesHeadingColor){
        $servicesHeadingColor = $headingColor;
    }*/
    $servicesTitleColor = get_theme_mod('lz_services_TitleColor', '#161616');
    $servicesbtntextColor = get_theme_mod('lz_services_btntextColor', '#141414');
    $servicesTextColor = get_theme_mod('lz_services_TextColor', '#383838');
    $custom_css .= '.lz-services-Post-heading{color: '.$servicesHeadingColor.';}
    #services-post-section .services-post h5{color: '.$servicesTitleColor.';}
    #services-post-section .services-readmore a.btn{color: '.$servicesbtntextColor.';}
    #services-post-section .services-excerpt {color: '.$servicesTextColor.';}';

	//team heading & text color
     $teamHeadingColor = get_theme_mod('lz_fitness_team_HeadingColor', '#161616');
    $teamTextColor = get_theme_mod('lz_fitness_team_TextColor', '#323232');
    $teamTitleColor = get_theme_mod('lz_fitness_team_TitleColor', '#161616');
    $teamDeseColor = get_theme_mod('lz_fitness_team_DesColor', '#f4b601');
    $teamSocialColor = get_theme_mod('lz_fitness_team_SocialColor', '#4b4b4b');
    $teamSocialborderColor = get_theme_mod('lz_fitness_team_SocialborderColor', '#4b4b4b');
    $custom_css .= 'h2.ht-section-title.lz-team-heading{color: '.$teamHeadingColor.';} 
    .ht-section-tagline.lz-team-text,.ht-team-data{color: '. $teamTextColor.';} 
    .ht-team-member h6{color: '. $teamTitleColor.';}
    .ht-team-social-id a{color: '. $teamSocialColor.';}
    .ht-team-social-id a{border-color: '. $teamSocialborderColor.';}
    #ht-team-section .team-member-designation,  .ht-team-member .ht-team-designation {color: '. $teamDeseColor.';}';


    //faq
    $faqHeadingColor = get_theme_mod('lz_fitness_faq_HeadingColor', '#161616');
    $faqSubHeadingColor = get_theme_mod('lz_fitness_faq_TitleColor', '#161616');
    $faqTextColor = get_theme_mod('lz_fitness_faq_TextColor', '#333333');
    $custom_css .= '.faq-heading{color: '.$faqHeadingColor.';} 
      .faq h6{color: '.$faqSubHeadingColor.';} 
      .faq-description {color: '.$faqTextColor.';}';
    
	//gym heading & text color
    // timing and address section
     $timingHeadingColor = get_theme_mod('lz_fitness_gym_HeadingColor', '#323232');
     $timingTextColor = get_theme_mod('lz_fitness_gym_TextColor', '#232222');
    $custom_css .= '.lz-gym-heading{color: '.$timingHeadingColor.';} 
    .lz-fitness-time .days-time-day-time{color: '.$timingTextColor.';}';
    //


	//appointment heading & text color

    $appointmentHeadingColor = get_theme_mod('lz_fitness_appointment_HeadingColor', '#161616');
    $appointmentTextColor = get_theme_mod('lz_fitness_appointment_TextColor', '#333333');
    $appointmentSubTextColor = get_theme_mod('lz_fitness_appointment_SubTextColor', '#333333');
    $appointmentIconColor = get_theme_mod('lz_fitness_appointment_IconColor', '#303030');
    $appointmentSocialColor = get_theme_mod('lz_fitness_appointment_SocialColor', '#303030');
    $appointmentcontactboxbgColor = get_theme_mod('lz_fitness_appointment_contactbgColor', '#f4b601');
    $appointmentcontactboxiconColor = get_theme_mod('lz_fitness_appointment_contactbgiconColor', '#f4b601');

    $appointmentformbgColor = get_theme_mod('lz_fitness_appointment_formbgColor', '#303030');
    $appointmenttagColor = get_theme_mod('lz_fitness_appointment_tagColor', '#fff');
    $custom_css .= '.lz-appointment-heading{color: '.$appointmentHeadingColor.';} 
    .ht-section-tagline.lz-appointment-text{color: '. $appointmentTextColor.';} .appointment-content{color: '. $appointmentSubTextColor.';} 
    .appointment-icon span.fa{color: '. $appointmentIconColor.';}
    .contact-sm-links li a{color: '. $appointmentSocialColor.';}
    .sect-height-appointment-box{background-color: '. $appointmentformbgColor.';}
    .tag-heading{color: '.$appointmenttagColor.';}
    .sect-height-appointment-section{background-color: '. $appointmentcontactboxbgColor.';}
    .sect-height-appointment-section:after{background-color: '. $appointmentcontactboxiconColor.';}';

	//blog heading & text color
     $blogHeadingColor = get_theme_mod('lz_fitness_blog_HeadingColor', '#161616');
        $blogTitleColor = get_theme_mod('lz_fitness_blog_TitleColor', '#161616');
        $blogTextColor = get_theme_mod('lz_fitness_blog_TextColor', '#333333');
        $blogDateColor = get_theme_mod('lz_fitness_blog_DateColor', '#161616');
        $blogCommentColor = get_theme_mod('lz_fitness_blog_CommentColor', '#3b3b3b');
    $custom_css .= '.lz-blog-heading {color: '.$blogHeadingColor.';}  
    .ht-blog-excerpt h5 a {color: '. $blogTitleColor.';} 
    .ht-blog-excerpt p, .ht-blog-excerpt .post-right span{color: '. $blogTextColor.';}
    .ht-blog-date{color: '. $blogDateColor.';}
    .ht-blog-comment{color: '. $blogCommentColor.';}';

	//plan heading & text color
    $planHeadingColor = get_theme_mod('lz_fitness_plan_HeadingColor', '#2b2b2b');
     $planTextColor = get_theme_mod('lz_fitness_plan_TextColor', '#4d4d4d');
    $custom_css .= '#ht-princing-post-section .lz-plan-heading {color: '.$planHeadingColor.';} #pricing-page .ht-princing-excerpt ul li{color: '.$planTextColor.';}
    ';

	//newslatter heading & text color
     $newslatterHeadingColor = get_theme_mod('lz_fitness_newslatter_HeadingColor', '#2b2b2b');
          $newslatterTextColor = get_theme_mod('lz_fitness_newslatter_TextColor', '#424242');

    $custom_css .= '#ht-newslatter-section .ht-section-title{color: '.$newslatterHeadingColor.';} .ht-section-tagline.lz-newslatter-text {color: '.$newslatterTextColor.';}
    ';

    // $newslatterHeadingColor = get_theme_mod('lz_fitness_newslatter_HeadingColor', $primColor);
    // if($primColor == $newslatterHeadingColor){
    //     $newslatterHeadingColor = $headingColor;
    // }
    // $newslatterTextColor = get_theme_mod('lz_fitness_newslatter_TextColor', '#333333');
    // //$custom_css .= '.lz-newslatter-heading{color: '.$newslatterHeadingColor.';} .lz-newslatter-text{color: '.$newslatterTextColor.';}';

    $custom = get_post_custom( isset($post->ID) );
    $image_id = get_post_meta( isset($post->ID), '_listing_image_id', true );
    $thumbnail_html = wp_get_attachment_image_src( $image_id, 'larger');

    // echo '<pre />'; print_r($custom);
    if(!empty($custom['useColor']) && $custom['useColor'][0]==1){
        if( isset( $custom['page_bg_color'][0] ) ){
            $custom_css .= '#innerpage-box{background-color:'.$custom['page_bg_color'][0].';}';
        }
    }elseif(!empty($custom['useColor']) && $custom['useColor'][0]==0){
        if( isset( $custom['_listing_image_id'][0]) ){
            $custom_css .= '#innerpage-box{background-image: url(\''.$thumbnail_html[0].'\');background-position: center;background-attachment: fixed;background-origin: content-box;background-size: cover;}';
        }
    }else {
        if( isset( $custom['_listing_image_id'][0]) ){
            $custom_css .= '#innerpage-box{background:none}';
        }
    }

    $custom_css .='.border{border:1px solid #fff;}';

    return punte_css_strip_whitespace($custom_css);
}