.errortext {
	color: red !important;
}

.modal {
	display: none;
}

.fancybox-content.modal,
.fancybox-content.form-popup {
	display: block;
	padding: 0;
	background: transparent;
	box-shadow: none;
	max-width: 520px;
	width: calc(100% - 2rem);
	border-radius: 20px;
	overflow: hidden;
}

.form-s.form-s--popup {
	position: relative;
	margin: 0;
	padding: 2rem 1.75rem 1.75rem;
	max-width: none;
}

.form-s.form-s--popup .form-wrapper {
	position: relative;
	z-index: 1;
}

.form-s.form-s--popup .form__title {
	display: block;
	margin-bottom: .5rem;
	color: #fff;
	font-family: var(--title-font-family, Manrope, sans-serif);
	font-size: var(--text-xxxl, 1.5rem);
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}

.form-s.form-s--popup .form__description {
	display: block;
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, .85);
	font-size: var(--text-sm, .9rem);
	font-weight: 400;
	line-height: 1.45;
}

.form-s.form-s--popup .form-content {
	gap: .75rem;
}

.form-s.form-s--popup .form-field--input input,
.form-s.form-s--popup .form-field--textarea textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--secondary-color, #1D1D1D);
	font-family: var(--main-font-family, Inter, sans-serif);
	font-size: 1rem;
	line-height: 1.4;
	padding: .7rem 1.2rem;
}

.form-s.form-s--popup .form-field--textarea textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.form-s.form-s--popup .form-field--input input::placeholder,
.form-s.form-s--popup .form-field--textarea textarea::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.form-s.form-s--popup .form-footer {
	margin-top: 1.25rem;
	gap: 1rem;
}

.form-s.form-s--popup .form-footer .license {
	order: -1;
}

.form-s.form-s--popup .form-footer .topmost {
	display: flex;
	justify-content: center;
}

.form-s.form-s--popup .form-footer .topmost .btn {
	margin-top: 0;
	min-width: 12rem;
}

.form-s.form-s--popup .form-footer .license .license-checkbox {
	color: #fff;
}

.form-s.form-s--popup .captcha--bx {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

.form-s.form-s--popup .captcha--bx .textfield {
	flex: 1 1 140px;
	min-height: 2.5rem;
	border-radius: 20px;
	background: #fff;
	padding: .5rem 1rem;
	color: var(--secondary-color, #1D1D1D);
}

@media (max-width: 600px) {
	.form-s.form-s--popup {
		padding: 1.5rem 1.15rem 1.25rem;
	}

	.form-s.form-s--popup .form-footer .topmost .btn {
		width: 100%;
	}
}
