/**
 * NISM GetResponse — popup modal + shared form feedback.
 * Brand: blue #009fc6 (hover #007a99), ink #161721, muted #6b7280.
 */

/* ── Overlay + modal ─────────────────────────────────────────────────── */
.nism-gr-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the fixed header (z-50) and promo banner (9990) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(15, 16, 23, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.nism-gr-overlay.is-open {
	opacity: 1;
}
.nism-gr-modal {
	position: relative;
	width: 100%;
	max-width: 26rem;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	padding: 2.5rem 2rem 2rem;
	text-align: center;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.3s ease;
}
.nism-gr-overlay.is-open .nism-gr-modal {
	transform: translateY(0) scale(1);
}

.nism-gr-close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	color: #9ca3af;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease;
}
.nism-gr-close:hover {
	color: #161721;
	background: #f3f4f6;
}

.nism-gr-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1.25rem;
	border-radius: 999px;
	background: #e6f5f8;
	color: #009fc6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nism-gr-icon svg {
	width: 2rem;
	height: 2rem;
}
/* Success state — filled blue circle with a white check */
.nism-gr-icon--check {
	background: #009fc6;
	color: #fff;
}

.nism-gr-title {
	margin: 0 0 0.5rem;
	font-size: 1.6rem;
	font-weight: 800;
	color: #161721;
	line-height: 1.2;
}
.nism-gr-sub {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #6b7280;
}

/* ── Form (modal) ────────────────────────────────────────────────────── */
.nism-gr-form--modal {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.nism-gr-input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #dfe3ea;
	border-radius: 12px;
	font-size: 0.95rem;
	color: #161721;
	background: #fff;
	box-sizing: border-box;
}
.nism-gr-input:focus {
	outline: none;
	border-color: #009fc6;
	box-shadow: 0 0 0 3px rgba(0, 159, 198, 0.12);
}
.nism-gr-btn {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #009fc6;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: box-shadow 0.15s ease, background 0.15s ease;
}
.nism-gr-btn:hover {
	background: #007a99;
	box-shadow: 0 8px 20px rgba(0, 159, 198, 0.3);
}
.nism-gr-btn:disabled {
	opacity: 0.65;
	cursor: default;
}

/* ── Shared feedback message (modal + footer) ────────────────────────── */
.nism-gr-msg {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	min-height: 1em;
}
.nism-gr-msg.is-success { color: #007a99; }
.nism-gr-msg.is-error { color: #c0392b; }
/* Post-subscribe confirmation (fields hidden) — a touch larger + spaced */
.nism-gr-msg--done { font-size: 1.05rem; font-weight: 700; margin-top: 0.75rem; }
/* Footer inline confirmation — check + text on one line */
.nism-gr-msg--check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.nism-gr-msg--check svg {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}
/* Footer form (dark bg, non-modal): brand orange success + readable error */
.nism-gr-form:not(.nism-gr-form--modal) .nism-gr-msg.is-success { color: #e69b3e; }
.nism-gr-form:not(.nism-gr-form--modal) .nism-gr-msg.is-error { color: #ff9b8a; }

/* Honeypot — visually hidden, off-screen, ignored by users; bots fill it */
.nism-gr-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* Lock background scroll while the modal is open */
body.nism-gr-lock {
	overflow: hidden;
}

@media (max-width: 480px) {
	.nism-gr-modal { padding: 2.25rem 1.25rem 1.5rem; border-radius: 20px; }
	.nism-gr-title { font-size: 1.4rem; }
}
