<?php
/**
 * Step 2 — Objectifs.
 *
 * @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 foreach ( $step_config['fields'] as $field ) : ?>
		<?php Briefify_Form::render_field( $field ); ?>
	<?php endforeach; ?>

	<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="button" class="briefify-btn-next briefify-btn-primary" data-briefify-next="<?php echo esc_attr( $step_number + 1 ); ?>"><?php esc_html_e( 'Next →', 'nr-brief-builder' ); ?></button>
	</div>
</div>
