*, :before, :after {
	box-sizing: border-box;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type="number"] { -moz-appearance: textfield; -webkit-appearance: textfield; }

.md-input  {
	position: relative;
	margin: 45px 0;
	max-width: 320px;
	width: calc(100% - 2em);
}

.md-input textarea {
	resize: none;
}

.md-input input, textarea {
	background: none;
	color: #333;
	font-size: 18px;
	padding: 10px 10px 10px 5px;
	display: block;
	max-width: 320px;
	width: 100%;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid #c6c6c6;
}
textarea {
	border: 1px solid #c6c6c6;
	margin-top: 0.1em;
	padding: 0.75em;
}
.no-maxwidth { max-width: none!important; }
.md-input input[readonly] {
	border-color: transparent;
	padding-bottom: 0;
}
.md-input input:focus, textarea:focus { outline: none; }
textarea:focus { background: #F9F9F9; }
.md-label {
	color: #234f9b!important;
	display: inline-block;
	font-size: 12px!important;
	margin-bottom: 4px;
}
.md-input input:focus ~ label, .md-input input:valid ~ label, .md-input textarea:focus ~ label, .md-input textarea:valid ~ label, .md-input input[readonly] ~ label {
	top: -16px;
	font-size: 12px;
	color: #234f9b;
}
.md-input textarea:focus ~ label, .md-input textarea:valid ~ label { top: -20px; }
.md-input input:focus ~ .bar:before, .md-input textarea:focus ~ .bar:before {
	max-width: 320px;
	width: 100%;
}
.md-input input:focus[readonly] ~ .bar:before, .md-input textarea:focus[readonly] ~ .bar:before { width: 0% !important; }

.md-input input[type="password"] {
	letter-spacing: 0.3em;
}

.md-input label {
	color: #8b8b8b;
	font-size: 16px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 5px;
	top: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	transition: 300ms ease all;
}
.md-input label.md-label { position: relative; left: auto; top: 4px; }

.md-input .bar {
	position: relative;
	display: block;
	max-width: 320px;
	width: 100%;
}
.md-input .bar:before {
	content: '';
	height: 2px;
	width: 0;
	bottom: 0px;
	position: absolute;
	background: #234f9b;
	transition: 300ms ease all;
	left: 0%;
}

.md-select {
  font-family:
    'Roboto','Helvetica','Arial',sans-serif;
	position: relative;
	max-width: 320px;
	width: calc(100% - 2em);
}

.md-select .select-text {
	position: relative;
	font-family: inherit;
	background-color: transparent;
	max-width: 320px;
	width: 100%;
	padding: 10px 10px 10px 5px;
	font-size: 18px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(0,0,0, 0.12);
}

.md-select .select-text:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}

.md-select  .select-text {
	appearance: none;
	-webkit-appearance:none
}

.md-select:after {
	position: absolute;
	top: 18px;
	right: 10px;
	/* Styling the down arrow */
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.12);
	pointer-events: none;
}

.md-select .select-label {
	color: #8b8b8b;
	font-size: 16px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 5px;
	top: 10px;
	transition: 0.2s ease all;
}
.md-select .select-text:focus ~ .select-label, .md-select .select-text:valid ~ .select-label {
	color: #234f9b;
	top: -16px;
	transition: 0.2s ease all;
	font-size: 12px;
}
.md-select .select-bar {
	position: relative;
	display: block;
	max-width: 320px;
	width: 100%;
}
.md-select .select-bar:before, .md-select .select-bar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #234f9b;
	transition: 0.2s ease all;
}
.md-select .select-bar:before {
	left: 50%;
}
.md-select .select-bar:after {
	right: 50%;
}
.md-select .select-text:focus ~ .select-bar:before, .md-select .select-text:focus ~ .select-bar:after {
	width: 50%;
}
.md-select .select-highlight {
	position: absolute;
	height: 60%;
	width: 100px;
	top: 25%;
	left: 0;
	pointer-events: none;
	opacity: 0.5;
}

.md-checkbox {
	position: relative;
	margin: 1em 0;
	text-align: left;
}
.md-checkbox.md-checkbox-inline {
	display: inline-block;
}
.md-checkbox label {
	cursor: pointer;
	display: inline;
	line-height: 1.25em;
	vertical-align: top;
	clear: both;
	padding-left: 1px;
}
.md-checkbox label a { vertical-align: top; }
.md-checkbox label:not(:empty) {
	padding-left: 0.5em;
}
.md-checkbox label:before, .md-checkbox label:after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
}
.md-checkbox label:before {
	width: 1.25em;
	height: 1.25em;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.54);
	border-radius: 0.125em;
	cursor: pointer;
	transition: background .3s;
}
.md-checkbox input[type="checkbox"] {
	outline: 0;
	visibility: hidden;
	width: 1.25em;
	margin: 0;
	display: block;
	float: left;
	font-size: inherit;
}
.md-checkbox input[type="checkbox"]:checked + label:before {
	background: #214c9a;
	border: none;
}
.md-checkbox input[type="checkbox"]:checked + label:after {
	transform: translate(0.25em, 0.3365384615em) rotate(-45deg);
	width: 0.75em;
	height: 0.375em;
	border: 0.125em solid #fff;
	border-top-style: none;
	border-right-style: none;
}
.md-checkbox input[type="checkbox"]:disabled + label:before {
	border-color: rgba(0, 0, 0, 0.26);
}
.md-checkbox input[type="checkbox"]:disabled:checked + label:before {
	background: rgba(0, 0, 0, 0.26);
}