<?php
if (! defined('ABSPATH')) {
    exit;
} $data = isset($args['data']) ? $args['data'] : null;

if (! $data) {
    return;
}

if (! $data->form_enabled) {
    return;
} ?>
<section class="border-t border-neutral-100 bg-white overflow-hidden" id="contact-form-section">
	<div class="mx-auto max-w-canvas px-4 py-24 sm:px-6 lg:px-8 relative">
		<div class="absolute top-0 left-1/2 -translate-x-1/2 w-full h-full bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:24px_24px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_70%,transparent_100%)] opacity-20 pointer-events-none"></div>
		<div id="contact-form" class="bg-white rounded-[2.5rem] shadow-[0_32px_64px_-12px_rgba(0,0,0,0.08)] border border-neutral-100 p-8 sm:p-16 transition-all hover:shadow-[0_32px_80px_-12px_rgba(0,0,0,0.12)]">
			<input type="hidden" data-pg-product-name value="<?php echo esc_attr($data->title); ?>">
			<div class="puffergo-form-wrapper">
				<?php
$block_comment = '<!-- wp:puffergo/contact-form ' . wp_json_encode($data->get_form_block_attrs()) . ' /-->';
echo do_blocks($block_comment); ?>
			</div>
		</div>
	</div>
</section>
