/* Alster Quote Mailer — front-end (AJAX form + error modal). Layout/spacing
   for the form itself is inherited from the theme's .mailform-grid styles;
   this file only adds what's specific to the AJAX/anti-spam/modal behaviour. */

.alster-qm-form.is-sending {
	opacity: 0.6;
	pointer-events: none;
}

.alster-qm-form .aqm-status {
	min-height: 1.2em;
}

.alster-qm-form .aqm-success {
	font-weight: 600;
}

/* Honeypot: kept in normal flow (not display:none) so simple bots that
   only check for that don't skip it — moved off-screen instead. */
.aqm-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aqm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 1rem;
}

.aqm-modal-overlay[hidden] {
	display: none;
}

.aqm-modal {
	background: #fff;
	color: #1d1d1d;
	border-radius: 6px;
	max-width: 28rem;
	width: 100%;
	padding: 2rem 1.5rem 1.5rem;
	position: relative;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
}

.aqm-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.aqm-modal-message {
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.aqm-modal-fallback-link {
	font-weight: 600;
}
