/* ============================================================================
   AHL Forms, plugin-specific UI states. The bulk of form styling (.ahl-form,
   .ahl-form__field, .ahl-form__row, .ahl-quote__products, etc.) lives in the
   theme's style.css; this file only adds what the plugin introduces.
   ========================================================================= */

.ahl-form__stack {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Error summary (top of form when validation fails) */
.ahl-form__errors {
	background: #fdecea;
	border: 1px solid #f5c2bc;
	border-left: 4px solid #b32d2e;
	color: #7b1d1d;
	padding: 1rem 1.25rem;
	border-radius: 0;
	margin-bottom: 1.5rem;
}
.ahl-form__errors strong {
	display: block;
	margin-bottom: 0.25rem;
}
.ahl-form__errors ul {
	margin: 0.25rem 0 0;
	padding-left: 1.25rem;
}
.ahl-form__errors a {
	color: #7b1d1d;
	text-decoration: underline;
}

/* Per-field error decoration */
.ahl-form__field--error .ahl-form__input,
.ahl-form__field--error select,
.ahl-form__field--error textarea {
	border-color: #b32d2e;
	background-color: #fff7f6;
}
.ahl-form__error {
	display: block;
	color: #b32d2e;
	margin-top: 0.35rem;
	font-weight: 500;
}

/* Success state (replaces the form on submit when no redirect_to) */
.ahl-form__success {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: rgba(8, 31, 72, 0.04);
	border: 1px solid rgba(8, 31, 72, 0.12);
	border-left: 4px solid var(--brand, #00539F);
	color: var(--brand, #00539F);
	padding: 1.5rem 1.75rem;
	border-radius: 0;
}
.ahl-form__success svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--brand, #00539F);
}
.ahl-form__success p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

/* Honeypot, must be off-screen, not display:none (display:none triggers some bots
   to skip the field, which then fails our "must be empty" check). */
.ahl-form__hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Captcha widget breathing room */
.ahl-form__captcha {
	margin: 1.25rem 0;
}

/* Admin: status pills */
.ahl-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 0;
	font-size: 12px;
	font-weight: 500;
}
.ahl-status--new     { background: #e8f0fe; color: #1a4fbf; }
.ahl-status--handled { background: #e7f6ec; color: #1c6c3a; }
.ahl-status--spam    { background: #fdecea; color: #7b1d1d; }

/* reCAPTCHA v3 badge: hidden in favor of the attribution text on each form,
   which also keeps it from colliding with the bottom-right scam alert. */
.grecaptcha-badge { visibility: hidden; }
