/****************************
-- Forms --
****************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea {
  background-color: #f6f6f6;
  border-radius: 18px;
  border: 1px solid #ececec;
  color: #333;
  font-size: 15px;
  font-size: 1.5rem;
  line-height: 21px;
  height: 43px;
  padding: 10px 17px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-wrapper {
  position: relative;
}

.select-wrapper {
  background-color: #f6f6f6;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  position: relative;
  z-index: 0;
}

.select-wrapper:after {
  background-color: #f6f6f6;
  border-radius: 0 22px 22px 0;
  color: #969696;
  content: '↓';
  font-size: 15px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 43px;
  position: absolute;
  right: 0;
  text-align: left;
  top: 0;
  width: 33px;
  z-index: -1;
}

.select-wrapper select {
  background: transparent;
  border: 0;
  color: #969696;
  cursor: pointer;
  display: block;
  font-size: 15px;
  font-size: 1.5rem;
  font-weight: 500;
  height: 43px;
  padding: 0 20px;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper select::-ms-expand {
  display: none; /* to ie 10 */
}

/* little trick for custom select elements in mozilla firefox  17/06/2014 @rodrigoludgero */
:-moz-any(.select-wrapper):before {
  background-color: #fff; /* this is necessary for overcome the caret default browser */
  bottom: -1px;
  content: '';
  pointer-events: none; /* https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events  */
  position: absolute;
  right: -1px;
  top: -1px;
  width: 34px;
  z-index: 1; /* this is necessary for overcome the pseudo element */
}

:-moz-any(.select-wrapper):after {
  background-color: #f6f6f6; /* this is necessary for overcome the caret default browser */
  border: 1px solid #e5e5e5;
  border-left: 0;
  pointer-events: none; /* https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events  */
  right: -1px;
  top: -1px;
  width: 34px;
  z-index: 2; /* this is necessary for overcome the pseudo element */
}

/****************************
-- Search --
****************************/
.search input[type="search"] {
  background-color: #06a74e;
  border: 0;
  border-radius: 19px;
  color: #fff;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  opacity: 1;
  padding: 10px 49px 10px 14px;
  width: 100%;
  -webkit-transition: background-color 200ms ease;
  transition: background-color 200ms ease;
}

.search .submit {
  background-color: #fff;
  bottom: 5px;
  border-radius: 15px;
  position: absolute;
  right: 5px;
  text-align: center;
  top: 5px;
  width: 40px;
}

.search .submit:after {
  color: #06a94e;
  content: 'g';
  font-family: arloicons;
  font-size: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  height: 12px;
  left: 50%;
  margin-left: -7px;
  margin-top: -6px;
  position: absolute;
  top: 50%;
  width: 14px;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  transform-origin: 5px 5px;
}

.search .submit:hover:after {
  color: #0f6d35;
}

.search .loading + .submit:after {
  margin-left: -5px;
  margin-top: -5px;
  -webkit-animation: rotate 1000ms linear 0ms forwards infinite;
  animation: rotate 1000ms linear 0ms forwards infinite;
}

.search .submit input {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  height: 100%;
  left: 0;
  margin: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 99;
}

/****************************
-- Sign Up --
****************************/
.signup input[type="email"] {
  border: 0;
  border-radius: 20px;
  background-color: #06a94e;
  color: #fff;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  padding: 10px 45px 10px 18px;
  width: 100%;
  -webkit-transition: background-color 200ms ease;
  transition: background-color 200ms ease;
}

.signup input:focus {
  background-color: #0f6d35;
}

.signup .submit {
  background-color: #fff;
  bottom: 5px;
  border-radius: 22px;
  position: absolute;
  right: 5px;
  text-align: center;
  top: 5px;
  width: 39px;
}

.signup .submit:after {
  color: #06a94e;
  content: '→';
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 27px;
  width: 100%;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}

.signup .submit:hover:after {
  color: #0f6d35;
  padding-left: 7px;
}

.signup .na + .submit {
  background-color: #ff4646;
}

.signup .na + .submit:after {
  color: #fff;
}

/* Highlight */
.signup.highlight input[type="email"] {
  background-color: #0f6d35;
}

.signup.highlight .submit:after {
  color: #0f6d35;
}

/****************************
-- Placeholders --
****************************/
/* General */
.placeholder {
  color: #aaa;
}

/* Search and Signup (green bg) */
.search .placeholder,
.signup .placeholder {
  color: #a2d6b7;
}
.search ::-webkit-input-placeholder,
.signup ::-webkit-input-placeholder {
  color: #fff;
  opacity: 0.5;
}
.search ::-moz-placeholder,
.signup ::-moz-placeholder { /* Firefox 19+ */
  color: #fff;
  opacity: 0.5;
}
.search :-ms-input-placeholder,
.signup :-ms-input-placeholder {
  color: #fff;
  opacity: 0.5;
}
.search :-moz-placeholder,
.signup :-moz-placeholder { /* Firefox 18- */
  color: #fff;
  opacity: 0.5;
}

/* Top Search (white bg) */
.top-green .main-title .top .search .placeholder {
  color: #40b973;
}
.top-green .main-title .top .search ::-webkit-input-placeholder {
  color: #06a94e;
}
.top-green .main-title .top .search ::-moz-placeholder { /* Firefox 19+ */
  color: #06a94e;
}
.top-green .main-title .top .search :-ms-input-placeholder {
  color: #06a94e;
}
.top-green .main-title .top .search :-moz-placeholder { /* Firefox 18- */
  color: #06a94e;
}

/****************************
-- Media Queries --
****************************/
@media screen and (min-width: 64em) {
  /*---------------------
  Search
  ---------------------*/
  .search input[type="search"] {
    border-radius: 28px;
    font-size: 28px;
    font-size: 2.8rem;
    font-weight: 500;
    height: 56px;
    line-height: 36px;
    padding: 10px 67px 10px 28px;
  }

  .search .submit {
    border-radius: 22px;
    bottom: 6px;
    right: 7px;
    top: 6px;
    width: 58px;
  }

  .search .submit:after {
    font-size: 18px;
    font-size: 1.8rem;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    width: 20px;
    transform-origin: 7.5px 7.5px;
  }

  .search .loading + .submit:after {
    margin-left: -7.5px;
    margin-top: -7.5px;
  }
}