﻿input,
textarea { margin: 0; padding: 0; font-size: 0.85em; 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"],
    textarea,
    div.styled,
    input[type="file"] { width: 12em; border-radius: 2px; border: solid 1px #ccc; padding: 0.4em; }
        div.styled,
        input[type="submit"],
        input[type="button"],
        input[type="file"]:after { background: white url(/images/formelements-select.png) no-repeat center right; -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"],
    textarea,
    input[type="file"] { background-color: #f5f5f5; -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"] { 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; }
.ie7 div.styled { border: none; }
/* ----------------------------------------------  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"] { position: absolute; left: -999em; }
label:before { display: inline-block; position: relative; content: ''; width: 25px; height: 25px; background: center center; vertical-align: middle; top: -3px; left: -2px; }
input[type="checkbox"] + label:before { background: url(../Images/c.png) no-repeat center center; background-size: 16px 16px; }
input[type="checkbox"]:checked + label:before { background: url(../Images/c_on.png) no-repeat center center; background-size: 16px 16px; }
input[type="radio"] + label:before { background: url(/Content/Images/r.png) no-repeat center center; background-size: 16px 16px; }
input[type="radio"]:checked + label:before { background: url(/Content/Images/r_on.png) no-repeat center center; background-size: 16px 16px; }
/* Remove the custom styling for IE 7-8 */
.ie8 label:before { display: none; content: none; }
.ie8 input[type="checkbox"],
.ie8 input[type="radio"],
.ie7 input[type="checkbox"],
.ie7 input[type="radio"] { position: static; left: 0; }
.ie8 input[type="checkbox"],
.ie8 input[type="radio"] { position: relative; top: 5px; margin-right: 0.5em; }
input[type="text"]: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; border-radius: 4px; color: #000; font-weight: bold; font-size: inherit; border: solid 1px #ccc; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); background-position: center bottom; }
    input[type="submit"]:active,
    input[type="button"]:active { -webkit-box-shadow: none; box-shadow: none; }
