<?php
/**
 * @package LZ Fitness Premium
 */
function total_dymanic_styles(){
    global $post;
	$primColor = get_theme_mod( 'lz_fitness_template_color', '#69489d' );
     $ToggleColor = get_theme_mod('lz_fitness_header_ToggleColor', '#69489d');
     $lz_fitness_header_BorderRespColor = get_theme_mod('lz_fitness_header_BorderRespColor', '#69489d');
        $NavHeaderColor = get_theme_mod('lz_fitness_header_NavHeaderbackgroundColor', '#ffffff');


	// $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', '21');
    // echo '<br> text font '.
	$textFontRow = get_theme_mod('lz_fitness_general_text_font', '1');
    $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-section-title span, .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,
    ul.mainmenu li a{font-family: $headingFont; }

     .bottom-header { 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: #ffffff;}
    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-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,
    .post-right .blog-read-more a,
    .pagingation .current,
    .pagingation a:hover,
    .ht-appintment-member-wrap:after,
    .ht-main-navigation ul ul,
    #blog-section .ht-blog-excerpt,
    .ht-blog-excerpt:before,
    .featured-product .add-to-cart a:hover,
    section#ht-about-us-section .readmore a:hover,
    .featured-link a:hover,
    .single-product-page h1.ht-mains-title,
    .ht-princing-text

    {
    	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,
	.featured-post:after,
	.featured-post:before,
	.featured-link a,
    .breadcrumbbox a,
    #ht-colophon .social-profile-icons a:hover,
    h6.secondry-text,
    #ht-about-us-section ul li:before,
    #ht-team-section .team-member-designation,
    #innerpage-box .team-member-designation,
    .pluses.text-right i.fa.fa-plus,
    .ht-section-tagline.lz-newslatter-text b,
    #content-box ul li:before,
    .header-menu-box ul li i,
    .header-social-links span.fa:hover,
    .page-template-home-template .ht-main-navigation .current_page_item > a,
    .ht-main-navigation li.current_page_item a,
    .ht-slide-cap-title span,
    #featured-post-section .featured-post h5:hover,
    section#featured-post-section span.fa:hover,
    section#ht-about-us-section .readmore a,
    .ht-team-social-id a:hover,
    #pricing-page .plan-amount,
    .pricingplan-amount,
    .ctrl-btn.pro-next:hover,
    .ctrl-btn.pro-prev:hover,
    .featured-product .add-to-cart a,
    .price ins span.woocommerce-Price-amount.amount,
section#ht-appintment-section .ht-appintment-member-wrap input[type='submit']:hover,
section#ht-event-section ul li,
main#innerpage-box .ht-event-date.text-center ul li,
span.edit-link a,
#ht-contactus-wrap input[type='submit'],
main#innerpage-box span.fa:hover,
#blog-box .blog-read-more a,
.socialMedia a:hover,
div#commentsAdd a,
span.reply a,
span.comment-meta a,
.tags a,
	.lz-fitness-time div:nth-child(8) div.days-time-day
		
	
	{
    	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,
	.featured-post:before,
    #blog-box .blog-read-more a,
    .newsletter-form-box input[type='email'],
    section#ht-about-us-section .readmore a,
    .ht-team-social-id a:hover,
    #pricing-page .ht-plan-block,
    .featured-product .add-to-cart a,
    .featured-product .add-to-cart a:after,
    .ht-team-member-image img,
    .featured-link a:after,
    .contacts-sm-links li:hover,
    #blog-box .blog-read-more a,
    section#ht-about-us-section .readmore a:after
    {
    	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}
    	}
    }

    @media screen and (max-width: 768px){
        .navigation.menuopen{
            background:{$NavHeaderColor}
        }
        .hamburger-menus span{
            background:{$ToggleColor}
        }
        .navigation{
            border-color:{$lz_fitness_header_BorderRespColor} !important
        }
    }";
	
	
    // 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
	
    if(get_theme_mod('lz_fitness_premium_featured_section_background') == 'on' ){
    	$custom_css .= '#featured-post-section {background-image: url(\''.get_theme_mod('lz_fitness_featured_bg_image').'\');background-position: top;background-size: cover;}';
    }else{
    	$color = get_theme_mod('lz_fitness_featured_bg_color', '#ffffff');
    	if('#ffffff' != $color){
    		$custom_css .= '#featured-post-section, .ht-featured-icon {background-color: '.$color.';}
    		.ht-featured-link a {border-color: '.$color.';color: '.$color.';}
             #featured-post-section, .ht-featured-icon{}
    		';
    	}else{
    		$custom_css .= '#featured-post-section {background-color: '.$color.';color:#666;}';
    	}
    }
    //about new
    if(get_theme_mod('lz_fitness_premium_aboutus_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_about_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $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 section
    // if(get_theme_mod('lz_fitness_premium_aboutus_section_background') == '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.';}';
    //     }
    // }
    //new about
    // event section
    if(get_theme_mod('lz_fitness_premium_causes_section_background') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_causes_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.png';
        
        $custom_css .= 'section#ht-event-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_causes_bg_color', '#efefef');
        if('#efefef' != $color){
            $custom_css .= 'section#ht-event-section {background-color: '.$color.';} .about-post{border-color:'.$color.';}';
        }
    }
    // Team section 
    if(get_theme_mod('lz_fitness_premium_team_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_team_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#ht-team-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_team_bg_color', '#f6f6f6');
        if('#f6f6f6' != $color){
            $custom_css .= '#ht-team-section {background-color: '.$color.';}';
        }
    } 

    // Video section
        if(get_theme_mod('lz_fitness_premium_video_section_background','on') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_video_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/video-bg.jpg';
        
        $custom_css .= '#video-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_video_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#video-section {background-color: '.$color.';} .about-post{border-color:'.$color.';}';
        }
    }
    // Gallary section 
    if(get_theme_mod('lz_fitness_premium_gallery_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_gallery_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= 'section#ht-gallery-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_gallery_bg_color', '#f6f6f6');
        if('#f6f6f6' != $color){
            $custom_css .= 'section#ht-gallery-section {background-color: '.$color.';}';
        }
    } 
    
    // Featured Product section
        if(get_theme_mod('lz_fitness_premium_featuredproduct_section_background','of') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_featuredproduct_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.png';
        
        $custom_css .= '#featured-product-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_featuredproduct_bg_color', '#efefef');
        if('#efefef' != $color){
            $custom_css .= '#featured-product-section {background-color: '.$color.';} .about-post{border-color:'.$color.';}';
        }
    }

    // Featured section 
    if(get_theme_mod('lz_fitness_premium_featured_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_featured_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#featured-post-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_featured_bg_color', '#ffffff');
        if('#ffffff' != $color){
            $custom_css .= '#featured-post-section {background-color: '.$color.';}';
        }
    } 
    //facility-section
    if(get_theme_mod('lz_fitness_premium_facility_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_facility_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg'; 
        
        $custom_css .= '#facility-content-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_facility_bg_color', '#f6f6f6');
        if('#f6f6f6' != $color){
            $custom_css .= '#facility-content-section {background-color: '.$color.';}';
        }
    } 
    // Testimonial section
    if(get_theme_mod('lz_fitness_premium_testimonials_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_testimonials_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#testimonials-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_testimonials_bg_color', '#d5337d');
        if('#d5337d' != $color){
            $custom_css .= '#testimonials-section {background-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.';}';
        }
    }
    //appointment
    if(get_theme_mod('lz_fitness_premium_appointment_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_appointment_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#ht-appintment-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_appointment_bg_color', '#d5337d');
        if('#d5337d' != $color){
            $custom_css .= '#ht-appintment-section {background-color: '.$color.';}';
        }
    } 

    //blog
    if(get_theme_mod('lz_fitness_premium_blog_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_blog_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= '#blog-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}'; 
    }else{
        $color = get_theme_mod('lz_fitness_blog_bg_color', '#fff');
        if('#fff' != $color){
            $custom_css .= '#blog-section {background-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_lz_newslatter_section_background','off') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_lz_newslatter_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/default-gray.jpg';
        
        $custom_css .= 'section#ht-newsletter-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_lz_newslatter_bg_color', '#f1f1f1');
        if('#f1f1f1' != $color){
            $custom_css .= 'section#ht-newsletter-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', '#ffffff');
        $aboutSpanHeadingColor = get_theme_mod('lz_fitness_aboutus_page_SpanHeadingColor', '#2b2b2b');
        $aboutTextColor = get_theme_mod('lz_fitness_aboutus_page_TextColor', '#2b2b2b');
        $aboutButtonTextColor = get_theme_mod('lz_fitness_aboutus_page_ButtonTextColor', '#69489d');
        $aboutBorderColor = get_theme_mod('lz_fitness_aboutus_page_BorderColor', '#69489d');
        //$aboutBackgroundColor = get_theme_mod('lz_fitness_aboutus_page_BackgroundColor', '#ffffff');
        $aboutbeforeborderColor = get_theme_mod('lz_fitness_aboutus_page_beforafterColor', '#aeaeae');
        $aboutspanbHeadingColor = get_theme_mod('lz_fitness_aboutus_spanbHeadingColor', '#69489d');
        $spanoulineHeadingColor = get_theme_mod('lz_fitness_aboutus_spanoulineHeadingColor', '#69489d');

    $custom_css .= '#ht-about-us-section .ht-section-title, .ht-content.lz-about-text h3{color: '.$aboutHeadingColor.';} 
    section#ht-about-us-section .ht-section-tagline, #ht-about-us-section ul li,.ht-content.lz-about-text{color: '. $aboutTextColor.';} .lz-fitness-about-subheading{color: '.$aboutSpanHeadingColor.';} section#ht-about-us-section .readmore a{color: '.$aboutButtonTextColor.';} section#ht-about-us-section .readmore a, section#ht-about-us-section .readmore a:after{border-color: '.$aboutBorderColor.';}.about-box:before, .about-box:after{border-color: '.$aboutbeforeborderColor.';}#ht-about-us-section .ht-section-title{background-color: '.$aboutspanbHeadingColor.';} #ht-about-us-section .ht-section-title{outline-color: '.$spanoulineHeadingColor.';}';

// gallery section

    $galleryHeadingColor = get_theme_mod('lz_fitness_gallery_HeadingColor', '#ffffff');
    $gallerySpanColor = get_theme_mod('lz_fitness_gallery_TextColor', '#2b2b2b');
    $galleryspanBackgroundColor = get_theme_mod('lz_fitness_gallery_spanBackgroundColor', '#69489d');
    $galleryspanoulineHeadingColor = get_theme_mod('lz_fitness_gallery_spanoulineHeadingColor', '#69489d');

    $custom_css .= 'h2.ht-section-title.lz-gallery-heading{color: '.$galleryHeadingColor.';} section#ht-gallery-section .lz-gallery-subheading {color: '. $gallerySpanColor.';} h2.ht-section-title.lz-gallery-heading{background-color: '. $galleryspanBackgroundColor.';}h2.ht-section-title.lz-gallery-heading{outline-color: '. $galleryspanoulineHeadingColor.';}';

    //Video section
    $videoHeadingColor = get_theme_mod('lz_fitness_video_HeadingColor', '#ffffff');
    $spanvideoHeadingColor = get_theme_mod('lz_fitness_video_SpanHeadingColor', '#ffffff');

    $spanBackgroundColor = get_theme_mod('lz_fitness_video_spanBackgroundColor', '#69489d');
    $spanoulineHeadingColor = get_theme_mod('lz_fitness_video_spanoulineHeadingColor', '#69489d');
    $spanvideoSubTitle = get_theme_mod('lz_fitness_videoSubTitleColor', '#ffffff');
    

    $custom_css .= '#video-section .ht-section-title {color: '.$videoHeadingColor.';} #video-section .ht-section-title span{color: '.$spanvideoHeadingColor.';}#video-section .ht-section-title{background-color: '.$spanBackgroundColor.';}#video-section .ht-section-title{outline-color: '.$spanoulineHeadingColor.';}.lz-video-text{color: '.$spanvideoSubTitle.';}'; 


 // main header background color
    //$HeaderHeadingColor = get_theme_mod('lz_fitness_header_backgroundColor', '#d6c6ba');
    // $MHeaderHeadingColor = get_theme_mod('lz_fitness_header_TbackgroundColor', '#d6c6ba');
    $MHeaderTextColor = get_theme_mod('lz_fitness_header_TextColor', '#000000');
    $MHeaderlefticoncolor = get_theme_mod('lz_fitness_header_lefticoncolor', '#69489d');
    $MHeaderSocialIconColor = get_theme_mod('lz_fitness_header_SocialIconColor', '#000000');
   $MHeaderBottomColor = get_theme_mod('lz_fitness_header_BottomColor', '#ffffff');



$headermenuColor = get_theme_mod('lz_fitness_headermenu_color', '#000000');
$headercurrentmenuColor = get_theme_mod('lz_fitness_headercurrentmenu_color', '#69489d');
$headermenuhoverColor = get_theme_mod('lz_fitness_headermenuhover_color', '#69489d');
$headersubmenuColor = get_theme_mod('lz_fitness_headersubmenu_color', '#fff');
$headerdropdownbgColor = get_theme_mod('lz_fitness_headerdropdownbg_color', '#69489d');
     
$headersubmenuhoverColor = get_theme_mod('lz_fitness_headersubmenuhover_color', '#69489d');
     $headersubmenuarrowhoverColor = get_theme_mod('lz_fitness_headersubmenuarrowhover_color', '#69489d');

    $headercurrentsubmenuColor = get_theme_mod('lz_fitness_headercurrentsubmenu_color', '#69489d');
    $headercurrentsubmenubgColor = get_theme_mod('lz_fitness_headercurrentsubmenubg_color', '#ffffff');

    $custom_css .= '.header-menu-box ul li, .header-menu-box ul li a{color: '.$MHeaderTextColor.';} 
    .header-menu-box ul li i{color: '.$MHeaderlefticoncolor.';} 
    .header-social-links a{color: '.$MHeaderSocialIconColor.';} 
    .bottom-header{background-color: '.$MHeaderBottomColor.';}


    ul.mainmenu li a,
    .menu-click i{color: '.$headermenuColor.';}
ul.mainmenu li.current_page_item a, 
.page-template-home-template .ht-main-navigation .current_page_item > a{color: '.$headercurrentmenuColor.';}
ul.mainmenu li a:hover{color: '.$headermenuhoverColor.';}

    
.header.site-header ul.sub-menu li a{color: '.$headersubmenuColor.';}
ul.sub-menu{background-color: '.$headerdropdownbgColor.';}
.header.site-header ul.sub-menu li a:hover{color: '.$headersubmenuhoverColor.' !important;}
ul.mainmenu ul.sub-menu li a:before {color: '.$headersubmenuarrowhoverColor.';}

ul.sub-menu li.current_page_item a{color: '.$headercurrentsubmenuColor.' !important;}
ul.sub-menu li.current_page_item a,
.header.site-header ul.sub-menu li a:hover{background-color: '.$headercurrentsubmenubgColor.' !important;}';

// inner page title color
$innerpagetitleColor = get_theme_mod('lz_fitness_template_allinnerpagetitlecolor', '#ffffff');
$custom_css .= '.ht-main-title{color: '.$innerpagetitleColor.';}';
// footer color
$topfooterbgcolor = get_theme_mod('lz_fitness_template_topfooterbgcolor', '#69489d');
$bottomfooterbgcolor = get_theme_mod('lz_fitness_template_bottomfooterbgcolor', '#69489d');
$bottomCopyrightcolor = get_theme_mod('lz_fitness_template_Copyrighttcolor', '#ffffff');

$bottomfooterttitlecolor = get_theme_mod('lz_fitness_template_footerttitlecolor', '#ffffff');
$bottomfootertextcolor = get_theme_mod('lz_fitness_template_footertextcolor', '#ffffff');
$bottomfootertextlinkcolor = get_theme_mod('lz_fitness_template_footertextlinkcolor', '#ffffff');
$bottomfootersocialcolor = get_theme_mod('lz_fitness_template_footertextsocialcolor', '#ffffff');
$bottomfootertbbordercolor = get_theme_mod('lz_fitness_template_footertbbordercolor', '#cccccc');

$custom_css .= '#ht-top-footer {background-color: '.$topfooterbgcolor.';} #ht-bottom-footer{background-color: '.$bottomfooterbgcolor.';} #ht-bottom-footer{color: '.$bottomCopyrightcolor.';} #ht-colophon .widget-title{color: '.$bottomfooterttitlecolor.';}footer#ht-colophon p, .ht-footer table tr{color: '.$bottomfootertextcolor.';}footer#ht-colophon ul li a{color: '.$bottomfootertextlinkcolor.';}.social-profile-icons ul li i{color: '.$bottomfootersocialcolor.';}.ht-top-footer,.bottom-footer-box{border-color: '.$bottomfootertbbordercolor.';}';

//slider heading & text color
    $sliderHeadingColor = get_theme_mod('lz_fitness_slider_HeadingColor', '#000000');
    $sliderSubtextColor = get_theme_mod('lz_fitness_slider_TextColor', '#69489d');
    $sliderSubtextssColor = get_theme_mod('lz_fitness_slider_TextssColor', '#000000');
    $custom_css .= '.ht-slide-cap-title {color: '.$sliderHeadingColor.';} 
    .ht-slide-cap-title span {color: '. $sliderSubtextColor.';} .ht-slide-cap-desc.animated.fadeInDown {color: '. $sliderSubtextssColor.';}';

	//facility heading & text color
     $facilityHeadingColor = get_theme_mod('lz_fitness_facility_MainHeadingColor', '#ffffff');
        $facilityboldColor = get_theme_mod('lz_fitness_facility_SubHeadingColor', '#2b2b2b');
         $facilityTitleColor = get_theme_mod('lz_fitness_facility_TitleColor', '#ffffff');
          $facilityTextColor = get_theme_mod('lz_fitness_facility_TextColor', '#ffffff');

          $facilitySubHeadingColor = get_theme_mod('lz_fitness_facilitycolor_color', '#2b2b2b');
          $facilityspanHeadingColor = get_theme_mod('lz_fitness_facility_spanHeadingColor', '#69489d');
          $facilityspanoulineHeadingColor = get_theme_mod('lz_fitness_facility_spanoulineHeadingColor', '#69489d');

    $custom_css .= 'h2.ht-section-title.lz-offer-heading {color: '.$facilityHeadingColor.';} 
    section#facility-content-section h5 {color: '. $facilityTitleColor.';}.facility-post.text-center .details p{color: '. $facilityTextColor.';}section#facility-content-section .lz-offer-subheading{color: '. $facilitySubHeadingColor.';}h2.ht-section-title.lz-offer-heading{background-color: '. $facilityspanHeadingColor.';}h2.ht-section-title.lz-offer-heading{outline-color: '. $facilityspanoulineHeadingColor.';}'; 

	// featured heading & text color
 $featuredHeadingColor = get_theme_mod('lz_fitness_featured_HeadingColor', '#ffffff');
  $featuredspanHeadingColor = get_theme_mod('lz_fitness_featured_spanHeadingColor', '#69489d');
  $featuredTextColor = get_theme_mod('lz_fitness_featured_TextColor', '#212121');
 $featuredMainHeadingColor = get_theme_mod('lz_fitness_featured_mMainHeadingColor', '#212121');
 $featuredMainIconColor = get_theme_mod('lz_fitness_featured_MainHeadingColor', '#757575');

$featuredMainoulineColor = get_theme_mod('lz_fitness_featured_spanoulineHeadingColor', '#69489d');
$featuredmMainHeadingsubheadingColor = get_theme_mod('lz_fitness_featured_mMainHeadingsubheadingColor', '#212121');


    $custom_css .= 'h2.ht-section-title.lz-featured-heading {color: '.$featuredHeadingColor.';} section#featured-post-section p {color: '.$featuredTextColor.';}#featured-post-section .featured-post h5{color: '.$featuredMainHeadingColor.';} section#featured-post-section span.fa{color: '.$featuredMainIconColor.';}h2.ht-section-title.lz-featured-heading{background-color: '.$featuredspanHeadingColor.';}h2.ht-section-title.lz-featured-heading{outline-color: '.$featuredMainoulineColor.';}#featured-post-section .lz-featured-subheading{color: '.$featuredmMainHeadingsubheadingColor.';}';

//Event color
     $EventHeadingColor = get_theme_mod('lz_fitness_causes_HeadingColor', '#ffffff');
     $EventSpanHeadingColor = get_theme_mod('lz_fitness_causes_SpanHeadingColor', '#2b2b2b');
     $EventTitleColor = get_theme_mod('lz_fitness_causes_TitleColor', '#212121');
    $EventTextColor = get_theme_mod('lz_fitness_causes_TextColor', '#212121');
    $DateTextColor = get_theme_mod('lz_fitness_causes_DateTextColor', ' #69489d');
    //$DayTextColor = get_theme_mod('lz_fitness_causes_DayTextColor', '#d5337d');
    $YeartimeTextColor = get_theme_mod('lz_fitness_causes_spanDayTextColor', '#a1a1a1');
    $ButtonTextColor = get_theme_mod('lz_fitness_causes_ButtonTextColor', '#69489d');
    $ButtonborderColor = get_theme_mod('lz_fitness_causes_ButtonborderColor', '#69489d');
    $EventboxColor = get_theme_mod('lz_fitness_causes_BoxColor', '#ffffff');
     $EventbuttonhoverrColor = get_theme_mod('lz_fitness_causes_ButtonHoverColor', '#69489d');
     $EventbuttonhoverrtextColor = get_theme_mod('lz_fitness_causes_ButtonHovertextColor', '#ffffff');
     $EventspanBackgroundColor = get_theme_mod('lz_fitness_causes_spanBackgroundColor', '#69489d');
       $EventspanoulineHeadingColor = get_theme_mod('lz_fitness_causes_spanoulineHeadingColor', '#69489d');
       
        
    $custom_css .= 'h2.ht-section-title.lz-causes-heading {color: '.$EventHeadingColor.';}
.lz-causes-text{color: '. $EventSpanHeadingColor.';} section#ht-event-section h6.event-name a {color: '. $EventTitleColor.';}section#ht-event-section p{color: '. $EventTextColor.';}section#ht-event-section ul li{color: '. $DateTextColor.';}.ht-event-date.text-center span{color: '. $YeartimeTextColor.';}.featured-link a{color: '. $ButtonTextColor.';}.featured-link a, .featured-link a:after{border-color: '. $ButtonborderColor.';}.causes-main-box{background-color: '. $EventboxColor.';}.featured-link a:hover{background-color: '. $EventbuttonhoverrColor.';}.featured-link a:hover{color: '. $EventbuttonhoverrtextColor.';}h2.ht-section-title.lz-causes-heading{background-color: '. $EventspanBackgroundColor.';}h2.ht-section-title.lz-causes-heading{outline-color: '. $EventspanoulineHeadingColor.';}';



    // featured product section heading & text color
    $featuredproductHeadingColor = get_theme_mod('lz_fitness_featured_product_HeadingColor', '#ffffff');
    $featuredproductSpanHeadingColor = get_theme_mod('lz_fitness_featured_product_SpanHeadingColor', '#2b2b2b');
    $featuredproductNameColor = get_theme_mod('lz_fitness_featured_product_NameColor', '#212121');
    $featuredproductPricedelColor = get_theme_mod('lz_fitness_featured_product_pricedelColor', '#212121');
    $featuredproductPriceinsColor = get_theme_mod('lz_fitness_featured_product_priceinsColor', '#69489d');
     $featuredproductbtntextColor = get_theme_mod('lz_fitness_featured_product_btntextColor', '#69489d');
    $featuredproductbtnborderColor = get_theme_mod('lz_fitness_featured_product_btnborderColor', '#69489d');
    $featuredproductbtnborderafterColor = get_theme_mod('lz_fitness_featured_product_btnborderafterColor', '#69489d');
    $featuredproductspanBackgroundColor = get_theme_mod('lz_fitness_featured_product_spanBackgroundColor', '#69489d');
    $featuredproductspanoulineHeadingColor = get_theme_mod('lz_fitness_featured_product_spanoulineHeadingColor', '#69489d');
    
    $custom_css .= '.lz-featured-product-heading{color: '.$featuredproductHeadingColor.';}
    .lz-featured-product-subheadingt {color: '.$featuredproductSpanHeadingColor.';}
    .total-product-title-wrap h6{color: '.$featuredproductNameColor.';}
    .price del span.woocommerce-Price-amount.amount{color: '.$featuredproductPricedelColor.';}
    .price ins span.woocommerce-Price-amount.amount{color: '.$featuredproductPriceinsColor.';}
    .featured-product .add-to-cart a{color: '.$featuredproductbtntextColor.';}
    .featured-product .add-to-cart a{border-color: '.$featuredproductbtnborderColor.';}
    .featured-product .add-to-cart a:after{border-color: '.$featuredproductbtnborderafterColor.';}
    .lz-featured-product-heading{background-color: '.$featuredproductspanBackgroundColor.';}
    .lz-featured-product-heading{outline-color: '.$featuredproductspanoulineHeadingColor.';}';

   
    // $featuredHeadingColor = get_theme_mod('lz_fitness_featured_HeadingColor', $primColor);
    // if($primColor == $featuredHeadingColor){
    //     $featuredHeadingColor = $headingColor;
    // }
    // $featuredTextColor = get_theme_mod('lz_fitness_featured_TextColor', '#333333');
    // $custom_css .= '.lz-featured-heading{color: '.$featuredHeadingColor.';} .lz-featured-text{color: '.$featuredTextColor.';}';

	//team heading & text color
     $teamHeadingColor = get_theme_mod('lz_fitness_team_HeadingColor', '#ffffff');
        $teamDesignationColor = get_theme_mod('lz_fitness_team_DesignationColor', '#69489d');
         $teamSpanHeadingColor = get_theme_mod('lz_fitness_team_SpanHeadingColor', '#2b2b2b');
         $teamTitleColor = get_theme_mod('lz_fitness_team_TitleColor', '#212121');
         $teamTextColor = get_theme_mod('lz_fitness_team_TextColor', '#212121');
         $teamSocialColor = get_theme_mod('lz_fitness_team_SocialColor', '#9d9d9d');
         $teamborderColor = get_theme_mod('lz_fitness_team_borderColor', '#9d9d9d');
         $teamboxColor = get_theme_mod('lz_fitness_team_boxColor', '#ffffff');
         $teamspanBackgroundColor = get_theme_mod('lz_fitness_team_spanBackgroundColor', '#69489d');
         $teamspanoulineHeadingColor = get_theme_mod('lz_fitness_team_spanoulineHeadingColor', '#69489d');

    $custom_css .= 'h2.ht-section-title.lz-team-heading{color: '.$teamHeadingColor.';} #ht-team-section .team-member-designation{color: '.$teamDesignationColor.';}.ht-team-member h6{color: '.$teamTitleColor.';}.ht-team-member .ht-team-designation{color: '.$teamTextColor.';}.ht-team-social-id a{color: '.$teamSocialColor.';}.ht-team-social-id a{border-color: '.$teamborderColor.';}#ht-team-section .lz-team-subbheading{color: '.$teamSpanHeadingColor.';}.ht-team-member{background-color: '.$teamboxColor.';}h2.ht-section-title.lz-team-heading{background-color: '.$teamspanBackgroundColor.';}h2.ht-section-title.lz-team-heading{outline-color: '.$teamspanoulineHeadingColor.';}';



	//testimonials heading & text color
$testimonialsBorderColor = get_theme_mod('lz_fitness_testimonials_BorderColor', '#ffffff');
 $testimonialsHeadingColor = get_theme_mod('lz_fitness_testimonials_TitleColor', '#69489d');
$testimonialsTextColor = get_theme_mod('lz_fitness_testimonials_TextColor', '#ffffff');

$testimonialsSubtitleTitleColor = get_theme_mod('lz_fitness_testimonials_SubtitleTitleColor', '#ffffff');
$testimonialsspanBackgroundColor = get_theme_mod('lz_fitness_testimonials_spanBackgroundColor', '#ffffff');
$testimonialsspanoulineHeadingColor = get_theme_mod('lz_fitness_testimonials_spanoulineHeadingColor', '#ffffff');



    $custom_css .= 'h2.testimonial-heading.ht-section-title {color: '.$testimonialsHeadingColor.';} 
    #testimonials-section p {color: '. $testimonialsTextColor.';} .team-thumb img {border-color: '. $testimonialsBorderColor.';}h2.testimonial-heading.ht-section-title{background-color: '. $testimonialsspanBackgroundColor.';}h2.testimonial-heading.ht-section-title{outline-color: '. $testimonialsspanoulineHeadingColor.';}.lz-testimonials-text{color: '. $testimonialsSubtitleTitleColor.';}';

    //
    
	//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', '#ffffff');
    $appointmentTextColor = get_theme_mod('lz_fitness_appointment_TextColor', '#ffffff');
    $appointmentSubTextColor = get_theme_mod('lz_fitness_appointment_SubTextColor', '#ffffff');
    $appointmentIconColor = get_theme_mod('lz_fitness_appointment_IconColor', '#ffffff');
    $appointmentSocialIconColor = get_theme_mod('lz_fitness_appointment_SocialIconColor', '#eca1c3');
    $appointmentSocialBorderColor = get_theme_mod('lz_fitness_appointment_SocialBorderColor', '#eca1c3');
    $appointmentButtonBackColor = get_theme_mod('lz_fitness_appointment_sButtonTextColor', '#ffffff');
    $appointmentButtonBorderColor = get_theme_mod('lz_fitness_appointment_sButtonBorderColor', '#ffffff');
    $appointmentformtextColor = get_theme_mod('lz_fitness_appointment_FormtextColor', '#ffffff');

    $appointmentforminpbgColor = get_theme_mod('lz_fitness_appointment_inpbgColor', '#ffffff');
    $appointmentforminpborColor = get_theme_mod('lz_fitness_appointment_inpborColor', '#ffffff');
    $appointmenplaceholdertxtclr = get_theme_mod('lz_fitness_appointment_placeholdertxtclr', '#666666');
    
    

    $custom_css .= '.lz-appointment-heading{color: '.$appointmentHeadingColor.';} 
    .ht-section-tagline.lz-appointment-text{color: '. $appointmentTextColor.';} .appointment-content, .appointment-content a{color: '. $appointmentSubTextColor.';} .appointment-icon span.fa{color: '. $appointmentIconColor.';}.appointment-main-box ul li a{color: '. $appointmentSocialIconColor.';}.contact-sm-links li{border-color: '. $appointmentSocialBorderColor.';}section#ht-appintment-section .ht-appintment-member-wrap input[type="submit"]{border-color: '. $appointmentButtonBackColor.';}section#ht-appintment-section .ht-appintment-member-wrap input[type="submit"]{color: '. $appointmentButtonBorderColor.';}section#ht-appintment-section form, .ht-appintment-member-wrap label{color: '. $appointmentformtextColor.';}

.ht-appintment-member-wrap input[type="text"]::placeholder, 
.ht-appintment-member-wrap input[type="email"]::placeholder, 
.ht-appintment-member-wrap input[type="url"]::placeholder, 
.ht-appintment-member-wrap input[type="password"]::placeholder, 
.ht-appintment-member-wrap input[type="search"]::placeholder, 
.ht-appintment-member-wrap input[type="number"]::placeholder, 
.ht-appintment-member-wrap input[type="tel"]::placeholder, 
.ht-appintment-member-wrap input[type="range"]::placeholder, 
.ht-appintment-member-wrap input[type="date"]::placeholder, 
.ht-appintment-member-wrap input[type="month"]::placeholder, 
.ht-appintment-member-wrap input[type="week"]::placeholder, 
.ht-appintment-member-wrap input[type="time"]::placeholder, 
.ht-appintment-member-wrap input[type="datetime"]::placeholder, 
.ht-appintment-member-wrap input[type="datetime-local"]::placeholder, 
.ht-appintment-member-wrap input[type="color"]::placeholder, 
.ht-appintment-member-wrap textarea::placeholder, 
.ht-appintment-member-wrap input[type="text"], 
.ht-appintment-member-wrap input[type="email"], 
.ht-appintment-member-wrap input[type="tel"], 
.ht-appintment-member-wrap input[type="range"], 
.ht-appintment-member-wrap input[type="date"]{color: '. $appointmenplaceholdertxtclr.' !important;}


.ht-appintment-member-wrap input[type="text"], 
.ht-appintment-member-wrap input[type="email"], 
.ht-appintment-member-wrap input[type="url"], 
.ht-appintment-member-wrap input[type="password"], 
.ht-appintment-member-wrap input[type="search"], 
.ht-appintment-member-wrap input[type="number"], 
.ht-appintment-member-wrap input[type="tel"], 
.ht-appintment-member-wrap input[type="range"], 
.ht-appintment-member-wrap input[type="date"], 
.ht-appintment-member-wrap input[type="month"], 
.ht-appintment-member-wrap input[type="week"], 
.ht-appintment-member-wrap input[type="time"], 
.ht-appintment-member-wrap input[type="datetime"], 
.ht-appintment-member-wrap input[type="datetime-local"], 
.ht-appintment-member-wrap input[type="color"], 
.ht-appintment-member-wrap textarea{border-color: '. $appointmentforminpborColor.';}


.ht-appintment-member-wrap input[type="text"], 
.ht-appintment-member-wrap input[type="email"], 
.ht-appintment-member-wrap input[type="url"], 
.ht-appintment-member-wrap input[type="password"], 
.ht-appintment-member-wrap input[type="search"], 
.ht-appintment-member-wrap input[type="number"], 
.ht-appintment-member-wrap input[type="tel"], 
.ht-appintment-member-wrap input[type="range"], 
.ht-appintment-member-wrap input[type="date"], 
.ht-appintment-member-wrap input[type="month"], 
.ht-appintment-member-wrap input[type="week"], 
.ht-appintment-member-wrap input[type="time"], 
.ht-appintment-member-wrap input[type="datetime"], 
.ht-appintment-member-wrap input[type="datetime-local"], 
.ht-appintment-member-wrap input[type="color"], 
.ht-appintment-member-wrap textarea{background-color: '. $appointmentforminpbgColor.';}

    ';
   
	//blog heading & text color
    $blogHeadingColor = get_theme_mod('lz_fitness_blog_HeadingColor', '#ffffff');
    $blogTitleColor = get_theme_mod('lz_fitness_blog_TitleColor', '#fff');
    $blogdateColor = get_theme_mod('lz_fitness_blog_dateColor', '#fff');
    $blogTextColor = get_theme_mod('lz_fitness_blog_TextColor', '#fff');
    $blogbtnTextColor = get_theme_mod('lz_fitness_blog_btnTextColor', '#fff');
    $blogbtnborderColor = get_theme_mod('lz_fitness_blog_btnbordertColor', '#fff');
    $blogbtnborderafterColor = get_theme_mod('lz_fitness_blog_btnborderafterColor', '#fff');
    $blogbtnTexthoverColor = get_theme_mod('lz_fitness_blog_btnTexthoverColor', '#69489d');
    $blogbtnbghoverColor = get_theme_mod('lz_fitness_blog_btnbghoverColor', '#fff');
    $blogboxbgColor = get_theme_mod('lz_fitness_blog_boxbgColor', '#69489d');
    $blogarrowboxbgColor = get_theme_mod('lz_fitness_blog_arrowboxbgColor', '#69489d');

    $blogSubHeadingColor = get_theme_mod('lz_fitness_blog_SubHeadingColor', '#2b2b2b');
    $blogspanBackgroundColor = get_theme_mod('lz_fitness_blog_spanBackgroundColor', '#69489d');
    $blogspanoulineHeadingColor = get_theme_mod('lz_fitness_blog_spanoulineHeadingColor', '#69489d');

    $custom_css .= 'h2.ht-section-title.lz-blog-heading {color: '.$blogHeadingColor.';}  
    .ht-blog-excerpt h5 a {color: '. $blogTitleColor.';} 
    .ht-blog-date {color: '. $blogdateColor.';} 
    .ht-blog-excerpt p{color: '. $blogTextColor.';}
    #blog-section .blog-read-more a{color: '. $blogbtnTextColor.';} 
    #blog-section .blog-read-more a{border-color: '. $blogbtnborderColor.';} 
    #blog-section .blog-read-more a:after {border-color: '. $blogbtnborderafterColor.';} 
    #blog-section .blog-read-more a:hover{color: '. $blogbtnTexthoverColor.';} 
    #blog-section .blog-read-more a:hover{background-color: '. $blogbtnbghoverColor.';} 
    #blog-section .ht-blog-excerpt{background-color: '. $blogboxbgColor.';}.ht-blog-excerpt:before{background-color: '. $blogarrowboxbgColor.';}h2.ht-section-title.lz-blog-heading {background-color: '. $blogspanBackgroundColor.';}h2.ht-section-title.lz-blog-heading {outline-color: '. $blogspanoulineHeadingColor.';}.lz-blog-text{color: '. $blogSubHeadingColor.';}';


	//plan heading & text color
  $planHeadingColor = get_theme_mod('lz_fitness_plan_HeadingColor', '#ffffff');
  $planSpanHeadingColor = get_theme_mod('lz_fitness_plan_SpanHeadingColor', '#2b2b2b');
  $planOfferTextColor = get_theme_mod('lz_fitness_plan_OfferTextColor', '#ffffff');
 $OfferPlanTextColor = get_theme_mod('lz_fitness_plan_OfferPlanTextColor', '#2b2b2b');
 $OfferPlanboldTextColor = get_theme_mod('lz_fitness_plan_OfferPlanboldTextColor', '#2b2b2b');
 $PriceTextColor = get_theme_mod('lz_fitness_plan_PriceTextColor', '#69489d');
 $plan1TextColor = get_theme_mod('lz_fitness_plan_plan1TextColor', '#69489d');
 //$plan2TextColor = get_theme_mod('lz_fitness_plan_plan2TextColor', '#2b2b2b');
 $planbuttonBackgroundColor = get_theme_mod('lz_fitness_plan_buttonBackgroundColor', '#69489d');
 $planbuttontextColor = get_theme_mod('lz_fitness_plan_buttontextColor', '#ffffff');
 $planContentColor = get_theme_mod('lz_fitness_plan_ContentColor', '#2b2b2b');
 $planBoxColor = get_theme_mod('lz_fitness_plan_BoxColor', '#f6fbfa');
 $planPageCoursesFColor = get_theme_mod('pages_CoursesFColor', '#69489d');
 $planPageCoursesBColor = get_theme_mod('pages_CoursesBColor', '#69489d');
 $planspanBackgroundColor = get_theme_mod('lz_fitness_plan_spanBackgroundColor', '#69489d');
 $planspanoulineHeadingColor = get_theme_mod('lz_fitness_plan_spanoulineHeadingColor', '#69489d');

    $custom_css .= 'h2.ht-section-title.lz-pricing-heading {color: '.$planHeadingColor.';} .lz-pricing-subheading {color: '.$planSpanHeadingColor.';}.ht-princing-text{color: '.$planOfferTextColor.';}#pricing-page .ht-princing-icon{color: '.$OfferPlanTextColor.';}.ht-princing-icon-span{color: '.$OfferPlanboldTextColor.';}#pricing-page .plan-amount{color: '.$PriceTextColor.';}.pricingplan-amount{color: '.$plan1TextColor.';}.ht-princing-link a{background-color: '.$planbuttonBackgroundColor.';}.ht-princing-link a{color: '.$planbuttontextColor.';}#pricing-page .ht-princing-excerpt{color: '.$planContentColor.';}#pricing-page .ht-plan-block{background-color: '.$planBoxColor.';}.ht-princing-text{background-color: '.$planPageCoursesFColor.';} #pricing-page .ht-plan-block{border-color: '.$planPageCoursesBColor.';}h2.ht-section-title.lz-pricing-heading{background-color: '.$planspanBackgroundColor.';}h2.ht-section-title.lz-pricing-heading{outline-color: '.$planspanoulineHeadingColor .';}';

    //contactus inner page

    $contactusHeadingColor = get_theme_mod('lz_fitness_contactusinnerpage_HeadingColor', '#ffffff');

    $formbgColor = get_theme_mod('lz_fitness_contactusinnerpage_formbgColor', '#69489d');

$LocationColor = get_theme_mod('lz_fitness_contactusinnerpage_LocationColor', '#444444');

$AddressColor = get_theme_mod('lz_fitness_contactusinnerpage_AddressColor', '#444444');

$EmailColor = get_theme_mod('lz_fitness_contactusinnerpage_EmailColor', '#444444');

$PhoneColor = get_theme_mod('lz_fitness_contactusinnerpage_PhoneColor', '#444444');

$contactusTitleColor = get_theme_mod('lz_fitness_contactusinnerpage_TitleColor', '#444444');

$contactusSocialColor = get_theme_mod('lz_fitness_contactusinnerpage_SocialColor', '#69489d');

$SocialborderColor = get_theme_mod('lz_fitness_contactusinnerpage_SocialborderColor', '#444444');
$SocialtextColor = get_theme_mod('lz_fitness_contactusinnerpage_innercontacttextColor', '#444444');
$SocialtextColor = get_theme_mod('lz_fitness_contactusinnerpage_innercontacttextColor', '#444444');
$buttonbgColor = get_theme_mod('lz_fitness_contactusinnerpage_buttonbgColor', '#ffffff');
$buttontextColor = get_theme_mod('lz_fitness_contactusinnerpage_buttontextColor', '#69489d');


    $custom_css .= '#ht-contactus-wrap h4{color: '.$contactusHeadingColor.';} #ht-contactus-wrap .contact-page-form {background-color: '.$formbgColor.';} .address-box span{color: '.$LocationColor.';}.padding0.ht-section-tagline.lz-appointment-addresss{color: '.$AddressColor.';}.padding0.ht-section-tagline.lz-appointment-email{color: '.$EmailColor.';}.padding0.ht-section-tagline.lz-appointment-phhone{color: '.$PhoneColor.';} main#innerpage-box div#ht-contactus-wrap h3{color: '.$contactusTitleColor.';}#innerpage-box div#ht-contactus-wrap a span{color: '.$contactusSocialColor.';}.contacts-sm-links li{border-color: '.$SocialborderColor.';}.row.address-box{color: '.$SocialtextColor.';}#ht-contactus-wrap input[type="submit"]{background-color: '.$buttonbgColor.';}#ht-contactus-wrap input[type="submit"]{color: '.$buttontextColor.';}';

	//newslatter heading & text color
$newsletterHeadingColor = get_theme_mod('lz_newslatter_HeadingColor', '#ffffff');
$newsletterTextColor = get_theme_mod('lz_newslatter_TextColor', '#ffffff');
$newsletterButtonColor = get_theme_mod('lz_newslatter_buttonColor', '#69489d');
$newsletterButtonTColor = get_theme_mod('lz_newslatter_buttonTColor', '#ffffff');
$newsletterButtonBorderColor = get_theme_mod('lz_newslatter_buttonBorderColor', '#ffffff');
$newsletternformColor = get_theme_mod('lz_newslatter_NFormtextColor', '#ffffff');
$newsletternformBorderColor = get_theme_mod('lz_newslatter_NFormBorderColor', '#ffffff');
$newsletterniconColor = get_theme_mod('lz_newslatter_NFormiconColor', '#ffffff');

        $custom_css .= '
h2.ht-section-title.lz-newslatter-heading {color: '.$newsletterHeadingColor.';} 
h2.ht-section-title.lz-newslatter-heading span {color: '. $newsletterTextColor.';}
section#ht-newsletter-section input[type="submit"]{background-color: '.$newsletterButtonColor.';}
section#ht-newsletter-section input[type="submit"]{color: '.$newsletterButtonTColor.';}
section#ht-newsletter-section input[type="submit"]{border-color: '.$newsletterButtonBorderColor.';}

section#ht-newsletter-section input[type="text"], 
section#ht-newsletter-section input[type="email"],
section#ht-newsletter-section input[type="url"], 
section#ht-newsletter-section input[type="password"], 
section#ht-newsletter-section input[type="search"], 
section#ht-newsletter-section input[type="number"], 
section#ht-newsletter-section input[type="tel"], 
section#ht-newsletter-section input[type="range"], 
section#ht-newsletter-section input[type="date"], 
section#ht-newsletter-section input[type="month"], 
section#ht-newsletter-section input[type="week"], 
section#ht-newsletter-section input[type="time"], 
section#ht-newsletter-section input[type="datetime"],
section#ht-newsletter-section input[type="datetime-local"], 
section#ht-newsletter-section input[type="color"], 
section#ht-newsletter-section input[type="file"], 
section#ht-newsletter-section select, 
section#ht-newsletter-section textarea {color: '.$newsletternformColor.';}

 section#ht-newsletter-section input[type="text"], 
 section#ht-newsletter-section input[type="email"], 
 section#ht-newsletter-section input[type="url"], 
 section#ht-newsletter-section input[type="password"], 
 section#ht-newsletter-section input[type="search"], 
 section#ht-newsletter-section input[type="number"], 
 section#ht-newsletter-section input[type="tel"], 
 section#ht-newsletter-section input[type="range"], 
 section#ht-newsletter-section input[type="date"], 
 section#ht-newsletter-section input[type="month"], 
 section#ht-newsletter-section input[type="week"], 
 section#ht-newsletter-section input[type="time"], 
 section#ht-newsletter-section input[type="datetime"], 
 section#ht-newsletter-section input[type="datetime-local"], 
 section#ht-newsletter-section input[type="color"], 
 section#ht-newsletter-section input[type="file"], 
 section#ht-newsletter-section select, 
 section#ht-newsletter-section textarea{border-color: '.$newsletternformBorderColor.';} 

section#ht-newsletter-section i.fa.fa-envelope{color: '.$newsletterniconColor.';}';


    $custom = get_post_custom( $post->ID );

    $image_id = get_post_meta( $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);
}