<?php
/**
 * Step 6 — Contact details + dynamic recap + submit.
 *
 * @package Briefify
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="briefify-step briefify-step--hidden" data-briefify-step="<?php echo esc_attr( $step_number ); ?>">
	<p class="briefify-step-title"><?php echo esc_html( $step_config['title'] ); ?></p>

	<?php if ( ! empty( $step_config['note'] ) ) : ?>
		<p class="briefify-step-note"><?php echo esc_html( $step_config['note'] ); ?></p>
	<?php endif; ?>

	<div class="briefify-row-2col">
		<?php Briefify_Form::render_field( $step_config['fields'][0] ); // name ?>
		<?php Briefify_Form::render_field( $step_config['fields'][1] ); // email ?>
	</div>

	<?php Briefify_Form::render_field( $step_config['fields'][2] ); // company ?>
	<?php Briefify_Form::render_field( $step_config['fields'][3] ); // message ?>

	<?php include BRIEFIFY_PLUGIN_DIR . 'templates/form/recap.php'; ?>

	<div class="briefify-actions">
		<button type="button" class="briefify-btn-back" data-briefify-back="<?php echo esc_attr( $step_number - 1 ); ?>"><?php esc_html_e( '← Back', 'nr-brief-builder' ); ?></button>
		<button type="submit" class="briefify-btn-submit briefify-btn-primary" data-briefify-submit>
			<span class="briefify-btn-submit-label"><?php esc_html_e( 'Send brief ✓', 'nr-brief-builder' ); ?></span>
		</button>
	</div>
</div>
