
/*==============
  FORM STYLES  
==============*/

/* ===== COLORS ===== */
.formContainer form{
  background: #eaeaea; /* also color of even rows */
  border: 1px solid #bbb;
}
form li {border-bottom: 1px solid #ccc;}
form li:nth-child(2n+1) {background: #FFF;}
form > ul li:last-child{background:none}
input[type="submit"] {background: #1B5E93; color: #fff;}
label + input[data-val="true"], label + textarea[data-val="true"] {border: 1px solid #C00; /* Border on required fields */}
.field-validation-error { /* Validation error msgs */
  background: #ffebf0;
  color: #C00;
  border-color:#f99;
}
form li ul {
   border: 1px solid #ccc;
   margin: 0 10px;
}
/* ===== STRUCTURE ===== */
.formContainer form {
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
    margin: 0 auto 20px;
    max-width: 600px;
    width: 96%;
    padding:0;
}

/* Put the input fields on the same line as their labels */
form label {
    font-weight: normal;
    line-height: 24px;
    display: inline;
     font-family: inherit;
}
form li {
    clear: left;
    height: auto;
    overflow:hidden;
    margin: 0;
    padding: 6px;
}
form li:last-child{border-bottom:none}
input, select{float:right;}

/* Style the submit button */
input[type="submit"] {
    border: none;
    border-radius: 6px;
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.25);
    clear: both;
    cursor: pointer;
    font-size: 18px;
    margin: 20px 20% 0;
    padding: 10px 30px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
    width: 60%;
    font-family: inherit;
}
label + select, label + input[type="text"], label + input[type="email"], label + input[type="password"], label + input[type="checkbox"] {width: 50%;}
label + textarea {
  width: 100%;
  height:100px;
}

/* Validation errors */
.field-validation-error {
    float: left;
    clear: both;
    width: 100%;
    text-align: center;
    line-height: 2;
    border-style: solid;
    border-width:1px;
}

/* Reset for Secure Disclaimer */
.formContainer {
    background: none;
    border: none;
}
.formDisclaimer {
    background-color: transparent;
    background-position: 0 0;
    padding: 0;
    text-indent: 20px;
}

/* Reset for map form inputs */
dl.form input {float: none;}

/* Reset for Inv. Listings page */
#InvContainer form, #InvContainer li {
    background: none;
    border: none;
    box-shadow: none;
}
#InvContainer input, #InvContainer select {display: block; float:none}

/* Reset for Inv. Details Page form */
#Profilefrm {margin: 0; float: none;}
#Profilefrm input {display: inline;}
#Profilefrm li {clear: none; padding: 0;}

/*==============
  END OF FORM  
==============*/


@media only screen and (max-width: 768px){
    .formcontainer form{box-shadow:none;margin-left:0}
    form input{display:block;float:none;width:100%}
    label + select{float:none}
}

@media only screen and (max-width: 500px){
  .formContainer form {box-shadow: none; margin: 0 auto 20px;  width: 100%;}
  input[type="submit"]{width:90%; margin: 10px auto 0;}
}
