/* ─────────────────────────────────────────────
   Base (shared by all variants)
   ───────────────────────────────────────────── */

.avec-form {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
}

.avec-row {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 0 auto;
}

.avec-email {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #b0c4de;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s;
	min-width: 0;
}

.avec-email:focus {
	border-color: #2563eb;
}

.avec-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.avec-submit {
	padding: 12px 24px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.avec-submit:hover:not(:disabled) {
	background: #1d4ed8;
}

.avec-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.avec-submit.is-success {
	background: #16a34a;
}

.avec-msg {
	margin: 12px 0 0;
	font-size: 14px;
	min-height: 20px;
	text-align: center;
}

.avec-msg.is-error {
	color: #dc2626;
}

.avec-msg.is-success {
	color: #16a34a;
}

/* ─────────────────────────────────────────────
   Variant: card (default — gradient hero)
   ───────────────────────────────────────────── */

.avec-form--card {
	margin: 32px 0;
	padding: 28px 24px;
	background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
	border: 1px solid #c2d4f0;
	border-radius: 12px;
	text-align: center;
}

.avec-form--card .avec-heading {
	margin: 0 0 8px;
	font-size: 20px;
	color: #1a3a5c;
}

.avec-form--card .avec-description {
	margin: 0 0 16px;
	color: #4a6785;
	font-size: 15px;
}

.avec-form--card .avec-disclaimer {
	margin: 8px 0 0;
	font-size: 12px;
	color: #8899aa;
}

/* ─────────────────────────────────────────────
   Variant: simple (just input + submit)
   ───────────────────────────────────────────── */

.avec-form--simple {
	margin: 16px 0;
}

.avec-form--simple .avec-msg {
	text-align: left;
}

/* ─────────────────────────────────────────────
   Mobile
   ───────────────────────────────────────────── */

@media (max-width: 480px) {
	.avec-row {
		flex-direction: column;
	}
}
