/*==================================================
  Forms Styles
==================================================*/

/*--------------------------------------------------
  Form
-------------------------------------------------*/
#content .form {
  width: 80%;
  margin: 0 auto;
  position: relative;
}

#content .form .form-row {
  width: 100%;
  height: auto;
  position: relative;
}

#content .form .form-row .one-half {
  width: 49%;
  margin-right: 2%;
  float: left;
}

#content .form .form-row .one-half:last-child {
  margin-right: 0;
}

#content .form label,
#content .form input[type="text"],
#content .form input[type="tel"],
#content .form input[type="email"],
#content .form input[type="file"],
#content .form select,
#content .form textarea,
#content .form button[type="submit"] {
  display: block;
  width: 100%;
  height: 24px;
  margin-bottom: 24px;
}

#content .form label {
  display: none;
}

#content .form input[type="text"],
#content .form input[type="tel"],
#content .form input[type="email"],
#content .form input[type="file"],
#content .form select,
#content .form textarea,
#content .form button[type="submit"] {
  background: #ffffff;
  border: 1px solid #ababab;
  color: #000000;
  padding: 3px 5px;
  transition: all 120ms linear;
}

#content .form textarea {
  height: auto;
  overflow: auto;
  resize: none;
}

#content .form input[type="text"]:focus,
#content .form input[type="tel"]:focus,
#content .form input[type="email"]:focus,
#content .form input[type="file"]:focus,
#content .form select:focus,
#content .form textarea:focus,
#content .form button[type="submit"]:focus {
  background: rgba(255, 255, 255, 0.77);
  color: #000000;
}

#content .form label.radio {
  width: 25%;
}

#content .form input[type="radio"] {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 2px 5px 0;
  float: left;
}

#content .form input[type="checkbox"] {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 10px 0 0 0;
  float: left;
}

#content .form input[type="submit"] {
  background: url(../images/layout/bg-btn.png) repeat-x center top;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #bcbcbc;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  line-height: normal;
  color: #664422;
  width: auto;
  height: 48px;
  padding: 0 24px;
  float: right;
  cursor: pointer;
}

#content .form input[type="submit"]:hover {
  background-position: center -48px;
}

/*--------------------------------------------------
  Form Validation
-------------------------------------------------*/
#content .form ul.errors {
  padding: 0;
  margin: -16px 0 12px 0;
}

#content .form ul.errors li {
  color: #aa0000;
  list-style: none;
}

/*--------------------------------------------------
  Form Captcha
-------------------------------------------------*/
#content .form .captcha {
  overflow: hidden;
  float: left;
}

#content .form .captcha img {
  width: auto;
  max-height: 48px;
  margin-right: 14px;
  float: left;
}

#content .form .captcha input[type="text"] {
  font-size: 18px;
  line-height: normal;
  text-align: center;
  width: 200px;
  max-width: 33.333333333%;
  height: 48px;
  margin-right: 14px;
  float: left;
}

#content .form .captcha ul.errors {
  float: left;
  padding: 14px 0 0 0;
  margin: 0;
}

/*--------------------------------------------------
  Form Messages
-------------------------------------------------*/
#content .message {
  color: #ffffff;
  font-size: 18px;
  line-height: 24px;
  padding: 5px 10px;
  margin-bottom: 24px;
}

#content .message.error {
  background: #aa0000;
  border: 1px solid #aa0000;
}

#content .message.success {
  background: #00aa00;
  border: 1px solid #00aa00;
}

/*--------------------------------------------------
  Form in Overlay
-------------------------------------------------*/
#content-overlay .form {
  background: #edede4;
  border-radius: 8px;
  padding: 60px 30px 15px;
  margin: 0 auto;
  position: relative;
}

#content-overlay .form .form-row {
  width: 100%;
  height: auto;
  position: relative;
}

#content-overlay .form .logo {
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  text-align: center;
  margin-bottom: 36px;
}

#content-overlay .form .logo img {
  display: block;
  margin-bottom: 12px;
}

#content-overlay .form label,
#content-overlay .form input[type="text"],
#content-overlay .form input[type="tel"],
#content-overlay .form input[type="email"],
#content-overlay .form input[type="file"],
#content-overlay .form select,
#content-overlay .form textarea,
#content-overlay .form button[type="submit"] {
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: 4px;
}

#content-overlay .form label {
  display: none;
}

#content-overlay .form input[type="text"],
#content-overlay .form input[type="tel"],
#content-overlay .form input[type="email"],
#content-overlay .form input[type="file"],
#content-overlay .form select,
#content-overlay .form textarea,
#content-overlay .form button[type="submit"] {
  background: #ffffff;
  box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.09);
  border: 1px solid #909090;
  border-radius: 4px;
  color: #000000;
  padding: 8px 8px;
  transition: all 120ms linear;
}

#content-overlay .form input[type="file"] {
  background: none;
  box-shadow: none;
  border: none;
  height: auto;
  padding: 4px 0;
}

#content-overlay .form textarea {
  height: auto;
  overflow: auto;
  resize: none;
}

#content-overlay .form input[type="text"]:focus,
#content-overlay .form input[type="tel"]:focus,
#content-overlay .form input[type="email"]:focus,
#content-overlay .form input[type="file"]:focus,
#content-overlay .form select:focus,
#content-overlay .form textarea:focus,
#content-overlay .form button[type="submit"]:focus {
  background: rgba(255, 255, 255, 0.77);
  color: #000000;
}

#content-overlay .form input[type="submit"] {
  background: #d7992c;
  box-shadow: none;
  border: 1px solid #d7992c;
  border-radius: 4px;
  font-weight: bold;
  font-size: 18px;
  line-height: normal;
  color: #ffffff;
  width: auto;
  height: 38px;
  padding: 0 24px;
  float: right;
  cursor: pointer;
}

#content-overlay .form input[type="submit"]:hover {
  color: #000000;
}

/*--------------------------------------------------
  Form in Overlay Validation
-------------------------------------------------*/
#content-overlay .form ul.errors {
  padding: 0;
  margin: 0 0 4px 0;
}

#content-overlay .form ul.errors li {
  color: #aa0000;
  list-style: none;
}

/*--------------------------------------------------
  Form in Overlay Captcha
-------------------------------------------------*/
#content-overlay .form .captcha {
  margin-bottom: 8px;
  overflow: hidden;
}

#content-overlay .form .captcha img {
  width: auto;
  margin-right: 14px;
  float: left;
}

#content-overlay .form .captcha input[type="text"] {
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  width: 142px;
  height: 48px;
  padding: 6px 12px;
  float: left;
}

#content-overlay .form .captcha ul.errors {
  width: 142px;
  float: right;
}

/*--------------------------------------------------
  Form in Overlay Messages
-------------------------------------------------*/
#content-overlay .message {
  margin-bottom: 16px;
}

#content-overlay .message.error {
  color: #aa0000;
}

#content-overlay .message.success {
  color: #00aa00;
}
