<?php 
    $form_shortcode = get_sub_field('form_shortcode'); 
?>


<section id="<?php get_sub_field('section_id');?>" class="hero-with-form">
        <div class="hero-wrapper wrapper--inner" style="background: url('<?php the_sub_field('background_image'); ?>');">
                    <span class="bg-filter"></span>
                    <div class="hero-content">
                        <h1 class="hero-heading heading--xl text-white">
                            <?php the_sub_field('heading'); ?>
                        </h1>
                        <div class="hero-text text-white">
                            <?php the_sub_field('text'); ?>
                        </div>
                    </div>
                    <div class="hero-form">
                        <?php echo do_shortcode($form_shortcode); ?>
                    </div>
        </div>
</section>


