@font-face {
	font-display: swap;
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/inter-v13-cyrillic_latin-regular.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	src: url("../fonts/inter-v13-cyrillic_latin-500.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	src: url("../fonts/inter-v13-cyrillic_latin-600.woff2") format("woff2");
}

:root {
	--demo-bg: #fff;
	--demo-surface: #fff;
	--demo-text: #292c34;
	--demo-placeholder: #8a8a8a;
	--demo-muted: #8a8a8a;
	--demo-border: #e0e3e6;
	--demo-violet: #835af5;
	--demo-violet-dark: #6f47de;
	--demo-error: #d43c5c;
}

.demo-wizard,
.demo-wizard * {
	box-sizing: border-box;
}

.demo-wizard a.demo-button,
.demo-wizard a.demo-button:hover,
.demo-wizard a.demo-button:focus-visible {
	color: #fff;
	text-decoration: none;
}

.demo-wizard button,
.demo-wizard input,
.demo-wizard select {
	font: inherit;
}

.demo-wizard input:not([type="checkbox"]) {
	cursor: text;
}

.demo-wizard select {
	cursor: pointer;
}

.demo-wizard {
	background: var(--demo-bg);
	font-family: "Inter", Arial, sans-serif;
	min-height: calc(100vh - 88px);
}

.demo-wizard__main {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: calc(100vh - 170px);
	padding: 52px 24px;
}

.demo-wizard__panel {
	background: var(--demo-surface);
	border: 1px solid #eee;
	border-radius: 30px;
	display: grid;
	grid-template-columns: minmax(0, 600px) minmax(0, 600px);
	height: 600px;
	max-width: 1200px;
	overflow: hidden;
	width: 100%;
}

.demo-wizard__visual {
	align-items: stretch;
	display: flex;
	overflow: hidden;
}

.demo-wizard__visual img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
	width: 100%;
}

.demo-wizard__steps {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px;
}

.demo-step {
	display: none;
	flex-direction: column;
	gap: 32px;
	width: 100%;
}

.demo-step_active {
	display: flex;
}

.demo-step--spacious {
	gap: 48px;
}

.demo-step--pending {
	align-items: center;
	gap: 24px;
}

.demo-step__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.demo-step__head h1 {
	color: var(--demo-text);
	font-size: 32px;
	font-weight: 500;
	line-height: normal;
	margin: 0;
}

.demo-step__head p {
	color: var(--demo-text);
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	margin: 0;
}

.demo-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.demo-form__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-field {
	cursor: text;
	display: block;
	margin: 0;
}

.demo-field input,
.demo-field select {
	background: #fff;
	border: 1px solid var(--demo-border);
	border-radius: 5px;
	color: var(--demo-text);
	display: block;
	font-size: 14px;
	line-height: normal;
	margin: 0;
	outline: none;
	padding: 12px 16px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.demo-field input::placeholder {
	color: var(--demo-placeholder);
}

.demo-field select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #737986 50%),
		linear-gradient(135deg, #737986 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 17px,
		calc(100% - 13px) 17px;
	background-repeat: no-repeat;
	background-size: 5px 5px;
	color: var(--demo-text);
	padding-right: 36px;
}

.demo-field select:invalid {
	color: var(--demo-placeholder);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-code input:focus {
	border-color: var(--demo-violet);
	box-shadow: 0 0 0 3px rgba(131, 90, 245, 0.12);
}

.demo-field input[aria-invalid="true"],
.demo-field select[aria-invalid="true"] {
	border-color: var(--demo-error);
}

.demo-field input[aria-invalid="true"]:focus,
.demo-field select[aria-invalid="true"]:focus {
	border-color: var(--demo-error);
	box-shadow: 0 0 0 3px rgba(212, 60, 92, 0.12);
}

.demo-select {
	position: relative;
	width: 100%;
}

.demo-select__trigger {
	align-items: center;
	background: #fff;
	border: 1px solid var(--demo-border);
	border-radius: 5px;
	color: var(--demo-text);
	cursor: pointer;
	display: flex;
	font-size: 14px;
	gap: 10px;
	line-height: normal;
	margin: 0;
	outline: none;
	padding: 12px 16px;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.demo-select__label {
	flex: 1 1 auto;
	min-width: 0;
}

.demo-select__label_placeholder {
	color: var(--demo-placeholder);
}

.demo-select__icon {
	background: url("../img/demo-chevron-down.svg") center / 16px 16px no-repeat;
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

.demo-select_open .demo-select__icon {
	background-image: url("../img/demo-chevron-up.svg");
}

.demo-select_open .demo-select__trigger,
.demo-select__trigger:focus-visible {
	border-color: var(--demo-violet);
	box-shadow: 0 0 0 3px rgba(131, 90, 245, 0.12);
}

.demo-select__trigger[aria-invalid="true"] {
	border-color: var(--demo-error);
}

.demo-select__trigger[aria-invalid="true"]:focus-visible {
	border-color: var(--demo-error);
	box-shadow: 0 0 0 3px rgba(212, 60, 92, 0.12);
}

.demo-select__list {
	background: #fff;
	border: 1px solid var(--demo-border);
	border-radius: 5px;
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	z-index: 5;
}

.demo-select_open .demo-select__list {
	display: block;
}

.demo-select__option {
	align-items: center;
	color: var(--demo-text);
	cursor: pointer;
	display: flex;
	font-size: 14px;
	height: 40px;
	line-height: normal;
	padding: 8px 12px;
}

.demo-select__option_active,
.demo-select__option_selected {
	background: #f9f7ff;
	color: var(--demo-violet);
}

.demo-field:has(.demo-select) {
	cursor: default;
}

.demo-consent {
	align-items: flex-start;
	color: var(--demo-text);
	display: flex;
	font-size: 14px;
	gap: 12px;
	line-height: normal;
	margin: 0;
}

.demo-consent input {
	appearance: none;
	background: #fff;
	border: 1px solid var(--demo-border);
	border-radius: 2px;
	flex: 0 0 auto;
	flex-shrink: 0;
	height: 20px;
	margin: 0;
	position: relative;
	width: 20px;
}

.demo-consent input:checked {
	background: var(--demo-violet) url("../img/demo-checkbox-check.svg") center / 14px 14px no-repeat;
	border-color: var(--demo-violet);
}

.demo-consent a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.demo-button {
	align-items: center;
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 500;
	justify-content: center;
	line-height: normal;
	min-height: 48px;
	padding: 10px;
	text-align: center;
	transition: background-color 0.18s ease, opacity 0.18s ease;
	width: 100%;
}

.demo-button_primary {
	background: var(--demo-violet);
	color: #fff;
}

.demo-button_primary:hover,
.demo-button_primary:focus-visible {
	background: var(--demo-violet-dark);
	color: #fff;
}

.demo-button_primary[disabled],
.demo-button_primary.is-disabled {
	cursor: default;
	opacity: 0.5;
	pointer-events: none;
}

.demo-step__error {
	color: var(--demo-error);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	min-height: 0;
	text-align: center;
}

.demo-step__error:empty {
	display: none;
}

.demo-step__footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.demo-verify__body {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.demo-code {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.demo-code input {
	background: #fff;
	border: 1px solid var(--demo-border);
	border-radius: 5px;
	color: var(--demo-text);
	flex: 0 0 45px;
	font-size: 14px;
	font-weight: 400;
	height: 41px;
	outline: none;
	padding: 12px 16px;
	text-align: center;
	width: 45px;
}

.demo-code input::placeholder {
	color: var(--demo-placeholder);
}

.demo-link-button {
	background: transparent;
	border: 0;
	color: var(--demo-text);
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 400;
	margin: 0;
	padding: 0;
	text-align: center;
}

.demo-link-button:hover,
.demo-link-button:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.demo-link-button[disabled] {
	color: var(--demo-placeholder);
	cursor: default;
	text-decoration: none;
}

.demo-loader {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 64px;
}

.demo-loader img {
	animation: demo-loader-pulse 1.4s ease-in-out infinite;
	display: block;
	height: 64px;
	width: 64px;
}

.demo-step--pending .demo-loader {
	flex: 0 0 auto;
	margin: 4px 0;
}

.demo-step--pending .demo-step__head {
	gap: 12px;
	max-width: 460px;
}

.demo-step--pending [data-user-email] {
	color: var(--demo-text);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.demo-status,
.demo-message {
	color: var(--demo-text);
	font-size: 14px;
	line-height: normal;
	margin: 0;
	text-align: center;
}

.demo-message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@keyframes demo-loader-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.72;
		transform: scale(0.94);
	}
}

@media (max-width: 1024px) {
	.demo-wizard__panel {
		grid-template-columns: 1fr;
		height: auto;
		max-width: 680px;
	}

	.demo-wizard__visual {
		height: 360px;
	}

	.demo-wizard__steps {
		padding: 36px;
	}
}

@media (max-width: 760px) {
	.demo-wizard__main {
		align-items: stretch;
		padding: 18px 12px;
	}

	.demo-wizard__panel {
		border-radius: 22px;
		min-height: auto;
	}

	.demo-wizard__visual {
		height: 260px;
	}

	.demo-wizard__steps {
		padding: 24px;
	}

	.demo-step__head h1 {
		font-size: 27px;
	}

	.demo-form__grid {
		gap: 16px;
		grid-template-columns: 1fr;
	}

	.demo-code {
		flex-wrap: wrap;
		max-width: 100%;
	}
}
