/**
 * JXC — Modale Newsletter (newsletter-modal.css)
 *
 * Styles du formulaire d'inscription newsletter (modale Brevo/Sendinblue).
 * Dépend de jxc-topbar.css pour les tokens .jxc-modal__box, animations, etc.
 * Peut être chargé sur toute page portant le widget jxc-newsletter.
 *
 * @package JupiterX_Child
 */

/* ── Titres ──────────────────────────────────────────────────────────────── */

.jxc-nl-modal-title {
	font-family: var(--jxc-font, 'Jost', sans-serif);
	font-size: 40px;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 44px;
	color: #121212;
	margin: 0 0 10px;
}

.jxc-nl-modal-subtitle {
	font-size: 14px;
	color: #555;
	margin: 0 0 28px;
	line-height: 1.6;
}

/* ── Champ e-mail ────────────────────────────────────────────────────────── */

.jxc-nl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.jxc-nl-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #444;
}

.jxc-nl-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #ddd;
	border-radius: 4px;
	font-family: var(--jxc-font, 'Jost', sans-serif);
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.jxc-nl-input:focus { border-color: var(--jxc-accent, #212121); }

/* ── Bouton submit ───────────────────────────────────────────────────────── */

.jxc-nl-submit {
	width: 100%;
	padding: 13px;
	background: var(--jxc-accent, #212121);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-family: var(--jxc-font, 'Jost', sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.jxc-nl-submit:hover    { opacity: 0.88; }
.jxc-nl-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Radios rôle ─────────────────────────────────────────────────────────── */

.jxc-nl-roles {
	border: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.jxc-nl-roles__legend {
	font-family: var(--jxc-font, 'Jost', sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 8px;
	float: left;
	width: 100%;
}

.jxc-nl-role {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}

.jxc-nl-role input[type="radio"] {
	accent-color: var(--jxc-accent, #212121);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* ── Honeypot — strictement invisible ───────────────────────────────────── */

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

/* ── Texte légal ─────────────────────────────────────────────────────────── */

.jxc-nl-legal {
	margin-top: 14px;
	font-size: 11px;
	color: #888;
	line-height: 1.5;
}

.jxc-nl-legal a { color: inherit; text-decoration: underline; }

/* ── Feedback soumission ─────────────────────────────────────────────────── */

.jxc-nl-feedback {
	margin-top: 12px;
	font-size: 13px;
	min-height: 20px;
}

.jxc-nl-feedback.success { color: #1a7a1a; }
.jxc-nl-feedback.error   { color: #c0392b; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.jxc-nl-modal-title { font-size: 28px; }
}
