.material-design__form .row { position: relative; }

.material-design__form label {
    color: #666;
    font-size: 1rem;
    font-weight: normal;
    width: auto;
}
.material-design__form label:not(.field__label) { font-size: 12px; }
.material-design__form .row > .field__label {
    left: .5rem;
    letter-spacing: 0;
    line-height: 1em !important;
    margin-left: .25rem;
    margin-top: 0;
    padding: 0 .25rem;
    pointer-events: none;
    position: absolute;
    top: calc(50% - .5em);
    -webkit-transition: all .1s ease-out;
    -o-transition: all .1s ease-out;
    transition: all .1s ease-out;
}

.material-design__form .state--active > .field__label,
.material-design__form .state--fixed > .field__label,
.material-design__form .state--has-value > .field__label {
    color: inherit;
    font-size: 12px;
    pointer-events: auto;
}

/** FIELD TYPES */
.material-design__form input[type=text] {
    border-color: rgba(0, 0, 0, .38);
    border-radius: 4px;
    min-height: 56px;
    outline: none;
    padding-left: 1rem;
    text-indent: 0;
    -webkit-transition: all .1s ease-out;
    -o-transition: all .1s ease-out;
    transition: all .1s ease-out;
}
.material-design__form input[type='radio'],
.material-design__form input[type='checkbox'] {
    cursor: pointer;
    margin: 0 15px 0 0;
    position: relative;
}
.material-design__form input[type='radio']+label,
.material-design__form input[type='checkbox']+label {
    font-weight: normal;
    margin: 0;
}
.material-design__form textarea {
    border-color: rgba(0, 0, 0, .38);
    border-radius: 4px;
    min-height: 112px;
    line-height: 1.5;
    padding-left: calc(1rem - 1px);
    padding-top: 20px;
    text-indent: 0;
}
.material-design__form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-color: rgba(0, 0, 0, .38);
    border-radius: 4px;
    min-height: 56px;
    padding-left: calc(1rem - 1px);
}
.material-design__form select option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 0;
}

/** HOVERS */
.material-design__form input[type=text]:hover,
.material-design__form textarea:hover,
.material-design__form select:hover {
    border-color: rgba(0, 0, 0, .87);
}


/**
 * MATERIAL DESIGN VARIATION STYLES
 */

/** OUTLINED */
.material-design__form.material-design__form--outlined .state--active > .field__label,
.material-design__form.material-design__form--outlined .state--fixed > .field__label,
.material-design__form.material-design__form--outlined .state--has-value > .field__label {
    background-color: #fafafa;
    padding: .15rem .25rem;
    top: -.625em;
}

.material-design__form.material-design__form--outlined input[type=text]:focus,
.material-design__form.material-design__form--outlined textarea:focus,
.material-design__form.material-design__form--outlined select:focus {
    border-width: 2px;
    box-shadow: none;
}

.material-design__form--outlined input::-webkit-input-placeholder { color: transparent !important; }
.material-design__form--outlined input::-moz-placeholder { color: transparent !important; }
.material-design__form--outlined input:-ms-input-placeholder { color: transparent !important; }
.material-design__form--outlined input::-ms-input-placeholder { color: transparent !important; }
.material-design__form--outlined input::placeholder { color: transparent !important; }


/** FILLED */
.material-design__form.material-design__form--filled .field__label { background: none; }
.material-design__form.material-design__form--filled .state--has-value .field__label,
.material-design__form.material-design__form--filled .state--fixed .field__label,
.material-design__form.material-design__form--filled .state--active .field__label {
    background: none;
    top: 8px;
}

.material-design__form.material-design__form--filled input[type=text],
.material-design__form.material-design__form--filled textarea,
.material-design__form.material-design__form--filled select {
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
    border-bottom-width: 1px;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    border-top-width: 0 !important;
}

.material-design__form.material-design__form--filled input[type=text],
.material-design__form.material-design__form--filled textarea,
.material-design__form.material-design__form--filled label+select {
    padding: 20px 16px 6px !important;
}

.material-design__form.material-design__form--filled input[type=text]:hover,
.material-design__form.material-design__form--filled textarea:hover,
.material-design__form.material-design__form--filled select:hover {
    background-color: #ececec;
}

.material-design__form.material-design__form--filled input[type=text]:focus,
.material-design__form.material-design__form--filled textarea:focus,
.material-design__form.material-design__form--filled select:focus {
    background-color: #dbdbdb;
    box-shadow: none;
}

.material-design__form--filled input::-webkit-input-placeholder { color: transparent !important; }
.material-design__form--filled input::-moz-placeholder { color: transparent !important; }
.material-design__form--filled input:-ms-input-placeholder { color: transparent !important; }
.material-design__form--filled input::-ms-input-placeholder { color: transparent !important; }
.material-design__form--filled input::placeholder { color: transparent !important; }