<?php if ('layout_four' == $settings['layout_type']) : ?>

    <section class="team-form-one background-gray">
        <div class="team-form-one__bg" style="background-image: url(<?php echo esc_url($settings['layout_four_bg_shape']['url']); ?>);"></div>
        <!-- /.team-form-one__bg -->
        <div class="container">
            <div class="sec-title">
                <?php ostech_elementor_rendered_image($settings, 'layout_four_title_image', 'sec-title__img'); ?>
                <?php
                if (!empty($settings['layout_four_sec_sub_title'])) :
                    $this->add_inline_editing_attributes('layout_four_sec_sub_title', 'none');
                    ostech_elementor_rendered_content($this, 'layout_four_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_four']);
                endif;

                if (!empty($settings['layout_four_sec_title'])) :
                    $this->add_inline_editing_attributes('layout_four_sec_title', 'none');
                    ostech_elementor_rendered_content($this, 'layout_four_sec_title', 'sec-title__title', $settings['section_title_tag_layout_four']);
                endif;
                ?>
            </div><!-- /.sec-title -->
            <div class="form-one team-form-one__form">
                <?php echo str_replace("<br />", "", trim(do_shortcode('[contact-form-7 id="' . $settings['layout_four_select_wpcf7_form'] . '" ]'))); ?>
            </div>
        </div><!-- /.container -->
    </section><!-- /.team-form-one -->
<?php endif; ?>