/* L'Aliança – Alta de socis */
.las { --las-c: #BC181C; --las-fons: #f4f1ee; --las-vora: #d9d4ce; max-width: 820px; margin: 0 auto 40px; color: #222; font-size: 16px; line-height: 1.45; }
.las *, .las *::before, .las *::after { box-sizing: border-box; }
.las [hidden] { display: none !important; }

/* Passos */
.las-passos { display: flex; gap: 6px; margin: 0 0 22px !important; padding: 0 !important; list-style: none !important; counter-reset: none; }
.las-passos li { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 8px; border-bottom: 3px solid var(--las-vora); color: #888; font-size: 14px; font-weight: 600; list-style: none !important; }
.las-passos li span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--las-vora); color: #fff; font-size: 13px; }
.las-passos li.is-actiu { color: #111; border-color: var(--las-c); }
.las-passos li.is-actiu span { background: var(--las-c); }
.las-passos li.is-fet { color: #444; border-color: #1a7f37; }
.las-passos li.is-fet span { background: #1a7f37; }

/* Blocs */
.las-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.las-form legend { margin: 0 0 14px; padding: 0; font-size: 22px; font-weight: 700; color: #111; }
.las-form h3 { margin: 22px 0 6px; font-size: 18px; }
.las-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.las-c { margin: 0 0 14px !important; grid-column: span 1; position: relative; }
.las-g .las-c { grid-column: span 2; }
.las-g .las-c--s { grid-column: span 1; }
.las-g .las-c--3 { grid-column: span 3; }
.las-g .las-c--4 { grid-column: 1 / -1; }
.las-c > label:not(.las-check) { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 600; color: #333; }
.las-req { color: var(--las-c); margin-left: 2px; }
.las-opc { font-weight: 400; color: #777; }
.las input[type=text], .las input:not([type]), .las input[type=email], .las input[type=tel], .las input[type=date], .las input[type=number], .las select {
	width: 100% !important; min-height: 46px; padding: 10px 12px !important; border: 1px solid #c9c3bc !important; border-radius: 8px !important; background: #fff !important; color: #111 !important; font-size: 16px !important; box-shadow: none !important;
}
.las input:focus, .las select:focus { outline: 2px solid var(--las-c) !important; outline-offset: 1px; border-color: var(--las-c) !important; }
.las input[type=file] { font-size: 14px; }
.las-ajuda { display: block; margin: 4px 0 0; color: #666; font-size: 14px; }
.las-text { margin: 0 0 8px !important; font-size: 15px; }
.las-check { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 15px; font-weight: 400 !important; cursor: pointer; }
.las-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0 !important; accent-color: var(--las-c); }
.las-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.las-tutor { margin: 6px 0 16px; padding: 4px 18px 6px; border-left: 4px solid var(--las-c); background: var(--las-fons); border-radius: 0 10px 10px 0; }
.las-legal { margin: 0 0 10px; font-size: 14px; color: #444; }
.las-legal summary { cursor: pointer; font-weight: 600; color: var(--las-c); }
.las-link { padding: 0; border: 0; background: none; color: var(--las-c); text-decoration: underline; cursor: pointer; font: inherit; }

/* Opcions (tipus, mètode) */
.las-tipus, .las-metodes { display: grid; gap: 10px; margin: 0 0 14px; }
.las-opcio { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--las-vora); border-radius: 12px; cursor: pointer; background: #fff; }
.las-opcio input { width: 20px; height: 20px; accent-color: var(--las-c); }
.las-opcio span { display: flex; flex-direction: column; }
.las-opcio small { color: #666; font-size: 14px; }
.las-opcio:has(input:checked) { border-color: var(--las-c); background: #fff7f7; }
.las-opcio--petita { padding: 10px 14px; }

/* Càlcul de la quota */
.las-calcul { padding: 14px 18px; border-radius: 12px; background: var(--las-fons); }
.las-calcul:empty { display: none; }
.las-calcul__fila { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 16px; }
.las-calcul__fila strong { font-size: 22px; color: #111; }
.las-calcul .las-ajuda { margin: 2px 0 12px; }
.las-calcul .las-ajuda:last-child { margin-bottom: 0; }
.las-calcul__ok { margin: 0; font-weight: 600; color: #1a7f37; }

/* Resum i signatura */
.las-resum { margin: 0 0 18px; border: 1px solid var(--las-vora); border-radius: 12px; overflow: hidden; }
.las-resum > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 14px; border-top: 1px solid #eee8e2; }
.las-resum > div:first-child { border-top: 0; }
.las-resum dt { margin: 0; color: #777; font-size: 14px; }
.las-resum dd { margin: 0; font-weight: 600; word-break: break-word; }
.las-signa { padding: 16px 18px; border-radius: 12px; background: var(--las-fons); }
.las-signa > p:first-child { margin-top: 0; }
.las-codi label { display: block; font-weight: 600; margin: 6px 0; }
.las-codi input { max-width: 220px; font-size: 28px !important; letter-spacing: 8px; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace !important; }

/* Errors i missatges */
.is-error input, .is-error select { border-color: #b3261e !important; background: #fff7f7 !important; }
.las-err { display: block; margin-top: 4px; color: #b3261e; font-size: 14px; font-weight: 600; }
.las-missatge:empty { display: none; }
.las-missatge { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.las-missatge--error { background: #fdecea; color: #8a1c14; }
.las-missatge--ok { background: #e6f4ea; color: #0f5223; }
.las-avis { padding: 12px 14px; border-radius: 10px; background: #fff4e5; color: #6b4300; }

/* Botons */
.las-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.las-nav .las-seguent, .las-nav .las-signa-boto { margin-left: auto; }
.las .las-boto { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px !important; border: 2px solid var(--las-c) !important; border-radius: 50px !important; background: var(--las-c) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.2; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; transition: background .15s, color .15s; }
.las .las-boto:hover:not(:disabled) { background: #fff !important; color: var(--las-c) !important; }
.las .las-boto--sec { background: #fff !important; color: var(--las-c) !important; }
.las .las-boto--sec:hover:not(:disabled) { background: var(--las-c) !important; color: #fff !important; }
.las .las-boto:disabled { opacity: .45; cursor: not-allowed; }
.las .las-boto.is-ocupat { opacity: .7; cursor: progress; }

/* Final */
.las-fet { padding: 36px 24px; border-radius: 16px; background: var(--las-fons); text-align: center; }
.las-fet__icona { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #1a7f37; color: #fff; font-size: 34px; font-weight: 800; }
.las-fet h2 { margin: 12px 0 8px; }

@media (max-width: 640px) {
	.las-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.las-g .las-c, .las-g .las-c--3 { grid-column: 1 / -1; }
	.las-g .las-c--s { grid-column: span 1; }
	.las-passos li { font-size: 0; justify-content: center; padding: 8px 4px; }
	.las-passos li span { font-size: 13px; }
	.las-resum > div { grid-template-columns: 1fr; gap: 2px; }
	.las-nav .las-boto { flex: 1 1 100%; }
}
/* OceanWP limita els camps numèrics a 50px: el camp de la quota voluntària ha de mostrar xifres de 3-4 dígits. */
.las .las-voluntaria input[type=number] { width: 100% !important; max-width: 220px !important; min-width: 140px; font-size: 18px !important; -moz-appearance: textfield; }
.las input[type=number] { max-width: none !important; }
.las-etiqueta { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #333; }
[data-camp="tutor_soci"] .las-check { display: inline-flex !important; margin-right: 22px; }
