/**
 * wideum-calculator.css — bloc V37 (16/9/2026): widget `wideum-calculator`.
 *
 * Full PROPI (no va a wideum-v2.css) perquè Elementor només l'encua a les
 * pàgines on el widget es pinta (`get_style_depends()`), i perquè el widget ha
 * de funcionar igual dins i fora de les pàgines v2. Tot va acotat amb `.w-calc`:
 * res d'aquí pot tocar cap altra cosa del lloc.
 *
 * Valors presos del disseny validat `tools/assets-migration/design/
 * SavingsCalculator.dc.html` (targetes 16px de radi, vora #E5E8EF, ombra
 * 0 0 24px rgba(0,0,0,.05) — la mateixa de `.w-feature-card`; navy #00175C,
 * blau #1CA3B5, turquesa #4ADBC4).
 *
 * Especificitat: Elementor emet estils per element amb 4 classes; els selectors
 * d'aquí porten `.elementor-widget-wideum-calculator` quan cal guanyar-los.
 */

.w-calc {
	--wc-navy: #00175C;
	--wc-blue: #1CA3B5;
	--wc-turq: #4ADBC4;
	--wc-line: #E5E8EF;
	--wc-line-soft: #EDF0F5;
	--wc-track: #E7EAF1;
	--wc-tile: #F7F8FA;
	--wc-mint: #F5FDFC;
	--wc-mint-line: #BDEDE6;
	--wc-muted: rgba(0, 23, 92, 0.6);
	--wc-muted-2: rgba(0, 23, 92, 0.45);
	color: var(--wc-navy);
	display: block;
}

/* --- Pestanyes ---------------------------------------------------------- */
.w-calc-tabs {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	border-radius: 12px;
	background: #F1F3F8;
	margin: 0 0 26px 0;
}
.w-calc .w-calc-tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 26px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	color: var(--wc-muted);
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
	-webkit-appearance: none;
	appearance: none;
}
.w-calc .w-calc-tab:hover { color: var(--wc-navy); }
.w-calc .w-calc-tab.is-active {
	background: #FFFFFF;
	box-shadow: 0 1px 4px rgba(0, 23, 92, .12);
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc .w-calc-tab .w-calc-icon { color: rgba(0, 23, 92, .45); }
.w-calc .w-calc-tab.is-active .w-calc-icon { color: var(--wc-blue); }

/* --- Graella de dues targetes ------------------------------------------ */
.w-calc-panel[hidden] { display: none; }
.w-calc-grid {
	display: flex;
	align-items: stretch;
	gap: 30px;
}
.w-calc-card {
	background: #FFFFFF;
	border: 1px solid var(--wc-line);
	border-radius: 16px;
	box-shadow: 0 0 24px rgba(0, 0, 0, .05);
	padding: 32px 30px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.w-calc-card--inputs { flex: 0 0 auto; width: 44%; }
/* `space-between` com al disseny: la targeta de resultats sol ser més curta que
   la dels inputs (sobretot a la pestanya de CO2) i, sense això, hi queda un
   forat al capdavall en comptes de repartir l'aire entre els blocs. */
.w-calc-card--results { flex: 1 1 0; min-width: 0; justify-content: space-between; }

.w-calc-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
.w-calc .w-calc-card-title {
	margin: 0;
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc .w-calc-reset {
	border: 0;
	background: none;
	padding: 0;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--wc-blue);
	cursor: pointer;
}
.w-calc .w-calc-reset:hover { color: var(--wc-navy); }

.w-calc-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	background: #EFF8FA;
	font-size: 11px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wc-blue);
	white-space: nowrap;
}
.w-calc-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--wc-turq);
}

/* --- Camps: etiqueta + camp numèric + slider --------------------------- */
.w-calc-fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 26px;
}
.w-calc-field-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.w-calc-field-labels { display: flex; flex-direction: column; gap: 3px; }
.w-calc-field-label {
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc-field-hint {
	font-size: 13px;
	line-height: 18px;
	color: rgba(0, 23, 92, .5);
}
.w-calc-num {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 5px;
	flex: 0 0 auto;
	width: 120px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #FFFFFF;
	border: 1px solid var(--wc-line);
	box-sizing: border-box;
}
.w-calc-num:focus-within {
	border-color: var(--wc-turq);
	box-shadow: 0 0 0 1px var(--wc-turq);
}
.w-calc .w-calc-number {
	width: 100%;
	min-width: 0;
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
	text-align: right;
	font-size: 17px;
	line-height: 38px;
	font-weight: 700;
	color: var(--wc-navy);
	-moz-appearance: textfield;
}
.w-calc .w-calc-number:focus { outline: none; box-shadow: none; }
.w-calc .w-calc-number::-webkit-outer-spin-button,
.w-calc .w-calc-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.w-calc-unit {
	font-size: 13px;
	line-height: 38px;
	color: rgba(0, 23, 92, .5);
	white-space: nowrap;
}

/* Slider: el mateix track de 6px i el pom turquesa del disseny. */
.w-calc .w-calc-range {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 20px;
	margin: 11px 0 0 0;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.w-calc .w-calc-range:focus { outline: none; }
.w-calc .w-calc-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	/* WebKit no té ::-moz-range-progress: la part omplida es pinta amb un
	   degradat dur governat per `--wc-pct`, que el JS actualitza a cada canvi. */
	background: linear-gradient(to right,
		var(--wc-turq) 0, var(--wc-turq) var(--wc-pct, 0%),
		var(--wc-track) var(--wc-pct, 0%), var(--wc-track) 100%);
}
.w-calc .w-calc-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -7px;
	border-radius: 999px;
	background: #FFFFFF;
	border: 2px solid var(--wc-turq);
	box-shadow: 0 2px 6px rgba(0, 23, 92, .18);
}
.w-calc .w-calc-range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--wc-track);
}
.w-calc .w-calc-range::-moz-range-progress {
	height: 6px;
	border-radius: 999px;
	background: var(--wc-turq);
}
.w-calc .w-calc-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #FFFFFF;
	border: 2px solid var(--wc-turq);
	box-shadow: 0 2px 6px rgba(0, 23, 92, .18);
}
.w-calc .w-calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(74, 219, 196, .35); }
.w-calc-scale {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
	font-size: 12px;
	line-height: 16px;
	color: var(--wc-muted-2);
}

/* --- Tira de totals sota els inputs ------------------------------------ */
.w-calc-strip {
	margin-top: 26px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--wc-tile);
	font-size: 14px;
	line-height: 20px;
	color: var(--wc-muted);
}
.w-calc-strip strong { font-weight: 700; color: var(--wc-navy); }
.w-calc-strip:empty { display: none; }

/* --- Targetes de resultat --------------------------------------------- */
.w-calc-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 22px;
}
.w-calc-tile {
	display: flex;
	flex-direction: column;
	padding: 20px 18px;
	border-radius: 12px;
	background: var(--wc-tile);
	border: 1px solid var(--wc-line-soft);
	min-width: 0;
}
.w-calc-tile--accent { background: var(--wc-mint); border-color: var(--wc-mint-line); }
/* `nowrap`: amb 2 decimals («= 0.48 techs») la unitat queia a la línia de sota i
   la targeta del mig creixia més que les altres dues. */
.w-calc-tile-top { display: flex; align-items: baseline; gap: 5px; flex-wrap: nowrap; min-width: 0; }
.w-calc-tile-value {
	font-size: 30px;
	line-height: 36px;
	font-weight: 700;
	color: var(--wc-navy);
	letter-spacing: -0.5px;
}
.w-calc-tile-unit {
	font-size: 17px;
	line-height: 24px;
	white-space: nowrap;
	font-weight: 700;
	color: var(--wc-blue);
}
.w-calc-tile-label {
	margin-top: 8px;
	font-size: 13px;
	line-height: 18px;
	color: var(--wc-muted);
}

/* --- Gràfic de barres (DOM, sense Chart.js) ---------------------------- */
.w-calc-chart {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--wc-line-soft);
}
.w-calc-chart-title {
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--wc-muted-2);
	margin-bottom: 16px;
}
.w-calc-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 32px;
}
.w-calc-bar-label {
	flex: 0 0 auto;
	width: 130px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc-bar-track {
	flex: 1 1 auto;
	min-width: 0;
	height: 32px;
	display: block;
}
.w-calc-bar-fill {
	display: block;
	height: 32px;
	border-radius: 8px;
	background: #DDE3EC;
	transition: width .25s ease;
}
.w-calc-bar--accent .w-calc-bar-fill { background: var(--wc-turq); }
.w-calc-bar-value {
	flex: 0 0 auto;
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
	color: var(--wc-navy);
	white-space: nowrap;
}
.w-calc-bar-note {
	margin: 4px 0 10px 142px;
	font-size: 12px;
	line-height: 16px;
	color: var(--wc-muted-2);
}
.w-calc-bar-note:empty { display: none; }
.w-calc-caption {
	margin: 6px 0 0 142px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	color: var(--wc-blue);
}
.w-calc-caption:empty { display: none; }

/* --- Caixa destacada (ROI / arbres) ----------------------------------- */
.w-calc-highlight {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 22px 24px;
	border-radius: 12px;
	background: var(--wc-mint);
	border: 1px solid var(--wc-mint-line);
}
.w-calc-highlight-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid var(--wc-mint-line);
	color: var(--wc-blue);
}
.w-calc-highlight-icon .w-calc-icon { width: 24px; height: 24px; }
.w-calc-highlight-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-calc-highlight-title {
	font-size: 26px;
	line-height: 32px;
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc-highlight-sub {
	font-size: 13px;
	line-height: 18px;
	color: var(--wc-muted);
}
.w-calc .w-calc-accent { color: var(--wc-blue); }

/* --- Botons ------------------------------------------------------------ */
.w-calc-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	flex-wrap: wrap;
}
.w-calc .w-calc-send,
.w-calc .w-calc-demo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 28px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}
.w-calc .w-calc-send {
	background: #FFFFFF;
	border: 1px solid var(--wc-turq);
	color: var(--wc-blue);
}
.w-calc .w-calc-send:hover { background: var(--wc-mint); color: var(--wc-navy); }
.w-calc .w-calc-demo {
	background: var(--wc-turq);
	border: 1px solid var(--wc-turq);
	color: #FFFFFF;
}
.w-calc .w-calc-demo:hover { background: #239784; border-color: #239784; color: #FFFFFF; }

/* --- Peu: nota + hipòtesis -------------------------------------------- */
.w-calc-foot {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: 16px;
}
.w-calc-foot-note {
	font-size: 13px;
	line-height: 18px;
	color: rgba(0, 23, 92, .5);
}
.w-calc-assume { font-size: 13px; line-height: 18px; }
.w-calc-assume > summary {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: var(--wc-blue);
	cursor: pointer;
	list-style: none;
}
.w-calc-assume > summary::-webkit-details-marker { display: none; }
.w-calc-assume > summary::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.w-calc-assume[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.w-calc-assume > ul {
	margin: 12px 0 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--wc-tile);
	border: 1px solid var(--wc-line-soft);
	list-style: none;
	flex: 1 1 100%;
}
.w-calc-assume > ul > li {
	position: relative;
	margin: 0 0 6px 0;
	padding-left: 18px;
	color: var(--wc-muted);
}
.w-calc-assume > ul > li:last-child { margin-bottom: 0; }
.w-calc-assume > ul > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--wc-turq);
}
/* Dins de la targeta d'inputs de CO2 el desplegable va enganxat a la tira. */
.w-calc-card--inputs > .w-calc-assume { margin-top: 14px; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1240px) {
	.w-calc-tile-value { font-size: 26px; line-height: 32px; }
	.w-calc-tile-unit { font-size: 15px; }
}
@media (max-width: 1024px) {
	.w-calc-grid { flex-direction: column; }
	.w-calc-tile-value { font-size: 30px; line-height: 36px; }
	.w-calc-card--inputs { width: 100%; }
}
@media (max-width: 720px) {
	.w-calc-card { padding: 24px 20px; }
	.w-calc-tiles { grid-template-columns: 1fr; }
	.w-calc-tile-value { font-size: 30px; line-height: 34px; }
	.w-calc-highlight { flex-direction: column; align-items: flex-start; gap: 12px; }
	.w-calc-highlight-title { font-size: 22px; line-height: 28px; }
	.w-calc-bar { flex-wrap: wrap; gap: 6px 12px; }
	.w-calc-bar-label { width: auto; flex: 1 1 100%; }
	.w-calc-bar-track { flex: 1 1 60%; }
	.w-calc-bar-note,
	.w-calc-caption { margin-left: 0; }
	.w-calc .w-calc-send,
	.w-calc .w-calc-demo { flex: 1 1 100%; }
	.w-calc-field-top { flex-direction: column; align-items: stretch; gap: 8px; }
	.w-calc-num { width: 100%; justify-content: space-between; }
	.w-calc .w-calc-number { text-align: left; }
	.w-calc-tabs { display: flex; width: 100%; }
	.w-calc .w-calc-tab { flex: 1 1 50%; padding: 0 12px; justify-content: center; }
}

/* ============================================================
   V40 (16/9/2026) — CONTINGUT de `/assets/roi-calculator/`
   ------------------------------------------------------------
   Els tres blocs que `build-savings-calculator-v2.php` posa sota el widget
   («Why remote assistance pays for itself», «How we calculate it» i la FAQ)
   reaprofiten les classes de disseny que ja existeixen a `wideum-v2.css`:
   `w-home-features` (row-gap de secció i títol a 48/53), `w-image-content-head`
   (cap de secció), `w-feature-card` + `w-res-card` (targetes) i `w-guide-faq`
   (acordió de les guies d'/assets). L'ÚNICA cosa que no hi era és la columna de
   text estreta: viu aquí, al full propi del widget, que Elementor només encua a
   les pàgines on el widget es pinta (`get_style_depends()`), i no a
   `wideum-v2.css`, que és de tot el lloc.
   ============================================================ */

/* Columna de lectura: la mateixa amplada que el cos dels articles de /news/
   (760px), que és la mesura de lectura del lloc. */
body.wideum-v2 .w-calc-prose,
body.wideum-v2 .w-calc-prose > .e-con-inner {
	max-width: 760px;
	margin-inline: auto;
	width: 100%;
}
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor {
	font-size: var(--text-small-size, 16px);
	line-height: 24px;
	color: rgba(0, 23, 92, 0.75);
}
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor p { margin: 0 0 18px; }
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor strong {
	font-weight: var(--bold, 700);
	color: var(--dark-blue, #00175C);
}
/* La nota final (els dos enllaços interns) va més petita i separada. */
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor.w-calc-prose-note {
	margin-block-start: 10px;
	font-size: var(--text-extrasmall-size, 13px);
	line-height: 20px;
	color: rgba(0, 23, 92, 0.6);
}
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor a {
	color: var(--main-blue, #1CA3B5);
	font-weight: var(--medium, 500);
}
body.wideum-v2 .w-calc-prose .elementor-widget-text-editor a:hover { color: var(--dark-blue, #00175C); }

/* ============================================================
   C1 (18/9/2026) — MODAL «Send me the results» (send_mode = form)
   ------------------------------------------------------------
   José (17/9): «el botón SEND ME THE RESULTS no abre un formulario pidiendo
   un email profesional». El formulari és un widget `form` NATIU d'Elementor
   Pro dins d'un contenidor `.w-calc-sendform` que posen els constructors de
   les dues calculadores; `calculator.js` l'embolcalla AL SEU LLOC amb un
   <dialog class="w-calc-dialog"> i l'obre amb showModal().
   · A la pàgina el contenidor no es veu; a l'editor d'Elementor, sí (s'hi ha
     de poder editar).
   · Disseny: el del formulari de /contact/ (etiquetes en versaleta navy,
     camps blancs amb vora #CCD1DE, botó turquesa en majúscules com
     `.w-calc-demo`), sobre una targeta de radi 16 com les del widget.
   · Tot va penjat de `.w-calc-dialog`: no toca cap altre formulari del lloc.
   ============================================================ */
body:not(.elementor-editor-active) .w-calc-sendform:not(.is-in-dialog) { display: none !important; }

html.w-calc-modal-open { overflow: hidden; }

.w-calc-dialog {
	--wc-navy: #00175C;
	--wc-blue: #1CA3B5;
	--wc-turq: #4ADBC4;
	--wc-line: #CCD1DE;
	--wc-muted: rgba(0, 23, 92, 0.65);
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 44px 40px 36px;
	border: 0;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 24px 64px rgba(0, 23, 92, 0.28);
	color: var(--wc-navy);
	font-family: "museo-sans-rounded", sans-serif;
}
.w-calc-dialog:not([open]) { display: none; }
.w-calc-dialog::backdrop { background: rgba(0, 23, 92, 0.55); }
/* Navegadors sense <dialog>: mateix aspecte amb posició fixa. */
.w-calc-dialog.is-fallback[open] { display: block; z-index: 100000; }

.w-calc-dialog .w-calc-dialog-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(0, 23, 92, 0.55);
	cursor: pointer;
	box-shadow: none;
	transition: background .18s ease, color .18s ease;
}
.w-calc-dialog .w-calc-dialog-close:hover { background: #F1F3F8; color: var(--wc-navy); }
.w-calc-dialog .w-calc-dialog-close:focus-visible,
.w-calc-dialog .elementor-button:focus-visible { outline: 2px solid var(--wc-blue); outline-offset: 2px; }

/* El contenidor d'Elementor, dins del modal: sense amplada ni farciment propis. */
.w-calc-dialog > .w-calc-sendform {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--gap: 0px; --row-gap: 0px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.w-calc-dialog > .w-calc-sendform > .e-con-inner { max-width: none; padding: 0; }

/* Capçalera del modal */
.w-calc-dialog .w-calc-sendform-eyebrow .elementor-heading-title {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wc-blue);
}
.w-calc-dialog .w-calc-sendform-title .elementor-heading-title {
	margin: 0 44px 10px 0;
	font-size: 28px;
	line-height: 34px;
	font-weight: 700;
	color: var(--wc-navy);
}
.w-calc-dialog .w-calc-sendform-text,
.w-calc-dialog .w-calc-sendform-text p {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 300;
	color: var(--wc-muted);
}

/* Formulari */
.w-calc-dialog .elementor-widget-form .elementor-form-fields-wrapper { margin-inline: -8px; }
.w-calc-dialog .elementor-widget-form .elementor-field-group {
	padding-inline: 8px;
	margin-bottom: 16px;
}
.w-calc-dialog .elementor-widget-form .elementor-field-group > .elementor-field-label {
	margin-bottom: 6px;
	padding: 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--wc-navy);
}
.w-calc-dialog .elementor-widget-form .elementor-mark-required .elementor-field-label::after { color: #E5484D; }
.w-calc-dialog .elementor-widget-form .elementor-field-group .elementor-field-textual {
	height: 48px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--wc-line);
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 22px;
	font-weight: 500;
	color: var(--wc-navy);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.w-calc-dialog .elementor-widget-form .elementor-field-group .elementor-field-textual::placeholder { color: rgba(0, 23, 92, 0.38); font-weight: 300; }
.w-calc-dialog .elementor-widget-form .elementor-field-group .elementor-field-textual:focus {
	outline: 0;
	border-color: var(--wc-turq);
	box-shadow: 0 0 0 3px rgba(74, 219, 196, 0.25);
}
/* Casella de privacitat */
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance { margin-top: 2px; }
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--wc-blue);
}
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance label {
	font-size: 13px;
	line-height: 20px;
	font-weight: 300;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wc-muted);
}
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance label a { color: var(--wc-blue); font-weight: 500; text-decoration: none; }
.w-calc-dialog .elementor-widget-form .elementor-field-type-acceptance label a:hover { color: var(--wc-navy); }
/* Botó: com `.w-calc-demo` del widget */
.w-calc-dialog .elementor-widget-form .elementor-field-type-submit { margin-top: 6px; margin-bottom: 0; }
.w-calc-dialog .elementor-widget-form .elementor-button[type="submit"] {
	width: 100%;
	height: 50px;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid var(--wc-turq);
	border-radius: 10px;
	background: var(--wc-turq);
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFFFFF;
	transition: background .18s ease, border-color .18s ease;
}
.w-calc-dialog .elementor-widget-form .elementor-button[type="submit"]:hover { background: #239784; border-color: #239784; color: #FFFFFF; }
/* Missatges (error per camp, èxit i error general) */
.w-calc-dialog .elementor-widget-form .elementor-message {
	margin-top: 14px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
.w-calc-dialog .elementor-widget-form .elementor-field-group .elementor-message { margin-top: 6px; font-size: 13px; line-height: 18px; }
.w-calc-dialog .elementor-widget-form .elementor-message-danger { color: #D93036; }
.w-calc-dialog .elementor-widget-form .elementor-message-success {
	padding: 14px 16px;
	border: 1px solid #BDEDE6;
	border-radius: 10px;
	background: #F5FDFC;
	color: var(--wc-navy);
}
.w-calc-dialog .elementor-widget-form .elementor-message::before { display: none; }
.w-calc-dialog .elementor-widget-form .elementor-error .elementor-field-textual { border-color: #D93036; }
/* Nota final sota el botó */
.w-calc-dialog .w-calc-sendform-note,
.w-calc-dialog .w-calc-sendform-note p {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 18px;
	font-weight: 300;
	text-align: center;
	color: rgba(0, 23, 92, 0.5);
}

/* A l'editor: el contenidor es veu a la pàgina, com una targeta, perquè s'entengui què és. */
body.elementor-editor-active .w-calc-sendform {
	max-width: 560px;
	margin: 0 auto 60px;
	padding: 32px;
	border: 1px dashed #BDEDE6;
	border-radius: 16px;
}

@media (max-width: 600px) {
	.w-calc-dialog { padding: 36px 20px 24px; border-radius: 14px; }
	.w-calc-dialog .w-calc-dialog-close { top: 8px; right: 8px; }
	.w-calc-dialog .w-calc-sendform-title .elementor-heading-title { font-size: 23px; line-height: 29px; margin-right: 36px; }
	.w-calc-dialog .w-calc-sendform-text,
	.w-calc-dialog .w-calc-sendform-text p { font-size: 15px; line-height: 22px; margin-bottom: 18px; }
	.w-calc-dialog .elementor-widget-form .elementor-field-group { width: 100%; max-width: 100%; flex-basis: 100%; }
}
