/* =============================================================
   PIARNYA — Lead Form Section
   Зависит от: variables.css, base.css
   ============================================================= */

/* ── СЕКЦИЯ — градиентный фон ───────────────────────────────── */
.lead-form {
	background: var(--gradient-brand);
	position: relative;
	overflow: hidden;
}

/* Декоративный блик */
.lead-form::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,.07) 0%, transparent 70%),
		radial-gradient(ellipse 40% 60% at 80% 20%, rgba(255,255,255,.05) 0%, transparent 70%);
	pointer-events: none;
}

/* ── ДВУХКОЛОНОЧНЫЙ СПЛИТ ───────────────────────────────────── */
.lead-form__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: var(--sp-16);
	align-items: center;
}

/* ── ЛЕВАЯ КОЛОНКА ──────────────────────────────────────────── */
.lead-form__promo {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}

.lead-form__title {
	font-size: clamp(32px, 4.5vw, 52px);
	color: #fff;
	line-height: var(--leading-tight);
	margin: 0;
}

.lead-form__subtitle {
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, .8);
	line-height: var(--leading-normal);
	max-width: 38ch;
}

/* Trust-бейджи */
.lead-form__trust {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	margin-top: var(--sp-2);
}

.lead-form__trust-item {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-size: var(--text-base);
	font-weight: 600;
	color: rgba(255, 255, 255, .9);
}

.lead-form__trust-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, .15);
	color: #fff;
	flex-shrink: 0;
}

/* ── ПРАВАЯ КОЛОНКА — БЕЛАЯ КАРТОЧКА ────────────────────────── */
.lead-form__card {
	background: #fff;
	border-radius: var(--radius-xl);
	padding: var(--sp-10);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}

/* ── ФОРМА ───────────────────────────────────────────────────── */
.lead-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
}

.lead-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.lead-form__label {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--color-text);
}

.lead-form__input {
	width: 100%;
	height: 48px;
	padding: 0 var(--sp-4);
	border-radius: var(--radius-md);
	border: 1.5px solid var(--color-border);
	background: var(--color-surface);
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--color-text);
	transition:
		border-color var(--dur-base) var(--ease),
		box-shadow   var(--dur-base) var(--ease);
	outline: none;
}

.lead-form__input::placeholder {
	color: var(--color-text-subtle);
}

.lead-form__input:focus {
	border-color: var(--color-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(204, 31, 160, .12);
}

.lead-form__input.is-invalid {
	border-color: var(--color-error);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

/* Select */
.lead-form__select-wrap {
	position: relative;
}

.lead-form__select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: var(--sp-10);
	cursor: pointer;
}

.lead-form__select-chevron {
	position: absolute;
	right: var(--sp-4);
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-text-muted);
	pointer-events: none;
}

/* Textarea */
.lead-form__textarea {
	height: auto;
	padding: var(--sp-3) var(--sp-4);
	resize: vertical;
	min-height: 88px;
}

/* Ошибка */
.lead-form__error {
	font-size: var(--text-xs);
	color: var(--color-error);
	min-height: 16px;
}

/* ── КНОПКА ОТПРАВКИ ────────────────────────────────────────── */
.lead-form__submit {
	width: 100%;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	margin-top: var(--sp-2);
	font-size: var(--text-base);
}

.lead-form__submit-icon {
	transition: transform var(--dur-base) var(--ease);
}

.lead-form__submit:hover .lead-form__submit-icon {
	transform: translateX(3px);
}

.lead-form__submit:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

/* ── КОНФИДЕНЦИАЛЬНОСТЬ ─────────────────────────────────────── */
.lead-form__privacy {
	font-size: var(--text-xs);
	color: var(--color-text-subtle);
	text-align: center;
	line-height: var(--leading-normal);
}

.lead-form__privacy a {
	color: var(--color-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lead-form__privacy a:hover {
	color: var(--color-primary);
}

/* ── СОСТОЯНИЕ УСПЕХА ───────────────────────────────────────── */
.lead-form__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--sp-4);
	padding: var(--sp-12) var(--sp-6);
}

.lead-form__success[hidden] {
	display: none;
}

.lead-form__success h3 {
	font-size: var(--text-2xl);
	color: var(--color-text);
	margin: 0;
}

.lead-form__success p {
	font-size: var(--text-base);
	color: var(--color-text-muted);
	max-width: none;
	margin: 0;
}

/* ── АДАПТИВ ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.lead-form__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-10);
	}

	.lead-form__title {
		font-size: clamp(28px, 6vw, 40px);
	}

	.lead-form__subtitle {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.lead-form__card {
		padding: var(--sp-6);
	}
}
