/****************************
-- Forms --
****************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid #e1e1e1;
  color: rgba(51,51,51,1);
  font-size: 14px;
  line-height: 20px;
  height: 40px;
  outline: 0;
  padding: 9px 17px 9px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"].invalid,
input[type="password"].invalid,
input[type="email"].invalid,
input[type="search"].invalid,
input[type="tel"].invalid,
input[type="url"].invalid,
textarea.invalid {
  border-color: #ff4646;
}

label {
  display: inline-block;
}

label.checkradio {
  padding-left: 17px;
  position: relative;
}

.checkradio input[type="checkbox"],
.checkradio input[type="radio"] {
  height: 13px;
  left: 0;
  margin: 0;
  position: absolute;
  top: 4px;
  width: 13px;
}

.checkradio input.invalid + span {
  border-bottom: 1px solid #ff4646;
}

.input-wrapper {
  position: relative;
}

.select-wrapper {
  background-color: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 21px;
  position: relative;
  z-index: 0;
}

.select-wrapper:after {
  background-color: #fff;
  border-radius: 0 21px 21px 0;
  color: #969696;
  content: '\f107';
  font-size: 14px;
  font-size: 1.4rem;
  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 */
}

.fileupload {
  cursor: pointer;
  display: block;
  position: relative;
}

.fileupload_input {
  width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.fileupload_input.invalid ~ .fileupload_name {
  border-color: #ff4646;
}

.fileupload_cta.btn {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  float: right;
}

.fileupload_name {
  background-color: #fff;
  border-radius: 20px 0 0 20px;
  border: 1px solid #e1e1e1;
  border-right: 0;
  color: #ccc;
  display: block;
  font-size: 14px;
  line-height: 20px;
  height: 40px;
  outline: 0;
  overflow: hidden;
  padding: 9px 17px 9px;
}

.fileupload_name.active {
  color: rgba(51,51,51,1);
}

/* 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 */
}

@media screen and (min-width: 1024px) {
  .checkradio input[type="checkbox"],
  .checkradio input[type="radio"] {
    top: 6px;
  }
}

@media screen and (min-width: 1280px) {
  .checkradio input[type="checkbox"],
  .checkradio input[type="radio"] {
    top: 8px;
  }
}

/****************************
-- Search --
****************************/

.search input {
  padding-right: 40px;
  width: 100%;
}

.search .submit {
  bottom: 0;
  border-radius: 0 20px 20px 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 40px;
}

.search .submit:after {
  color: #06a94e;
  content: '\f002';
  font-family: arloicons;
  font-size: 15px;
  font-weight: 400;
  line-height: 40px;
  left: 5px;
  position: absolute;
  top: 0;
  width: 15px;
}

.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 {
  padding-right: 35px;
  width: 100%;
  -webkit-transition: background-color 200ms ease;
  transition: background-color 200ms ease;
}

.signup .submit {
  bottom: 1px;
  border-radius: 0 21px 21px 0;
  position: absolute;
  right: 1px;
  text-align: center;
  top: 1px;
  width: 34px;
}

.signup .submit:after {
  color: #06a94e;
  content: '\f105';
  font-family: arloicons;
  font-size: 14px;
  font-weight: 700;
  line-height: 41px;
  position: absolute;
  left: 0;
  width: 100%;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}

.signup .input-wrapper:hover .submit:after {
  -webkit-animation: shakeLeft 200ms;
  animation: shakeLeft 200ms;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
}

.signup .na {
  border-color: #ff4646;
}

/* Highlight */
.signup.highlight input {
  background-color: #0f6d35;
}

.signup.highlight .submit:after {
  color: #0f6d35;
}

/****************************
-- Placeholders --
****************************/
/* General */
.placeholder {
  color: rgba(51,51,51,0.8);
}

/* Search and Signup (white bg) */
.placeholder {
  color: #ccc;
}

::-webkit-input-placeholder {
  color: #ccc;
  opacity: 1 !important;
}

:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}

::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}

:-ms-input-placeholder {
  color: #ccc;
}

/****************************
-- Media Queries --
****************************/
@media screen and (min-width: 64em) {
  /*---------------------
  Search
  ---------------------*/
  .search input {
    border-radius: 23px;
    font-size: 15px;
    height: 45px;
    line-height: 25px;
    padding: 9px 50px 9px 24px;
  }

  .search .submit {
    border-radius: 0 23px 23px 0;
    width: 50px;
  }

  .search .submit:after {
    left: 10px;
    line-height: 44px;
  }
}
