:root {
	--white-color-modal: #ffffff;
	--main-color-modal: #f79525;
	--error-color-modal: #ff8989;
}

/* Обертка и само модальное окно */

.modal-background {
	background: rgba(0, 0, 0, 0.342);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	position: fixed;
	top: 0;
	left: 0;
}

.modal-wrapper {
	max-width: 320px;
	width: 100%;
	border-radius: 10px;
	position: relative;
	z-index: 1000;
}

.modal-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	border-radius: 10px;
	background: #ffffff;
	/* margin: 10px; */
	border: 2px solid rgb(197, 197, 197);
	position: relative;
	padding: 120px 0 80px 0;
	overflow: hidden;
	height: 430px;
	width: 100%;
}

.open-modal {
	transition: 0.3s linear;
	visibility: visible;
	opacity: 1;
	z-index: 1000;
}

/* Кнопка закрытия модального окна */

.button-close-wrapper {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	border: 2px solid rgb(197, 197, 197);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	background: #ffffff;
	transition: 0.3s linear;
	z-index: 300;
}

.button-close-wrapper:hover {
	background: var(--main-color-modal);
	transition: 0.3s linear;
}

.button-close-wrapper svg {
	transition: 0.3s linear;
	font-size: 28px;
	fill: #000000;
}

.button-close-wrapper svg:hover {
	transition: 0.3s linear;
	fill: #ffffff;
}

/* Инпуты */

.modal-inputs {
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: center;
	z-index: 100;

	width: 100%;
}

.input-name-wrapper,
.input-phone-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	max-width: 222px;
	width: 100%;
}

.name-icon,
.phone-icon {
	position: absolute;
	top: 0;
	left: 0;
	padding: 3px;
	/* border-radius: 50%; */
	width: 29px;
	height: 48px;
	background: rgb(197, 197, 197);
	fill: rgb(0, 0, 0);
	border: 2px solid rgb(197, 197, 197);
	transition: 0.2s linear;
}

.error-border {
	border: 2px solid var(--error-color-modal) !important;
}

.error-icon {
	border: 2px solid var(--error-color-modal) !important;
	background: var(--error-color-modal) !important;
}

/* Инпут имени */

.input-name-wrapper:hover .name-icon {
	left: -7px;
	transition: 0.3s linear;
	border: 2px solid var(--main-color-modal);
	background: var(--main-color-modal);
}

.input-name:hover {
	transition: 0.3s linear;
	border: 2px solid var(--main-color-modal);
}

.input-name,
.input-phone {
	border-radius: 40px;
	padding: 6px 12px 6px 30px;
	border: 2px solid rgb(197, 197, 197);
	outline: none;
	transition: 0.3s linear;
	max-width: 222px;
	width: 100%;
}

.input-text-name {
	position: absolute;
	background: #ffffff;
	top: calc(50% - 12px);
	left: 45px;
	padding: 0 2px;
	line-height: 1;
	transition: 0.3s linear;
	color: black !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}

.input-name-wrapper:hover .input-text-name {
	top: calc(50% - 30px);
	transition: 0.2s linear;
}

.actived-icon {
	left: -7px;
	transition: 0.3s linear;
	background: var(--main-color-modal);
}

.actived-label {
	top: calc(50% - 30px) !important;
	transition: 0.3s linear;
}

.actived {
	border: 2px solid var(--main-color-modal);
	transition: 0.3s linear;
}

/* Инпут телефона */

.input-phone-wrapper:hover .phone-icon {
	left: -7px;
	transition: 0.3s linear;
	border: 2px solid var(--main-color-modal);
	background: var(--main-color-modal);
}

.input-phone:hover {
	transition: 0.3s linear;
	border: 2px solid var(--main-color-modal);
}

.input-text-phone {
	position: absolute;
	background: #ffffff;
	top: calc(50% - 12px);
	left: 45px;
	padding: 0 2px;
	line-height: 1;
	transition: 0.3s linear;
	color: black !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}

.input-phone-wrapper:hover .input-text-phone {
	top: calc(50% - 30px);
	transition: 0.3s linear;
}

/* Кнопка отправить */

.button-accept-wrapper {
	margin-top: 30px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 100;
}

.button-accept-wrapper button {
	border: 2px solid var(--main-color-modal);
	border-radius: 8px;
	padding: 8px 12px;
	background: var(--white-color);
	color: black;
	transition: 0.3s linear;
	font-size: 18px;
	font-weight: 600;
}

.button-accept-wrapper button:hover {
	border: 2px solid var(--white-color-modal);
	background: var(--main-color-modal);
	transition: 0.3s linear;
	color: var(--white-color-modal);
	padding: 8px 24px;
}

.noScroll {
	overflow: hidden;
	padding-right: 17px;
}

/* Задний фон блоков */

.background-block-one {
	position: absolute;
	transform: skewY(10deg);
	top: -30px;
	width: 100%;
	height: 25%;
	z-index: 200;
	left: 0;
	background: var(--main-color-modal);
	border-bottom: 2px solid rgb(197, 197, 197);
	transition: 0.3s linear;
}

.background-block-two {
	position: absolute;
	transform: skewY(10deg);
	bottom: -30px;
	left: 0;
	width: 100%;
	height: 25%;
	background: var(--main-color-modal);
	z-index: 200;
	border-top: 2px solid rgb(197, 197, 197);
	transition: 0.3s linear;
}

.complited-one {
	height: 58%;
	transition: 0.3s linear;
}

.complited-two {
	height: 58%;
	transition: 0.3s linear;
}

/* Финальная панель */

.finished-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.finished-text {
	text-align: center;
	color: black !important;
}

.finish-button {
	border: 2px solid var(--main-color-modal);
	border-radius: 8px;
	padding: 8px 12px;
	background: var(--white-color-modal);
	color: black;
	transition: 0.3s linear;
	font-size: 18px;
	font-weight: 600;
}

.finish-button:hover {
	border: 2px solid var(--white-color-modal);
	background: var(--main-color-modal);
	transition: 0.3s linear;
	color: var(--white-color-modal);
}

.main-wrapper {
	width: 100%;
}

.finished-wrapper {
	display: none;
}

.input-phone::placeholder {
	color: transparent;
	transition: 0.3s ease;
}

.input-phone:hover::placeholder {
	color: rgb(83, 83, 83) !important;
	transition: 0.3s ease;
}

.input-phone::placeholder {
	color: rgb(255, 255, 255) !important;
	transition: 0.3s ease;
}