/* Leono Forms — stiluri formular. Paletă aliniată cu tema Anca Oltean. */
.lf-wrap {
	--lf-rose: #b76e79;
	--lf-rose-deep: #96525e;
	--lf-ink: #3a3335;
	--lf-muted: #6e6266;
	--lf-line: #ecdcd6;
	--lf-surface: #fff;
	--lf-bg: #faf6f2;
	max-width: 720px;
	margin: 0 auto;
}
.lf-form {
	background: var(--lf-surface);
	border: 1px solid var(--lf-line);
	border-radius: 18px;
	padding: 28px;
	color: var(--lf-ink);
}
.lf-form__title { margin: 0 0 20px; font-size: 1.5rem; }
.lf-row { margin-bottom: 16px; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lf-row label,
.lf-pay legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.lf-req { color: var(--lf-rose-deep); }
.lf-opt { font-weight: 400; color: var(--lf-muted); font-size: 0.85rem; }

.lf-form input[type="text"],
.lf-form input[type="email"],
.lf-form input[type="tel"],
.lf-form select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--lf-line);
	border-radius: 10px;
	font: inherit;
	background: var(--lf-bg);
	color: var(--lf-ink);
	box-sizing: border-box;
}
.lf-form input:focus,
.lf-form select:focus { outline: 2px solid var(--lf-rose); outline-offset: 1px; background: #fff; }

.lf-code { display: flex; gap: 8px; }
.lf-code input { flex: 1; }
.lf-code-msg { margin: 6px 0 0; font-size: 0.85rem; }
.lf-code-msg--ok { color: #166534; }
.lf-code-msg--err { color: #b91c1c; }

.lf-summary {
	border: 1px dashed var(--lf-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 18px;
	background: var(--lf-bg);
}
.lf-summary__line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.lf-summary__line--disc strong { color: #166534; }
.lf-summary__line--total { border-top: 1px solid #d8c4bd; margin-top: 6px; padding-top: 10px; font-size: 1.05rem; }

.lf-pay { border: none; padding: 0; margin: 0 0 16px; }
.lf-pay__opt {
	display: flex; align-items: flex-start; gap: 10px;
	border: 1px solid var(--lf-line); border-radius: 12px;
	padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font-weight: 400;
}
.lf-pay__opt:hover { border-color: var(--lf-rose); }
.lf-pay__opt input { margin-top: 3px; }

.lf-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; line-height: 1.5; }
.lf-consent input { margin-top: 3px; }
.lf-consent a { color: var(--lf-rose-deep); }

/* Capcana anti-robot: ascunsă vizual, dar prezentă în DOM. */
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lf-btn {
	font: inherit; font-weight: 600; cursor: pointer;
	border-radius: 999px; padding: 12px 22px; border: 1px solid transparent;
}
.lf-btn--primary { width: 100%; background: linear-gradient(120deg, #b76e79, #96525e); color: #fff; font-size: 1rem; padding: 14px 22px; }
.lf-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
.lf-btn--primary.is-loading .lf-btn__label::after { content: "…"; }
.lf-btn--ghost { background: none; border-color: var(--lf-rose); color: var(--lf-rose-deep); padding: 11px 16px; }

.lf-msg { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.lf-msg--ok { background: #ecfdf5; color: #166534; }
.lf-msg--err { background: #fef2f2; color: #b91c1c; }
.lf-msg--info { background: #f0f9ff; color: #075985; }

.lf-fineprint { margin: 14px 0 0; font-size: 0.8rem; color: var(--lf-muted); line-height: 1.55; }

.lf-notice { padding: 14px 16px; border-radius: 12px; background: #fff7ed; color: #92400e; }

@media (max-width: 640px) {
	.lf-grid { grid-template-columns: 1fr; }
	.lf-form { padding: 20px; }
}

/* `hidden` trebuie sa invinga display:flex/grid de mai sus — altfel linia de
   reducere si sumarul raman vizibile chiar si cand sunt marcate ascunse. */
.lf-wrap [hidden] { display: none !important; }

/* Contrast: chenarele de #ecdcd6 pe alb dau 1.24:1, sub minimul WCAG 1.4.11
   de 3:1 pentru componente de interfata. Le inchidem la culoare. */
.lf-wrap { --lf-line: #c9ada5; }
.lf-form { border-color: #e3d3cd; }
.lf-form input[type="text"],
.lf-form input[type="email"],
.lf-form input[type="tel"],
.lf-form select,
.lf-pay__opt { border-color: var(--lf-line); }
.lf-fineprint, .lf-opt { color: #5c5155; }

/* `.lf-row label` (mai devreme in fisier) invingea `.lf-pay__opt` la egalitate
   de specificitate, transformand optiunile de plata in blocuri fara flex. */
.lf-form .lf-pay__opt { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.lf-form .lf-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }

/* Mesajul de rezultat sta sub butonul de trimitere. */
.lf-msg { margin: 16px 0 0; }
.lf-msg--ok { border: 1px solid #86efac; }
.lf-msg--err { border: 1px solid #fca5a5; }
.lf-msg:focus { outline: 2px solid var(--lf-rose); outline-offset: 2px; }

/* Date de facturare */
.lf-billing { border: none; padding: 0; margin: 0 0 16px; }
.lf-billing legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.lf-billing__switch { margin-bottom: 12px; }
.lf-billing__pf, .lf-billing__pj {
	border: 1px dashed var(--lf-line);
	border-radius: 12px;
	padding: 14px 16px 4px;
	background: var(--lf-bg);
}
.lf-hint { margin: 0 0 12px; font-size: 0.8rem; color: #5c5155; line-height: 1.5; }
