/* Фронтенд форм Extra: двухпанельный карточный дизайн без скруглений */

.cqfx-wrap {
	display: flex;
	max-width: 960px;
	margin: 24px auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: #1f2937;
	box-sizing: border-box;
}

.cqfx-wrap *,
.cqfx-wrap *::before,
.cqfx-wrap *::after {
	box-sizing: border-box;
}

/* Синяя панель слева */
.cqfx-promo {
	position: relative;
	flex: 0 0 40%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	overflow: hidden;
	padding: 48px 40px;
	background: #2f80d2;
	color: #fff;
}

.cqfx-promo::before {
	content: '';
	position: absolute;
	top: -90px;
	left: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.cqfx-promo::after {
	content: '';
	position: absolute;
	right: -70px;
	bottom: -110px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
}

.cqfx-promo-icon {
	position: relative;
	z-index: 1;
	margin-bottom: 20px;
	line-height: 0;
}

.cqfx-promo-icon svg {
	width: 64px;
	height: 64px;
}

.cqfx-promo-title {
	position: relative;
	z-index: 1;
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.cqfx-promo-text {
	position: relative;
	z-index: 1;
	font-size: 16px;
	line-height: 1.55;
	opacity: 0.95;
}

/* Правая панель с формой */
.cqfx-panel {
	flex: 1 1 auto;
	min-width: 0;
	padding: 36px 40px;
}

/* Поля */
.cqfx-wrap .cqfx-field {
	margin-bottom: 14px;
}

.cqfx-wrap .cqfx-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.cqfx-wrap .cqfx-vhidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.cqfx-wrap .cqfx-required {
	color: #d63638;
}

.cqfx-wrap .cqfx-input {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: none;
	font-size: 15px;
	line-height: 1.4;
	color: #1f2937;
	transition: border-color 0.15s, background 0.15s;
}

.cqfx-wrap .cqfx-input:focus {
	outline: none;
	border-color: #2f80d2;
	background: #fff;
}

.cqfx-wrap textarea.cqfx-input {
	resize: vertical;
	min-height: 110px;
}

.cqfx-wrap select.cqfx-input {
	appearance: auto;
}

/* Варианты ответов */
.cqfx-wrap .cqfx-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cqfx-wrap .cqfx-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.cqfx-wrap .cqfx-choice-input {
	margin-top: 3px;
}

.cqfx-wrap .cqfx-acceptance {
	font-size: 13px;
	color: #4b5563;
}

.cqfx-wrap .cqfx-acceptance a {
	font-size: inherit;
	color: #2f80d2;
	text-decoration: underline;
}

.cqfx-wrap .cqfx-field-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #d63638;
}

/* Кнопка */
.cqfx-wrap .cqfx-submit-row {
	margin-top: 18px;
}

.cqfx-wrap .cqfx-submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #4a90e2;
	border: none;
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s;
}

.cqfx-wrap .cqfx-submit:hover:not(:disabled),
.cqfx-wrap .cqfx-submit:focus:not(:disabled) {
	background: #2f80d2;
	color: #fff;
}

.cqfx-wrap .cqfx-submit:disabled {
	opacity: 0.65;
	cursor: default;
}

/* Сообщения */
.cqfx-wrap .cqfx-message {
	margin-top: 16px;
	padding: 12px 16px;
	font-size: 14px;
}

.cqfx-wrap .cqfx-message--success {
	background: #edfaef;
	border-left: 3px solid #00a32a;
}

.cqfx-wrap .cqfx-message--error {
	background: #fcf0f1;
	border-left: 3px solid #d63638;
}

/* Honeypot — скрыт от людей (дублируется inline-стилем) */
.cqfx-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* reCAPTCHA v2 */
.cqfx-recaptcha {
	margin: 14px 0;
}

/* Результаты квиза */
.cqfx-wrap .cqfx-results .cqfx-score {
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: 700;
}

.cqfx-wrap .cqfx-results-text {
	margin-bottom: 12px;
}

.cqfx-wrap .cqfx-breakdown {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cqfx-wrap .cqfx-breakdown li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
}

.cqfx-wrap .cqfx-breakdown .cqfx-correct .cqfx-mark {
	color: #00a32a;
}

.cqfx-wrap .cqfx-breakdown .cqfx-wrong .cqfx-mark {
	color: #d63638;
}

.cqfx-wrap .cqfx-right-answer {
	font-size: 13px;
	color: #4b5563;
}

/* Мобильная версия */
@media (max-width: 768px) {
	.cqfx-wrap {
		flex-direction: column;
		margin: 16px 0;
	}

	.cqfx-promo {
		flex-basis: auto;
		padding: 32px 24px;
	}

	.cqfx-panel {
		padding: 28px 24px;
	}
}
