/* ==========================================================================
   Chestionar AgriBIZ — stiluri
   Toate regulile sunt încadrate în .agb-chestionar ca să nu afecteze tema.
   ========================================================================== */

.agb-chestionar {
	--agb-brazda: #12291c;
	--agb-brazda-moale: #46614e;
	--agb-frunza: #2e7d46;
	--agb-frunza-inchis: #1d5c31;
	--agb-frunza-pal: #eaf4ec;
	--agb-lastar: #8cc63f;
	--agb-grau: #d9a441;
	--agb-ceata: #f3f7f1;
	--agb-card: #ffffff;
	--agb-linie: #dbe7dc;
	--agb-rosu: #b3261e;

	--agb-r-mic: 10px;
	--agb-r-mediu: 14px;
	--agb-r-mare: 22px;

	--agb-umbra: 0 1px 2px rgba(18, 41, 28, .05), 0 12px 32px -18px rgba(18, 41, 28, .28);
	--agb-umbra-ridicat: 0 2px 4px rgba(18, 41, 28, .06), 0 18px 40px -20px rgba(18, 41, 28, .35);

	--agb-font-titlu: "Bitter", Georgia, "Times New Roman", serif;
	--agb-font-corp: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	max-width: 780px;
	margin: 0 auto;
	padding: 0 18px 80px;
	font-family: var(--agb-font-corp);
	color: var(--agb-brazda);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.agb-chestionar *,
.agb-chestionar *::before,
.agb-chestionar *::after {
	box-sizing: border-box;
}

/* Unele teme suprascriu [hidden]; ne asigurăm că pașii ascunși rămân ascunși. */
.agb-chestionar [hidden] {
	display: none !important;
}

.agb-chestionar p {
	margin: 0 0 12px;
}

.agb-chestionar h1,
.agb-chestionar h2 {
	font-family: var(--agb-font-titlu);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.2;
	margin: 0;
	color: var(--agb-brazda);
}

/* --------------------------------------------------------------- Antet ---- */

.agb-hero {
	position: relative;
	margin: 28px 0 22px;
	padding: 30px 26px 26px;
	border-radius: var(--agb-r-mare);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(140, 198, 63, .22) 0%, rgba(140, 198, 63, 0) 55%),
		linear-gradient(180deg, #f7fbf6 0%, #ffffff 100%);
	border: 1px solid var(--agb-linie);
	overflow: hidden;
}

/* brazde: dungi fine, ca rândurile de pe câmp */
.agb-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: repeating-linear-gradient(
		90deg,
		var(--agb-frunza) 0 22px,
		var(--agb-lastar) 22px 30px
	);
	opacity: .9;
}

.agb-hero__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--agb-frunza);
	margin: 0 0 10px;
}

.agb-hero__titlu {
	font-size: clamp(28px, 6vw, 42px);
}

.agb-hero__scop {
	margin: 14px 0 18px;
	font-size: 17px;
	color: var(--agb-brazda-moale);
	max-width: 56ch;
}

.agb-hero__fapte {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.agb-hero__fapte li {
	font-size: 13.5px;
	color: var(--agb-brazda-moale);
	background: var(--agb-frunza-pal);
	border: 1px solid #d5e8d9;
	border-radius: 999px;
	padding: 6px 13px;
}

.agb-hero__fapte strong {
	color: var(--agb-frunza-inchis);
	font-weight: 600;
}

/* ------------------------------------------------------------- Progres ---- */

.agb-progres {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 -18px 22px;
	padding: 12px 18px 0;
	background: rgba(243, 247, 241, .92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.agb-progres__lista {
	list-style: none;
	display: flex;
	justify-content: space-between;
	margin: 0 0 10px;
	padding: 0;
	position: relative;
}

/* linia care leagă etapele */
.agb-progres__lista::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 6%;
	right: 6%;
	height: 2px;
	background: var(--agb-linie);
}

.agb-progres__pas {
	position: relative;
	flex: 1;
	text-align: center;
	font-size: 11.5px;
	letter-spacing: .04em;
	color: #9aae9f;
	transition: color .25s ease;
}

.agb-progres__bulina {
	display: block;
	width: 16px;
	height: 16px;
	margin: 0 auto 7px;
	border-radius: 50%;
	background: var(--agb-card);
	border: 2px solid var(--agb-linie);
	position: relative;
	z-index: 1;
	transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.agb-progres__pas.is-facut .agb-progres__bulina {
	background: var(--agb-frunza);
	border-color: var(--agb-frunza);
}

.agb-progres__pas.is-facut .agb-progres__bulina::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 L4.8 8.5 L9.5 3.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.agb-progres__pas.is-activ {
	color: var(--agb-frunza-inchis);
	font-weight: 600;
}

.agb-progres__pas.is-activ .agb-progres__bulina {
	background: var(--agb-lastar);
	border-color: var(--agb-frunza);
	transform: scale(1.25);
	box-shadow: 0 0 0 4px rgba(140, 198, 63, .22);
}

.agb-progres__bara {
	height: 4px;
	border-radius: 999px;
	background: var(--agb-linie);
	overflow: hidden;
}

.agb-progres__umplere {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--agb-frunza) 0%, var(--agb-lastar) 100%);
	transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- Pași ---- */

.agb-pas {
	animation: agb-intra .35s ease both;
}

@keyframes agb-intra {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.agb-pas__cap {
	margin: 6px 0 20px;
}

.agb-pas__contor {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--agb-frunza);
	margin: 0 0 6px;
}

.agb-pas__titlu {
	font-size: clamp(22px, 4.5vw, 28px);
}

.agb-pas__intro {
	margin: 8px 0 0;
	color: var(--agb-brazda-moale);
}

/* ----------------------------------------------------------- Întrebare ---- */

.agb-q {
	background: var(--agb-card);
	border: 1px solid var(--agb-linie);
	border-radius: var(--agb-r-mare);
	padding: 22px 20px;
	margin: 0 0 16px;
	box-shadow: var(--agb-umbra);
	transition: box-shadow .25s ease, border-color .25s ease;
}

.agb-q.is-gresit {
	border-color: #e8b4b0;
	background: #fffafa;
}

.agb-q__cap {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.agb-q__numar {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--agb-frunza-pal);
	color: var(--agb-frunza-inchis);
	font-family: var(--agb-font-titlu);
	font-weight: 700;
	font-size: 15px;
	display: grid;
	place-items: center;
	margin-top: 1px;
}

.agb-q__text { min-width: 0; }

.agb-q__label {
	display: block;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--agb-brazda);
	padding: 0;
	margin: 0;
	float: none;
}

.agb-req {
	color: var(--agb-grau);
	margin-left: 4px;
	font-weight: 700;
}

.agb-opt {
	display: inline-block;
	margin-left: 8px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9aae9f;
	vertical-align: middle;
}

.agb-q__ajutor {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--agb-brazda-moale);
}

.agb-contor {
	margin: -6px 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--agb-frunza);
}

.agb-contor.is-plin { color: var(--agb-grau); }

/* --------------------------------------------------------- Opțiuni ---- */

.agb-optiuni {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.agb-opt-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 54px;
	padding: 14px 16px;
	border: 1.5px solid var(--agb-linie);
	border-radius: var(--agb-r-mediu);
	background: #fcfefb;
	cursor: pointer;
	font-size: 15.5px;
	line-height: 1.45;
	transition: border-color .18s ease, background .18s ease, transform .12s ease;
	margin: 0;
}

.agb-opt-card:hover {
	border-color: #a9cfb2;
	background: #f7fcf6;
}

.agb-opt-card:active { transform: scale(.995); }

.agb-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.agb-opt-card__marca {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid #bdd4c2;
	background: #fff;
	transition: border-color .18s ease, background .18s ease;
}

.agb-q--radio .agb-opt-card__marca { border-radius: 50%; }
.agb-q--checkbox .agb-opt-card__marca { border-radius: 7px; }

.agb-opt-card__text { min-width: 0; }

/* stare selectată */
.agb-input:checked ~ .agb-opt-card__marca {
	border-color: var(--agb-frunza);
	background: var(--agb-frunza);
}

.agb-q--radio .agb-input:checked ~ .agb-opt-card__marca {
	box-shadow: inset 0 0 0 4px #fff;
}

.agb-q--checkbox .agb-input:checked ~ .agb-opt-card__marca {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3 L5.7 10 L11 4.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

.agb-opt-card:has(.agb-input:checked) {
	border-color: var(--agb-frunza);
	background: var(--agb-frunza-pal);
}

/* rezervă pentru browsere fără :has() — clasa se pune din JS */
.agb-opt-card.is-ales {
	border-color: var(--agb-frunza);
	background: var(--agb-frunza-pal);
}

.agb-opt-card:focus-within {
	outline: 3px solid rgba(46, 125, 70, .35);
	outline-offset: 2px;
}

.agb-opt-card.is-blocat {
	opacity: .45;
	cursor: not-allowed;
}

.agb-opt-card.is-blocat:hover {
	border-color: var(--agb-linie);
	background: #fcfefb;
}

/* varianta „altceva” */
.agb-opt-card--alt .agb-opt-card__text {
	font-style: italic;
	color: var(--agb-brazda-moale);
}

.agb-alt-wrap {
	margin-top: 10px;
	padding: 14px;
	border-radius: var(--agb-r-mediu);
	background: var(--agb-frunza-pal);
	border: 1px dashed #b6d3bd;
	animation: agb-intra .25s ease both;
}

.agb-alt-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--agb-frunza-inchis);
	margin-bottom: 6px;
}

/* scala 1–5 pe orizontală, pe ecrane mari */
@media (min-width: 620px) {
	.agb-q--scala .agb-optiuni {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.agb-q--scala .agb-opt-card {
		flex: 1 1 130px;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 8px;
		padding: 16px 10px;
		font-size: 14.5px;
	}
}

/* --------------------------------------------------------- Câmpuri text --- */

.agb-chestionar .agb-text {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--agb-brazda);
	background: #fcfefb;
	border: 1.5px solid var(--agb-linie);
	border-radius: var(--agb-r-mediu);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.agb-chestionar .agb-text::placeholder { color: #a8b8ac; }

.agb-chestionar .agb-text:focus {
	outline: none;
	border-color: var(--agb-frunza);
	box-shadow: 0 0 0 4px rgba(46, 125, 70, .14);
	background: #fff;
}

.agb-chestionar .agb-textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.55;
}

/* ---------------------------------------------------------------- Erori --- */

.agb-eroare {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--agb-rosu);
	display: flex;
	gap: 7px;
	align-items: flex-start;
}

.agb-eroare::before {
	content: "!";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--agb-rosu);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
	margin-top: 2px;
}

.agb-form__eroare {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--agb-r-mediu);
	background: #fdecea;
	border: 1px solid #f0c4c0;
	color: #8c1d18;
	font-size: 15px;
	font-weight: 500;
}

/* ------------------------------------------------------------ Navigare --- */

.agb-navigare {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 22px;
}

.agb-chestionar .agb-btn {
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 16px 26px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background .18s ease, transform .12s ease, box-shadow .18s ease, color .18s ease;
	text-decoration: none;
}

.agb-chestionar .agb-btn--plin {
	margin-left: auto;
	background: var(--agb-frunza);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(46, 125, 70, .9);
}

.agb-chestionar .agb-btn--plin:hover {
	background: var(--agb-frunza-inchis);
	box-shadow: 0 14px 26px -12px rgba(46, 125, 70, .95);
}

.agb-chestionar .agb-btn--plin:active { transform: translateY(1px); }

.agb-chestionar .agb-btn--fantoma {
	background: transparent;
	color: var(--agb-brazda-moale);
	border-color: var(--agb-linie);
}

.agb-chestionar .agb-btn--fantoma:hover {
	color: var(--agb-frunza-inchis);
	border-color: #a9cfb2;
	background: #f7fcf6;
}

.agb-chestionar .agb-btn:focus-visible {
	outline: 3px solid rgba(46, 125, 70, .4);
	outline-offset: 3px;
}

.agb-chestionar .agb-btn[disabled] {
	opacity: .6;
	cursor: progress;
}

.agb-nota {
	margin: 18px 0 0;
	font-size: 13px;
	color: #8b9d90;
	text-align: center;
}

.agb-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------- Mulțumire ---- */

.agb-multumire {
	margin: 40px 0;
	padding: 46px 28px;
	text-align: center;
	background: var(--agb-card);
	border: 1px solid var(--agb-linie);
	border-radius: var(--agb-r-mare);
	box-shadow: var(--agb-umbra-ridicat);
	animation: agb-intra .45s ease both;
}

.agb-multumire__semn {
	color: var(--agb-frunza);
	margin-bottom: 14px;
}

.agb-multumire__semn .agb-tulpina {
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: agb-creste .6s ease .1s forwards;
}

.agb-multumire__semn .agb-frunza-1,
.agb-multumire__semn .agb-frunza-2 {
	opacity: 0;
	transform-origin: 32px 34px;
	animation: agb-infrunzeste .5s ease forwards;
}

.agb-multumire__semn .agb-frunza-1 { animation-delay: .55s; }
.agb-multumire__semn .agb-frunza-2 { animation-delay: .8s; }

@keyframes agb-creste { to { stroke-dashoffset: 0; } }

@keyframes agb-infrunzeste {
	from { opacity: 0; transform: scale(.4); }
	to   { opacity: 1; transform: scale(1); }
}

.agb-multumire h2 {
	font-size: clamp(24px, 5vw, 32px);
	margin-bottom: 12px;
}

.agb-multumire p {
	color: var(--agb-brazda-moale);
	max-width: 46ch;
	margin-inline: auto;
}

.agb-multumire__mic {
	font-size: 14px;
	color: #8b9d90;
	margin-top: 14px;
}

/* ------------------------------------------------------- Preferințe ---- */

@media (prefers-reduced-motion: reduce) {
	.agb-chestionar *,
	.agb-chestionar *::before,
	.agb-chestionar *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

@media (max-width: 480px) {
	.agb-hero { padding: 26px 20px 22px; }
	.agb-q { padding: 20px 16px; border-radius: 18px; }
	.agb-q__numar { width: 26px; height: 26px; font-size: 13px; }
	.agb-navigare { flex-wrap: wrap; }
	.agb-chestionar .agb-btn { flex: 1 1 auto; text-align: center; padding: 16px 18px; }
	.agb-progres__eticheta { font-size: 10.5px; }
}
