/* ==========================================================================
   LeadFlow — front-end form + scheduler
   Design tokens. Suprascrie-le din tema ta daca vrei alt brand.
   ========================================================================== */
.lf-form-wrap,
.lf-callback {
	--lf-primary: #4f46e5;
	--lf-primary-dark: #4338ca;
	--lf-primary-soft: #eef2ff;
	--lf-text: #111827;
	--lf-muted: #6b7280;
	--lf-border: #e5e7eb;
	--lf-bg: #ffffff;
	--lf-radius: 14px;
	--lf-radius-sm: 10px;
	--lf-success: #16a34a;
	--lf-error: #dc2626;
	--lf-shadow: 0 10px 30px rgba(17, 24, 39, .08);
	--lf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--lf-font);
	color: var(--lf-text);
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}
.lf-form-wrap *,
.lf-callback * { box-sizing: border-box; }

/* ---------- Progress / steps ---------- */
.lf-progress { margin-bottom: 28px; }
.lf-progress-bar {
	height: 6px;
	background: var(--lf-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}
.lf-progress-fill {
	display: block;
	height: 100%;
	background: var(--lf-primary);
	border-radius: 999px;
	transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.lf-steps-nav {
	display: flex;
	gap: 8px;
	justify-content: space-between;
}
.lf-step-dot {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	opacity: .5;
	transition: opacity .25s;
}
.lf-step-dot.is-active,
.lf-step-dot.is-done { opacity: 1; }
.lf-step-num {
	width: 28px; height: 28px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--lf-border);
	color: var(--lf-muted);
	font-size: 13px; font-weight: 600;
	transition: all .25s;
}
.lf-step-dot.is-active .lf-step-num { background: var(--lf-primary); color: #fff; }
.lf-step-dot.is-done .lf-step-num { background: var(--lf-success); color: #fff; }
.lf-step-title {
	font-size: 13px; color: var(--lf-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Steps ---------- */
.lf-step { display: none; animation: lf-fade .3s ease; }
.lf-step.is-active { display: block; }
@keyframes lf-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
.lf-step-heading {
	font-size: 22px; font-weight: 700; margin: 0 0 20px;
	color: var(--lf-text);
}

/* ---------- Fields grid ---------- */
.lf-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.lf-field { width: 100%; }
.lf-col-half { width: calc(50% - 8px); }
@media (max-width: 520px) { .lf-col-half { width: 100%; } }
.lf-field[hidden] { display: none; }

.lf-label {
	display: block;
	font-size: 14px; font-weight: 600;
	margin-bottom: 7px;
	color: var(--lf-text);
}
.lf-req { color: var(--lf-error); }

.lf-input {
	width: 100%;
	padding: 13px 15px;
	font-size: 15px;
	font-family: inherit;
	color: var(--lf-text);
	background: var(--lf-bg);
	border: 1.5px solid var(--lf-border);
	border-radius: var(--lf-radius-sm);
	transition: border-color .2s, box-shadow .2s;
	outline: none;
}
.lf-input:focus {
	border-color: var(--lf-primary);
	box-shadow: 0 0 0 4px var(--lf-primary-soft);
}
textarea.lf-input { resize: vertical; min-height: 110px; }

/* ---------- Options (radio / checkbox) ---------- */
.lf-options { display: grid; gap: 10px; }
.lf-option {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--lf-border);
	border-radius: var(--lf-radius-sm);
	cursor: pointer;
	transition: border-color .15s, background .15s;
	font-size: 15px;
}
.lf-option:hover { border-color: var(--lf-primary); }
.lf-option input { width: 18px; height: 18px; accent-color: var(--lf-primary); flex: none; }
.lf-option:has(input:checked) {
	border-color: var(--lf-primary);
	background: var(--lf-primary-soft);
}
.lf-consent { font-size: 13px; color: var(--lf-muted); }

/* ---------- Actions / buttons ---------- */
.lf-step-actions {
	display: flex; gap: 12px; margin-top: 26px;
	justify-content: space-between;
}
.lf-btn {
	appearance: none;
	border: none;
	border-radius: var(--lf-radius-sm);
	padding: 14px 26px;
	font-size: 15px; font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: transform .1s, background .2s, box-shadow .2s;
	background: var(--lf-primary);
	color: #fff;
}
.lf-btn:hover { background: var(--lf-primary-dark); }
.lf-btn:active { transform: translateY(1px); }
.lf-btn[disabled] { opacity: .6; cursor: not-allowed; }
.lf-btn-ghost {
	background: transparent;
	color: var(--lf-muted);
	border: 1.5px solid var(--lf-border);
}
.lf-btn-ghost:hover { background: #f9fafb; color: var(--lf-text); }
.lf-next, .lf-submit { margin-left: auto; }

/* ---------- Errors ---------- */
.lf-field-error {
	color: var(--lf-error);
	font-size: 13px;
	margin-top: 6px;
	display: none;
}
.lf-field.has-error .lf-input,
.lf-field.has-error .lf-option { border-color: var(--lf-error); }
.lf-field.has-error .lf-field-error { display: block; }
.lf-form-error {
	background: #fef2f2;
	color: var(--lf-error);
	border: 1px solid #fecaca;
	border-radius: var(--lf-radius-sm);
	padding: 12px 16px;
	margin-top: 16px;
	font-size: 14px;
}

/* ---------- Honeypot ---------- */
.lf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Thank you ---------- */
.lf-thankyou { text-align: center; padding: 24px 4px; animation: lf-fade .35s ease; }
.lf-thankyou-icon {
	width: 64px; height: 64px;
	margin: 0 auto 18px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: #dcfce7; color: var(--lf-success);
	font-size: 32px; font-weight: 700;
}
.lf-thankyou-message { margin-bottom: 8px; }
.lf-ty-title { font-size: 22px; font-weight: 700; color: var(--lf-text); }
.lf-ty-sub { font-size: 15px; line-height: 1.6; color: var(--lf-muted); margin-top: 8px; }
.lf-thankyou-actions { margin-top: 22px; }

/* Carduri "ce urmeaza" */
.lf-ty-steps { text-align: left; }
.lf-ty-steps-title {
	font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
	color: var(--lf-muted); margin: 0 0 12px; text-align: center; font-weight: 700;
}
.lf-ty-option {
	display: flex; gap: 14px; align-items: flex-start;
	border: 1.5px solid var(--lf-border);
	border-radius: var(--lf-radius);
	padding: 18px;
	margin-bottom: 12px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.lf-ty-option:hover { border-color: #d1d5db; }
.lf-ty-option.lf-ty-schedule { border-color: var(--lf-primary); background: var(--lf-primary-soft); }
.lf-ty-option-icon {
	flex: none; width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 12px; font-size: 22px;
	background: #fff; color: var(--lf-primary);
	box-shadow: 0 2px 6px rgba(17,24,39,.06);
}
.lf-ty-whatsapp .lf-ty-option-icon { color: #25d366; }
.lf-ty-option-body { flex: 1; min-width: 0; }
.lf-ty-option-body strong { display: block; font-size: 16px; color: var(--lf-text); }
.lf-ty-option-body p { margin: 5px 0 14px; font-size: 14px; line-height: 1.55; color: var(--lf-muted); }

.lf-wa-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: #25d366; color: #fff;
	padding: 12px 22px; border-radius: var(--lf-radius-sm);
	text-decoration: none; font-weight: 600; font-size: 15px;
}
.lf-wa-btn:hover { background: #1ebe5b; color: #fff; }
.lf-schedule-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--lf-primary); color: #fff;
	padding: 12px 22px; border-radius: var(--lf-radius-sm);
	text-decoration: none; font-weight: 600; font-size: 15px;
}
.lf-schedule-btn:hover { background: var(--lf-primary-dark); color: #fff; }

.lf-notice {
	background: #fffbeb; border: 1px solid #fde68a;
	padding: 12px 16px; border-radius: 8px; color: #92400e; font-size: 14px;
}

.lf-spinner {
	display: inline-block; width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
	border-radius: 50%; animation: lf-spin .7s linear infinite;
	vertical-align: middle; margin-right: 8px;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }
