/* ==========================================================
   EMAIL LIST WIDGET — BASE STRUCTURAL STYLES
   Colors, gradients, typography and spacing are mostly driven
   by Elementor's Style tab controls (see
   widgets/class-email-list-widget.php). This file only holds
   structure, layout, interaction states and responsive rules.
   ========================================================== */

.ael {
	overflow-x: clip;
}

.ael * {
	box-sizing: border-box;
}

.ael img {
	max-width: 100%;
	display: block;
}

/* ---------------- SECTION ---------------- */

.ael-section {
	position: relative;
	padding: 96px 24px;
}

/* ---------------- HEADER ---------------- */

.ael-header {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.ael-header__eyebrow {
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	margin: 0 0 10px;
}

.ael-header__title {
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	line-height: 1.1;
	margin: 0 0 20px;
}

.ael-header__description {
	font-size: 1.05rem;
	line-height: 1.75;
}

/* ---------------- FORM CARD ---------------- */

.ael-form-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
}

.ael-form {
	--ael-accent-start: #5A2A74;
	--ael-accent-end: #BC5130;

	position: relative;
	width: 100%;
	border-top: 4px solid transparent;
	border-image: linear-gradient(100deg, var(--ael-accent-start), var(--ael-accent-end)) 1;
}

/* ---- butterfly emblem ---- */

.ael-emblem {
	position: absolute;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	filter: drop-shadow(0 8px 16px rgba(34, 19, 41, 0.25));
}

.ael-emblem__still,
.ael-emblem__anim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ael-emblem__anim {
	opacity: 0;
	transition: opacity 0.15s ease;
}

.ael-emblem.is-animating .ael-emblem__still {
	opacity: 0;
}

.ael-emblem.is-animating .ael-emblem__anim {
	opacity: 1;
}

.ael-emblem:hover .ael-emblem__still,
.ael-emblem:focus-visible .ael-emblem__still {
	transform: scale(1.04);
}

/* ---- text ---- */

.ael-form__eyebrow {
	font-size: 0.85rem;
	margin: 0 0 6px;
}

.ael-form__title {
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 20px;
}

/* ---- inline status message (AJAX result) ---- */

.ael-form__message {
	font-size: 0.9rem;
	line-height: 1.5;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 18px;
}

.ael-form__message.is-success {
	background: rgba(90, 42, 116, 0.1);
	color: #5A2A74;
}

.ael-form__message.is-error {
	background: rgba(188, 81, 48, 0.12);
	color: #BC5130;
}

/* ---- fields ---- */

.ael-form__field {
	margin-bottom: 20px;
}

.ael-form__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: bold;
	margin-bottom: 6px;
}

.ael-form__field input {
	width: 100%;
	font-size: 1rem;
	padding: 12px 14px;
	border-width: 1.5px;
	border-style: solid;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ael-form__field input:focus {
	outline: none;
}

/* honeypot field — invisible to humans, present for bots */
.ael-form__hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- submit button ---- */

.ael-form__submit {
	width: 100%;
	padding: 14px 16px;
	margin-top: 4px;
	border: none;
	background: linear-gradient(100deg, var(--ael-accent-start), var(--ael-accent-end));
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ael-form__submit:hover,
.ael-form__submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(90, 42, 116, 0.45);
}

.ael-form__submit:active {
	transform: translateY(0);
}

.ael-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.ael-form__note {
	font-size: 0.8rem;
	text-align: center;
	margin: 16px 0 0;
	opacity: 0.75;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 480px) {
	.ael-section {
		padding: 72px 20px;
	}

	.ael-header {
		margin-bottom: 40px;
	}
}

/* ---------------- ACCESSIBILITY ---------------- */

@media (prefers-reduced-motion: reduce) {
	.ael-emblem__anim,
	.ael-form__submit {
		transition: none;
	}
}

.ael :focus-visible {
	outline: 2px solid var(--ael-accent-end, #BC5130);
	outline-offset: 2px;
}
