.cf7-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
}

.cf7-grid .field.full {
	grid-column: 1 / -1;
}

.cf7-grid label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 4px;
}

.cf7-grid input[type="text"],
.cf7-grid input[type="email"],
.cf7-grid input[type="tel"],
.cf7-grid textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--wp--preset--color--accent-6, #ccc);
	border-radius: 3px;
	font-family: inherit;
	font-size: 0.95rem;
	box-sizing: border-box;
}

.cf7-grid textarea {
	min-height: 80px;
	resize: vertical;
}

.cf7-grid .wpcf7-submit {
	padding: 0.6rem 2rem;
}

.cf7-grid .field.full:last-child {
	margin-top: 4px;
}

.cf7-stacked {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf7-stacked label {
	display: block;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 2px;
}

.cf7-stacked input[type="text"],
.cf7-stacked input[type="email"],
.cf7-stacked input[type="tel"],
.cf7-stacked input[type="date"],
.cf7-stacked textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #DAD5CD;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf7-stacked input:focus,
.cf7-stacked textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1, #4E7A66);
	box-shadow: 0 0 0 3px rgba(78, 122, 102, 0.15);
}

.cf7-stacked .field {
	margin-bottom: 10px;
}

/* Contact Form 7 ajoute des <p> et <br> automatiques : l'espacement est géré ici */
.cf7-stacked p {
	margin: 0;
}

.cf7-stacked label > br {
	display: none;
}

.cf7-stacked .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

.cf7-stacked textarea {
	height: 130px;
	min-height: 100px;
}

.cf7-stacked label,
.cf7-stacked .field-label {
	font-size: 0.9rem;
}

.cf7-stacked .field-label {
	display: block;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 10px;
}

/* cases à cocher (ex. pathologie) : en grille, sous forme de pastilles cliquables */
.cf7-stacked .wpcf7-checkbox {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.cf7-stacked .wpcf7-list-item {
	margin: 0;
}

.cf7-stacked .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	padding: 10px 12px;
	border: 1px solid #E7E2DB;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cf7-stacked .wpcf7-list-item label:has(input:checked) {
	border-color: var(--wp--preset--color--accent-1, #4E7A66);
	background: var(--wp--preset--color--accent-7, #EAF1EC);
}

.cf7-stacked .wpcf7-list-item input {
	accent-color: var(--wp--preset--color--accent-1, #4E7A66);
	width: 16px;
	height: 16px;
	margin: 0;
}

/* case de consentement : texte normal, case alignée en haut */
.cf7-stacked .field-consent .wpcf7-list-item label {
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.85rem;
	line-height: 1.5;
	background: #FAF8F5;
}

.cf7-stacked .field-consent input {
	margin-top: 2px;
	flex: none;
}

@media (max-width: 600px) {
	.cf7-stacked .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

.cf7-stacked textarea {
	min-height: 100px;
	resize: vertical;
}

.cf7-stacked .wpcf7-submit {
	align-self: flex-start;
}

.cf7-grid .wpcf7-submit,
.cf7-stacked .wpcf7-submit {
	background-color: var(--wp--preset--color--accent-1, #8CA37C);
	color: #fff;
	border: none;
	border-radius: 40px;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 600;
	cursor: pointer;
	padding: 0.85rem 1.9rem;
}

.cf7-grid .wpcf7-submit:hover,
.cf7-stacked .wpcf7-submit:hover {
	background-color: var(--wp--preset--color--accent-3, #5B6F4C);
}

.wpcf7-spinner {
	vertical-align: middle;
}
