/* APIgoat Newsletter — front-end form styles.
   Minimal + theme-friendly. Pages can override these by targeting .apigoat-nl
   from their own stylesheet. */

.apigoat-nl {
	max-width: 480px;
	margin: 1.5rem 0;
	padding: 1.5rem 1.75rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fafafa;
	font-family: inherit;
}

.apigoat-nl__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.apigoat-nl__subtitle {
	margin: 0 0 1rem;
	color: #555;
	font-size: 0.95rem;
}

.apigoat-nl__row {
	margin: 0.75rem 0;
}

.apigoat-nl__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.85rem;
	color: #444;
}

.apigoat-nl__input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.apigoat-nl__input:focus {
	outline: none;
	border-color: #0a6;
	box-shadow: 0 0 0 3px rgba(0, 170, 102, 0.18);
}

.apigoat-nl__consent {
	font-size: 0.85rem;
	line-height: 1.4;
}

.apigoat-nl__consent-label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	cursor: pointer;
}

.apigoat-nl__checkbox {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.apigoat-nl__submit {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #0a6;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.apigoat-nl__submit:hover,
.apigoat-nl__submit:focus {
	background: #074;
}

.apigoat-nl__notice {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.95rem;
}

.apigoat-nl__notice--sent {
	background: #e6f7ee;
	color: #0a6;
	border: 1px solid #b6e3cb;
}

.apigoat-nl__notice--exists {
	background: #fff7e0;
	color: #8a6500;
	border: 1px solid #f1d77a;
}

.apigoat-nl__notice--invalid,
.apigoat-nl__notice--captcha,
.apigoat-nl__notice--error {
	background: #fdecea;
	color: #a02020;
	border: 1px solid #f5b1ab;
}

/* Honeypot — hidden from human users but submittable by naive bots. */
.apigoat-nl__hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Compact / inline variant — for footer-style placement. */
.apigoat-nl.apigoat-nl--inline {
	max-width: 640px;
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	flex-wrap: wrap;
}

.apigoat-nl.apigoat-nl--inline .apigoat-nl__row {
	flex: 1 1 200px;
	margin: 0;
}

.apigoat-nl.apigoat-nl--inline .apigoat-nl__actions {
	flex: 0 0 auto;
}
