/* CDTH Web · Formularis (estil base; al peu, el CSS addicional .cdth-soci hi posa l'aspecte final). */
.cdth-form { --cdth-red: #CC0033; --cdth-red-dark: #A3002A; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; color: #1F1A1B; }
.cdth-form form { margin: 0; }
.cdth-form .wpforms-field-container { position: relative; }
.cdth-form .wpforms-field { padding: 8px 0; border: 0; margin: 0; }
.cdth-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cdth-form .wpforms-field-label { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 700; line-height: 1.35; color: #1F1A1B; }
.cdth-form .wpforms-label-hide { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cdth-form .wpforms-required-label { color: var(--cdth-red); font-weight: 700; }
.cdth-form input[type="text"],
.cdth-form input[type="email"],
.cdth-form input[type="tel"],
.cdth-form select,
.cdth-form textarea {
	display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 44px; margin: 0;
	padding: 0 12px; border: 1px solid #C9BDBD; border-radius: 8px; background: #FFFFFF;
	font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; color: #1F1A1B; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.cdth-form textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.cdth-form select { appearance: auto; }
.cdth-form input:focus, .cdth-form select:focus, .cdth-form textarea:focus { outline: none; border-color: var(--cdth-red); box-shadow: 0 0 0 3px rgba(204, 0, 51, .15); }
.cdth-form ul { list-style: none; margin: 0; padding: 0; }
.cdth-form li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.cdth-form li::before { content: none !important; }
.cdth-form li input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--cdth-red); }
.cdth-form .wpforms-field-label-inline { font-size: 13px; font-weight: 500; line-height: 1.45; color: #4A4243; cursor: pointer; }
.cdth-form .wpforms-field-label-inline a { color: var(--cdth-red); text-decoration: underline; text-underline-offset: 2px; }
.cdth-form .wpforms-field-description { margin-top: 6px; font-size: 12px; color: #6B6B6B; }
.cdth-form .wpforms-has-error input:not([type="checkbox"]):not([type="radio"]),
.cdth-form .wpforms-has-error select,
.cdth-form .wpforms-has-error textarea { border-color: #D63637; }
.cdth-form .cdth-form-err { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #D63637; }
.cdth-form .cdth-form-err[hidden], .cdth-form .cdth-form-msg[hidden] { display: none; }
.cdth-form .cdth-form-msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #FDECEE; color: #9B1C2C; font-size: 13px; font-weight: 600; }
.cdth-form .wpforms-submit-container { padding: 10px 0 0; }
.cdth-form .cdth-form-submit {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 8px; background: var(--cdth-red); color: #FFFFFF; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1; letter-spacing: .04em; text-transform: uppercase; transition: background .2s;
}
.cdth-form .cdth-form-submit:hover, .cdth-form .cdth-form-submit:focus-visible { background: var(--cdth-red-dark); }
.cdth-form .cdth-form-submit[disabled] { opacity: .7; cursor: progress; }
.cdth-form .cdth-form-ok { margin: 0; padding: 16px 18px; border-radius: 8px; background: #F5F6F7; color: #1F1A1B; font-size: 15px; line-height: 1.5; border-left: 4px solid var(--cdth-red); }
.cdth-form .cdth-form-ok:focus { outline: none; }
.cdth-form .cdth-form-ok p { margin: 0 0 8px; }
.cdth-form .cdth-form-ok p:last-child { margin: 0; }
/* Camp parany: fora de la vista de les persones, visible per als robots. */
.cdth-form .cdth-form-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
