<?php
/**
 * Step 1 — Type de projet.
 *
 * Expects $step_number, $step_config in scope (included from Briefify_Form::render_form()).
 *
 * @package Briefify
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="briefify-step<?php echo ( 1 !== $step_number ) ? ' 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 briefify-actions--right">
		<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>
