/* Inputfield CSS Written by Thomas Marsden Advertising 2017 */


.inputfield {
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 13px;
    background-color: white;
    z-index: 1;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
}

.inputfield input, .inputfield textarea {
    margin: 0px;
    padding-top: 30px;
    border-radius: 5px;
	float: left;
    width: 100%;
    color: black;
    padding-left: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
	border: 0px;
	background-color: transparent;
	z-index: 2;
    position: relative;
}

.inputfield label {
    position: absolute;
    order: -1;
    top: 18px;
    left: 11px;
    margin: auto;
    display: block;
    height: 14px;
    color:#adadad;
    transition: 0.3s;
	z-index: 1;
}

.inputfield label.moveUp {
    bottom: auto !important;
    top: 10px;
    font-size: 9px;
    color: #c1c1c1;
}

.inputfield input:focus {
    /* border: 1px solid #c1c1c1; */
}
	
.inputfield input.error, .inputfield textarea.error {
    border: 1px solid red;
    background-color: rgba(255, 0, 0, 0.1);
    background-image: url(../Content/Images/field-error.png);
    background-position: right;
    background-size: 45px;
    background-repeat: no-repeat;
}

.inputfield input.valid, .inputfield textarea.valid {
    background-color: rgba(0, 128, 0, 0.1);
    border: 1px solid green;
    background-image: url(../Content/Images/field-success.png);
    background-position: right 15px;
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: right;
    background-size: 45px;
    background-repeat: no-repeat;
}

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
	background-color: yellow;
}