.tt-form-modal[hidden] {
	display: none;
}

.tt-form-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	max-width: 100vw;
	padding: clamp(18px, 4vw, 40px);
	overflow: hidden;
	place-items: center;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.tt-form-modal.is-open {
	opacity: 1;
}

.tt-form-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(5, 11, 23, 0.76);
	backdrop-filter: blur(7px);
	cursor: default;
}

.tt-form-modal__dialog {
	position: relative;
	width: min(100%, 510px);
	max-width: calc(100vw - 36px);
	max-height: calc(100dvh - 36px);
	padding: clamp(24px, 5vw, 40px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid rgba(230, 57, 70, 0.18);
	border-radius: 24px;
	outline: 0;
	background: #f5f1e8;
	box-shadow: 0 28px 90px rgba(5, 11, 23, 0.32);
	transform: translateY(18px) scale(0.97);
	transition: transform 0.22s ease;
}

.tt-form-modal.is-open .tt-form-modal__dialog {
	transform: translateY(0) scale(1);
}

.tt-form-modal__close {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(13, 19, 33, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.58);
	color: #0d1321;
	font: 300 28px/1 Arial, sans-serif;
	place-items: center;
	cursor: pointer;
}

.tt-form-modal__accent {
	position: absolute;
	top: -66px;
	right: -68px;
	width: 180px;
	aspect-ratio: 1;
	border: 1px solid rgba(230, 57, 70, 0.18);
	border-radius: 50%;
	pointer-events: none;
}

.tt-form-modal__accent::before,
.tt-form-modal__accent::after {
	position: absolute;
	border: 1px solid rgba(230, 57, 70, 0.22);
	border-radius: inherit;
	content: "";
	inset: 24px;
}

.tt-form-modal__accent::after {
	inset: 52px;
}

.tt-form-modal__accent i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #e63946;
	transform: translate(-50%, -50%);
}

.tt-form-modal__header {
	position: relative;
	margin-bottom: 26px;
	padding-left: 40px;
}

.tt-form-modal__header > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #e63946;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.tt-form-modal__header > span::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.tt-form-modal__header h2 {
	margin: 0;
	color: #0d1321;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.45;
}

.tt-form-modal__header p {
	margin: 9px 0 0;
	color: #62656b;
	font-size: 14px;
	line-height: 1.95;
}

.tt-consultation-form {
	display: grid;
	gap: 16px;
}

.tt-form-field {
	display: grid;
	gap: 8px;
}

.tt-form-field > span {
	color: #0d1321;
	font-size: 13px;
	font-weight: 700;
}

.tt-form-field input {
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid rgba(13, 19, 33, 0.18);
	border-radius: 11px;
	outline: 0;
	background: rgba(255, 255, 255, 0.72);
	color: #0d1321;
	font: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tt-form-field input:focus {
	border-color: #e63946;
	box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.11);
}

.tt-consultation-form__submit {
	position: relative;
	min-height: 54px;
	margin-top: 3px;
	padding: 12px 20px;
	overflow: hidden;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #e63946, #ef202f);
	box-shadow: 0 12px 26px rgba(230, 57, 70, 0.22);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.tt-consultation-form__submit::after {
	position: absolute;
	top: -70%;
	left: -30%;
	width: 32%;
	height: 240%;
	background: rgba(255, 255, 255, 0.18);
	content: "";
	transform: rotate(22deg);
	transition: left 0.45s ease;
}

.tt-consultation-form__submit:hover::after {
	left: 110%;
}

.tt-consultation-form__submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

.tt-consultation-form__message {
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 9px;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}

.tt-consultation-form__message:not(:empty) {
	padding: 10px 12px;
}

.tt-consultation-form__message.is-success {
	border: 1px solid rgba(31, 143, 72, 0.2);
	background: rgba(31, 143, 72, 0.09);
	color: #19723b;
}

.tt-consultation-form__message.is-error {
	border: 1px solid rgba(230, 57, 70, 0.2);
	background: rgba(230, 57, 70, 0.08);
	color: #b7202d;
}

.tt-form-honeypot {
	position: fixed !important;
	right: 200vw !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.tt-form-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.tt-form-modal {
		align-items: end;
		padding: 12px;
	}

	.tt-form-modal__dialog {
		width: 100%;
		max-width: calc(100vw - 24px);
		padding: 28px 20px 22px;
		border-radius: 20px;
	}

	.tt-form-modal__header {
		padding-left: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tt-form-modal,
	.tt-form-modal__dialog,
	.tt-consultation-form__submit::after {
		transition: none;
	}
}
