/* ================================================================
   Agaira Newsletter — Form Styles
   Matches: bottom-border only input + right arrow button
================================================================ */

.agn-form-wrap {
	width: 100%;
}

.agn-form {
	display: inline-block;
	width: 100%;
	max-width: 420px;
}

/* ── Input row: bottom border only, no box ── */
.agn-input-row {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #1a1a1a;
	width: 100%;
}

.agn-email-input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 14px;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	color: #1a1a1a;
	padding: 10px 44px 10px 0;
	width: 100%;
	letter-spacing: 0.01em;
	-webkit-appearance: none;
	appearance: none;
}

.agn-email-input::placeholder {
	color: #9a9a8a;
	font-weight: 300;
}

.agn-email-input:focus {
	outline: none;
	box-shadow: none;
}

/* ── Arrow submit button ── */
.agn-submit-btn {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	opacity: 0.7;
}

.agn-submit-btn:hover {
	opacity: 1;
	transform: translateY(-50%) translateX(2px);
}

.agn-submit-btn:focus {
	outline: none;
}

.agn-submit-btn svg {
	display: block;
}

/* ── Message feedback ── */
.agn-message {
	font-size: 12px;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	margin: 8px 0 0;
	min-height: 18px;
	letter-spacing: 0.02em;
	transition: opacity 0.3s ease;
}

.agn-message:empty {
	display: none;
}

.agn-message--success {
	color: #4a7c59;
}

.agn-message--error {
	color: #c0392b;
}

/* ── Loading state ── */
.agn-submit-btn.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.agn-submit-btn.is-loading svg {
	animation: agn-spin 0.8s linear infinite;
}

@keyframes agn-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
