:root {
	--color-main: #23BABF;
	--font-inter: 'Inter', sans-serif;
}

.calculate-price__wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 80px;
}

.calculate-price__wrapper--form {
	width: 50%;
}

.calculate-price__wrapper--jaw {
	width: 50%;
	background: #EDF2F7;
	height: 100%;
	padding-top: 80px;
	padding-bottom: 80px;
}

.calculate-price {
	box-sizing: border-box;
	width: 100%;
	max-width: 512px;
	margin: 0 auto;
	color: #555;
	font-family: inherit;
}

.calculate-price *,
.calculate-price *::before,
.calculate-price *::after {
	box-sizing: border-box;
}

.calculate-price__header {
	padding: 0 16px;
}

.calculate-price__title {
	color: var(--color-main);
	text-align: center;
	font-family: var(--font-inter);
	font-size: 32px;
	font-style: normal;
	font-weight: 600;
	line-height: 40px;
	text-transform: uppercase;
	margin-bottom: 32px;
	letter-spacing: 1px;
}

.calculate-price__description {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
}

.calculate-price__image {
	margin: 0 0 16px;
	text-align: center;
}

.calculate-price__image img {
	max-width: 100%;
	height: auto;
}

.calculate-price__fields {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 24px;
}

.calculate-price__field {
	margin: 0;
}

.calculate-price__label {
	display: block;
	margin: 0;
}

.calculate-price__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;
}

.calculate-price__field input:not([type="checkbox"]):not([type="radio"]),
.calculate-price__field textarea,
.calculate-price__field select,
.calculate-price__captcha-input {
	font-family: var(--font-inter);
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	width: 100%;
	padding: 12px 20px 12px 16px;
	border-radius: 10px;
	border: 2px solid #E9EBEF;
	background: #FFF;
	color: black;
	transition: 0.3s;

	&::placeholder {
		color: #9299A5;
	}

	&:hover {
		border-color: #c0c2c7;
	}

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

.calculate-price__field .calculate-price__field input::placeholder,
.calculate-price__field textarea::placeholder,
.calculate-price__captcha-input::placeholder {
	color: #a4a8ad;
	opacity: 1;
}

.calculate-price__field--checkbox {
	margin: 22px 0 20px;
	padding: 0 8px;
}

.calculate-price__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: #666;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

.calculate-price__consent input[type="checkbox"] {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: #22b8bb;
}

.calculate-price__consent-text {
	display: block;
}

.calculate-price__consent-text a {
	color: inherit;
	text-decoration: underline;
}

.calculate-price__field-error {
	display: block;
	margin: 0 0 5px;
	color: #c00;
	font-size: 12px;
}

.calculate-price__footer {
	margin-top: 24px;
}

.calculate-price__submit {
	background: var(--color-main);
	padding: 14px 24px;
	border-radius: 10px;

	color: #FFF;
	font-family: var(--font-inter);
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;

	border: unset;
	width: 100%;
	transition: 0.3s;
}

.calculate-price__submit:hover,
.calculate-price__submit:focus-visible {
	background: #1ca9ac;
}

.calculate-price__submit:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.calculate-price__apply {
	margin: 10px;
}

.calculate-price__captcha {
	display: grid;
	gap: 10px;
	margin: 0 8px 20px;
}

.calculate-price__captcha-title {
	font-size: 14px;
}

.calculate-price__captcha-image {
	max-width: 100%;
	height: auto;
}

.calculate-price__success,
.calculate-price__error-message {
	padding: 18px;
	font-size: 15px;
	line-height: 1.5;
}

.calculate-price__success {
	color: #258653;
}

.calculate-price__error-message,
.calculate-price__field--checkbox .calculate-price__field-error {
	color: #c00;
}

.calculate-price__jaw {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.jaw-head__title--sub {
	color: var(--color-main);
	text-align: center;
	font-family: var(--font-inter);
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 120%;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.jaw-head__title {
	color: #333;
	text-align: center;
	font-family: var(--font-inter);
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 40px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.jaw-head__description {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 53px;
}

.jaw-head__description span {
	color: #333;
	text-align: center;
	font-family: var(--font-inter);
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 120%;
}

.jaw-sheme path:not(.tooth-element) {
	pointer-events: none;
}

.jaw-sheme {
	position: relative;
	width: min(100%, 353px);
}

.jaw-sheme>svg {
	display: block;
	width: 100%;
	height: auto;
}

.jaw-sheme .tooth-element {
	cursor: pointer;
}

.tooth-service {
	position: absolute;
	z-index: 2;
	width: 240px;
	max-height: min(360px, 80vh);
	overflow-y: auto;
	border: 1px solid #e1e5eb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 47, 62, 0.18);
	color: #333;
	font-family: var(--font-inter);
}

.tooth-service[hidden] {
	display: none;
}

.tooth-service__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 8px;
	color: #23aeb3;
	font-size: 14px;
	font-weight: 600;
}

.tooth-service__close {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #7d8591;
	cursor: pointer;
	font: inherit;
	font-size: 22px;
	line-height: 1;
}

.tooth-service__list {
	padding: 0 6px 6px;
}

.tooth-service__item {
	padding: 9px 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.35;
}

.tooth-service__item:hover,
.tooth-service__item:focus-visible,
.tooth-service__item--selected {
	outline: none;
	background: #eaf8f8;
	color: #168d92;
}

/* Чекбокс */

.license-wrapper {
	display: flex;
	gap: 16px;
	margin-top: 24px;

	color: #5A616C;
	font-family: var(--font-inter);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
}

.calculate-price__selected {
	font-family: var(--font-inter);
	font-weight: 400;
	color: rgba(51, 51, 51, 1);
	margin-bottom: 32px;
}

.calculate-price__selected-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.calculate-price__selected-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid #D8E1E8;
	border-radius: 8px;
	background: #FFF;
	font-size: 14px;
	line-height: 20px;
}

.calculate-price__selected-label {
	font-weight: 600;
}

.calculate-price__selected-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #7D8591;
	cursor: pointer;
	font: inherit;
	font-size: 18px;
	line-height: 1;
}

.calculate-price__selected-remove:hover,
.calculate-price__selected-remove:focus-visible {
	background: #FDECEC;
	color: #C00;
	outline: none;
}

input.licence-checkbox__input {
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #D2D6DC;
	box-sizing: border-box;
	background-color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	border-radius: 4px;
	transition: border .1s, background-color .1s;
	background-position: center;
	background-repeat: no-repeat;

	&:hover {
		background-image: url(/images/checbox-hover.svg);
		border-color: #ABB2BE;
	}

	&:checked {
		border-color: var(--color-main);
		background-color: var(--color-main);
		background-image: url(/images/checbox-selected.svg);
	}
}

/* end екбокс */

@media (max-width: 991px) {
	.calculate-price {
		max-width: unset;
		padding: 0 24px;
	}

	.calculate-price__wrapper {
		flex-direction: column;
		height: unset;
		margin: 40px 0;
	}

	.calculate-price__wrapper--form {
		width: 100%;
	}

	.calculate-price__wrapper--jaw {
		width: 100%;
		padding-bottom: 24px;
	}

	.jaw-head__title--sub {
		font-size: 20px;
	}

	.jaw-sheme svg {
		height: 300px;
	}

	.calculate-price__title {
		font-size: 24px;
	}

	.jaw-head {
		padding: 0 12px;
	}

	.jaw-head__title {
		line-height: 28px;
	}
}

.calculate-price__error-message {
	display: none;
}

.calculate-price__field:has(.calculate-price__field-error) input:not([type="checkbox"]):not([type="radio"]),
.calculate-price__field:has(.calculate-price__field-error) textarea,
.calculate-price__field:has(.calculate-price__field-error) .calculate-price__field select,
.calculate-price__field:has(.calculate-price__field-error) .calculate-price__captcha-input {
	border-color: red;
}