/*
 * Stilul estimatorului. Incarcat DOAR pe pagina care contine shortcode-ul
 * [wennov_estimeaza_proiect].
 *
 * CULORILE FOLOSITE, VERIFICATE PE LIVE PE 31 AUGUST 2026
 * Prima versiune folosea #4D4DFF, ghicit dintr-o numaratoare de culori
 * frecvente pe prima pagina - gresit. Culorile reale, citite din variabilele
 * CSS calculate de browser pe wennov.ro, sunt --primary-color: #0f67f6 si
 * gradientul de buton --gradient-color-from: #006cff / --gradient-color-to:
 * #1227b8. Folosim var(--primary-color) etc., nu cifre fixe, ca elementele
 * astea sa ramana corecte automat daca schema de culori a temei se schimba
 * vreodata din Redux.
 *
 * BUG-UL DE CONTRAST, GASIT SI REPARAT PE 31 AUGUST 2026
 * Tema aplica global, pe orice <button>, regula:
 *   .btn, button, .button, input[type="submit"] { color: #fff; ... }
 *   .btn:hover, button:hover, ..., button:focus, ..., button:active {
 *     color: #fff;
 *   }
 * (theme.css, linia 3309 si 3351). Cardurile de raspuns si butonul "Inapoi"
 * sunt elemente <button> simple, fara clasele .btn/.btn-primary ale temei -
 * la :hover, :focus si :active, regula temei castiga in fata culorii de baza
 * si textul devine alb pe fundalul nostru deschis. Verificat cu Playwright,
 * pe live: la focus, computed color = rgb(255,255,255) pe fundal
 * rgb(255,255,255) - alb pe alb.
 *
 * FIX: fiecare stare (baza, hover, focus, active) isi seteaza EXPLICIT
 * culoarea textului, ca sa nu mai depinda de ordinea din cascada. Acelasi
 * fix se aplica pe orice element <button> nou adaugat aici.
 */

.wennov-estimare {
	max-width: 640px;
	margin: 0 auto;
}

/*
 * Butonul CTA (".btn.btn-primary") - aceeasi explicatie ca in scanner.css.
 * Culoarea reala, folosita pe tot site-ul pentru butoane primare, e
 * portocaliu #E3471F, nu albastrul din theme.css - vezi nota completa
 * acolo. Aici se aplica pe butonul "Trimite" din formularul final.
 */
.wennov-estimare .btn.btn-primary {
	background: #cc3a12 !important;
	background-image: none !important;
}
.wennov-estimare .btn.btn-primary:hover,
.wennov-estimare .btn.btn-primary:focus {
	background: #a92f0b !important;
}

.wennov-estimare-bara {
	height: 6px;
	background: #eef0f6;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 28px;
}

.wennov-estimare-bara-umplere {
	height: 100%;
	width: 0%;
	background: var(--primary-color, #0f67f6);
	transition: width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), background-color 0.3s ease;
}

.wennov-estimare-bara-umplere.bun   { background: #0cae5b; }
.wennov-estimare-bara-umplere.mediu { background: #f5a623; }
.wennov-estimare-bara-umplere.slab  { background: #e5484d; }

/* --- Tranzitia intre ecrane -------------------------------------------- */
/* Fiecare ecran nou intra cu un fade + o mica alunecare in sus, in loc sa
   apara brusc. wizard.js adauga clasa dupa ce elementul e in DOM, ca
   tranzitia CSS sa aiba de la ce sa porneasca. */

.wennov-estimare-ecran {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.wennov-estimare-ecran.intrat {
	opacity: 1;
	transform: translateY(0);
}

.wennov-estimare-ecran h3 {
	margin: 0 0 20px;
	font-size: 22px;
}

.wennov-estimare-progres {
	font-size: 13px;
	color: #67687a;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wennov-estimare-inapoi {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 4px 0;
	margin-bottom: 16px;
	color: #67687a !important;
	font-size: 14px;
	cursor: pointer;
	line-height: normal !important;
	transition: color 0.15s ease, transform 0.15s ease;
}

.wennov-estimare-inapoi:hover,
.wennov-estimare-inapoi:focus,
.wennov-estimare-inapoi:active {
	color: var(--primary-color, #0f67f6) !important;
	background: none;
	transform: translateX(-2px);
}

/* --- Cardurile de raspuns ------------------------------------------------
   Elemente <button>, deci vulnerabile la stilul global al temei. Fiecare
   stare isi seteaza culoarea explicit - vezi nota din antetul fisierului. */

.wennov-estimare-carduri {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wennov-estimare-card {
	text-align: left;
	padding: 16px 20px;
	border: 2px solid #e2e2f0;
	border-radius: 10px;
	background: #fff !important;
	background-image: none !important;
	font-size: 16px;
	line-height: 1.4 !important;
	color: #32373c !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	animation: wennov-estimare-intrare-card 0.3s ease backwards;
}

.wennov-estimare-card:nth-child(1) { animation-delay: 0.02s; }
.wennov-estimare-card:nth-child(2) { animation-delay: 0.07s; }
.wennov-estimare-card:nth-child(3) { animation-delay: 0.12s; }
.wennov-estimare-card:nth-child(4) { animation-delay: 0.17s; }

@keyframes wennov-estimare-intrare-card {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wennov-estimare-card:hover,
.wennov-estimare-card:focus,
.wennov-estimare-card:focus-visible {
	border-color: var(--primary-color, #0f67f6) !important;
	background: #f5f8ff !important;
	color: #32373c !important;
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 103, 246, 0.14);
}

.wennov-estimare-card:active {
	color: #32373c !important;
	background: #eef3ff !important;
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(15, 103, 246, 0.12);
}

.wennov-estimare-card.selectat {
	border-color: var(--primary-color, #0f67f6) !important;
	background: #eef3ff !important;
	color: #1a3a7a !important;
	font-weight: 600;
}

/* --- Rezultatul ------------------------------------------------------ */

.wennov-estimare-categorie {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 15px;
	color: #fff !important;
	margin-bottom: 14px;
	animation: wennov-estimare-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
	animation-delay: 0.1s;
}

@keyframes wennov-estimare-scale-in {
	from { opacity: 0; transform: scale(0.85); }
	to   { opacity: 1; transform: scale(1); }
}

.wennov-estimare-categorie.bun   { background: #0cae5b !important; }
.wennov-estimare-categorie.mediu { background: #f5a623 !important; }
.wennov-estimare-categorie.slab  { background: #e5484d !important; }

.wennov-estimare-explicatie {
	font-size: 16px;
	color: #32373c;
	margin: 0 0 18px;
}

.wennov-estimare-motive {
	margin: 0 0 18px;
	padding-left: 20px;
}

.wennov-estimare-motive li {
	margin-bottom: 8px;
	color: #67687a;
	font-size: 15px;
	animation: wennov-estimare-intrare-card 0.3s ease backwards;
}

.wennov-estimare-motive li:nth-child(1) { animation-delay: 0.15s; }
.wennov-estimare-motive li:nth-child(2) { animation-delay: 0.2s; }
.wennov-estimare-motive li:nth-child(3) { animation-delay: 0.25s; }
.wennov-estimare-motive li:nth-child(4) { animation-delay: 0.3s; }

.wennov-estimare-linkuri {
	font-size: 14px;
	color: #67687a;
	margin-bottom: 20px;
}

.wennov-estimare-linkuri a {
	color: var(--primary-color, #0f67f6);
}

/* --- Rezumatul raspunsurilor ------------------------------------------- */

.wennov-estimare-rezumat {
	margin: 0 0 24px;
	padding: 16px 18px;
	background: #f7f8fd;
	border-radius: 10px;
	font-size: 14px;
}

.wennov-estimare-rezumat dt {
	color: #67687a;
	font-weight: 400;
	margin-top: 8px;
}

.wennov-estimare-rezumat dt:first-child {
	margin-top: 0;
}

.wennov-estimare-rezumat dd {
	margin: 2px 0 0;
	color: #32373c;
	font-weight: 600;
}

/* --- Formularul de contact --------------------------------------------- */

.wennov-estimare-lead {
	padding-top: 20px;
	border-top: 1px solid #eef0f6;
}

.wennov-estimare-lead > p {
	margin: 0 0 14px;
	color: #32373c;
	font-weight: 600;
}

.wennov-estimare-lead-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wennov-estimare-lead-form input[type="text"],
.wennov-estimare-lead-form textarea {
	flex: 1 1 200px;
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e2e2f0;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: #32373c;
	transition: border-color 0.15s ease;
}

.wennov-estimare-lead-form textarea {
	resize: vertical;
	min-height: 70px;
}

.wennov-estimare-lead-form input[type="text"]:focus,
.wennov-estimare-lead-form textarea:focus {
	outline: none;
	border-color: var(--primary-color, #0f67f6);
}

.wennov-estimare-lead-form .wennov-estimare-camp-larg {
	flex-basis: 100%;
}

.wennov-estimare-lead-form button {
	flex: 0 0 auto;
	border: none;
	cursor: pointer;
}

.wennov-estimare-lead-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wennov-estimare-capcana {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wennov-estimare-lead-stare {
	margin-top: 10px;
	font-size: 14px;
	color: #67687a;
}

.wennov-estimare-multumim {
	margin-top: 10px;
	padding: 14px 18px;
	background: #eafaf1;
	border-radius: 8px;
	font-size: 16px;
	color: #0a7d42;
	font-weight: 600;
	animation: wennov-estimare-scale-in 0.3s ease;
}

@media (max-width: 480px) {
	.wennov-estimare-card {
		padding: 14px 16px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wennov-estimare-ecran,
	.wennov-estimare-card,
	.wennov-estimare-motive li,
	.wennov-estimare-categorie,
	.wennov-estimare-multumim {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --- Continutul din jurul unealtei (explicatii, FAQ) --------------------
 *
 * Exact aceeasi problema si acelasi fix ca in scanner.css, gasite si
 * verificate acolo pe 4 septembrie 2026: .wennov-estimare are
 * max-width:640px si e centrata, in timp ce textul simplu din jur folosea
 * latimea completa a temei - vizual, nealiniate. Vezi scanner.css pentru
 * explicatia completa a fiecarei reguli de mai jos (identice aici).
 */

.wennov-continut-pagina {
	max-width: 720px;
	margin: 0 auto;
}

.wennov-continut-pagina .wennov-intro {
	font-size: 17px;
	line-height: 1.6;
	color: #4a4b5c;
	margin-bottom: 32px;
}

.wennov-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary-color, #0f67f6);
	margin-bottom: 10px;
}

.wennov-sectiune {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid #eef0f6;
}

.wennov-continut-pagina h2 {
	font-size: 26px;
	font-weight: 700;
	color: #191919;
	margin: 0 0 18px;
}

.wennov-continut-pagina p {
	font-size: 16px;
	line-height: 1.7;
	color: #4a4b5c;
}

.wennov-continut-pagina a {
	color: var(--primary-color, #0f67f6);
	font-weight: 600;
}

/* Butonul de titlu al fiecarei intrebari - vezi scanner.css pentru
   explicatia completa a motivului din spatele fiecarui !important. */
.wennov-faq .ct-ac-title-text {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	background-color: #fafafa !important;
	background-image: none !important;
	color: #08203a !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: normal !important;
	padding: 13px 50px 13px 20px !important;
	border-radius: 5px;
	cursor: pointer;
}

.wennov-faq .ct-ac-title.active .ct-ac-title-text,
.wennov-faq .ct-ac-title:hover .ct-ac-title-text,
.wennov-faq .ct-ac-title-text:hover,
.wennov-faq .ct-ac-title-text:focus {
	background-color: var(--primary-color, #0f67f6) !important;
	color: #fff !important;
	outline: none;
}

@media (max-width: 480px) {
	.wennov-continut-pagina h2 {
		font-size: 22px;
	}
}

.wennov-estimare-informare {
	margin: 0.8em 0 0;
	font-size: 0.85em;
	opacity: 0.8;
	line-height: 1.5;
}
