/* Au milieu interest form. Inherits the theme's fonts; colours match the site. */
.aum-if {
	--aum-ink: #1f3a1f;
	--aum-muted: #4a5a48;
	--aum-line: #d9cfb8;
	--aum-field: #fffdf8;
	--aum-yellow: #f6b21b;
	--aum-yellow-hover: #e9a50c;
	--aum-error: #a3341f;
	width: 100%;
	max-width: 560px;
	color: var(--aum-ink);
	font: inherit;
}

.aum-if__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.aum-if__field { display: flex; flex-direction: column; gap: 6px; }
.aum-if__field--full { grid-column: 1 / -1; }
.aum-if__field[hidden] { display: none; }

.aum-if label { font-size: 0.875rem; font-weight: 600; color: var(--aum-ink); }

.aum-if input[type="text"],
.aum-if input[type="email"],
.aum-if select {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--aum-line);
	border-radius: 10px;
	background: var(--aum-field);
	color: var(--aum-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.aum-if select {
	appearance: none;
	-webkit-appearance: none;
	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 1l5 5 5-5' fill='none' stroke='%231f3a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.aum-if input:focus,
.aum-if select:focus {
	outline: none;
	border-color: var(--aum-ink);
	box-shadow: 0 0 0 3px rgba(31, 58, 31, 0.15);
}

.aum-if__consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400 !important;
	font-size: 0.875rem !important;
	line-height: 1.5;
	color: var(--aum-muted) !important;
	cursor: pointer;
}

.aum-if__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aum-ink);
}

.aum-if__consent a { color: var(--aum-ink); text-decoration: underline; margin-left: 4px; }

.aum-if__error {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fbeae4;
	color: var(--aum-error);
	font-size: 0.875rem;
}
.aum-if__error[hidden] { display: none; }

.aum-if__submit {
	grid-column: 1 / -1;
	justify-self: start;
	min-height: 46px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--aum-yellow);
	color: var(--aum-ink);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.15s;
}
.aum-if__submit:hover { background: var(--aum-yellow-hover); }
.aum-if__submit:active { transform: translateY(1px); }
.aum-if__submit:focus-visible { outline: 3px solid var(--aum-ink); outline-offset: 3px; }
.aum-if__submit[disabled] { opacity: 0.7; cursor: wait; }

.aum-if__thanks {
	margin: 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--aum-field);
	border: 1px solid var(--aum-line);
	color: var(--aum-ink);
	font-weight: 600;
	line-height: 1.5;
}
.aum-if__thanks[hidden] { display: none; }
.aum-if__thanks:focus { outline: none; }

/* Honeypot: hidden from people, visible to bots. */
.aum-if__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.aum-if__grid { grid-template-columns: 1fr; }
	.aum-if__submit { justify-self: stretch; }
}
