.mpskids-cand {
	--mps-red: #db103f;
	--mps-red-dark: #b30d34;
	--mps-yellow: #ffe13b;
	--mps-border: #e6e6e6;
	--mps-muted: #888;
	--mps-err: #d32f2f;
	--mps-success: #0a7c2f;

	max-width: 820px;
	margin: 2rem auto;
	padding: 0 1rem;
	color: #333;
}

.mpskids-cand * {
	box-sizing: border-box;
}

.mpskids-cand__success {
	padding: 1rem 1.5rem;
	background: #e8f5e9;
	border-left: 4px solid var(--mps-success);
	color: #1b5e20;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.mpskids-cand__alert {
	padding: 1rem 1.25rem;
	background: #fff3cd;
	border-left: 4px solid var(--mps-yellow);
	color: #856404;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.mpskids-cand__err {
	display: block;
	color: var(--mps-err);
	font-size: .85rem;
	margin-top: .25rem;
	font-weight: 500;
}

.mpskids-cand__form {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mpskids-cand__section {
	border: none;
	border-top: 1px solid var(--mps-border);
	margin: 0 0 1.5rem;
	padding: 1.25rem 0 0;
}

.mpskids-cand__section:first-of-type {
	border-top: none;
	padding-top: 0;
}

.mpskids-cand__section legend {
	color: var(--mps-red);
	font-weight: 700;
	font-size: 1.1rem;
	padding: 0 .5rem 0 0;
	margin-bottom: 1rem;
}

.mpskids-cand__field {
	margin-bottom: 1.25rem;
}

.mpskids-cand__field > label {
	display: block;
	font-weight: 600;
	margin-bottom: .4rem;
	color: #333;
}

.mpskids-cand .mpskids-cand__field input[type="text"],
.mpskids-cand .mpskids-cand__field input[type="email"],
.mpskids-cand .mpskids-cand__field input[type="tel"],
.mpskids-cand .mpskids-cand__field input[type="date"],
.mpskids-cand .mpskids-cand__field input[type="number"],
.mpskids-cand .mpskids-cand__field select,
.mpskids-cand .mpskids-cand__field textarea {
	width: 100% !important;
	padding: .7rem .8rem !important;
	border: 1px solid var(--mps-border) !important;
	border-radius: 4px !important;
	background: #fff !important;
	font-size: 16px !important; /* évite le zoom automatique iOS Safari au focus */
	min-height: 44px;
	outline: none;
	transition: border-color .15s;
}

.mpskids-cand .mpskids-cand__field textarea {
	min-height: 80px;
}

.mpskids-cand .mpskids-cand__field input:focus,
.mpskids-cand .mpskids-cand__field select:focus,
.mpskids-cand .mpskids-cand__field textarea:focus {
	border-color: var(--mps-red) !important;
}

.mpskids-cand__field textarea {
	resize: vertical;
	min-height: 80px;
}

.mpskids-cand__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.mpskids-cand__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	/* Full-bleed : s'échappe des padding empilés d'Elementor */
	.mpskids-cand {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: .75rem;
		padding-right: .75rem;
		box-sizing: border-box;
	}
	.mpskids-cand__form {
		padding: 1.25rem 1rem;
	}
	/* Espacement plus dense */
	.mpskids-cand__field { margin-bottom: .9rem; }
	.mpskids-cand__field > label { margin-bottom: .3rem; }
	.mpskids-cand__section { margin-bottom: 1rem; padding-top: 1rem; }
	.mpskids-cand__section legend {
		font-size: 1rem;
		margin-bottom: .6rem;
		padding: 0 .4rem 0 0;
	}
	.mpskids-cand__row { gap: .6rem; }
	/* Garde CP+Ville sur 1 ligne (le CP prend le minimum) */
	.mpskids-cand__row.mpskids-cand__row--cp-ville {
		grid-template-columns: 100px 1fr;
	}
	/* Groupes radios plus serrés */
	.mpskids-cand__radios { gap: .6rem 1rem; }
	.mpskids-cand__radio-group-label { margin-bottom: .25rem; }
	/* Textarea moins haut par défaut */
	.mpskids-cand__field textarea { min-height: 64px !important; }
	.mpskids-cand__cgv { padding: .75rem; margin-top: .5rem; }
	.mpskids-cand__submit-wrap { margin-top: 1.25rem; }
}

@media (max-width: 480px) {
	.mpskids-cand .mpskids-cand__submit {
		padding: .85rem 2rem !important;
		width: 100%;
	}
}

.mpskids-cand__radios,
.mpskids-cand__field[class*="radios"] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.mpskids-cand__radio-group-label {
	font-weight: 600;
	margin-right: .5rem;
	display: block;
	width: 100%;
	margin-bottom: .4rem;
}

.mpskids-cand__field label input[type="radio"],
.mpskids-cand__field label input[type="checkbox"] {
	accent-color: var(--mps-red);
	margin-right: .25rem;
}

.mpskids-cand__field input[type="file"] {
	padding: .5rem;
	border: 1px dashed var(--mps-border);
	border-radius: 4px;
	background: #fafafa;
	width: 100%;
}

/* ===== CHECKBOX LISTS ===== */
.mpskids-cand__check {
	display: flex !important;
	align-items: center;
	gap: .5rem;
	padding: .3rem 0;
	font-weight: 400 !important;
	cursor: pointer;
	line-height: 1.4;
}
.mpskids-cand__check input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
}
.mpskids-cand__inline-choices {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
}
.mpskids-cand__inline-choices .mpskids-cand__check { padding: .2rem 0; }

.mpskids-cand__conditional {
	margin-left: 1rem;
	padding: .6rem .9rem;
	background: #faf7f8;
	border-left: 3px solid var(--mps-red);
	border-radius: 4px;
}

.mpskids-cand__help {
	margin: 0 0 .5rem;
	font-size: .85rem;
	color: #777;
	font-style: italic;
}

/* ===== CALENDRIER DISPONIBILITÉ ===== */
.mpskids-cand__calendar-wrap {
	overflow-x: auto;
	margin-top: .5rem;
}
.mpskids-cand__calendar {
	width: 100%;
	border-collapse: separate;
	border-spacing: 2px;
	font-size: .9rem;
}
.mpskids-cand__calendar th,
.mpskids-cand__calendar td {
	padding: .4rem;
	text-align: center;
	background: #f6f6f6;
	border-radius: 3px;
	min-width: 40px;
}
.mpskids-cand__calendar thead tr:first-child th {
	background: var(--mps-red);
	color: #fff;
	font-weight: 700;
	padding: .4rem .2rem;
}
.mpskids-cand__calendar thead tr:first-child th:first-child { background: transparent; }
.mpskids-cand__calendar thead tr:nth-child(2) th {
	background: #fafafa;
	padding: .2rem;
}
.mpskids-cand__slot-label {
	background: #fff !important;
	text-align: right !important;
	font-weight: 600;
	padding-right: .6rem !important;
	white-space: nowrap;
}
.mpskids-cand__calendar input[type="checkbox"] {
	accent-color: var(--mps-red);
	width: 18px;
	height: 18px;
	margin: 0;
}
.mpskids-cand__calendar td:has(input:checked) {
	background: #ffe13b;
}

@media (max-width: 640px) {
	.mpskids-cand__calendar {
		font-size: .8rem;
	}
	.mpskids-cand__calendar th,
	.mpskids-cand__calendar td {
		min-width: 34px;
		padding: .3rem;
	}
	.mpskids-cand__slot-label {
		padding-right: .3rem !important;
	}
}

.mpskids-cand__cgv {
	background: #f9f9f9;
	padding: 1rem;
	border-radius: 4px;
	margin-top: 1rem;
	border-left: 3px solid var(--mps-red);
}

.mpskids-cand__cgv label {
	display: block;
	font-weight: 500;
	line-height: 1.5;
}

.mpskids-cand__submit-wrap {
	text-align: center;
	margin-top: 2rem;
}

.mpskids-cand .mpskids-cand__submit,
.mpskids-cand button.mpskids-cand__submit {
	display: inline-block;
	padding: .9rem 3rem !important;
	background: var(--mps-red) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background .15s;
	box-shadow: none !important;
}

.mpskids-cand__submit:hover {
	background: var(--mps-red-dark) !important;
}
