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

function total_dymanic_styles(){
    global $post;
	$primColor = get_theme_mod( 'lz_fitness_template_color', '#a556d4' );  
	// $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', '22');
    // echo '<br> text font '.
	$textFontRow = get_theme_mod('lz_fitness_general_text_font', '1');

 $headerlogoTmargin = get_theme_mod('pages_logoTmargin', '0px');
 $headerlogoBmargin = get_theme_mod('pages_logoBmargin', '0px');
 $headerlogoLmargin = get_theme_mod('pages_logoLmargin', '0px');
 $headerlogoRmargin = get_theme_mod('pages_logoRmargin', '0px');

  $pageH1Font = get_theme_mod('pages_h1font', '28px');
    $pageH2Font = get_theme_mod('pages_h2font', '26px');
    $pageH3Font = get_theme_mod('pages_h3font', '24px');
    $pageH4Font = get_theme_mod('pages_h4font', '22px');
    $pageH5Font = get_theme_mod('pages_h5font', '20px');
    $pageH6Font = get_theme_mod('pages_h6font', '18px');

     $innerpagesboxtoppadding = get_theme_mod('innerpagesbox_toppadding', '2em');
 $innerpagesboxbottompadding = get_theme_mod('innerpagesbox_bottompadding', '2em');
 $innerpagesboxleftpadding = get_theme_mod('innerpagesbox_leftpadding', '0px');
 $innerpagesboxrightpadding = get_theme_mod('innerpagesbox_rightpadding', '0px');

    $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, .contact-title h2, .ht-slide-cap-title span, #ht-princing-post-section .ht-princing-icon,h1, h2, h3, h4, h5, h6,#pricing-page .ht-princing-icon {font-family: $headingFont;}
        #ht-masthead { background: 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};}



    .logobox img{margin-top: $headerlogoTmargin;}
    .logobox img{margin-bottom: $headerlogoBmargin;}
    .logobox img{margin-left: $headerlogoLmargin;}
    .logobox img{margin-right: $headerlogoRmargin;}

      .page-template-default #innerpage-box #content-box h1, 
   .page-template #innerpage-box #content-box h1,
   .ht-main-title, .single-productpage .ht-main-title,
   .woocommerce div.product .product_title{font-size: $pageH1Font;}

    .page-template-default #innerpage-box #content-box h2, 
   .page-template #innerpage-box #content-box h2, 
   .woocommerce ul.products li.product .woocommerce-loop-product__title,
   .related.products h2
   {font-size: $pageH2Font;}

    .page-template-default #innerpage-box #content-box h3, 
   .page-template #innerpage-box #content-box h3, 
 .widget-area .widget-title, 
   div#sitemap-box h3,
   #innerpage-box #content-box .ht-team-member h3.member-name,
   #ht-contactus-wrap h3,
   main#innerpage-box div#sitemap-box h3{font-size: $pageH3Font;}

    .page-template-default #innerpage-box #content-box h4, 
   .page-template #innerpage-box #content-box h4,#ht-contactus-wrap h4{font-size: $pageH4Font;}


    .page-template-default #innerpage-box #content-box h5, 
   .page-template #innerpage-box #content-box h5{font-size: $pageH5Font;}

    .page-template-default #innerpage-box #content-box h6, 
   .page-template #innerpage-box #content-box h6, 
   .socialMedia h6{font-size: $pageH6Font;}


#innerpage-box {padding-top: $innerpagesboxtoppadding;}
#innerpage-box{padding-bottom: $innerpagesboxbottompadding;}
#innerpage-box{padding-left: $innerpagesboxleftpadding;}
#innerpage-box{padding-right: $innerpagesboxrightpadding;}


            ";

    $custom_css .= "
    button,
    input[type='button'],
    input[type='reset'],    
    .nav-previous a,
    .nav-next a,
    .pagination .page-numbers,
    .ht-progress-bar-length,
    
    .ht-service-icon,    
    .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-link a:hover,#ht-newslatter-section .newsletter-form-box,
    #ht-appintment-section .ht-appintment-member-wrap,
    .readmore a:hover,
	.pagingation .current,      
    .wpcf7-submit,
	#featured-pages-section .featured-post a.btn,
	#featured-post-section .featured-icon,
	
	.pftab .slider,
	.ht-main-navigation ul ul,
    #innerpage-box .featured-post a.btn,
    .woocommerce a.button,
	.woocommerce ul.products li.product .button,
    .main-header,
    .ht-slide-caption a,
    #ht-top-footer,
    #ht-bottom-footer,
    .ht-main-navigation li:hover,
    .widget-area .widget-title,
    .ht-main-navigation .current_page_item > a,
	.ht-main-navigation .current-menu-item > a,
	.ht-main-navigation .current_page_ancestor > a,
	.page-template-home-template .ht-main-navigation .current > a,
    .widget-area .widget-title:after,
    h3#reply-title:after,
    h3.comments-title:after,
    #content-box ol li:before,
    .page-main-header,
    #ht-contactus-wrap .contact-page-form,
    .ht-slide-button a,
      section#inner-blog-section .readMore:hover,
    div#sidebars ins,
    .woocommerce ul.products li.product .button,
    .woocommerce #content div.product .woocommerce-tabs ul.tabs li:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li:hover, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li:hover, .woocommerce-page div.product .woocommerce-tabs ul.tabs li:hover,
    .ht-main-navigation ul ul,
   .widget-area .social-profile-icons ul li a:hover,
   .inner-blog-post .socialMedia a:hover,
    #commentsAdd input[type='submit']:hover,
   #respond input[type='submit']:hover,
input[type='submit']:hover

    {
    	background:{$primColor};
    }

    
    .ht-post-info .entry-date span.ht-day,
    .entry-categories .fa,
    .widget-area a:hover,
    .comment-list a:hover,
    .no-comments,
    .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-link a,
	
	sidebar_list a,
	.widget-area a,
	
	#ht-about-us-section h2.ht-section-title span, 
	
	.tabset > input:checked + label,
	#our-courses-section .featured-post h5 a:hover,
	#our-courses-section .featured-icon a span:hover,
	.pftab .nav-tabs .active a,
	.pftab .slider:after,	
	
	.contact-border div:last-child,
   .blog-read-more a,
	.tab-content h6.faq-title,
    #secondary ul li a:hover,
    #secondary .tagcloud a:hover,
    .contact-sm-links li a:hover,
    #innerpage-box .featured-post h5 a:hover,
	 h6.faq-title:before,
    h2.ht-section-title.lz-team-heading,
    #content-box ul li:before,
    section#ht-result-section h2.ht-section-title,
    section#ht-result-section .ht-section-subtagline span,
    h2.ht-section-title.lz-gallery-heading,
    .ht-blog-excerpt h5 a,
    #ht-about-us-section h2.ht-section-title,
    .facility-icon,
    .breadcrumbbox a,
    #innerpage-box .contact-info a,
     .edit-link a,
   .inner-blog-post .socialMedia a,
    .single_post .socialMedia a,
        #comments a, 
    #commentsAdd a,
    #content-box a,
    #content-box a i:hover,
    #content-box ol li a:hover,
     #content-box a:hover,
    #commentsAdd p a:hover
    #respond .stars span a,
    #content-box .socialMedia a:hover,
    .post-date-publishable i,
    div#sitemap-box ul li a,
    .woocommerce .star-rating span,
    .woocommerce div.product .woocommerce-product-rating a,
    #content-box .socialbxsinglepost:hover a i,
    section#inner-blog-section h2.title small,
     div#sitemap-box ul li a:hover,
div#content-box a.post-edit-link:hover,
div#content-box .woocommerce-MyAccount-content p a:hover,
div#content-box a.shipping-calculator-button:hover,
div#content-box div#payment a:hover,
div#content-box p a:hover,
div#content-box .woocommerce-info a:hover,
div#content-box header.woocommerce-Address-title.title a:hover,

    .lz-fitness-time div:nth-child(8) div.days-time-day,
    .widget-area ul ul li.current_page_item > a
    {
    	color:{$primColor};
    }

    .ht-main-navigation ul ul,
    .ht-featured-link a,
    .ht-counter,
    .ht-testimonial-wrap .bx-wrapper img,
	#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,
	
	#featured-pages-section .featured-post a.btn:hover,	
	#our-courses-section .featured-post:hover .featured-icon,
	#our-courses-section .featured-post:hover .featured-icon span:before,
	#our-courses-section .featured-post:hover .featured-icon span:after,
    #our-courses-section .featured-icon:hover:before,
    #our-courses-section .featured-icon:hover:after,
    #innerpage-box .featured-post a.btn:hover,
    #blog-box .blog-read-more a,
    #featured-pages-section .featured-post a.btn,
    #innerpage-box .testimonial-content:hover

    {
    	border-color: {$primColor};
    }
main#innerpage-box .testimonial-content{
        outline-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', '#fd7198');
    $custom_css .='
    .ht-team-member .ht-title-wrap h6{color:'.$secondary.';}
   
	.featured-post:before{border-color: '.$secondary.';}
	.featured-post:after{border-color: '.$secondary.';}
	.ht-section-title:before{border-color: '.$secondary.';}
	.ht-section-title:after{border-color: '.$secondary.';}	
	#ht-about-us-section .aboutbox-img:before,
	.feature-border:after,
    .ht-team-member:hover,
    #innerpage-box .testimonial-content,
    main#innerpage-box .testimonial-content:hover img
	{border-color: '.$secondary.';}
	
	.item blockquote h6:before,
	
	.blog-date,
	
	.widget-area a:hover,
	.ht-contact-member-wrap label,
    #innerpage-box .ht-team-member:hover h6, #innerpage-box .ht-team-member:hover h6 small,
    .ht-team-member:hover h6.member-name, .ht-team-member:hover h6.member-name small,
    main#innerpage-box .ht-team-social-id a:hover,
    #ht-team-section .ht-team-social-id a i:hover,
    .blog-read-more a:hover,
    main#innerpage-box h3.secondry-text, #innerpage-box .contact-info a:hover,
    .contact-sm-links li a
	{color:'.$secondary.';}
	

    .ht-team-member-image:after,
    .ht-blog-date,.contact-mapbox iframe,
    main#innerpage-box div#sitemap-box h3
	{background-color:'.$secondary.'}

main#innerpage-box .testimonial-content:hover 
{outline-color:'.$secondary.'}


    .secondry-bg,
   #blog-box .blog-read-more a:hover,
   #commentsAdd input[type="submit"]:hover,
   #respond input[type="submit"]:hover,
   button:hover, input[type="button"]:hover, 
   input[type="reset"]:hover, 
   input[type="submit"]:hover,
   div#secondary input[type="submit"]:hover,
   #innerpage-box .widget_calendar tfoot tr td a:hover,
   section#inner-blog-section .readMore,
   div#sitemap-box h3,
   .woocommerce ul.products li.product .button:hover,
   .woocommerce #content div.product .woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li, .woocommerce-page div.product .woocommerce-tabs ul.tabs li,
   .woocommerce ul.products li.product:hover .button:hover,
   .woocommerce a.button.alt:hover, 
   .woocommerce button.button:hover,
   .woocommerce button.button.alt:hover
   .woocommerce #respond input#submit:hover,
    .woocommerce a.button:hover,
     .woocommerce button.button:hover, 
     .woocommerce input.button:hover,
     .woocommerce button.button.alt:hover,
     #blog-box .inner-blog-img,
     #blog-box img,
     .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover,
 .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected],
  .widget-area .social-profile-icons ul li a,
 .inner-blog-post .socialMedia a,

.woocommerce .select2-container--default .select2-results__option--highlighted[aria-selected], .woocommerce .select2-container--default .select2-results__option--highlighted[data-selected],

.inner-blog-post .socialMedia a,

.box-form input[type="submit"]:hover

   {
        background-color:'.$secondary.'
    }    
    #blog-box .blog-read-more a:hover,
    .woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
    .woocommerce ul.products li.product .button:hover, 
    .woocommerce ul.products li.product:hover .button:hover,
    .woocommerce a.button.alt:hover

    .woocommerce #respond input#submit:hover, 
    .woocommerce a.button:hover,
     .woocommerce button.button:hover, 
     .woocommerce input.button:hover,
     .woocommerce button.button.alt:hover,
     #blog-box .ht-blog-date,
     .socialMedia a:hover,
      #ht-colophon .social-profile-icons ul li:hover

     {border-color: '.$secondary.';}
 
    #blog-box h4, #blog-box h4 small, #blog-box .ht-blog-date .fa, #blog-box .blog-read-more a {color:'.$secondary.';}     
 
    
     .product_list_widget .amount,
     .product_list_widget del .amount,
     .woocommerce ul.products li.product .total-product-title-wrap small,
     .total-product-title-wrap,
     .woocommerce div.product .product_title small,
     .woocommerce div.product .product_title,
     section#inner-blog-section h2.title:hover small,
     .woocommerce ul.products li.product .price del,
     .woocommerce p.stars a,
     .woocommerce .star-rating::before,
     #innerpage-box table.shop_table_responsive tr.woocommerce-cart-form__cart-item td a,
     .woocommerce table.shop_table td,
     #content-box .socialMedia a,
     #blog-box .ht-blog-date,
   #content-box .socialMedia a i,
     .widget-area ul ul li.current_page_item > a:hover,
     #innerpage-box .widget_calendar table tbody td#today,
     #innerpage-box .widget_calendar tbody tr td a,
     footer#ht-colophon .widget .social-profile-icons ul li:hover i,
     footer#ht-colophon a:hover
     {color: '.$secondary.';}

    ';
    // ENDS SECONDARY COLOR CSS

// feature pages section 
    if(get_theme_mod('lz_fitness_premium_fpage_section_background','on') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_fpage_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/featuredcoursebanner.png';
        
        $custom_css .= '#featured-pages-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_fpage_bg_color', '#fff');
        if('#fff' != $color){
            $custom_css .= '#featured-pages-section, .featured-post {background-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', '#f6f6f6');
        if('#f6f6f6' != $color){
            $custom_css .= '#featured-post-section {background-color: '.$color.';} .featured-post {border-color:'.$color.';}';
        }
    } 
    
    //appointment
    if(get_theme_mod('lz_fitness_premium_appointment_section_background','off') == 'on' ){
    	$custom_css .= '.lz-appintment-section {background-image: url(\''.get_theme_mod('lz_fitness_appointment_bg_image').'\');background-position: top;background-size: cover;}';
    }else{
    	$color = get_theme_mod('lz_fitness_appointment_bg_color', '#ffffff');
    	if('#ffffff' != $color){
    		$custom_css .= '.lz-appintment-section, .lz-appintment-section input[type="submit"]{background-color: '.$color.';}';
    	}
    }
  
    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 .= 'section#blog-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_blog_bg_color', '#a556d4');
        if('#a556d4' != $color){
            $custom_css .= 'section#blog-section {background-color: '.$color.';}';
        }
    } 

    //////new About section


if(get_theme_mod('lz_fitness_premium_about_section_background','on') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_about_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/blogbanner.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', '#fff');
        if('#fff' != $color){
            $custom_css .= '#ht-about-us-section, .ht-blog-read-more a {background-color: '.$color.';}';
        }
    } 

    //////new facility section

if(get_theme_mod('lz_fitness_premium_facility_section_background','on') == 'on' ){
        
        $bgimg = get_theme_mod('lz_fitness_facility_bg_image');
        $img = !empty($bgimg)?$bgimg:get_template_directory_uri().'/images/blogbs.png';
        
        $custom_css .= '#facility-post-section {background-image: url("'.$img.'");background-position: top;background-size: cover;}';
    }else{
        $color = get_theme_mod('lz_fitness_facility_bg_color', '#fff');
        if('#fff' != $color){
            $custom_css .= '#facility-post-section {background-color: '.$color.';}';
        }
    } 
 
    // pricing 
    
    if(get_theme_mod('lz_fitness_premium_pricing_section_background','off') == '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.'}';
    	}
    }
 

    if(!empty($lz_fitness_lite_layout) && $lz_fitness_lite_layout == "sclayout") {
    	$custom_css .= ".article { float: right; } .sidebar.c-4-12 { float: left; }";
    }

	//about us heading & text color
      $aboutusHeadingColor = get_theme_mod('lz_fitness_aboutus_page_HeadingColor', '#a556d4');
        $aboutusTextColor = get_theme_mod('lz_fitness_aboutus_page_TextColor', '#323232');
       // $aboutussTextColor = get_theme_mod('lz_fitness_aboutus_page_sTextColor', '#a556d4');
    $custom_css .= 'section#ht-about-us-section h2.ht-section-title{color: '.$aboutusHeadingColor.';} 
    #ht-about-us-section .ht-section-tagline, #ht-about-us-section ul li, .ht-section-subtagline{color: '. $aboutusTextColor.';}';


    //Inner page title color
    $innertitleColor = get_theme_mod('lz_fitness_template_innerpage_titlecolor', '#fff');
    $innertitlebgColor = get_theme_mod('lz_fitness_template_innerpage_bgcolor', '#a556d4');
    $innerbreadcrumbtitleColor = get_theme_mod('lz_fitness_template_innerpage_breadcrumbtitlecolor', '#000');
    $innerbreadcrumbcurrenttitleColor = get_theme_mod('lz_fitness_template_innerpage_breadcrumbcurrenttitlecolor', '#a556d4');
    $innerbreadcrumbcurrenttitlehovercolor = get_theme_mod('lz_fitness_template_innerpage_breadcrumbcurrenttitlehovercolor', '#fd7198');
    $innerbreadcrumbbgeColor = get_theme_mod('lz_fitness_template_innerpage_breadcrumbbgcolor', '#fff');
    $innerbreadcrumbbgbordercolor = get_theme_mod('lz_fitness_template_innerpage_breadcrumbbgbordercolor', '#ccc');

$innerpagecontentboxtitleh1Color = get_theme_mod('template_innerpage_contentboxtitleh1color', '#333333');
    $innerpagecontentboxtitleh2Color = get_theme_mod('template_innerpage_contentboxtitleh2color', '#333333');
    $innerpagecontentboxtitleh3Color = get_theme_mod('template_innerpage_contentboxtitleh3color', '#333333');
    $innerpagecontentboxtitleh4Color = get_theme_mod('template_innerpage_contentboxtitleh4color', '#333333');
    $innerpagecontentboxtitleh5Color = get_theme_mod('template_innerpage_contentboxtitleh5color', '#333333');
    $innerpagecontentboxtitleh6Color = get_theme_mod('template_innerpage_contentboxtitleh6color', '#333333');

     $innerpagecontentboxtextColor = get_theme_mod('template_innerpage_contentboxtextcolor', '#303030');
    $innerpagecontentboxlistColor = get_theme_mod('template_innerpage_contentboxlistcolor', '#303030');
     $innerpagecontentboxlisticonColor = get_theme_mod('template_innerpage_contentboxlisticoncolor', '#a556d4');

    $innerpagecontentboxlistnumberColor = get_theme_mod('template_innerpage_contentboxlistnumbercolor', '#fff');
    $innerpagecontentboxlistnumberbgColor = get_theme_mod('template_innerpage_contentboxlistnumberbgcolor', '#a556d4');

    $innerpagecontentboxlinkColor = get_theme_mod('template_innerpage_contentboxlinkcolor', '#fd7198');

      $innerpageborderColor = get_theme_mod('template_innerpage_bordercolor', '#EEE');

     $innerpagetabletextColor = get_theme_mod('template_innerpage_tabletext_color', '#6b7385');
$innerpagetabledaysColor = get_theme_mod('template_innerpage_tabledays_color', '#fff');
$innerpagetabledaysbgColor = get_theme_mod('template_innerpage_tabledaysbg_color', '#fd7198');
$innerpagetableboxbgColor = get_theme_mod('template_innerpage_tableboxbg_color', '#fff');
$innerpagetablebtnColor = get_theme_mod('template_innerpage_tablebtn_color', '#fff');
$innerpagetablebtnbgColor = get_theme_mod('template_innerpage_tablebtnbg_color', '#fd7198');
$innerpageboxbgColor = get_theme_mod('template_innerpage_boxbg_color', '#fff');
 $innerpageblogboxbgColor = get_theme_mod('template_innerpage_blogboxbg_color', '#eee');

 $innerpagesocialsColor = get_theme_mod('template_innerpage_socials_color', '#fff');

$innerpagesidebarwidgettitleColor = get_theme_mod('template_innerpage_sidebarwidgettitle_color', '#fff');

    $custom_css .= '.ht-main-title, .single-productpage .ht-main-title {color: '.$innertitleColor.';}
    .page-main-header {background-color: '.$innertitlebgColor.';}
    .breadcrumbbox span{color: '.$innerbreadcrumbtitleColor.';}
    .breadcrumbbox span a {color: '.$innerbreadcrumbcurrenttitleColor.';}
    .breadcrumbbox {background-color: '.$innerbreadcrumbbgeColor.';}
    .breadcrumbbox span a:hover, #content-box .breadcrumbbox span a:hover{color: '.$innerbreadcrumbcurrenttitlehovercolor.';}
    .breadcrumbbox{border-bottom-color: '.$innerbreadcrumbbgbordercolor.';}


    .page-template-default #innerpage-box #content-box h1,
    .page-template #innerpage-box #content-box h1
     {color: '.$innerpagecontentboxtitleh1Color.';}

      .page-template-default #innerpage-box #content-box h2,
    .page-template #innerpage-box #content-box h2,
    .related.products h2,.related.products h2 small, .related.products h2 span, .related.products h2 strong, .related.products h2 span, .related.products h2 sub, .related.products h2 big, .related.products h2 b,
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-product__title span, .woocommerce ul.products li.product .woocommerce-loop-product__title small, .woocommerce ul.products li.product .woocommerce-loop-product__title strong, .woocommerce ul.products li.product .woocommerce-loop-product__title sub, .woocommerce ul.products li.product .woocommerce-loop-product__title sup, .woocommerce ul.products li.product .woocommerce-loop-product__title big, .woocommerce ul.products li.product .woocommerce-loop-product__title b,
.woocommerce #reviews #comments h2, .woocommerce-page #reviews #comments h2
     {color: '.$innerpagecontentboxtitleh2Color.';}

      .page-template-default #innerpage-box #content-box h3,
    .page-template #innerpage-box #content-box h3, div#sitemap-box h3
     {color: '.$innerpagecontentboxtitleh3Color.';}

      .page-template-default #innerpage-box #content-box h4,
    .page-template #innerpage-box #content-box h4, 
     .widget-area .widget-title, 
    #blog-box h4, #blog-box h4 small,
    #respond h4 span
     {color: '.$innerpagecontentboxtitleh4Color.';}

      .page-template-default #innerpage-box #content-box h5,
    .page-template #innerpage-box #content-box h5
     {color: '.$innerpagecontentboxtitleh5Color.';}

      .page-template-default #innerpage-box #content-box h6,
    .page-template #innerpage-box #content-box h6, .socialMedia h6
     {color: '.$innerpagecontentboxtitleh6Color.';}

      .widget-area h3.widget-title, .widget-area .widget-title
     {color: '.$innerpagesidebarwidgettitleColor.';}

    .page-template-default #innerpage-box #content-box p,
     .page-template-default #innerpage-box #content-box legend,
     .page-template #innerpage-box #content-box p,
     .inner-blog-excerpt,
     .single_post .post-single-content,
     #secondary input::placeholder,
     input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea,

       #secondary .woocommerce-product-search input::placeholder,
   .woocommerce-product-search  input[type="text"], .woocommerce-product-search input[type="email"],.woocommerce-product-search input[type="url"], .woocommerce-product-search input[type="password"], .woocommerce-product-search input[type="search"], .woocommerce-product-search input[type="number"], .woocommerce-product-search input[type="tel"], .woocommerce-product-search input[type="range"], .woocommerce-product-search input[type="date"],.woocommerce-product-search input[type="month"], .woocommerce-product-search input[type="week"], .woocommerce-product-search input[type="time"], .woocommerce-product-search input[type="datetime"], .woocommerce-product-search input[type="datetime-local"], .woocommerce-product-search input[type="color"],

     #secondary ul li, 
     .sitemap-posts-box li,
    #secondary table tr, #secondary table tr td a,  #secondary #calendar_wrap caption,
    .woocommerce-product-details__short-description, #tab-description,
    #innerpage-box .widget select,
    #innerpage-box .widget select option, 
    .single-productpage #innerpage-box select option,
    .single-productpage #innerpage-box select,
   .single-productpage .widget_product_categories select,
   .single-productpage .widget_product_categories select option,
  .single-productpage .widget_product_categories .select2-container--default .select2-selection--single .select2-selection__placeholder,
  .woocommerce .woocommerce-result-count,
  .price_label,
  .single-productpage .price .amount,
  .single-productpage .posted_in,
  .woocommerce #reviews #comments ol.commentlist li .comment-text p,
  .comment-respond .comment-reply-title,
  .comment-form-rating,
  .woocommerce #commentform p label,
  .woocommerce table.shop_table tr th,
  .woocommerce table.shop_table tr td span,
  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .input-text::placeholder,
  .woocommerce-info,
  .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row input.input-text::placeholder, .woocommerce form .form-row textarea::placeholder,
.select2-container--default .select2-selection--single .select2-selection__rendered,
    #innerpage-box ul li, .widget_shopping_cart_content p, #comments p,
#comments .total-comments, .comment .comment-metadata, .commentmetadata time, #commentsAdd label,

.woocommerce .select2-container--default .select2-results__option[data-selected=true],
.product_meta span, .single_post .post-date-publishable
{color: '.$innerpagecontentboxtextColor.';}

    #content-box ul li, #content-box ol li, li.select2-results__option{color: '.$innerpagecontentboxlistColor.';}

    #content-box ul li:before{color: '.$innerpagecontentboxlisticonColor.';}

    #content-box ol li:before {color: '.$innerpagecontentboxlistnumberColor.';}
    #content-box ol li:before {background-color: '.$innerpagecontentboxlistnumberbgColor.';}

    .widget-area a,  #content-box a, div#sitemap-box ul li a, #commentsAdd p a, #content-box ol li a, 
     div#sitemap-box ul li a,
div#content-box a.post-edit-link,
div#content-box .woocommerce-MyAccount-content p a,
div#content-box a.shipping-calculator-button,
div#content-box div#payment a,
div#content-box p a,
div#content-box .woocommerce-info a,
div#content-box header.woocommerce-Address-title.title a,
.woocommerce-MyAccount-navigation-link.is-active a, .woocommerce-MyAccount-navigation-link a:hover


    {color: '.$innerpagecontentboxlinkColor.';}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea,   
#innerpage-box .widget select,
    #innerpage-box .widget select option,
.single-productpage #innerpage-box select option,
    .single-productpage #innerpage-box select,
    .single-productpage .widget_product_categories select,
    .single-productpage .widget_product_categories select option,
   .single-productpage .widget_product_categories .select2-container--default .select2-selection--single,
    .woocommerce-product-search .search-field,
    .widget_product_search .woocommerce-product-search .search-field,
     .woocommerce-product-search  input[type="text"], .woocommerce-product-search input[type="email"],.woocommerce-product-search input[type="url"], .woocommerce-product-search input[type="password"], .woocommerce-product-search input[type="search"], .woocommerce-product-search input[type="number"], .woocommerce-product-search input[type="tel"], .woocommerce-product-search input[type="range"], .woocommerce-product-search input[type="date"],.woocommerce-product-search input[type="month"], .woocommerce-product-search input[type="week"], .woocommerce-product-search input[type="time"], .woocommerce-product-search input[type="datetime"], .woocommerce-product-search input[type="datetime-local"], .woocommerce-product-search input[type="color"],
.woocommerce table.shop_table,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown,
.select2-container--default .select2-selection--single,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tfoot th,
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img, 
.woocommerce #review_form #respond .form-submit input,
.woocommerce div.product form.cart .button, .woocommerce-page div.product form.cart .button, .woocommerce #content div.product form.cart .button, .woocommerce-page #content div.product form.cart .button,

.woocommerce #review_form #respond .form-submit input,
.woocommerce div.product form.cart .button, 
.woocommerce-page div.product form.cart .button, 
.woocommerce #content div.product form.cart .button, 
.woocommerce-page #content div.product form.cart .button,

select#product_cat option,
.woocommerce li.select2-results__option

     {border-color: '.$innerpageborderColor.';}
.woocommerce .products ul, 
.woocommerce-page .products ul, 
.woocommerce ul.products, 
.woocommerce-page ul.products,
.woocommerce .related ul.products, .woocommerce-page .related ul.products, .woocommerce .upsells.products ul.products, .woocommerce-page .upsells.products ul.products, .woocommerce .related ul, .woocommerce-page .related ul, .woocommerce .upsells.products ul, .woocommerce-page .upsells.products ul , .woocommerce table.shop_table td, .woocommerce-cart .cart-collaterals .cart_totals tr th, .woocommerce-cart .cart-collaterals .cart_totals tr td, .widget-area ul ul, .woocommerce div.product form.cart .button, .woocommerce-page div.product form.cart .button, .woocommerce #content div.product form.cart .button, .woocommerce-page #content div.product form.cart .button, 

.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th, .woocommerce .widget_shopping_cart .total, .woocommerce.widget_shopping_cart .total
{border-top-color: '.$innerpageborderColor.';}
.woocommerce-checkout #payment ul.payment_methods, .woocommerce .related ul li.product, .woocommerce-page .related ul li.product, .woocommerce .related ul.products li.product, .woocommerce-page .related ul.products li.product, .single_post .post-date-publishable{border-bottom-color: '.$innerpageborderColor.';}


    #innerpage-box .ht-footer table tr, #innerpage-box .widget_calendar table tbody td{color: '.$innerpagetabletextColor.';}
     #innerpage-box .widget_calendar table thead tr th{color: '.$innerpagetabledaysColor.';}
   #innerpage-box .widget_calendar thead{background-color: '.$innerpagetabledaysbgColor.';}
    #innerpage-box .widget_calendar table tbody td,  #innerpage-box table tbody{background-color: '.$innerpagetableboxbgColor.';}
 #innerpage-box .widget_calendar tfoot tr td a, input[type="submit"], div#secondary input[type="submit"]{background-color: '.$innerpagetablebtnbgColor.';}
   #innerpage-box table tr td a,  #innerpage-box input[type="submit"], .woocommerce ul.products li.product:hover .button, .woocommerce a.button:hover, .woocommerce ul.products li.product .button, .single-productpage #sidebars button, .woocommerce button.button.alt,  .woocommerce button.button, .woocommerce div.product .woocommerce-tabs ul.tabs li a, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a , .single-productpage .woocommerce #respond input#submit, .single-productpage .woocommerce #respond input#submit:hover,.woocommerce a.button, .single-productpage .woocommerce button.button, .single-productpage .woocommerce-page button.button, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], 
#blog-box .blog-read-more a:hover, #blog-box .blog-read-more a, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce button.button.alt:hover, .woocommerce .select2-container--default .select2-results__option--highlighted[aria-selected], .woocommerce .select2-container--default .select2-results__option--highlighted[data-selected]{color: '.$innerpagetablebtnColor.';}


.widget .social-profile-icons ul li i,.inner-blog-post .socialMedia a{color: '.$innerpagesocialsColor.';}

     #innerpage-box .innerpage-whitebox, .widget-area .widget, .woocommerce-info, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single .select2-selection__rendered, .select2-dropdown, .select2-container--default .select2-search--dropdown .select2-search__field, .woocommerce table.shop_table td, div#sitemap-box h3, input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea, #innerpage-box .widget select, #innerpage-box .widget select option, .single-productpage #innerpage-box select option, .single-productpage #innerpage-box select, .single-productpage .widget_product_categories select, .single-productpage .widget_product_categories select option, .single-productpage .widget_product_categories .select2-container--default .select2-selection--single, .total-product-title-wrap, .woocommerce-product-search  input[type="text"], .woocommerce-product-search input[type="email"],.woocommerce-product-search input[type="url"], .woocommerce-product-search input[type="password"], .woocommerce-product-search input[type="search"], .woocommerce-product-search input[type="number"], .woocommerce-product-search input[type="tel"], .woocommerce-product-search input[type="range"], .woocommerce-product-search input[type="date"],.woocommerce-product-search input[type="month"], .woocommerce-product-search input[type="week"], .woocommerce-product-search input[type="time"], .woocommerce-product-search input[type="datetime"], .woocommerce-product-search input[type="datetime-local"], .woocommerce-product-search input[type="color"], .woocommerce .widget_price_filter .ui-slider .ui-slider-handle, #innerpage-box table tbody, #tab-description, .woocommerce div.product .woocommerce-tabs .panel, .woocommerce .select2-container--default .select2-results__option[data-selected=true]{background-color: '.$innerpageboxbgColor.';}
     #blog-box .inner-blog-post,  .woocommerce-checkout #payment{background-color: '.$innerpageblogboxbgColor.';}

   ';




 // Inner contact us page background color
    $ContactusdetailiconColor = get_theme_mod('contactus_detailiconColor', '#444');
    $ContactusdetailtitleColor = get_theme_mod('contactus_detailtitleColor', '#444');
    $ContactusdetailinfoColor = get_theme_mod('contactus_detailinfoColor', '#444');
    $ContactusdetailemailColor = get_theme_mod('contactus_detailemailColor', '#fd7198');
    $ContactusdetailemailhoverColor = get_theme_mod('contactus_detailemailhoverColor', '#a556d4');
    $ContactusformtitleColor = get_theme_mod('contactus_formtitleColor', '#fff');
    $ContactusformbgColor = get_theme_mod('contactus_formbgColor', '#fd7198');
    $ContactusformlabelColor = get_theme_mod('contactus_formlabelColor', '#fff');
    $ContactusformtextplaceColor = get_theme_mod('contactus_formtextplaceColor', '#fff');
    $ContactusformborderbottomColor = get_theme_mod('contactus_formborderbottomColor', '#fff');
    $ContactusformbtnColor = get_theme_mod('contactus_formbtnColor', '#fd7198');
    $ContactusformbtnbgColor = get_theme_mod('contactus_formbtnbgColor', '#fff');
     $ContactusformbtnhoverColor = get_theme_mod('contactus_formbtnhoverColor', '#fff');
    $ContactusformbtnbghoverColor = get_theme_mod('contactus_formbtnbghoverColor', '#a556d4');
     $ContactusformdtextColor = get_theme_mod('contactus_formdtextColor', '#fff');
    $ContactussocialtitleColor = get_theme_mod('contactus_SocialtitleColor', '#a556d4');
    $ContactussocialColor = get_theme_mod('contactus_SocialTitleColor', '#fff');
    $ContactussocialbgColor = get_theme_mod('contactus_SocialbgColor', '#a556d4');
    $ContactussocialhoverColor = get_theme_mod('contactus_SocialTitlehoverColor', '#fff');
    $ContactussocialbghoverColor = get_theme_mod('contactus_SocialbghoverColor', '#fd7198');
    $ContactusmapbgColor = get_theme_mod('contactus_mapbgColor', '#a556d4');
    $custom_css .= '.contact-page-address .ht-section-tagline{color: '.$ContactusdetailtitleColor.';}
    .contact-page-address .ht-section-tagline .fa {color: '.$ContactusdetailiconColor.';}
    .contact-page-address .contact-info {color: '.$ContactusdetailinfoColor.';}
    #innerpage-box .contact-info a{color: '.$ContactusdetailemailColor.';}
     #innerpage-box .contact-info a:hover {color: '.$ContactusdetailemailhoverColor.';}
    #ht-contactus-wrap h2, #ht-contactus-wrap h2 small {color: '.$ContactusformtitleColor.';}
    #ht-contactus-wrap .contact-page-form {background-color: '.$ContactusformbgColor.';}
    #ht-contactus-wrap label {color: '.$ContactusformlabelColor.';}
     #ht-contactus-wrap input[type="text"], 
     #ht-contactus-wrap input[type="email"], 
     #ht-contactus-wrap input[type="url"], 
     #ht-contactus-wrap input[type="password"], 
     #ht-contactus-wrap input[type="search"], 
     #ht-contactus-wrap input[type="number"], 
     #ht-contactus-wrap input[type="tel"], 
     #ht-contactus-wrap input[type="range"], 
     #ht-contactus-wrap input[type="date"], 
     #ht-contactus-wrap input[type="month"], 
     #ht-contactus-wrap input[type="week"], 
     #ht-contactus-wrap input[type="time"], 
     #ht-contactus-wrap input[type="datetime"],
     #ht-contactus-wrap input[type="datetime-local"], 
     #ht-contactus-wrap input[type="color"],
    #ht-contactus-wrap input[type=file],
     #ht-contactus-wrap select,
     #ht-contactus-wrap textarea,
     #ht-contactus-wrap input::placeholder,
     #ht-contactus-wrap textarea::placeholder,
    #ht-contactus-wrap select::placeholder {color: '.$ContactusformtextplaceColor.';}
    #ht-contactus-wrap input[type="text"], 
     #ht-contactus-wrap input[type="email"], 
     #ht-contactus-wrap input[type="url"], 
     #ht-contactus-wrap input[type="password"], 
     #ht-contactus-wrap input[type="search"], 
     #ht-contactus-wrap input[type="number"], 
     #ht-contactus-wrap input[type="tel"], 
     #ht-contactus-wrap input[type="range"], 
     #ht-contactus-wrap input[type="date"], 
     #ht-contactus-wrap input[type="month"], 
     #ht-contactus-wrap input[type="week"], 
     #ht-contactus-wrap input[type="time"], 
     #ht-contactus-wrap input[type="datetime"],
     #ht-contactus-wrap input[type="datetime-local"], 
     #ht-contactus-wrap input[type="color"],
    #ht-contactus-wrap input[type=file],
     #ht-contactus-wrap select,
     #ht-contactus-wrap textarea {border-color: '.$ContactusformborderbottomColor.';}
    #ht-contactus-wrap input[type="submit"] {color: '.$ContactusformbtnColor.';}
     #ht-contactus-wrap input[type="submit"] {background-color: '.$ContactusformbtnbgColor.';}
     #ht-contactus-wrap input[type="submit"]:hover{color: '.$ContactusformbtnhoverColor.';}
    #ht-contactus-wrap input[type="submit"]:hover{background-color: '.$ContactusformbtnbghoverColor.';}
    #ht-contactus-wrap .contact-page-form{color: '.$ContactusformdtextColor.';}
    #ht-contactus-wrap h3, #ht-contactus-wrap h3 small {color: '.$ContactussocialtitleColor.';}
    #ht-contactus-wrap .contact-sm-links li a {color: '.$ContactussocialColor.';}
    #ht-contactus-wrap .contact-sm-links li a {background-color: '.$ContactussocialbgColor.';}
  #innerpage-box span.fa:hover, #ht-contactus-wrap .contact-sm-links li a:hover {color: '.$ContactussocialhoverColor.';}
   #ht-contactus-wrap .contact-sm-links li a:hover{background-color: '.$ContactussocialbghoverColor.';}
    .contact-mapbox iframe {background-color: '.$ContactusmapbgColor.';}';

     $featuredPageHeadingColor = get_theme_mod('lz_featured_pages_HeadingColor', '#ffffff');
        $featuredPageTextColor = get_theme_mod('lz_featured_pages_TextColor', '#ffffff');
        $featuredPageIconColor = get_theme_mod('lz_featured_pages_IconColor', '#ffffff');
        $featuredPageTitleColor = get_theme_mod('lz_featured_pages_TitleColor', '#ffffff');
        //$featuredPageCoursesColor = get_theme_mod('lz_featured_pages_CoursesColor', 'transparent');
        $featuredPageCoursesFColor = get_theme_mod('lz_featured_pages_CoursesFColor', '#fd7198');
        $featuredPageCoursesBColor = get_theme_mod('lz_featured_pages_CoursesBColor', '#00dfc4');



    $custom_css .= '.lz-featured-Page-heading, .featured-post h5{color: '.$featuredPageHeadingColor.';} 
    .ht-section-tagline.lz-featured-Page-text, .lz-featured-Page-text, #featured-pages-section .featured-excerpt{color: '. $featuredPageTextColor.';}.featured-icon{color: '. $featuredPageIconColor.';}.featured-post h5{color: '. $featuredPageTitleColor.';} .front{background-color: '. $featuredPageCoursesFColor.';} .back{background-color: '. $featuredPageCoursesBColor.';}';

    // featured post heading & text color
    $featuredPostHeadingColor = get_theme_mod('lz_fitness_featured_HeadingColor', '#2a2a2a');
    /*if($primColor == $featuredPostHeadingColor){
        $featuredPostHeadingColor = $headingColor;
    }*/
    $featuredPostTextColor = get_theme_mod('lz_fitness_featured_TextColor', '#4f4f4f');
    $featuredPostTitleColor = get_theme_mod('lz_fitness_featured_TitleColor', '#2a2a2a');
    $featuredPostIconColor = get_theme_mod('lz_fitness_featured_IconColor', '#fff');
    $custom_css .= '.lz-featured-heading{color: '.$featuredPostHeadingColor.';} 
    .lz-featured-text, #featured-post-section .featured-excerpt{color: '.$featuredPostTextColor.';}
     #featured-post-section .featured-post h5 a{color: '.$featuredPostTitleColor.';} 
     #featured-post-section .featured-icon span{color: '.$featuredPostIconColor.';}';

   // our courses heading & text color
    $ourCoursesHeadingColor = get_theme_mod('luzuk-premium_courses_HeadingColor', '#2a2a2a');
    /*if($primColor == $ourCoursesHeadingColor){
        $ourCoursesHeadingColor = $headingColor;
    }*/
    $ourCoursesTextColor = get_theme_mod('luzuk-premium_courses_TextColor', '#4f4f4f');
    $ourCoursesTitleColor = get_theme_mod('luzuk-premium_courses_TitleColor', '#2a2a2a');
    $ourCoursesIconColor = get_theme_mod('luzuk-premium_courses_IconColor', '#2e2e2e');
    $custom_css .= '.lz-featured-cources-heading{color: '.$ourCoursesHeadingColor.';} 
    .lz-featured-cources-text, .featured-excerpt{color: '.$ourCoursesTextColor.';}
     #our-courses-section .featured-post h5 a{color: '.$ourCoursesTitleColor.';} 
     #our-courses-section .featured-icon a, #our-courses-section .featured-icon a:before, #our-courses-section .featured-icon a:after{color: '.$ourCoursesIconColor.';}';


    $teamHeadingColor = get_theme_mod('lz_fitness_team_HeadingColor', '#a556d4');
        $teamTextColor = get_theme_mod('lz_fitness_team_TextColor', '#323232');
    $custom_css .= 'h2.ht-section-title.lz-team-heading{color: '.$teamHeadingColor.';} 
    .lz-team-text, .ht-team-member .ht-team-content{color: '. $teamTextColor.';}';
	//gym heading & text color
    $gymHeadingColor = get_theme_mod('lz_fitness_gym_HeadingColor', $primColor);
    if($primColor == $gymHeadingColor){
        $gymHeadingColor = $headingColor;
    }
    $gymTextColor = get_theme_mod('lz_fitness_gym_TextColor', '#333333');
    $custom_css .= '.lz-gym-heading{color: '.$gymHeadingColor.';} .lz-gym-text{color: '.$gymTextColor.';}';
	//appointment heading & text color
    $appointmentHeadingColor = get_theme_mod('lz_fitness_appointment_HeadingColor', $primColor);
    /*if($primColor == $appointmentHeadingColor){
        $appointmentHeadingColor = $headingColor;
    }*/
    $appointmentTextColor = get_theme_mod('lz_fitness_appointment_TextColor', '#333333');
    $custom_css .= '.lz-appointment-heading{color: '.$appointmentHeadingColor.';} .lz-appointment-text{color: '.$appointmentTextColor.';}';


//header all colors
     $headersocialiconcolor = get_theme_mod('headersocialicon', '#e4cdf2');
     $headersocialiconhovercolor = get_theme_mod('headersocialiconhover', '#000000');
     $headlocationcolcolor = get_theme_mod('headlocationcol', '#ffffff');
     $headlocationiconscolor = get_theme_mod('headlocationiconscol', '#ffffff');
      $headersitetitlecolor = get_theme_mod('headersitetitlecol', '#000000');
      $headersitdescriptioncolor = get_theme_mod('headersitdescriptioncol', '#000000');
          
         

$custom_css .= '.header-social-links a{color: '.$headersocialiconcolor.';}
.header-social-links a:hover{color: '.$headersocialiconhovercolor.';}
.header-right-box div, .header-right-box div a{color: '.$headlocationcolcolor.';}
.header-right-box div .fa{color: '.$headlocationiconscolor.';}
.ht-site-title a, .site-title a{color: '.$headersitetitlecolor.';}
.ht-site-description, .ht-site-description a{color: '.$headersitdescriptioncolor.';}
';
	//plan heading & text color
    $planHeadingColor = get_theme_mod('lz_fitness_plan_HeadingColor', $primColor);
    /*if($primColor == $planHeadingColor){
        $planHeadingColor = $headingColor;
    }*/
    $planTextColor = get_theme_mod('lz_fitness_plan_TextColor', '#333333');
    $custom_css .= '.lz-plan-heading{color: '.$planHeadingColor.';} .lz-plan-text{color: '.$planTextColor.';}';

    $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].';}';
        }
    }else{
        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;}';
        }
    }


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

    return punte_css_strip_whitespace($custom_css);
}