<head>
    <script src="https://kit.fontawesome.com/9b8a7e18a0.js"></script>
  </head>

<body> 
<div class="search_box">
   <div class="search">
     <div class= "select_area">
       <i class="fas fa-map-marker-alt map_icon"></i>
       <div class="text">Anywhere</div>
     </div>
     
     <div class="line"></div>
     
     <div class = "text_and-icon">
       <input type="text" class="search_text" id="search_text" placeholder="Search by Company, Keyword or the designation ..">
            <i class="fas fa-search search_icon"></i>
     </div>
</div>  
</body>
@import url(https://fonts.googleapis.com/css?family=Roboto);

body {
  background-color : #FAFAFA;
  display : grid;
}

.search_box {
  padding-top : 200px;
}

.search {
  padding-left: 25px;
  display: flex;
  align-items: center;
  margin : auto;
  width : 612px;
  height: 54px;
  background-color : white;
  border-radius: 25px;
  -webkit-box-shadow: 0px 10px 38px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 10px 38px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 10px 38px 0px rgba(0,0,0,0.1);
}

.select_area {
  color : #4451FE;
  display : flex;
  align-items: center;
  font-family: 'Roboto', sans-serif; line-height:24px;
  font-weight : medium ;
}

.text {
  padding-left:15px;
}

.line {
  margin-left: 15px;
  border-left: 1px solid #D8D8D8;
  height: 40px;
}

.search_text {
  width: 100%;
  border: none;
  margin-left : 15px;
  font-size : 16px;
  font-family: 'Roboto', sans-serif; line-height:24px;
  font-weight : Regular ;
  place
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ADB1B8;
}


.text_and-icon {
  width: 410px;
  display: flex;
  align-items: center;
}
.search_icon {
  color : #5E6573;
    transition: all .6s ease-in-out;
    -webkit-transition: all .6s ease-in-out; /** Chrome & Safari **/
    -moz-transition: all .6s ease-in-out; /** Firefox **/
    -o-transition: all .6s ease-in-out; /** Opera **/
}

.search_text:focus {
  outline: none !important;
}

.search_text:focus + .search_icon{
  color : #4451FE;
  transform: translate(55px,0);
    -webkit-transform: translate(55px,0); 
    -o-transform: translate(55px,0); 
    -moz-transform: translate(55px);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.