/**
 * Aha Newsletter - Front-end form (shortcode)
 * Theme can override these classes.
 */

.aha-newsletter-form-wrap {
	max-width: 100%;
}

.aha-newsletter-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
	font-size: 14px;
}

.aha-newsletter-message--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.aha-newsletter-message--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.aha-newsletter-form .aha-newsletter-field {
	margin-bottom: 10px;
}

.aha-newsletter-form .aha-newsletter-input {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.aha-newsletter-form .aha-newsletter-input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

.aha-newsletter-form .aha-newsletter-submit {
	padding: 10px 20px;
	background: #0063ef;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
	height: 38px;
}

.aha-newsletter-form .aha-newsletter-submit:hover {
	background: #005a87;
}

/* Inline layout (e.g. footer: email + button in one row) */
.aha-newsletter-form--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: stretch;
}

.aha-newsletter-form--inline .aha-newsletter-field {
	margin-bottom: 0;
}

.aha-newsletter-form--inline .aha-newsletter-field:not(.aha-newsletter-field-submit) {
	flex: 1;
	min-width: 150px;
}

.aha-newsletter-form--inline .aha-newsletter-input-email {
	max-width: none;
	border-radius: 4px 0 0 4px;
}

.aha-newsletter-form--inline .aha-newsletter-field-submit .aha-newsletter-submit {
	border-radius: 0 4px 4px 0;
}
