<?php
/**
 * Product description step 7 keywords 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-7 <?php echo ! empty( $keywords ) ? 'valid' : ''; ?>" data-step="7">
    <h3><?php esc_html_e( 'SEO/Keywords', 'storeagent-ai-for-woocommerce' ); ?></h3>
    <div class="saai-product-description-form-step-content">
        <p class="saai-product-description-form-step-description"><?php esc_html_e( 'It’s important to get your SEO right. Give us a phrase (or multiple phrases) to concentrate on.', 'storeagent-ai-for-woocommerce' ); ?></p>

        <div class="saai-product-description-keywords-container">
            <label for="saai-product-description-form-field-keywords"><?php esc_html_e( 'Focus keywords:', 'storeagent-ai-for-woocommerce' ); ?></label>
            <div class="saai-product-description-form-field">
                <select name="keywords[]" multiple="multiple" style="width: 100%;">
                    <?php if ( ! empty( $keywords ) ) : ?>
                        <?php foreach ( $keywords as $keyword ) : ?>
                            <option value="<?php echo esc_attr( $keyword ); ?>" selected><?php echo esc_html( $keyword ); ?></option>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </select>
            </div>
        </div>
        <div class="saai-product-description-step-actions-field">
            <button type="button" class="button previous-step-button">
                <?php esc_html_e( 'Back', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
            <button type="button" class="button-primary next-step-button">
                <?php esc_html_e( 'Next', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
        </div>
    </div>
</div>
