/* =========================================================================
   Maquette Contact — front-end form
   "Match my theme": inherits the active theme's font family and text color via
   inherit + currentColor, loads no external fonts, imposes no palette, and fills
   the full width of whatever container it is placed in. Structural rules are
   scoped under .ilc-wrap and use !important only to stop theme bleed-through on
   the input reset (so fields stay a consistent underline style on any theme).
   ========================================================================= */

.ilc-wrap,
.ilc-wrap * {
	box-sizing: border-box;
}

.ilc-wrap {
	--ilc-line: currentColor;
	width: 100%;
	max-width: 100%;
	margin: 0;
	font: inherit;
	color: inherit;
}

/* Headings / intro inherit theme typography */
.ilc-wrap .ilc-heading {
	font: inherit;
	font-size: 1.6em;
	line-height: 1.15;
	margin: 0 0 0.4em;
	color: inherit;
}

.ilc-wrap .ilc-intro {
	font: inherit;
	opacity: 0.75;
	margin: 0 0 1.6em;
}

/* Field grid: two columns on wide, one on narrow, full width */
.ilc-wrap .ilc-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.6em 2em;
	width: 100%;
}

.ilc-wrap .ilc-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ilc-wrap .ilc-field--full,
.ilc-wrap .ilc-verify {
	grid-column: 1 / -1;
}

.ilc-wrap .ilc-label {
	font: inherit;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
	margin: 0 0 0.5em;
	color: inherit;
}

.ilc-wrap .ilc-label strong {
	font-weight: 700;
	opacity: 1;
}

.ilc-wrap .ilc-req {
	margin-left: 0.2em;
	opacity: 0.8;
}

/* Inputs: transparent, underline-only, inherit font + color.
   !important guards keep them consistent when the theme tries to restyle them. */
.ilc-wrap input[type="text"],
.ilc-wrap input[type="email"],
.ilc-wrap input[type="tel"],
.ilc-wrap textarea {
	width: 100% !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ilc-line) !important;
	border-radius: 0 !important;
	padding: 0.5em 0.1em !important;
	margin: 0 !important;
	font: inherit !important;
	font-size: 1em !important;
	line-height: 1.4 !important;
	color: inherit !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: 1 !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ilc-wrap textarea {
	resize: vertical;
	min-height: 6em;
}

.ilc-wrap input::placeholder,
.ilc-wrap textarea::placeholder {
	color: inherit !important;
	opacity: 0.5;
}

.ilc-wrap input:focus,
.ilc-wrap textarea:focus {
	border-bottom-color: currentColor !important;
	box-shadow: 0 1px 0 0 currentColor !important;
}

.ilc-wrap input:-webkit-autofill {
	-webkit-text-fill-color: inherit !important;
	transition: background-color 9999s ease-in-out 0s;
}

/* Errors: use a real red that reads on light or dark */
.ilc-wrap .ilc-field--error input,
.ilc-wrap .ilc-field--error textarea {
	border-bottom-color: #e2574c !important;
}

.ilc-wrap .ilc-error {
	display: block;
	min-height: 1em;
	margin-top: 0.4em;
	font-size: 0.75em;
	color: #e2574c !important;
}

/* Actions + button: outline in current color so it fits any theme */
.ilc-wrap .ilc-actions {
	margin-top: 2em;
}

.ilc-wrap .ilc-submit {
	display: inline-block;
	font: inherit !important;
	font-size: 0.8em !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: inherit !important;
	background: transparent !important;
	border: 1px solid currentColor !important;
	border-radius: 0 !important;
	padding: 0.9em 2.4em !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ilc-wrap .ilc-submit:hover {
	opacity: 0.72;
}

.ilc-wrap .ilc-submit[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* Confirmation / status message */
.ilc-wrap .ilc-message {
	margin-top: 1.4em;
	font: inherit;
	line-height: 1.55;
}

.ilc-wrap .ilc-message.ilc-message--success {
	padding: 1em 1.1em;
	border-left: 2px solid currentColor;
	opacity: 0.95;
}

.ilc-wrap .ilc-message.ilc-message--error {
	color: #e2574c;
}

/* reCAPTCHA v3 badge notice */
.ilc-wrap .ilc-rc-badge {
	margin-top: 1.4em;
	font-size: 0.7em;
	opacity: 0.55;
}

.ilc-wrap .ilc-rc-badge a {
	color: inherit;
	text-decoration: underline;
}

/* Honeypot */
.ilc-wrap .ilc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.ilc-wrap .ilc-fields {
		grid-template-columns: 1fr;
		gap: 1.4em;
	}
	.ilc-wrap .ilc-submit {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ilc-wrap * {
		transition: none !important;
	}
}
