/* NG Newsletter — Front-end subscription form */

.ng-nl-form-wrap {
	max-width: 480px;
}

.ng-nl-form-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 .35rem;
}

.ng-nl-field {
	margin-bottom: .85rem;
}

.ng-nl-label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: #444;
	margin-bottom: .3rem;
	letter-spacing: .01em;
}

.ng-nl-required {
	color: #c0392b;
}

.ng-nl-input {
	width: 100%;
	padding: .6rem .85rem;
	font-size: .95rem;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
	background: #fff;
	color: #1a1a2e;
}

.ng-nl-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}

.ng-nl-form-row {
	display: flex;
	gap: .5rem;
}

.ng-nl-form-row .ng-nl-input {
	flex: 1;
	min-width: 0;
}

.ng-nl-btn {
	flex-shrink: 0;
	padding: .6rem 1.25rem;
	font-size: .95rem;
	font-weight: 700;
	background: #1a3c5e;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, transform .1s;
	letter-spacing: .02em;
}

.ng-nl-btn:hover  { background: #14304e; }
.ng-nl-btn:active { transform: scale(.97); }
.ng-nl-btn:disabled { background: #9ca3af; cursor: default; }

.ng-nl-input--error {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important;
}

.ng-nl-field-error {
	display: block;
	margin-top: .3rem;
	font-size: .8rem;
	color: #dc2626;
	font-weight: 500;
	line-height: 1.4;
}

.ng-nl-message {
	margin-top: .5rem;
	font-size: .85rem;
	min-height: 1.2em;
	line-height: 1.5;
}

.ng-nl-message.is-success { color: #065f46; }
.ng-nl-message.is-error   { color: #b91c1c; }
.ng-nl-message.is-info    { color: #1e40af; }

/* Frequency / privacy note */
.ng-nl-frequency {
	margin: .75rem 0 0;
	font-size: .78rem;
	color: #6b7280;
	display: flex;
	align-items: flex-start;
	gap: .35rem;
	line-height: 1.5;
}

.ng-nl-freq-icon {
	flex-shrink: 0;
	font-size: .9rem;
	margin-top: .05rem;
}

/* Toast notification */
.ng-nl-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	padding: .8rem 1.25rem;
	border-radius: 6px;
	font-size: .92rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: .75rem;
	box-shadow: 0 4px 20px rgba(0,0,0,.15);
	animation: ng-nl-slidein .22s ease;
	max-width: calc(100vw - 2rem);
	white-space: nowrap;
}

.ng-nl-toast button {
	background: none;
	border: none;
	font-size: 1.15rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	opacity: .7;
	flex-shrink: 0;
}

.ng-nl-toast button:hover { opacity: 1; }

.ng-nl-toast--success { background: #d1fae5; color: #065f46; }
.ng-nl-toast--success button { color: #065f46; }
.ng-nl-toast--info    { background: #dbeafe; color: #1e3a8a; }
.ng-nl-toast--info button { color: #1e3a8a; }
.ng-nl-toast--error   { background: #fee2e2; color: #7f1d1d; }
.ng-nl-toast--error button { color: #7f1d1d; }

@keyframes ng-nl-slidein {
	from { opacity: 0; transform: translateX(-50%) translateY(10px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
	.ng-nl-form-row    { flex-direction: column; }
	.ng-nl-btn         { width: 100%; }
	.ng-nl-toast       { white-space: normal; }
}
