/*
 * Contact Form 7 — estils comuns dels formularis del Gremi.
 * Els formularis van sobre fons fosc (.text-wl): missatges i input d'arxiu
 * amb fons blanc propi perquè es llegeixin sobre qualsevol fons.
 */

/* Missatge global de resposta (error de validació / enviat) */
.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border: 2px solid #f0ad4e;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-size: 15px;
	line-height: 1.4;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450;
}

/* Avís per camp */
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: 4px;
	background: #fff;
	color: #dc3232;
	font-size: 13px;
}

/* Input d'arxiu: caixa blanca on es veu el botó i el nom de l'arxiu */
.wpcf7 input[type="file"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	padding: 8px 10px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.wpcf7 input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background: #2252AC;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background: #2252AC;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* Checkbox d'acceptació de privacitat alineat amb el text */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: #2252AC;
}

.wpcf7 .wpcf7-acceptance a {
	color: inherit;
	text-decoration: underline;
}
