/*

* Amazium V3.3.0

* Copyright 2013, Mike Ballan

* www.amazium.co.uk

*/
/***** Forms with labels *****/
form {
  margin: 0 0 16px;
  padding: 0;
  display: inline-block;
  width: 100%;
}
label {
  margin: 0;
  padding: 0 16px 0 0;
  text-align: left;
  width: 100%;
  font-size: 16px;
  font-family: 'Bitter'Sans-Serif;
  color: #666;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
label.checkbox, label.radio {
  text-align: left;
  width: auto;
}
form span {
  margin: 10px 0;
  padding: 0;
  display: block;
  overflow: hidden;
  float: left;
}
fieldset {
  margin: 0 0 20px 0;
  padding: 0;
  display: block;
  position: relative;
  top: 0;
  left: 0;
}
fieldset small {
  margin: 0 0 16px 30%;
  width: 70%;
  display: none;
}
input, textarea, select, textarea {
  margin: 0;
  padding: 0 10px;
  display: block;
  border: none;
  border-radius: 0;
  width: 100%;
  height: 40px;
  font-size: 16px;
  font-family: 'Bitter'Sans-Serif;
  color: #555;
  border: solid 1px #BBB;
  overflow: hidden;
  outline: 0 none;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-appearance: none;
  border-radius: 5px;
}
textarea {
  padding: 0 0 0 10px;
  resize: none;
  min-height: 100px;
  overflow-y: auto;
}
input[type="search"] {
  -webkit-padding-start: 0;
}
/***** Styled Select fields *****/
.select {
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-block;
  width: 70%;
  right: 0;
  top: 0;
  height: 40px;
  background: #FFF;
  overflow: hidden;
  border: solid 1px #BBB;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.select:after {
  margin: 0;
  padding: 0;
  content: '\25be';
  color: #999;
  line-height: 35px;
  text-align: center;
  right: 1px;
  top: 1px;
  background: #FFF;
  width: 38px;
  height: 38px;
  position: absolute;
  pointer-events: none;
}
.select select {
  padding: 10px;
  padding-top: 11px;
  -webkit-padding-before: 0;
  -webkit-padding-start: 6px;
  width: 100%;
  height: 40px;
  font: 14px/40px Sans-Serif;
  float: left;
  color: #999;
  border: none;
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.select option {
  padding: 10px;
  border-bottom: 1px solid #F2F2F2;
}
.select optgroup {
  padding: 0 10px;
  color: #000;
  background-color: #FFF;
}
.select optgroup[label] {
  padding-top: 10px;
  background-color: #FFF;
  font-style: normal;
}
.select optgroup option {
  border-bottom: 1px solid #F2F2F2;
  font: 12px/40px Sans-Serif;
}
.select optgroup option:first-child {
  margin: 10px 0 0 0;
  border-top: 1px solid #F2F2F2;
}
/***** Styled Checkboxes *****/
.checkbox {
  padding: 8px 0 0;
  width: 70%;
  float: right;
}
.checkbox > span {
  margin: 0 0 10px;
  padding: 0 20px 0 0;
  float: left;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.checkbox > span label {
  padding: 2px 0 0 32px;
  width: 100%;
  height: auto;
  font: 14px/20px Sans-Serif;
  text-align: left;
  cursor: pointer;
  display: block;
  position: relative;
  left: 0;
  top: 0;
}
input[type="checkbox"] {
  display: none;
}
input[type="checkbox"] + label:before {
  margin: 0;
  content: '\2718';
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFF;
  border: 1px solid #CCC;
  cursor: pointer;
  display: inline-block;
  height: 20px;
  width: 20px;
  text-align: center;
  font: 13px/22px sans;
  color: #CCC;
  transition: all .3s linear 0s;
  -moz-transition: all .3s linear 0s;
  -webkit-transition: all .3s linear 0s;
  -o-transition: all .3s linear 0s;
}
input[type="checkbox"]:checked + label:before {
  background-color: #000;
  content: '\2714';
  border-color: #000;
  color: #FFF;
  transition: all .6s linear 0s;
  -moz-transition: all .6s linear 0s;
  -webkit-transition: all .6s linear 0s;
  -o-transition: all .6s linear 0s;
}
/***** Styled Radio button *****/
.radio {
  padding: 8px 0 0;
  width: 70%;
  float: right;
}
.radio > span {
  margin: 0 0 10px;
  padding: 0 20px 0 0;
  float: left;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.radio > span label {
  margin: 0;
  padding: 2px 0 0 32px;
  width: 100%;
  height: auto;
  font: 14px/20px Sans-Serif;
  text-align: left;
  cursor: pointer;
  display: block;
  position: relative;
  left: 0;
  top: 0;
}
input[type="radio"] {
  display: none;
}
input[type="radio"] + label:before {
  margin: 0;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFF;
  border: 1px solid #CCC;
  cursor: pointer;
  display: inline-block;
  height: 20px;
  width: 20px;
  text-align: center;
  font: 13px/22px sans;
  color: #CCC;
  border-radius: 50%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  transition: all .3s linear 0s;
  -moz-transition: all .3s linear 0s;
  -webkit-transition: all .3s linear 0s;
  -o-transition: all .3s linear 0s;
}
input[type="radio"]:checked + label:before {
  border: 7px solid #000;
  transition: all .3s linear 0s;
  -moz-transition: all .3s linear 0s;
  -webkit-transition: all .3s linear 0s;
  -o-transition: all .3s linear 0s;
}
/***** Validation *****/
fieldset input:not(:focus):invalid, fieldset input:focus:invalid, fieldset.error input {
  margin: 0;
  color: #E74C3C;
  border-color: #E74C3C;
  display: block;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
fieldset input:not(:focus):invalid + small, fieldset.error input + small {
  margin: 0;
  padding: 3px 8px;
  font: 11px/20px Sans-Serif;
  color: #FFF;
  border-color: #E74C3C;
  background-color: #E74C3C;
  width: 70%;
  float: right;
  display: inline-block;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
/***** Buttons *****/
input[type="button"], input[type="submit"], input[type="reset"] {
  margin: 6px 6px 6px 0 !important;
  padding: 0 10px !important;
  display: inline-block !important;
  height: 40px !important;
  width: auto !important;
  font: 14px/40px Bitter !important;
  font-weight: normal !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  float: left !important;
  width: auto !important;
  background-color: #000 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
}
input.first {
  margin-left: 30%;
}
input[type="button"] {
  color: #FFF;
  border-color: #000;
  background-color: #000;
  transition: all .3s linear 0s;
  -moz-transition: all .3s linear 0s;
  -webkit-transition: all .3s linear 0s;
  -o-transition: all .3s linear 0s;
}
input[type="submit"] {
  color: #FFF !important;
  border-color: #77a536 !important;
  background-color: #8bc141 !important;
  transition: all .3s linear 0s !important;
  -moz-transition: all .3s linear 0s !important;
  -webkit-transition: all .3s linear 0s !important;
  -o-transition: all .3s linear 0s !important;
}
input[type="reset"] {
  color: #999;
  border-color: #CCC;
  background-color: #FFF;
  transition: all .3s linear 0s;
  -moz-transition: all .3s linear 0s;
  -webkit-transition: all .3s linear 0s;
  -o-transition: all .3s linear 0s;
}
input:hover[type="button"] {
  border-color: #77a536;
  background-color: #8bc141;
  color: #333;
}
input:hover[type="submit"] {
  border-color: #77a536 !important;
  background-color: #77a536 !important;
  color: #FFF !important;
}
input:hover[type="reset"] {
  border-color: #000;
  background-color: #000;
  color: #FFF;
}
/***** Forms without labels *****/
.hide-lables label {
  display: none;
}
.hide-lables .checkbox label, .hide-lables .radio label {
  display: block;
}
.hide-lables input, .hide-lables textarea, .hide-lables select, .hide-lables .select, .hide-lables fieldset.error input + small {
  width: 100%;
}
.hide-lables small {
  margin: 0 0 16px 0;
  width: 100%;
}
.hide-lables .radio, .hide-lables .checkbox {
  width: 100%;
  float: right;
}
/***** Validation *****/
.hide-lables input:not(:focus):invalid + small {
  width: 100%;
}
/***** Buttons *****/
.hide-lables input[type="button"], .hide-lables input[type="submit"], .hide-lables input[type="reset"] {
  margin: 6px 6px 6px 0 !important;
  width: auto !important;
}
/***** Placeholder *****/ ::-webkit-input-placeholder {
  color: #333;
  opacity: .5;
}
:-moz-placeholder {
  color: #333;
  opacity: .5;
}
::-moz-placeholder {
  color: #333;
  opacity: .5;
}
:-ms-input-placeholder {
  color: #333;
  opacity: .5;
}
:focus::-webkit-input-placeholder {
  color: #333;
  opacity: 1;
}
:focus:-moz-placeholder {
  color: #333;
  opacity: 1;
}
:focus::-moz-placeholder {
  color: #333;
  opacity: 1;
}
:focus:-ms-input-placeholder {
  color: #333;
  opacity: 1;
}
input:focus {
  color: #000;
  border-color: #999 !important;
  outline: none !important;
}
textarea:focus {
  color: #000;
  border-color: #999 !important;
  outline: none !important;
}
select:focus {
  color: #000;
  border-color: #999 !important;
  outline: none !important;
}
/***** NYSMNYD *****/
#nysmnyd fieldset label {
  display: block;
  position: absolute;
  left: 1px;
  top: 0;
  height: auto;
  width: auto;
  z-index: 1;
  font: 12px/40px Sans-Serif;
  color: #999;
  transition: all .1s ease-out 0s;
  -moz-transition: all .1s ease-out 0s;
  -webkit-transition: all .1s ease-out 0s;
  -o-transition: all .1s ease-out 0s;
}
#nysmnyd fieldset.show-all label {
  top: -27px;
  transition: all .1s ease-out 0s;
  -moz-transition: all .1s ease-out 0s;
  -webkit-transition: all .1s ease-out 0s;
  -o-transition: all .1s ease-out 0s;
}
#nysmnyd input, #nysmnyd textarea, #nysmnyd .select, #nysmnyd textarea {
  z-index: 2;
}
#nysmnyd input, #nysmnyd textarea, #nysmnyd select, #nysmnyd .select, #nysmnyd fieldset.error input + small, #nysmnyd small {
  width: 100%;
}
#nysmnyd .radio, #nysmnyd .checkbox {
  width: 100%;
  float: right;
}