﻿/*
Source : http://www.cssscript.com/demo/pure-css-floating-labels-for-text-fields/
*/
input.pureTextBox:focus ~ label,
textarea.pureTextBox:focus ~ label,
input.pureTextBoxFilled ~ label,
textarea.pureTextBoxFilled ~ label,
.pureTextBox:not(:placeholder-shown) ~ label {
    font-size: 0.75em;
    color: gray;
    top: -1.30rem;
    -webkit-transition: all 0.125s ease;
    transition: all 0.125s ease;
}

input.pureTextBox:-webkit-autofill ~ label, textarea.pureTextBox:-webkit-autofill ~ label {
    font-size: 0.75em;
    color: gray;
    top: -1.30rem;
    -webkit-transition: all 0.125s ease;
    transition: all 0.125s ease;
}

.styled-input {
    clear: left;
    float: left;
    width: 33.3333%;
    margin: 0px;
    margin-top: 1.2rem;
    position: relative;
}

.styled-input label {
  color: gray;
  /*padding: 1rem;*/
  padding-left: 6px;  
  padding-top: 3px;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  pointer-events: none;
}

.styled-input.wide { width: 100%;}
.styled-input.default { width: auto; }

input.pureTextBox,
textarea.pureTextBox {
  padding: 5px;
  /*border: 0;*/
  width: 100%;
  font-size: 1rem;
  border-left: 1px solid grey;
  border-right: 1px solid grey;
  border-bottom: 1px solid grey;
  border-top: 0;
}

.reservationContactForm input.pureTextBox {
    border-radius: 0px;
}

input.pureTextBox ~ span,
textarea.pureTextBox ~ span {
  display: block;
  width: 0;
  height: 3px;
  background: gray;
  position: absolute;
  bottom: 0;
  left: 0;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

input.pureTextBox:focus,
textarea.pureTextBox:focus { outline: 0; }

input.pureTextBox:focus ~ span,
textarea.pureTextBox:focus ~ span {
  width: 100%;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

textarea.pureTextBox {
  width: 330px;
  /*min-height: 15em;*/
}