search custom post type by custom fields on front end

I solved it and share it here if its help some one else

add_shortcode('user_search','My_User_search');
function My_User_search($atts = null){
$out = user_search_form();
$args = array('post_type' => 'umrahpackage','order' => 'asc', 
            'meta_query' => array(
              array(
                  'key' => 'country',
                  'value' => $_GET['s_value'],
                  'compare' => 'Like',
                  )
              )
          );
    $the_query = new WP_Query( $args );
    if( $the_query->have_posts() ):
        while( $the_query->have_posts() ) : $the_query->the_post();
        
          if($_GET['s_value']==''){
            //before search hide the posts 
          }
          else {
            $out .= '<li>' . get_the_title() . '</li>';
          }  
        endwhile;
    endif;    
return $out;
}
//function to display user search form
 function user_search_form(){

 $re="<div class="user_search"><form action="" name="user_s" method="get">
    <label for="search_by">Search by:</label>
    <div id="search_by" name="search_by">";

$re .= '
        <label>Company Name</label>
        <input id="s_value" name="s_value" type="text" value="'.$metavalue.'"/>
       
        <input name="user_search" id="user_search" type="hidden" value="umrahpackage"/>
        <input id="submit" type="submit" value="Search" />
    </form></div>';
return $re;
}

?>