/****************************
-- Forms --
****************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
  background-color: #f1f4f5;
  border: 0;
  color: #262626;
  font-size: 12px;
  line-height: 20px;
  height: 36px;
  outline: 0;
  padding: 8px 18px;
  -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 {
  background-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;
}

/* Fancy select */
.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 */
}

/* Fake upload */
.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);
}

/* Hidden select */
.hidden_select {
  position: relative;
  z-index: 2;
}

.hidden_select select {
  border: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* 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;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 40px;
}

.search .submit:after {
  color: #262626;
  content: '\e907';
  font-family: ngicons;
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 40px;
}

.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;
}

/****************************
-- Placeholders --
****************************/
/* General */
.placeholder {
  color: #b9b9b9;
}

/* Search and Signup (white bg) */
.placeholder {
  color: #b9b9b9;
}

::-webkit-input-placeholder {
  color: #b9b9b9;
  opacity: 1 !important;
}

:-moz-placeholder { /* Firefox 18- */
  color: #b9b9b9;
}

::-moz-placeholder { /* Firefox 19+ */
  color: #b9b9b9;
}

:-ms-input-placeholder {
  color: #b9b9b9;
}

/****************************
-- Media Queries --
****************************/
@media screen and (min-width: 64em) {

}
