/* Newsletter & Promo Suite — front-end styles (kept intentionally small: this
   whole file is a few KB, loaded only on pages that actually use a shortcode). */

.npsi-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.npsi-signup-form {
	max-width: 420px;
	padding: 28px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f6f8ff 0%, #eef1fb 100%);
	border: 1px solid #e1e5f5;
	box-shadow: 0 4px 16px rgba(30, 40, 90, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.npsi-signup-form * {
	box-sizing: border-box;
}

/* Horizontal layout: wide, single-line-friendly — a footer strip or slim banner. */
.npsi-signup-form.npsi-layout-horizontal {
	max-width: 100%;
}

.npsi-layout-horizontal .npsi-fields-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.npsi-layout-horizontal .npsi-field {
	flex: 1 1 180px;
	margin-bottom: 0;
}

.npsi-layout-horizontal .npsi-submit {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}

.npsi-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1d29;
}

.npsi-description {
	margin: 0 0 18px;
	font-size: 14px;
	color: #5b607a;
}

.npsi-field {
	margin-bottom: 14px;
}

.npsi-field input[type="text"],
.npsi-field input[type="email"],
.npsi-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3d7e8;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.npsi-field textarea {
	resize: vertical;
	min-height: 90px;
}

.npsi-field input:focus,
.npsi-field textarea:focus {
	outline: none;
	border-color: #5865f2;
	box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

/* Honeypot: hidden visually and from screen readers, still reachable by bots that ignore CSS */
.npsi-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.npsi-submit {
	position: relative;
	width: 100%;
	padding: 12px 16px;
	background: #5865f2;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.npsi-submit:hover {
	filter: brightness(0.92);
}

.npsi-submit:active {
	transform: scale(0.99);
}

.npsi-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.npsi-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: npsi-spin 0.7s linear infinite;
}

@keyframes npsi-spin {
	to {
		transform: rotate(360deg);
	}
}

.npsi-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #5b607a;
	margin: 12px 0;
	line-height: 1.4;
	cursor: pointer;
}

.npsi-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.npsi-message {
	margin: 10px 0 0;
	font-size: 13px;
	min-height: 0;
}

.npsi-message.npsi-success {
	color: #1a7f37;
}

.npsi-message.npsi-error {
	color: #d1242f;
}

.npsi-download-area {
	margin-top: 12px;
}

.npsi-download-link {
	display: inline-block;
	padding: 10px 18px;
	background: #1a7f37;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
}

.npsi-download-link:hover {
	background: #146c2e;
}

/* Contact form shares the same base card, with a touch more room for the textarea. */
.npsi-contact-form .npsi-fields-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.npsi-contact-form .npsi-fields-row .npsi-field {
	flex: 1 1 180px;
}

.npsi-contact-form.npsi-layout-horizontal .npsi-field {
	flex: 1 1 220px;
}
