.form {
	border: 1px solid #999;
	border-radius: 8px;
	padding: 24px;
	max-width: 358px;
	width: 100%;
	/* min-width: 320px; */
	background: #f4f4f4;
	margin-bottom: 50px;
}

.form-head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 24px;
}

.form-title {
	font-weight: 700;
	font-size: 24px;
	line-height: 1.25;
	text-align: center;
}

.form-text {
	font-size: 18px;
	line-height: 1.25;
}

.field-group {
	margin-bottom: 24px;
	label {
		display: block;
		padding: 0 12px 8px;
		line-height: 1.25;
		font-family: "Inter", sans-serif;
		font-weight: 400;
		font-size: 16px;
		line-height: 140%;
		color: #1e1e1e;
		margin-bottom: 8px;

		span {
			font-size: 18px;
			line-height: 133%;
			color: var(--danger-color);
		}
	}

	select,
	input {
		font-weight: 500;
		font-size: 18px;
		line-height: 1.22;
		padding: 12px;
		height: 50px;
		border: 1px solid #d9d9d9;
		border-radius: 8px;
		padding: 12px 16px;
		max-width: 310px;
		width: 100%;
		height: 40px;
		font-family: "Inter", sans-serif;
		font-weight: 400;
		font-size: 16px;
		line-height: 100%;
		color: #000;
		/* min-width: 120px; */
		transition: 0.15s ease-in-out;

		&:focus {
			border-color: var(--secondary-color);
		}

		&::placeholder {
			font-family: "Inter", sans-serif;
			font-weight: 400;
			font-size: 16px;
			line-height: 100%;
			color: #b3b3b3;
		}
	}

	select:invalid {
		color: rgba(17, 17, 17, 0.5);

	}
}

/* .form-checkbox {
	margin-top: 12px;
	position: relative;
	font-size: 12px;
	line-height: 15px;
	color: #737373;

	&>span {
		position: relative;
		display: block;
		padding-left: 30px;

		&::before,
		&::after {
			position: absolute;
			content: '';
			top: 50%;
		}

		&::before {
			left: 0;
			translate: 0 -50%;
			width: 20px;
			height: 20px;
			border: 2px solid #1276b5;
		}

		&::after {
			border-bottom: 2px solid #1276b5;
			border-right: 2px solid #1276b5;
			width: 5px;
			height: 10px;
			left: 10px;
			translate: -50% calc(-50% - 1px);
			rotate: 45deg;
			opacity: 0;
		}
	}

	input:checked+span::after {
		opacity: 1;
	}
} */




.form-checkbox {
	--size: 20px;
	--border: 2px;
	--check-thickness: 2px;

	margin-top: 12px;
	position: relative;
	font-size: 12px;
	line-height: 15px;
	color: #737373;

	&>span {
		position: relative;
		display: block;
		padding-left: calc(var(--size) + 10px);

		&::before,
		&::after {
			position: absolute;
			content: '';
			top: 50%;
			left: 0;
			translate: 0 -50%;
		}

		/* Внешняя рамка */
		&::before {
			width: var(--size);
			height: var(--size);
			border: var(--border) solid #1276b5;
			border-radius: 3px;
		}

		/* Галочка */
		&::after {
			/* размеры галочки вычисляются от размера чекбокса */
			width: calc(var(--size) * 0.35);
			height: calc(var(--size) * 0.6);

			border-bottom: var(--check-thickness) solid #1276b5;
			border-right: var(--check-thickness) solid #1276b5;

			/* позиционирование — центр отступа + половина размера галки */
			left: calc(var(--size) * 0.5);
			translate: -50% calc(-50% - var(--check-thickness));
			rotate: 45deg;

			opacity: 0;
		}
	}

	input:checked+span::after {
		opacity: 1;
	}
}

.phone-eror-mess,
#emailError {
	color: red;
	font-size: 14px;
}