/**
 * Lead order form (order_section--lead).
 * Фон секції `.order_section--lead` — змінна **`--order-lead-bg`** (градієнт/колір з `$landing_theme` через `landing_theme_style.php`). **Картка** `.form_block--order-template` завжди **біла** (`#fff`), щоб поля й блок товару читались на фоні кольору лендінгу.
 */

.order_section--lead {
	box-sizing: border-box;
	padding: 24px 16px 32px;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
	/* Колір «навколо» картки форми — з теми лендінгу (`--order-lead-bg` у :root з landing_theme_style). */
	background: var(--order-lead-bg, transparent);
}

.order_section--lead .order_section--lead__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	box-sizing: border-box;
	width: 100%;
	max-width: min(460px, 100%);
	margin-left: auto;
	margin-right: auto;
}

/* Lead-форма: картка завжди біла; колір сторінки «за» нею — фон секції (--order-lead-bg). */
.order_section--lead .form_block.form_block--order-template {
	padding: 18px 16px 20px;
	text-align: left;
	background: #fff;
	border-radius: 14px;
}

/* Ізоляція від глобальних правил ленда на `p` (наприклад `.wrap p { padding: … }`). */
.order_section--lead .form_block.form_block--order-template p {
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

.order_section--lead .order_lead__promo-timer.timer {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 10px 12px;
	width: 100%;
	background: #f6f1e8;
	border: 1px solid #c9b89a;
	border-radius: 10px;
	text-align: left;
	color: #9a3412;
}

.order_section--lead .order_lead__promo-ico {
	flex-shrink: 0;
}

.order_section--lead .order_lead__promo-line {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #5c4033;
}

.order_section--lead .order_lead__promo-digits {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #431407;
}

.order_section--lead .order_lead__product {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 16px;
	text-align: left;
}

.order_section--lead .order_lead__product-thumb {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.order_section--lead .order_lead__product-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order_section--lead .order_lead__product-meta {
	min-width: 0;
	flex: 1;
}

.order_section--lead .order_lead__product-title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: #1f2937;
}

.order_section--lead .order_lead__product-kicker {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 2px;
}

.order_section--lead .order_lead__product-name {
	font-weight: 800;
	color: #111827;
}

.order_section--lead .order_lead__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.order_section--lead .order_lead__price-current {
	font-size: 24px;
	font-weight: 800;
	color: #ea580c;
	line-height: 1;
}

.order_section--lead .order_lead__price-old {
	font-size: 14px;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: line-through;
}

.order_section--lead .order_lead__pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.order_section--lead .order_lead__pill--discount {
	background: #fce7f3;
	color: #9f1239;
}

.order_section--lead .order_lead__pill--gift {
	background: #dcfce7;
	color: #166534;
}

.order_section--lead .order_lead__pill--gift svg {
	flex-shrink: 0;
}

.order_section--lead .order_lead__rule {
	margin: 0 0 14px;
	border: 0;
	border-top: 1px solid #e5e7eb;
	height: 0;
}

.order_section--lead .order_lead__rule--before-trust {
	margin: 8px 0 14px;
}

.order_section--lead .order_lead__form-heading {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	text-align: left;
}

.order_section--lead .order_lead__field-group {
	margin: 0 0 12px;
	text-align: left;
}

.order_section--lead .order_lead__field-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.order_section--lead .order_lead__req {
	color: #dc2626;
	font-weight: 700;
}

.order_section--lead .order_lead__alert {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.order_section--lead .order_lead__trust-note {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	color: #64748b;
	text-align: left;
}

.order_section--lead .order_lead__lock-ico {
	flex-shrink: 0;
	margin-top: 2px;
	color: #94a3b8;
}

.order_section--lead .order_lead__trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.order_section--lead .order_lead__trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin: 0;
	padding: 10px 6px 12px;
	box-sizing: border-box;
	min-height: 92px;
	background: #f5f1ea;
	border: 1px solid #e8e0d4;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: #57534e;
	text-align: center;
}

.order_section--lead .order_lead__trust-ico {
	color: #ea580c;
	flex-shrink: 0;
}

@media screen and (max-width: 380px) {
	.order_section--lead .order_lead__trust-list {
		grid-template-columns: 1fr;
	}

	.order_section--lead .order_lead__trust-item {
		min-height: 0;
		flex-direction: row;
		justify-content: center;
		text-align: left;
		padding: 10px 12px;
	}
}

.order_section--lead .form_block {
	float: none;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	max-width: 100%;
	align-self: stretch;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
	position: relative;
	z-index: 1;
}

.order_section--lead .button.order_lead__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
	height: auto;
	min-height: 56px;
	padding: 14px 18px;
	line-height: 1.25;
	box-sizing: border-box;
	border: none;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	background-color: var(--land-cta-from, #ffc000);
	background-image: -webkit-gradient(linear, left bottom, left top, from(var(--land-cta-from, #ffc000)), to(var(--land-cta-to, #fddc40)));
	background-image: -webkit-linear-gradient(bottom, var(--land-cta-from, #ffc000) 0%, var(--land-cta-to, #fddc40) 100%);
	background-image: -moz-linear-gradient(bottom, var(--land-cta-from, #ffc000) 0%, var(--land-cta-to, #fddc40) 100%);
	background-image: -o-linear-gradient(bottom, var(--land-cta-from, #ffc000) 0%, var(--land-cta-to, #fddc40) 100%);
	background-image: linear-gradient(to top, var(--land-cta-from, #ffc000) 0%, var(--land-cta-to, #fddc40) 100%);
	-webkit-box-shadow: 0 2px 0 var(--land-cta-shadow, #d7a200);
	-moz-box-shadow: 0 2px 0 var(--land-cta-shadow, #d7a200);
	box-shadow: 0 2px 0 var(--land-cta-shadow, #d7a200);
	color: var(--land-cta-text, #222);
	font-size: 17px;
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.order_section--lead .button.order_lead__cta:hover {
	background-color: var(--land-cta-hover-from, #f5b800);
	background-image: -webkit-gradient(linear, left bottom, left top, from(var(--land-cta-hover-from, #f5b800)), to(var(--land-cta-hover-to, #f4d43d)));
	background-image: -webkit-linear-gradient(bottom, var(--land-cta-hover-from, #f5b800) 0%, var(--land-cta-hover-to, #f4d43d) 100%);
	background-image: -moz-linear-gradient(bottom, var(--land-cta-hover-from, #f5b800) 0%, var(--land-cta-hover-to, #f4d43d) 100%);
	background-image: -o-linear-gradient(bottom, var(--land-cta-hover-from, #f5b800) 0%, var(--land-cta-hover-to, #f4d43d) 100%);
	background-image: linear-gradient(to top, var(--land-cta-hover-from, #f5b800) 0%, var(--land-cta-hover-to, #f4d43d) 100%);
}

.order_section--lead .button.order_lead__cta:active {
	-webkit-box-shadow: 0 1px 0 var(--land-cta-hover-shadow, #d7a200);
	-moz-box-shadow: 0 1px 0 var(--land-cta-hover-shadow, #d7a200);
	box-shadow: 0 1px 0 var(--land-cta-hover-shadow, #d7a200);
}

.order_section--lead .order_lead__cta-ico {
	flex-shrink: 0;
	color: var(--land-cta-text, #222);
}

.order_section--lead .order_lead__cta-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.order_section--lead .order_lead__cta-text {
	white-space: normal;
	text-align: center;
}

.order_section--lead .order_lead__input,
.order_section--lead .order_lead__field-group .field {
	width: 100%;
	max-width: none;
	height: 48px;
	margin: 0;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #fff;
	box-shadow: none;
	text-align: left;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 500;
	color: #111827;
}

.order_section--lead .order_lead__input::-webkit-input-placeholder,
.order_section--lead .order_lead__field-group .field::-webkit-input-placeholder {
	color: #9ca3af;
	opacity: 1;
}

.order_section--lead .order_lead__input:-moz-placeholder,
.order_section--lead .order_lead__field-group .field:-moz-placeholder {
	color: #9ca3af;
	opacity: 1;
}

.order_section--lead .order_lead__input::-moz-placeholder,
.order_section--lead .order_lead__field-group .field::-moz-placeholder {
	color: #9ca3af;
	opacity: 1;
}

.order_section--lead .order_lead__input:-ms-input-placeholder,
.order_section--lead .order_lead__field-group .field:-ms-input-placeholder {
	color: #9ca3af;
	opacity: 1;
}

.order_section--lead .order_lead__input:focus,
.order_section--lead .order_lead__field-group .field:focus {
	border-color: #64748b;
	outline: none;
}

.order_section--lead .form_block .button {
	margin-left: auto;
	margin-right: auto;
}

@media screen and (max-width: 639px) {
	.order_section--lead .form_block {
		margin-left: auto;
		margin-right: auto;
	}
}
