
:root {
	--form-input:10px;
}

.form {
	width: auto;
	width: 400px;
	max-width: 100%;
	display: grid;
	position: relative;
	align-items: center;
	justify-items: center;
	border-radius: 20px;
	row-gap: 1em;
	font-family: var(--theme-font);
	box-sizing: border-box;
	margin: auto;
	padding:2.5em 2em;
	text-align: center;
}

.form h2 {
	color:var(--theme-dark)
}

.form__int{
	width: 100%;
	display: grid;
	position: relative;
	align-items: center;
	justify-items: center;
	border-radius: 20px;
	row-gap: 1em;
	font-family: var(--theme-font);
	box-sizing: border-box;
	margin: auto;
	padding:2.5em 2em;
	text-align: center;
	background: #fdfdfd;
	border: 1px solid var(--theme-outline);
}

.form--vertical {
	grid-auto-flow: row;
}

.form--horizontal{
	grid-auto-flow: column;
}

.form-thankpage{
	width: 400px;
	max-width: 420px;
	display: grid;
	grid-auto-flow: row;
	grid-template-rows: auto auto;
	position: relative;
	border-radius: 20px;
	row-gap: 1.25em;
	font-family: var(--theme-font);
	padding: 3em;
	box-sizing: border-box;
	align-items: center;
    align-content: center;
    justify-items: center;
	text-align: center;
}

.form-thankpage h2{
	color:var(--theme-dark);
}


.form-waiting {
	width: 400px;
	max-width: 420px;
	display: flex;
	min-height: 500px;
	border-radius: 20px;
	padding: 3em;
	box-sizing: border-box;
	text-align: center;
}

.thankpage__subtitle p{
	line-height: 1.5em;
	color:var(--theme-dark-80);
}

.form__text {
	color:var(--theme-dark-50);
}

.form__label {
	width: 100%;
}

.form__label p {
	font-family: var(--theme-font);
	font-weight: bold;
	color: var(--theme-dark-80);
	padding-left: 1.4em;
}

.form__input {
	font-family: var(--theme-font);
	font-weight: normal;
	font-size: 1em;
	margin-top: 0.35em;
	width: 100%;
	min-height: 55px;
	border: 1px solid var(--theme-outline);
	color: var(--theme-dark);
	background-color: var(--theme-dark-5);
	font-weight: bold;
	border-radius: var(--form-input);
	padding-left: calc(1.5em);
	transition: 0.3s;
}

.form__input::placeholder {
	color: var(--theme-dark-50);
	font-weight: bold;
}

.form__input:focus {
	border: 1px solid var(--theme-accent);
}

.form__input:hover {
	border: 1px solid var(--theme-accent);
}

.form__btn {
	margin-top: 1em;
	width: 100%;
	height: 60px;
	background-color: var(--theme-accent);
	color: var(--theme-dark);
	transition: 0.3s;
}

.form__btn:hover {
	color: white;
	background-color: var(--theme-accent);
}

.prefix-wrapper {
	display: flex;
	height: calc(60px + 0.35em);
	position: absolute;
	margin-left: 1.5em;
}

.form__input-phone {

}

.form__input-prefix {
	margin: auto;
	color: var(--theme-dark);
	font-weight: bold;
}

.modalManager {
	display: grid;
	justify-items: center;
	align-items: center;
	row-gap: 0.25em;
	text-align: center;
}

.modalManager__img {
	width: 100px;
	height: 100px;
	border-radius: 99px;
	margin: 0.5em 0;
}


.preloader {
	margin: auto;
}
.preloader-circle {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.preloader-circle div {
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	margin: 8px;
	border: 8px solid #fff;
	border-radius: 50%;
	animation: preloader-circle 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: var(--theme-accent) transparent transparent transparent;
}

.preloader-circle div:nth-child(1) {
	animation-delay: -0.45s;
}
.preloader-circle div:nth-child(2) {
	animation-delay: -0.3s;
}
.preloader-circle div:nth-child(3) {
	animation-delay: -0.15s;
}

@keyframes preloader-circle {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media screen and (max-width:1299px) {
	.form-thankpage {
		width: 100%;
	}
	.form-waiting {
		width: 100%;
	}
}

@media screen and (max-width:1199px) {
	.form {
		padding:2em;
	}

}

@media screen and (max-width:666px) {
	.form {
		width: 100%;
		grid-auto-flow: row;
	}
}