/* Newsletter Signup - front-end styles (base layout; colors injected inline). */

.nls-wrap {
	margin: 1.5em 0;
}

.nls-wrap.nls-align-center {
	display: flex;
	justify-content: center;
}
.nls-wrap.nls-align-left {
	display: flex;
	justify-content: flex-start;
}
.nls-wrap.nls-align-right {
	display: flex;
	justify-content: flex-end;
}

.nls-form {
	box-sizing: border-box;
	margin: 0;
}

.nls-form *,
.nls-form *::before,
.nls-form *::after {
	box-sizing: border-box;
}

.nls-form .nls-title {
	margin: 0 0 0.4em;
	line-height: 1.25;
	font-size: 1.35em;
}

.nls-form .nls-subtitle {
	margin: 0 0 1em;
	line-height: 1.5;
	font-size: 0.95em;
}

.nls-form__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nls-form__inner.nls-form--inline {
	flex-direction: row;
	align-items: stretch;
	flex-wrap: wrap;
}
.nls-form__inner.nls-form--inline .nls-input {
	flex: 1 1 180px;
}
.nls-form__inner.nls-form--inline .nls-btn {
	flex: 0 0 auto;
}

.nls-form .nls-input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid;
	border-radius: 6px;
	font-size: inherit;
	font-family: inherit;
	line-height: 1.3;
}

.nls-form .nls-input:focus {
	outline: none;
	border-color: inherit;
	box-shadow: 0 0 0 2px rgba(67, 131, 217, 0.25);
}

.nls-form .nls-btn {
	display: inline-block;
	padding: 12px 20px;
	border: 0;
	border-radius: 6px;
	font-size: inherit;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-align: center;
}

.nls-form .nls-btn:active {
	transform: translateY(1px);
}

.nls-form .nls-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.nls-form .nls-privacy {
	margin: 0.8em 0 0;
	font-size: 0.8em;
	line-height: 1.4;
	opacity: 0.75;
}

/* Thank-you block that replaces the form on success */
.nls-form .nls-thanks {
	text-align: center;
}
.nls-form .nls-thanks[hidden] {
	display: none;
}
.nls-form .nls-thanks .nls-thanks__title {
	margin: 0 0 0.4em;
	line-height: 1.25;
	font-size: 1.35em;
}
.nls-form .nls-thanks .nls-thanks__msg {
	margin: 0;
	line-height: 1.5;
	font-size: 0.95em;
}

.nls-form .nls-msg {
	margin-top: 0.75em;
	font-size: 0.92em;
	line-height: 1.4;
	display: none;
}
.nls-form .nls-msg.is-visible {
	display: block;
}
.nls-form .nls-msg.is-error {
	color: #b91c1c;
}
.nls-form .nls-msg.is-success {
	color: #15803d;
}
.nls-form .nls-msg.is-warning {
	color: #b45309;
}

/* Mobile: compact, well-proportioned form (the higher-specificity inline rules govern; these are a backup). */
@media (max-width: 640px) {
	.nls-form {
		padding: 18px;
		font-size: 15px;
	}
	.nls-form .nls-title {
		font-size: 1.25em;
		margin-bottom: 0.35em;
	}
	.nls-form .nls-subtitle {
		font-size: 0.85em;
		margin-bottom: 0.8em;
	}
	.nls-form__inner {
		gap: 8px;
	}
	.nls-form .nls-input {
		padding: 11px 13px;
		font-size: 15px;
	}
	.nls-form .nls-btn {
		padding: 11px 16px;
		font-size: 15px;
	}
	.nls-thanks .nls-thanks__title {
		font-size: 1.25em;
	}
}

/* Very small screens */
@media (max-width: 480px) {
	.nls-form__inner.nls-form--inline {
		flex-direction: column;
	}
	.nls-form__inner.nls-form--inline .nls-btn {
		width: 100%;
	}
}
