.input {
  display: inline-block;
  font-family: ubuntu, sans-serif;
}
.input div {
  line-height: 1;
}
.input .inputFrame {
  position: relative;
  font-size: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.input .caption {
  position: relative;
  display: block;
  margin-left: 6px;
  margin-right: 6px;
  height: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.input label {
  padding-left: 2px;
  padding-right: 2px;
  color: rgb(167, 167, 167);
  box-shadow: inset 0px -5px 4px 0px rgb(250, 250, 250);
  background-color: white;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.input label .star {
  position: relative;
  margin-left: -1px;
  top: -1px;
  color: #d45252;
  display: inline;
}
.input input {
  appearance: none;
  outline: none;
  border: 1px solid rgb(218, 218, 218);
  background-color: rgb(250, 250, 250);
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  padding: 2px 4px 0px 10px;
  font-size: 16px;
  line-height: 16px;
  text-overflow: ellipsis;
  height: 42px;
  width: 100%;
  font-family: ubuntu, sans-serif;
  margin: 0px;
  transition: border-color 200ms, padding-top 100ms;
}
.input input::placeholder {
  color: rgb(199, 199, 199);
  opacity: 1;
}
.input input:focus::selection {
  background: hsl(196, 100%, 27%);
  color: white;
}

.snake {
  position: absolute;
  z-index: 1;
  bottom: 0px;
  opacity: 0;
  height: 2px;
  left: 3px;
  right: 3px;
  transition: transform 200ms, opacity 100ms 100ms;
  transform: scaleX(0);
}
.snake.mark {
  background-color: rgb(199, 199, 199);
}
.snake.focus {
  background-color: hsl(196, 100%, 37%);
}

.input .error-hint {
  padding-top: 2px;
  padding-left: 4px;
  font-weight: 100;
  color: #e20000;
  font-size: 13px;
  line-height: 1.2;
}

body:not(.isTouchOnly) .input .inputFrame:hover input {
  border-color: rgb(250, 250, 250);
}
body:not(.isTouchOnly) .input .inputFrame:hover .snake.mark {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 200ms, opacity 20ms;
}

.input.hasFocus input {
  border-color: rgb(250, 250, 250);
}
.input.hasFocus .snake.focus {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 200ms, opacity 20ms;
}

body:not(.isTouchOnly) .input.hasError:not(.hasFocus) .inputFrame:not(:hover) label {
  color: #d45252;
}
body:not(.isTouchOnly) .input.hasError:not(.hasFocus) .inputFrame:not(:hover) input {
  border-color: #efadad;
}

.isTouchOnly .input.hasError:not(.hasFocus) .inputFrame label {
  color: #d45252;
}
.isTouchOnly .input.hasError:not(.hasFocus) .inputFrame input {
  border-color: #efadad;
}