<?php 
$class = isset($args['class']) ? $args['class'] : '';
?>

<section class="section new-pricing-cards <?php echo $class;?>">
    <div class="container">
        <div class="box">
            <div class="text-cont slide-down">
                <h2 class="section-title text-center"><?php echo get_field('pricing_plans_section_main_heading');?></h2>
                <p class="section-content text-center"><?php echo get_field('pricing_plans_section_main_text');?></p>
            </div>
            <div class="row mt-3">
                <div class="col-lg-4">
                    <div class="try-free-card">
                        <div class="card-body">
                            <h2 class="card-title"><?php echo get_field('pricing_plans_cta_heading');?></h2>
                            <p class="card-description"><?php echo get_field('pricing_plans_cta_text');?></p>
                            <div class="divider"></div>
                            <?php if( have_rows('pricing_plans_cta_features_lists') ): ?>
                                <ul class="slides">
                                <?php while( have_rows('pricing_plans_cta_features_lists') ): the_row(); ?>
                                    <li class="list-group-item">
                                        <?php echo get_sub_field('pricing_plans_cta_features_list_item');?>
                                    </li>
                                <?php endwhile; ?>
                                </ul>
                            <?php endif; ?>
                            <a href="<?php echo get_field('pricing_plans_cta_button_link');?>" class="demo-btn w-100 text-center"><?php echo get_field('pricing_plans_cta_button_text');?></a>
                            <p class="no-credit-card"><?php echo get_field('pricing_plans_is_credit_card_required');?></p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-8 mt-4 mt-lg-0">
                <?php if( have_rows('pricng_plans_icon_box') ): ?>
                    <div class="row gx-0">
                        <?php while( have_rows('pricng_plans_icon_box') ): the_row(); ?>
                        <div class="col-lg-6">
                            <div class="affordable-plans-cards">
                                <div class="card-body">
                                    <div class="gradient-icon-wrapper">
                                        <?php echo get_sub_field('pricng_plans_icon_box_icon');?>                              
                                    </div>
                                    <h2><?php echo get_sub_field('pricng_plans_icon_box_heading');?> </h2>
                                    <p><?php echo get_sub_field('pricng_plans_icon_box_text');?> </p>
                                </div>
                            </div>
                        </div>
                        <?php endwhile; ?>
                    </div>
                <?php endif; ?>

                </div>
            </div>

        </div>
    </div>
</section>