/****************************
-- Forms --
****************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea {
  background-color: #fff;
  border-radius: 18px;
  border: 1px solid #dedede;
  box-sizing: border-box;
  color: #333;
  font-size: 15px;
  font-size: 1.5rem;
  line-height: 1;
  height: 37px;
  outline: 0;
  padding: 10px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-wrapper {
  position: relative;
}

/* Custom Select */
.select-wrapper {
  background-color: #fff;
  border: 1px solid #ececec;
  border-radius: 17px;
  max-width: 330px;
  min-width: 270px;
  position: relative;
  z-index: 0;
}

.select-wrapper:after {
  background-color: #fff;
  border-radius: 0 17px 17px 0;
  color: #662d80;
  content: 'l';
  font-family: ngicons;
  font-size: 5px;
  font-weight: 700;
  line-height: 37px;
  position: absolute;
  right: 0;
  text-align: left;
  top: 0;
  width: 24px;
  z-index: -1;
}

.select-wrapper select {
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  display: block;
  font-size: 15px;
  height: 37px;
  outline: 0;
  padding: 0 30px 0 17px;
  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: #fff; /* this is necessary for overcome the caret default browser */
  border: 2px solid #ececec;
  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 */
  height: 43px;
}

/* Custom Radio / Checkbox */
input[type=radio],
input[type=checkbox]{
  display: none; /* This may not work */
  position: absolute;
  visibility: hidden;
}

input[type=radio] + label,
input[type=checkbox] + label {
  display: inline-block;
  padding-left: 19px;
  position: relative;
}

input[type=radio] + label:before,
input[type=checkbox] + label:before {
  background-color: #fff;
  border: 1px solid #adadad;
  content: '';
  cursor: pointer;
  height: 12px;
  left: 0;
  margin-top: -6px;
  position: absolute;
  top: 50%;
  transition: all 200ms ease;
  width: 12px;
}

input[type=radio] + label:before {
  border-radius:50%;
}

input[type=checkbox] + label:before {
  border-radius:2px;
}

input[type=radio] + label:after {
  background-color: #fff;
  border-radius: 50%;
  content: '';
  cursor: pointer;
  height: 6px;
  left: 3px;
  margin-top: -3px;
  position: absolute;
  top: 50%;
  transition: all 200ms ease;
  width: 6px;
}

input[type=checkbox] + label:after {
  color: #fff;
  content: 'z';
  cursor: pointer;
  font-family: ngicons;
  font-size: 6px;
  line-height: 10px;
  left: 1px;
  margin-top: -5px;
  position: absolute;
  text-align: center;
  top: 50%;
  transition: all 200ms ease;
  width: 10px;
}

input[type=radio] + label:hover:after {
  background-color: #adadad;
}

input[type=checkbox] + label:hover:after {
  color: #adadad;
}

input[type=radio]:checked + label:before,
input[type=checkbox]:checked + label:before {
  border-color: #662d80;
}

input[type=radio]:checked + label:after {
  background-color: #662d80;
}

input[type=checkbox]:checked + label:after {
  color: #662d80;
}

input[type=radio] + label span,
input[type=checkbox] + label span {
  font-size: 1.5rem;
}

/****************************
-- Search Bar --
****************************/
.search-bar {
  position: relative;
}

.search-bar .submit {
  bottom: 1px;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 20px;
}

.search-bar .submit:after {
  color: #633292;
  content: 'g';
  font-size: 12px;
  font-family: ngicons;
  height: 13px;
  right: 5px;
  margin-top: -6px;
  position: absolute;
  top: 50%;
  width: 13px;
}

/****************************
-- 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;
}

/****************************
-- Media Queries --
****************************/
@media screen and (min-width: 64em) {
  /*---------------------
  Search
  ---------------------*/
}
