<?php
/**
 * Product description step 1 get started template.
 *
 * @package SAAI
 */

if ( ! defined( 'ABSPATH' ) ) {
    die( 'You are not allowed to call this page directly.' );
}

?>

<div class="saai-product-description-form-step saai-product-description-form-step-1" data-step="1">
    <h3>
        <span><?php esc_html_e( 'Let’s get started!', 'storeagent-ai-for-woocommerce' ); ?></span>
        <button type="button" class="saai-button saai-button-main saai-auto-fill-button saai-button-left-icon">
            <img src="<?php echo esc_url( SAAI_PLUGIN_URL . 'static/images/ai-icon.svg' ); ?>" alt="AI Icon" style="width: 16px; height: 16px;">
            <?php esc_html_e( 'Fill-out this form with AI', 'storeagent-ai-for-woocommerce' ); ?>
        </button>
        <span class="spinner"></span>
    </h3>
    <div class="saai-product-description-form-step-content">
        <div class="saai-product-description-form-field">
            <label for="saai-product-description-form-field-product-name"><?php esc_html_e( 'Does your product have a name yet?', 'storeagent-ai-for-woocommerce' ); ?></label>
            <div class="saai-product-description-form-field-radio-group">
                <label for="saai-product-description-form-field-product-name-yes">
                    <input type="radio" id="saai-product-description-form-field-product-name-yes" name="need_product_name" value="no" <?php checked( $need_product_name, 'no' ); ?> />
                    <span><?php esc_html_e( 'Yes, I have a product name', 'storeagent-ai-for-woocommerce' ); ?></span>
                </label>
                <label for="saai-product-description-form-field-product-name-no">
                    <input type="radio" id="saai-product-description-form-field-product-name-no" name="need_product_name" value="yes" <?php checked( $need_product_name, 'yes' ); ?> />
                    <span><?php esc_html_e( 'No, I need help generating a product name', 'storeagent-ai-for-woocommerce' ); ?></span>
                </label>
            </div>
        </div>

        <div class="saai-product-description-form-field">
            <label for="saai-product-description-form-field-product-name"><?php esc_html_e( 'What is the product name?', 'storeagent-ai-for-woocommerce' ); ?></label>
            <input type="text" id="saai-product-description-form-field-product-name" name="product_name" value="<?php echo esc_attr( $product_name ); ?>" />
        </div>

        <div class="saai-product-description-step-actions-field">
            <button type="button" class="button-primary next-step-button">
                <?php esc_html_e( 'Next', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
        </div>
    </div>
</div>
