<?php
/**
 * Custom search form template
 *
 * @package Paws_And_Care
 * @since 1.0.0
 */

$unique_id = wp_unique_id( 'search-form-' );
?>

<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    <div class="input-group">
        <label for="<?php echo esc_attr( $unique_id ); ?>" class="visually-hidden"><?php esc_html_e( 'Search for:', 'paws-and-care' ); ?></label>
        <input type="search" id="<?php echo esc_attr( $unique_id ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Search...', 'paws-and-care' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
        <button type="submit" class="btn btn-primary">
            <i class="fa-solid fa-magnifying-glass"></i>
            <span class="visually-hidden"><?php esc_html_e( 'Search', 'paws-and-care' ); ?></span>
        </button>
    </div>
</form>

