input[type="text"],
input[type="search"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
	padding: 0.25rem;
}

select {
	background-image: url(images/form/select.svg);
	background-position: right center;
	background-repeat: no-repeat;

	padding-right: 1.5rem;
}

/* customized radio button styling */

input[type="radio"],
input[type="checkbox"] {
	width: 1rem;
	height: 1rem;

	vertical-align: middle;

	border-width: 1px;
	border-style: solid;

	background: transparent;
	box-shadow: 0 0 0 0 transparent;

	transition: all .2s ease-in-out;

	margin: 0;
}

input[type="radio"] {
	border-radius: 50%;
	margin-bottom: 0.25rem;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
	border-width: 0;
	background-color: var(--color-form-option-selected, #000000);
	background-size: 100% 100%;

	animation-name: ping;
	animation-duration: 0.5s;
	animation-iteration-count: 1;
}

@keyframes ping {
	0% { box-shadow: 0 0 0 transparent; }
	50% { box-shadow: 0 0 0 0.5em var(--color-form-highlight, #000000); }
	100% { box-shadow: 0 0 0 1em transparent; }
}

input[type="radio"]:checked {
	background-image: url(images/form/radio.svg);
	background-size: 100% 100%;
}

input[type="checkbox"]:checked {
	background-image: url(images/form/checkmark.svg);
	background-size: 100% 100%;
}

input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
	background: var(--color-form-option-active) url(images/form/disabled.svg);
	background-size: 100% 100%;
}

input[type="radio"]:active,
input[type="checkbox"]:active {
	background: var(--color-form-option-active);
	box-shadow: 0 0 0 1rem var(--color-form-highlight);
}
