/* Rappel retournement matelas – formulaire public */
.el-rm {
	--el-rm-primary: #1F2B4D;
	--el-rm-accent: #C8A45D;
	--el-rm-cream: #F7F3EC;
	--el-rm-text: #2B2B2B;
	--el-rm-muted: #6B6F78;
	--el-rm-line: #DDD8CE;
	--el-rm-error: #B3261E;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: 32px 32px 28px;
	background: #fff;
	border: 1px solid var(--el-rm-line);
	border-top: 4px solid var(--el-rm-accent);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(31, 43, 77, .08);
	color: var(--el-rm-text);
	font-size: 16px;
	line-height: 1.5;
}
.el-rm *,
.el-rm *::before,
.el-rm *::after { box-sizing: border-box; }

.el-rm .el-rm-title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--el-rm-primary);
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.el-rm .el-rm-intro {
	margin: 0 0 24px;
	color: var(--el-rm-muted);
	font-size: 16px;
}

.el-rm .el-rm-form { margin: 0; }
.el-rm .el-rm-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}
.el-rm .el-rm-field { margin: 0 0 18px; min-width: 0; }
.el-rm .el-rm-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--el-rm-primary);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
}

.el-rm input[type="text"],
.el-rm input[type="email"],
.el-rm input[type="date"],
.el-rm select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--el-rm-line);
	border-radius: 8px;
	box-shadow: none;
	color: var(--el-rm-text);
	font: inherit;
	font-size: 16px; /* évite le zoom auto sur iPhone */
	line-height: 46px;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.el-rm select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F2B4D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.el-rm input[type="date"] { line-height: normal; }
.el-rm input:focus,
.el-rm select:focus {
	outline: none;
	border-color: var(--el-rm-accent);
	box-shadow: 0 0 0 3px rgba(200, 164, 93, .25);
}
.el-rm [aria-invalid="true"] { border-color: var(--el-rm-error); }
.el-rm .el-rm-other { margin-top: 10px; }
.el-rm .el-rm-other[hidden] { display: none; }

.el-rm .el-rm-error {
	display: block;
	margin-top: 6px;
	color: var(--el-rm-error);
	font-size: 14px;
}
.el-rm .el-rm-alert {
	margin: 0 0 20px;
	padding: 12px 14px;
	background: #FBEDEC;
	border-radius: 8px;
	color: var(--el-rm-error);
	font-size: 15px;
}

.el-rm .el-rm-checks {
	margin: 4px 0 22px;
	padding: 16px 16px 6px;
	background: var(--el-rm-cream);
	border-radius: 10px;
}
.el-rm .el-rm-check-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: normal;
	cursor: pointer;
}
.el-rm .el-rm-check-line input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--el-rm-primary);
	cursor: pointer;
}
.el-rm .el-rm-checks .el-rm-error { margin: -4px 0 10px 32px; }

.el-rm .el-rm-submit,
.el-rm button.el-rm-submit {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 24px;
	background: var(--el-rm-primary);
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.el-rm .el-rm-submit:hover,
.el-rm .el-rm-submit:focus {
	background: var(--el-rm-accent);
	color: var(--el-rm-primary);
	outline: none;
}
.el-rm .el-rm-submit:focus-visible { box-shadow: 0 0 0 3px rgba(31, 43, 77, .3); }

.el-rm .el-rm-legal {
	margin: 14px 0 0;
	color: var(--el-rm-muted);
	font-size: 13px;
	text-align: center;
}
.el-rm .el-rm-legal a { color: var(--el-rm-primary); }

.el-rm .el-rm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Confirmation */
.el-rm--success { text-align: center; padding-top: 36px; }
.el-rm .el-rm-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 0 14px;
	background: var(--el-rm-cream);
	border: 2px solid var(--el-rm-accent);
	border-radius: 50%;
	color: var(--el-rm-primary);
}
.el-rm .el-rm-lead { margin: 0 0 10px; font-size: 18px; }
.el-rm .el-rm-next {
	display: inline-block;
	margin: 0 0 14px;
	padding: 10px 16px;
	background: var(--el-rm-cream);
	border-radius: 8px;
}
.el-rm .el-rm-next strong { color: var(--el-rm-primary); }
.el-rm .el-rm-small { margin: 0 0 18px; color: var(--el-rm-muted); font-size: 14px; }
.el-rm .el-rm-link {
	color: var(--el-rm-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 560px) {
	.el-rm { padding: 24px 18px 20px; border-radius: 12px; }
	.el-rm .el-rm-row { grid-template-columns: 1fr; }
	.el-rm .el-rm-title { font-size: 24px; }
}
