/*********************************************************/
/*
*              INPUT 
*
**********************************************************/
/*********************************************************/
/*
*              SELECT 
*
**********************************************************/
/*********************************************************/
/*
*              CHECKBOXES 
*
**********************************************************/
/*********************************************************/
/*
*              RADIO 
*
**********************************************************/
/* The container */
/* Hide the browser's default radio button */
/* Create a custom radio button */
/* On mouse-over, add a grey background color */
/* When the radio button is checked, add a blue background */
/* Create the indicator (the dot/circle - hidden when not checked) */
/* Show the indicator (dot/circle) when checked */
/* Style the indicator (dot/circle) */
/*********************************************************/
/*
*              BUTTON / SUBMIT 
*
**********************************************************/
/*********************************************************/
/*
*              VALIDATION MESSAGE
*
**********************************************************/
/* GENERAL */
/* INPUT */
/* SELECT */
/* TEXTAREA */
/* CHECKBOX */
/* RADIO */
input[type="text"] {
	border: 1px solid $light-grey;
	padding: .9rem;
	width: 100%;
	font-size: 0.875rem;
}
input[type="password"] {
	border: 1px solid $light-grey;
	padding: .9rem;
	width: 100%;
	font-size: 0.875rem;
}
input[type="email"] {
	border: 1px solid $light-grey;
	padding: .9rem;
	width: 100%;
	font-size: 0.875rem;
}
input[type="tel"] {
	border: 1px solid $light-grey;
	padding: .9rem;
	width: 100%;
	font-size: 0.875rem;
}
input[type="date"] {
	border: 1px solid $light-grey;
	padding: .9rem;
	width: 100%;
	font-size: 0.875rem;
}
select {
	border: 1px solid $light-grey !important;
	padding: .8rem !important;
	width: 100% !important;
	color: #212529;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 16px 12px;
	border: 1px solid #ced4da;
	border-radius: 0;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.form-check-input {
	border: 3px solid $tertiary-color;
	&:checked {
		background-color: $tertiary-color;
		border-color: $tertiary-color;
	}
}
input[type="checkbox"]+label {
	font-weight: 700;
	color: $secondary-color
}
.container__radio {
	display: inline-block;
	position: relative;
	padding-left: 35px;
	margin-right: 1.5rem;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	input {
		position: absolute;
		opacity: 0;
		cursor: pointer;
		&:checked~.checkmark {
			background-color: $tertiary-color;
		}
	}
	&:hover {
		input~.checkmark {
			background-color: #ccc;
		}
	}
	.checkmark {
		&:after {
			top: 9px;
			left: 9px;
			width: 8px;
			height: 8px;
			border-radius: 50%;
			background: white;
		}
	}
}
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: #eee;
	border-radius: 50%;
	&:after {
		content: "";
		position: absolute;
		display: none;
	}
}
.container__Radio {
	input {
		&:checked~.checkmark {
			&:after {
				display: block;
			}
		}
	}
}
input[type="submit"].btn__action {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	margin: 0;
}
.input__error__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo campo non corretto!';
		position: absolute;
		bottom: -30px;
		left: 0;
		font-size: .875rem;
		color: rgba(184, 71, 71, 1);
	}
	&:after {
		content: url(#{$img-path}/img/circle-exclamation-regular.svg);
		position: absolute;
		top: 20px;
		right: 20px;
		width: 20px;
		filter: invert(28%) sepia(89%) saturate(538%) hue-rotate(315deg) brightness(110%) contrast(86%);
	}
}
.input__correct__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo campo corretto!';
		position: absolute;
		bottom: -30px;
		left: 0;
		font-size: .875rem;
		color: $primary-color
	}
	&:after {
		content: url(#{$img-path}/img/check-solid.svg);
		position: absolute;
		top: 20px;
		right: 20px;
		width: 20px;
		filter: invert(72%) sepia(11%) saturate(4945%) hue-rotate(63deg) brightness(96%) contrast(59%);
	}
}
.select__error__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo opzione non selezionata!';
		position: absolute;
		bottom: -30px;
		left: 0;
		font-size: .875rem;
		color: rgba(184, 71, 71, 1);
	}
	&:after {
		content: url(#{$img-path}/img/circle-exclamation-regular.svg);
		position: absolute;
		top: 20px;
		right: 20px;
		width: 20px;
		filter: invert(28%) sepia(89%) saturate(538%) hue-rotate(315deg) brightness(110%) contrast(86%);
	}
}
.textarea__error__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo campo non compilato!';
		position: absolute;
		bottom: -30px;
		left: 0;
		font-size: .875rem;
		color: rgba(184, 71, 71, 1);
	}
	&:after {
		content: url(#{$img-path}/img/circle-exclamation-regular.svg);
		position: absolute;
		top: 20px;
		right: 20px;
		width: 20px;
		filter: invert(28%) sepia(89%) saturate(538%) hue-rotate(315deg) brightness(110%) contrast(86%);
	}
}
.checkbox__error__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo checkbox non valido!';
		position: absolute;
		bottom: -50px;
		left: 0;
		font-size: .875rem;
		color: $alert-color;
	}
}
.radio__error__container {
	position: relative;
	display: block;
	&:before {
		content: 'Testo radio button non valido!';
		position: absolute;
		bottom: -50px;
		left: 0;
		font-size: .875rem;
		color: $alert-color;
	}
}
.input__error {
	border: 1px solid $alert-color !important;
}
.select__error {
	border: 1px solid $alert-color !important;
}
.textarea__error {
	border: 1px solid $alert-color !important;
}
.input__correct {
	border: 1px solid $primary-color !important;
}
.select__correct {
	border: 1px solid $primary-color !important;
}
.textarea__correct {
	border: 1px solid $primary-color !important;
}
@media screen and (max-width:767px) {
	.form-check.form-check-inline {
		display: block;
	}
}
