// stop outline on focus
input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: none;
}
// generic styling on input elements
input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']),
textarea,
select {
	// add font awesome to font family for placeholders
	color: $body-font-color;
	font-family: $body-font-family;
	font-size: rem-calc(12);
	font-weight: 300;
	min-height: $input-height;
	padding: 0;
	padding-left: ($small-space * 2);
	border: 1px solid $border;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	// style placeholder
	@include input-placeholder {
		color: $light;
		font-family: 'FontAwesome', $body-font-family;
		font-size: rem-calc(11);
		position: relative;
		padding: 0;
		top: 0px;
		transition: all, 250ms, ease-in;
		line-height: normal;
		@include z-index(main);
		// for safari only
		@media only screen and (-webkit-min-device-pixel-ratio: 1) {
			padding-top: 0px;
			line-height: 12px;
		}
	}
	// change the horrible yellow background to white in chrome
	&:-webkit-autofill {
		-webkit-box-shadow: 0 0 0px 1000px white inset!important;
		border: 1px solid #ccc;
		padding-left: ($small-space * 2);
		color: $body-font-color;
		font-family: $body-font-family!important;
		font-size: 14px;
	}
	// hide placeholder on focus
	&:focus::-webkit-input-placeholder{
		color: transparent;
	}
}
// for focused elements
input:not([type='checkbox']):not([type='radio']):not([type='button']):focus,
select:focus,
textarea:focus {
	outline: none;
	box-shadow: 0 0 5px $light;
	-webkit-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
	transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
	border: none !important;
}
textarea {
	resize: none;
	height: $hundred;
	box-shadow: none;
	padding: $small-space ($small-space * 2);
    font-size: $body-font-size;
}
label {
	color: $body-font-color;
	display: inline-block;
	font-size: rem-calc(11);
	text-transform: uppercase;
	margin-bottom: $small-space;
	opacity: 0.6;
}
select {
	min-height: $input-height;
	color: $light;
	font-size: rem-calc(14);
}
fieldset {
    margin-bottom: $medium-space;
	border: 0;
    margin: 0;
    padding: 0;
}
legend {
    font-size: $body-font-size;
    font-weight: 500;
    margin-bottom: $medium-space;
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}
