/*! Formulaire de devis — styles. Jetons hérités de theme/assets/css/main.css */

.form {
	background: var(--paper, #fff);
	border: 1px solid var(--line, #dfe4ee);
	border-radius: var(--radius, 14px);
	padding: 28px;
	max-width: 780px;
}

.form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 20px;
}

.form__row {
	margin-bottom: 16px;
	min-width: 0;
}

.form__label {
	display: block;
	font-weight: 700;
	font-size: 0.86rem;
	margin-bottom: 6px;
	color: var(--ink, #0b1f4b);
}

.form__req {
	color: #a3231b;
	font-weight: 800;
}

.form__hint-inline {
	font-weight: 500;
	color: var(--muted, #5f6b80);
	font-size: 0.8rem;
}

.form__input {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--line-strong, #c9d2e0);
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	font-size: 0.95rem;
	background: #fff;
	color: var(--ink, #0b1f4b);
}

.form__textarea {
	min-height: 140px;
	resize: vertical;
}

select.form__input {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.form__input:focus-visible {
	outline: 3px solid var(--blue, #0a5bd3);
	outline-offset: 1px;
	border-color: var(--blue, #0a5bd3);
}

.form__input[aria-invalid="true"] {
	border-color: #a3231b;
	border-width: 2px;
	background: #fdf6f5;
}

.form__help {
	font-size: 0.78rem;
	color: var(--muted, #5f6b80);
	margin: 6px 0 0;
}

.form__error {
	font-size: 0.8rem;
	font-weight: 700;
	color: #8d1c15;
	margin: 6px 0 0;
}

.form__error::before {
	content: "⚠ ";
}

.form__counter {
	font-size: 0.76rem;
	color: var(--muted, #5f6b80);
	margin: 6px 0 0;
	text-align: right;
}

.form__counter.is-over {
	color: #8d1c15;
	font-weight: 700;
}

.form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.88rem;
	line-height: 1.5;
	cursor: pointer;
}

.form__check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: var(--accent, #0a5bd3);
}

.form__check a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.form__actions {
	margin-top: 8px;
}

.form__submit {
	min-width: 220px;
	min-height: 50px;
}

.form__submit[aria-busy="true"] {
	opacity: 0.75;
	cursor: progress;
}

.form__under {
	font-size: 0.78rem;
	color: var(--muted, #5f6b80);
	margin: 10px 0 0;
}

.form__note {
	font-size: 0.82rem;
	color: var(--muted, #5f6b80);
	margin: 0 0 18px;
}

.form__alert {
	border: 2px solid #a3231b;
	background: #fdf1ef;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 18px;
	font-size: 0.88rem;
}

.form__alert p {
	margin: 0;
	font-weight: 700;
	color: #7d190f;
}

.form__alert-list {
	margin: 8px 0 0;
	padding-left: 1.1em;
}

.form__alert-list a {
	color: #7d190f;
	text-decoration: underline;
}

/* Champ piège : hors écran pour l'humain, visible pour le robot. */
.hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 720px) {
	.form {
		padding: 20px 16px;
	}

	.form__grid {
		grid-template-columns: 1fr;
	}

	.form__submit {
		width: 100%;
	}
}

/* Cibles tactiles du consentement (WCAG 2.2, critère 2.5.8) : la case de
   consentement et le lien « politique de confidentialité » mesurent au moins
   24 px. (P3-8 audit Opus 2026-10-20.) */
.form__check input {
	width: 24px;
	height: 24px;
	margin: 0;
}

.form__check a {
	display: inline-block;
	min-height: 24px;
	line-height: 1.5;
}
