html {
	font-family: sans-serif;
}

body * {
	box-sizing: border-box;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: sans-serif;
	min-height: 80vh;
}

.form {
	display: inline-block;
	max-width: 350px;
	width: 100%;
	padding: 25px;
	border: 1px solid #888;
	border-radius: 6px;

	.title {
		padding: 10px 0px 10px 0;
		font-weight: bold;
	}

	.fieldset {
		border: none;
		padding: 0 12px;
		margin: 5px;
	}
}
.label {
	display: inline-block;
	margin: 10px 0 5px 0;
}

input {
	width: 100%;
	height: 25px;
	padding-left: 10px;
	border-radius: 6px;
	border-width: 1px;
	outline: -1px;
	outline-color: #3880af;
}

.textarea {
	width: 100%;
	border-radius: 6px;
	resize: vertical;
	max-height: 150px;
	min-height: 50px;
	padding-left: 10px;
	outline-color: #3880af;
}

input::placeholder {
	font-size: 13px;
}

textarea::placeholder {
	font-size: 14px;
}

.checkbox {
	position: absolute;
	appearance: none;
	outline: none;
}

.checkbox-label {
	padding-left: 22px;
}

.checkbox::after {
	content: "";
	position: absolute;
	bottom: 13px;
	width: 14px;
	height: 14px;
	margin-left: -36px;
	border: 1px solid #333;
	border-radius: 4px;
	cursor: pointer;
}

.checkbox:checked::after {
	background:
		url(../img/check-icon.svg) no-repeat center,
		#ae37b9;
}

.button:disabled,
.checkbox:disabled,
.checkbox:disabled::after {
	opacity: 0.5;
	cursor: not-allowed;
}

.button {
	background-color: #7e2786;
	color: #fff;
	width: 100px;
	height: 25px;
	display: block;
	padding: 0;
	margin: 10px 0 10px 0;
	cursor: pointer;
	border: none;
	border-radius: 5px;
	transition: opacity 0.2s;
}

.button:hover {
	opacity: 0.85;
}

.button:not(:disabled):active {
	background-color: #7e2786;
}

.button:active {
	background-color: #7a0585;
}

input:focus-visible,
.textarea:focus-visible,
.checkbox:focus-visible::after,
.button:focus-visible {
	outline: 2px solid #7e2786;
	outline-offset: 1px;
}

input:disabled,
textarea:disabled {
	opacity: 0.5;
}
