You must change ID on button in main.php:
<button type="submit" id="home-search"><?php _e('Search', 'sofia'); ?></button>
ie into:
<button type="submit" id="home-search-button"><?php _e('Search', 'sofia'); ?></button>
You then have to go to style.css and global.js and update "home-search" related to button into "home-search-button"