.employee-form {
	--employee-form-control-size: 18px;
	--employee-form-control-border: #7d8794;
	--employee-form-control-border-hover: #e30613;
	--employee-form-control-fill: #e30613;
	--employee-form-control-background: #fff;
	--employee-form-control-check: #fff;
	--employee-form-control-focus: rgba(0, 112, 204, 0.25);
	--employee-form-control-error: #b42318;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0px auto;
	padding: 28px;
	border-radius: 16px;
	background: #fff;
	color: #17202a;
}
.employee-form__field .employee-form__input {
    width: 100%;
    border-radius: 50px;
    padding: 6px 15px;
    min-height: 30px;
    margin-bottom: 0px;
}
.employee-form *,
.employee-form *::before,
.employee-form *::after {
	box-sizing: border-box;
}

.employee-form__title {
	margin: 0 0 22px;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0;
}

.employee-form__subheader {
	margin: -12px 0 22px;
	color: #5c6773;
	font-size: 17px;
	line-height: 1.45;
}

.employee-form__form {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px;
}

.employee-form__field {
	grid-column: 1 / -1;
	margin: 0;
}

.employee-form__field--width-full {
	grid-column: span 12;
}

.employee-form__field--width-half {
	grid-column: span 6;
}

.employee-form__field--width-third {
	grid-column: span 4;
}

.employee-form__field--width-two_thirds {
	grid-column: span 8;
}

.employee-form__field--width-quarter {
	grid-column: span 3;
}

.employee-form__label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
}

.employee-form__visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.employee-form__input,
.employee-form__file {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid #b9c2cf;
	border-radius: 50px;
	background: #fff;
	color: #17202a;
	font: inherit;
}

.employee-form__input:focus,
.employee-form__file:focus {
	outline: 3px solid var(--employee-form-control-focus);
	outline-offset: 2px;
	border-color: var(--employee-form-control-border-hover);
}

.employee-form__tiles {
	display: flex;
	gap: 20px;
}

.employee-form__tile {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.employee-form__tile input {
	appearance: none;
	-webkit-appearance: none;
	width: var(--employee-form-control-size);
	height: var(--employee-form-control-size);
	margin: 3px 0 0;
	border: 2px solid var(--employee-form-control-border);
	border-radius: 50%;
	background: var(--employee-form-control-background);
	flex: 0 0 auto;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.employee-form__tile span {
	min-width: 0;
	line-height: 1.5;
	color: #17202a;
}

.employee-form__tile input:hover,
.employee-form__checkbox input:hover {
	border-color: var(--employee-form-control-border-hover);
}

.employee-form__tile input:focus-visible,
.employee-form__checkbox input:focus-visible {
	outline: 3px solid var(--employee-form-control-focus);
	outline-offset: 2px;
	border-color: var(--employee-form-control-border-hover);
}

.employee-form__tile input:checked {
	border-color: var(--employee-form-control-fill);
	background: var(--employee-form-control-background);
	box-shadow: inset 0 0 0 4px var(--employee-form-control-background), inset 0 0 0 10px var(--employee-form-control-fill);
}

.employee-form__checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.employee-form__checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0px 14px;
}

.employee-form__checkbox input {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: var(--employee-form-control-size);
	height: var(--employee-form-control-size);
	margin: 3px 0 0;
	border: 2px solid var(--employee-form-control-border);
	border-radius: 4px;
	background: var(--employee-form-control-background);
	flex: 0 0 auto;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.employee-form__checkbox input::after {
	position: absolute;
	top: 1px;
	left: 5px;
	width: 5px;
	height: 10px;
	border: solid var(--employee-form-control-check);
	border-width: 0 2px 2px 0;
	content: "";
	opacity: 0;
	transform: rotate(45deg);
}

.employee-form__checkbox input:checked {
	border-color: var(--employee-form-control-fill);
	background: var(--employee-form-control-fill);
}

.employee-form__checkbox input:checked::after {
	opacity: 1;
}

.employee-form__checkbox span {
	line-height: 1.5;
}

.employee-form__checkbox--option span {
	min-width: 0;
}

.employee-form__help,
.employee-form__after,
.employee-form__file-name {
	margin: 7px 0 0;
	color: #5c6773;
	font-size: 14px;
}

.employee-form__message,
.employee-form__error {
	margin: 8px 0 0;
	color: #9b1c1c;
	font-size: 14px;
}

.employee-form__success {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-left: 4px solid #15803d;
	background: #ecfdf3;
	color: #0f5132;
	opacity: 1;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.employee-form__error {
	padding: 12px 14px;
	border-left: 4px solid #b42318;
	background: #fff1f0;
	opacity: 1;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.employee-form__flash--hiding {
	opacity: 0;
	transform: translateY(-4px);
}

.employee-form__field--has-error .employee-form__input,
.employee-form__field--has-error .employee-form__file,
.employee-form__field--has-error .employee-form__tile input,
.employee-form__field--has-error .employee-form__checkbox input {
	border-color: var(--employee-form-control-error);
}

.employee-form__actions {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.employee-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    background: #e30613;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.employee-form__submit:hover,
.employee-form__submit:focus {
	background: #084a8d;
	color: #fff;
}

.employee-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.employee-form {
		margin: 20px 0;
		padding: 20px;
	}

	.employee-form__title {
		font-size: 23px;
	}

	.employee-form__subheader {
		font-size: 16px;
	}

	.employee-form__tiles {
		grid-template-columns: 1fr;
	}

	.employee-form__field,
	.employee-form__field--width-full,
	.employee-form__field--width-half,
	.employee-form__field--width-third,
	.employee-form__field--width-two_thirds,
	.employee-form__field--width-quarter {
		grid-column: 1 / -1;
	}
}
