/* =========================================================
   uMEn CF7 Multi-Step — design sur mesure (charte uMEn)
   Reproduit l'aspect d'origine : étapes, curseurs, légendes,
   liste de liens, barre de progression, boutons de marque.
   ========================================================= */

:root {
	--umen-cyan: #00ABDF;
	--umen-cyan-d: #0093c0;
	--umen-blue: #0280CD;
	--umen-blue-d: #021D96;
	--umen-green: #A7C13C;
	--umen-green-d: #98B037;
	--umen-purple: #84338A;
	--umen-grey: #F1F1F1;
	--umen-ink: #2b2b2b;
}

/* ---------------------- Conteneur ---------------------- */
.cf7mls-form {
	max-width: 760px;
	margin: 0 auto;
}
.cf7mls-form .section_form {
	background: #fff;
	border-radius: 14px;
	padding: 8px 4px 4px;
}
.cf7mls-form .section_form h2 {
	font-weight: 800;
	color: var(--umen-blue-d);
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	margin: 0 0 18px;
}
.cf7mls-form .section_form h3 {
	font-weight: 600;
	color: var(--umen-ink);
	font-size: 1.05rem;
	line-height: 1.4;
	margin: 0 0 22px;
}
.cf7mls-form .section_form h4 {
	font-weight: 700;
	color: var(--umen-blue-d);
	font-size: 1rem;
	margin: 22px 0 6px;
}

/* ------------------- Barre de progression ------------------- */
.cf7mls-head {
	margin: 0 0 30px;
}
.cf7mls-steps {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	margin-bottom: 14px;
}
.cf7mls-steps__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	z-index: 2;
}
.cf7mls-steps__num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1rem;
	color: #9aa3ad;
	background: #fff;
	border: 2px solid #d7dce1;
	transition: all .25s ease;
}
.cf7mls-steps__item.is-active .cf7mls-steps__num {
	color: #fff;
	background: var(--umen-cyan);
	border-color: var(--umen-cyan);
	box-shadow: 0 4px 14px rgba(0, 171, 223, .35);
}
.cf7mls-steps__item.is-done .cf7mls-steps__num {
	color: #fff;
	background: var(--umen-green);
	border-color: var(--umen-green);
}
.cf7mls-progress {
	position: relative;
	height: 6px;
	background: #e6e9ec;
	border-radius: 6px;
	overflow: hidden;
}
.cf7mls-progress__bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, var(--umen-cyan), var(--umen-blue));
	border-radius: 6px;
	transition: width .35s ease;
}

/* ----------------- Liste de liens (Je souhaite) ----------------- */
.cf7mls-form .form_link_list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.cf7mls-form .form_link_list li {
	margin: 0;
}
.cf7mls-form .form_link_list .green_link {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	color: var(--umen-green-d);
	background: #fff;
	border: 2px solid var(--umen-green);
	border-radius: 40px;
	padding: 10px 22px;
	transition: all .2s ease;
}
.cf7mls-form .form_link_list li.current .green_link,
.cf7mls-form .form_link_list .green_link:hover {
	background: var(--umen-green);
	color: #fff;
}

/* ----------------------- Conjoint / grille ----------------------- */
.cf7mls-form .form_conjoint {
	margin-top: 8px;
}
.cf7mls-form .col2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 14px;
}
.cf7mls-form .label_title {
	display: block;
	font-weight: 600;
	color: var(--umen-ink);
	margin-bottom: 6px;
	font-size: .95rem;
}

/* --------------------------- Champs --------------------------- */
.cf7mls-form label {
	display: block;
	font-weight: 600;
	color: var(--umen-ink);
	margin-bottom: 6px;
	font-size: .95rem;
}
.cf7mls-form .section_form_3 > div {
	margin-bottom: 16px;
}
.cf7mls-form input[type="text"],
.cf7mls-form input[type="email"],
.cf7mls-form input[type="tel"],
.cf7mls-form input[type="date"],
.cf7mls-form select,
.cf7mls-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #d7dce1;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 1rem;
	color: var(--umen-ink);
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.cf7mls-form input:focus,
.cf7mls-form select:focus,
.cf7mls-form textarea:focus {
	outline: none;
	border-color: var(--umen-cyan);
	box-shadow: 0 0 0 3px rgba(0, 171, 223, .15);
}
.cf7mls-form .cf7mls-field-error,
.cf7mls-form input.cf7mls-field-error,
.cf7mls-form select.cf7mls-field-error {
	border-color: #e2445c !important;
	box-shadow: 0 0 0 3px rgba(226, 68, 92, .12);
}
.cf7mls-form input[type="checkbox"] {
	width: auto;
	margin-right: 8px;
}
.cf7mls-form .wpcf7-list-item {
	display: block;
	margin: 0 0 6px;
}

/* --------------------------- Curseurs --------------------------- */
.cf7mls-form .curseur {
	display: block;
	padding: 6px 2px 2px;
}
.cf7mls-form input[type="range"].umen-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--umen-cyan) 0%, var(--umen-mint, #CBE2DA) 100%);
	background: #d7ecf5;
	outline: none;
	margin: 4px 0 2px;
}
.cf7mls-form input[type="range"].umen-range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 8px;
	background: #d7ecf5;
}
.cf7mls-form input[type="range"].umen-range::-moz-range-track {
	height: 8px;
	border-radius: 8px;
	background: #d7ecf5;
}
.cf7mls-form input[type="range"].umen-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 26px;
	height: 26px;
	margin-top: -9px;
	border-radius: 50%;
	background: var(--umen-cyan);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background .2s ease, transform .1s ease;
}
.cf7mls-form input[type="range"].umen-range::-webkit-slider-thumb:active {
	transform: scale(1.1);
	background: var(--umen-cyan-d);
}
.cf7mls-form input[type="range"].umen-range::-moz-range-thumb {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--umen-cyan);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
}

/* Légendes sous les curseurs */
.cf7mls-form .curseur_legende {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 2px 0 6px;
	padding: 0;
}
.cf7mls-form .curseur_legende span {
	flex: 1 1 0;
	text-align: center;
	font-size: .82rem;
	color: #8a939c;
	transition: color .2s ease, font-weight .2s ease;
}
.cf7mls-form .curseur_legende span:first-child {
	text-align: left;
}
.cf7mls-form .curseur_legende span:last-child {
	text-align: right;
}
.cf7mls-form .curseur_legende span.is-selected {
	color: var(--umen-blue-d);
	font-weight: 700;
}

/* --------------------------- Navigation --------------------------- */
.cf7mls-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
	flex-wrap: wrap;
}
.cf7mls-btn {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	border-radius: 40px;
	padding: 13px 30px;
	border: 2px solid transparent;
	transition: all .2s ease;
}
.cf7mls-btn--next {
	background: var(--umen-cyan);
	color: #fff;
	margin-left: auto;
}
.cf7mls-btn--next:hover {
	background: var(--umen-cyan-d);
	transform: translateY(-2px);
}
.cf7mls-btn--prev {
	background: #fff;
	color: var(--umen-blue-d);
	border-color: #d7dce1;
}
.cf7mls-btn--prev:hover {
	border-color: var(--umen-blue-d);
}

/* Le bouton d'envoi CF7 natif (dernière étape) aux couleurs de marque */
.cf7mls-form .wpcf7-submit {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 40px;
	padding: 14px 36px;
	background: var(--umen-green);
	color: #fff;
	transition: all .2s ease;
	margin-top: 8px;
}
.cf7mls-form .wpcf7-submit:hover {
	background: var(--umen-green-d);
	transform: translateY(-2px);
}

.cf7mls-msg {
	flex: 1 1 100%;
	margin: 6px 0 0;
	color: #e2445c;
	font-size: .9rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity .2s ease;
}
.cf7mls-msg.is-visible {
	opacity: 1;
}

/* ----------------------- Mobile ----------------------- */
@media (max-width: 767px) {
	.cf7mls-form .col2 {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.cf7mls-steps__num {
		width: 34px;
		height: 34px;
		font-size: .9rem;
	}
	.cf7mls-nav {
		gap: 10px;
	}
	.cf7mls-btn {
		padding: 12px 22px;
		font-size: .95rem;
	}
	.cf7mls-btn--next {
		margin-left: auto;
	}
	.cf7mls-form .curseur_legende span {
		font-size: .72rem;
	}
}
