.search form {
  position: relative;
  width: 300px;
  margin: 0 auto;
}
.d7:after {content:""; clear:both; display:table}
.d7 form {
  width: auto;
  float: right;
  margin-left: 15px;
  margin-right: 15px; 
}
.d7 input {
  width: 150px;
  height: 22px;
  padding-left: 15px;
  border-radius: 42px;
  border: 1px solid #324b4e;
  outline: none;
  position: relative;
  transition: .3s linear;
}
.d7 input:focus {
  width: 200px;
}
.d7 button {
  height: 12px;
  background: none;
  border: none;
  position: absolute;
  margin-right: 5px;
  margin-top: 1px;
  right: 0;
}
.d7 button:before{
  content: "\f002";
  font-family: FontAwesome;
  color: #324b4e;
}