/* Form */
.form-base { display: block; margin-bottom: 10px; }
.form-base .last { margin-right:0; }
.form-full { float:left;width: 100%; margin:4px 0;}
.form-half { float:left;margin: 0 4% 0 0; width: 48%; float:left; margin:4px 0;}
.form-third { float:left;margin: 0 5% 0 0; width: 27%; float:left; margin:4px 0; }
.form-quarter { float:left;margin: 0 5% 0 0; width: 20%; float:left; margin:4px 0; }
.form-base label { display: block; float: left; width: 100%; }
.form-base label.error{display: none;color: #B00900;font-size:0.8em}


input, select, textarea {
    margin:0; padding:0; 
    /*font-size:0.75em; */
    outline:none;
    font-family:inherit;	
    -moz-box-sizing:border-box; /* Firefox */
    -webkit-box-sizing:border-box; /* Safari */
    box-sizing:border-box;
}

/* ----------------------------------------------  Inputs, textareas and selects  ---------------------------------------------- */


input[type="text"],
input[type="email"],
input[type="password"], 
textarea, 
select, 
div.styled, 
input[type="file"] {  
    width:12em; border-radius:3px; border: solid 1px #ccc; padding:0.4em; width: 100%;
}

div.styled, 
select, 
input[type="submit"], 
input[type="button"], 
input[type="file"]:after {
    
    /*-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);*/
}	

input[type="text"], 
input[type="email"],
input[type="password"], 
textarea, 
input[type="file"] { 
    background-color: #FCFCFC;
    /*-webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);*/
}

.ie9 input[type="text"],
.ie9 input[type="password"],
.ie9 input[type="email"] 
{ line-height:normal; } /* Get the stuff to line up right */

textarea { width:100%; height:10em; }

/* ----------------------------------------------  Select menu  ---------------------------------------------- */

/* For IE and Firefox */

div.styled { overflow:hidden; padding:0; margin:0; }

.lt-ie8 div.styled {border:none;}

div.styled select {	
    width:115%; background-color:transparent; background-image:none;
    -webkit-appearance: none; border:none; box-shadow:none;
}

.lt-ie8 div.styled select {
    width:100%; background-color:#fff; border: solid 1px #ccc; 
    padding:0.3em 0.5em;
}	

/* ----------------------------------------------  File field  ----------------------------------------------  */

/* Webkit Only */

input[type="file"] { 
    position: relative; 
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 40%;
    padding:0;
}

input[type=file]::-webkit-file-upload-button {
    width: 0; 
    padding: 0; 
    margin: 0;
    -webkit-appearance: none; 
    border: none;
}

input[type="file"]:after {
    content: 'Upload File';
    margin:0 0 0 0.5em;
    display: inline-block; left: 100%; position: relative;
    background:white url(../images/formelements-select.png) no-repeat center left;
    padding:0.3em 0.5em; border: solid 1px #ccc !important;
    /*-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);*/
    border-radius:4px;
}


input[type="file"]:active:after {box-shadow:none;}


/* ----------------------------------------------  Checkboxes and Radio inputs  ----------------------------------------------  */	


input[type="radio"], 
input[type="checkbox"] { opacity: 0; position: absolute }
label.fakecheck{font-size: 0.9em}

label.fakecheck:before { 
    display: inline-block; 
    position: relative; 
    top:-0.5em; 
    left:-2px; 
    content:''; 
    width:25px; 
    height:25px;
    background-image:url(../images/formelements.png); 
    vertical-align: top;
}

input[type="checkbox"] ~ label.fakecheck:before { background-position: 0 -25px;}
input[type="checkbox"]:checked ~ label.fakecheck:before {background-position: 0 0 ; }

input[type="radio"] ~ label.fakecheck:before { background-position: -25px -25px;}	 	
input[type="radio"]:checked ~ label.fakecheck:before { background-position: -25px 0;}

/* Remove the custom styling for IE 7-8 */

.lt-ie9 label.fakecheck:before { display:none; content:none; }

.lt-ie9 input[type="checkbox"],
.lt-ie9 input[type="radio"],
.lt-ie8 input[type="checkbox"],
.lt-ie8 input[type="radio"]{ 
    position: static; 
    left:0; 
}

.lt-ie9 input[type="checkbox"],
.lt-ie9 input[type="radio"] { 
    position:relative; 
    top:5px; 
    margin-right:0.5em;
}	

input[type="text"]:focus,input[type="email"]:focus,input[type="password"]:focus, textarea:focus {
    border-color:#000;
}

/* ---------------------------------------------- Form Submit and Next buttons ---------------------------------------------- */	

input[type="submit"], 
input[type="button"] { 
    padding: 0.5em 1em;
    line-height: 1em;
    cursor: pointer;
    color: #FFFFFF;
    border: solid 1px #ccc;
    background-position: center bottom;
    background-color: #f07f00;
    border: 1px solid #f07f00;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgb(231, 186, 44)), color-stop(100%, #f07f00));
    background-image: -webkit-linear-gradient(rgb(231, 186, 44),#f07f00);
    background-image: -moz-linear-gradient(rgb(231, 186, 44),#f07f00);
    background-image: -o-linear-gradient(rgb(231, 186, 44),#f07f00);
    background-image: linear-gradient(rgb(231, 186, 44),#f07f00);
}

/* Gradient Generator by : http://www.colorzilla.com/gradient-editor/ */

input[type="submit"]:active, 
input[type="button"]:active {-webkit-box-shadow: none; box-shadow:none;}

/* IE7 needs you to change the background to transparent when using image background for submit buttons */	


