/*
   Author: Sean Lathrop
   Date:   28 May 2016
*/

/* Field Set Styles */

fieldset {
    background-color: white;
    border: 1px solid red;
    float: none;
    margin: 10px 0px 10px 2.5%;
    width: 70%;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

legend {
    background-color: #cc0000;
    color: white;
    padding: 3px 0px;
    text-indent: 5px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    width: 100%;
}

/* Label Sytles */

label {
    clear: left;
    color: black;
    display: block;
    background-color: white;
    float: left;
    font-size: 0.9em;
    margin: 7px 4% 7px 5px;
    width: 40%;
}

/* Input Control Styles */

input {
    display: block;
    background-color: white;
    color: black;
    float: left;
    font-size: 0.9em;
    margin: 7px 0px;
    width: 50%;
}

input#state {
    width: 50px;
}

/* Selection List Styles */

select{
    display: block;
    background-color: white;
    color: black;
    float: left;
    font-size: 0.9em;
    margin: 7px 0px;
}

/* Option Button Styles */

fieldset.optionGroup {
    border-width: 0px;
}

fieldset.optionGroup label {
    display: block;
    float: left;
    margin: 0px 3px 0px 0px;
    width: 30%;
}

fieldset.optionGroup input {
    display: block;
    float: left;
    margin: 0px 20px 0px 0px;
    width: 25px;
}

/* Text Area Styles */

textarea {
    display: block;
    font-size: 0.9em;
    background-color: white;
    color: black;
    float: left;
    height: 150px;
    margin: 10px 0px;
    width: 50%;
}

/* Check Box Styles */

.howContact {
    border-width: 0px;
    color: black;
    float: none;
    margin: 10px auto;
    text-align: center;
    width: 90%;
}

.howContact input {
    display: block;
    float: left;
    margin: 10px auto;
    width: 20px;
}

/* Number Input Box Styles */

form p {
    text-align: center;
}

input[type="submit"], input[type="reset"] {
    display: inline;
    float: none;
    height: 40px;
    width: 200px;
}

/* Validation Styles */

input:focus, select:focus, textarea:focus {
    background-color: rgb(220, 255, 220);
}

input:focus:valid {
    background: rgb(220, 255, 220) url(go.png) bottom right no-repeat;
    
    -o-background-size: contain;
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
}

input:focus:invalid {
    background: rgb(255, 232, 233) url(stop.png) bottom right no-repeat;
    
    -o-background-size: contain;
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
}