* {
	box-sizing: border-box;
}

html {
	background: linear-gradient(270deg, #262626, #616161);
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: sans-serif;
	min-height: 100vh;
}

.form {
	max-width: 400px;
	width: 100%;
	background-color: #363636;
	border: 1px solid #9e1fff;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 10px 12px 10px;
}

.fieldset {
	border: none;
	padding: 0;
}

.legend-title {
	font-weight: 600;
	font-size: 18px;
	color: #fff;
	padding: 0;
	margin-bottom: 15px;
}

.label {
	display: block;
	color: #fff;
	margin-bottom: 10px;
}

.label-inline-block {
	display: inline-block;
	padding-left: 22px;
	margin-bottom: 20px;
}

.input,
.textarea {
	color: #ffffffcc;
	background-color: #363636;
	border: 1px solid #000;
	border-radius: 5px;
	width: 100%;
	min-height: 28px;
	padding: 5px 12px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.textarea {
	resize: vertical;
	max-height: 200px;
	min-height: 30px;
}

::placeholder {
	color: #ffffff50;
}

.input:disabled,
.textarea:disabled,
.checkbox:disabled::after {
	opacity: 0.4;
	cursor: not-allowed;
}

.checkbox {
	position: absolute;
	appearance: none;
	outline: none;
}

.checkbox::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin-left: -22px;
	border: 1px solid #000;
	border-radius: 4px;
	cursor: pointer;
}

.checkbox:checked::after {
	background:
		url("../img/check-icon.svg") no-repeat center,
		#9e1fff;
}

.checkbox-text {
	color: #fff;
	font-size: 14px;
}

.button {
	display: block;
	border: none;
	border-radius: 5px;
	padding: 5px 15px;
	background-color: #9e1fff;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.3s;
}

.button:hover {
	opacity: 0.8;
}

.button:not(:disabled):active {
	background-color: #8719db;
}

.button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.input:focus-visible,
.textarea:focus-visible,
.button:focus-visible,
.checkbox:focus-visible::after {
	outline: 2px solid #9e1fff;
	outline-offset: 1px;
}
