/*
 * Avízo nových článků – formulář.
 * Barvy a písma se berou z globálního nastavení Elementoru (Site Settings → Global Colors / Global Fonts),
 * takže se automaticky drží grafiky webu. Bez Elementoru se dědí písmo a barva textu z šablony.
 */
.nfa-box {
	--nfa-accent: var(--e-global-color-accent, var(--e-global-color-primary, #333));
	--nfa-heading: var(--e-global-color-primary, inherit);
	--nfa-radius: 12px;
	position: relative;
	box-sizing: border-box;
	margin: 3em 0 1.5em;
	padding: clamp(22px, 4vw, 40px);
	border-radius: var(--nfa-radius);
	background: #f6f6f7;
	background: color-mix(in srgb, var(--nfa-accent) 7%, #fff);
	border: 1px solid rgba(0, 0, 0, .06);
	border-color: color-mix(in srgb, var(--nfa-accent) 18%, transparent);
	font-family: var(--e-global-typography-text-font-family, inherit);
	color: var(--e-global-color-text, inherit);
	text-align: left;
}
.nfa-box *,
.nfa-box *::before,
.nfa-box *::after { box-sizing: border-box; }

.nfa-box .nfa-inner { max-width: 640px; }

.nfa-box .nfa-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 14px;
	border-radius: 50%;
	background: var(--nfa-accent);
	color: #fff;
}

.nfa-box .nfa-title {
	margin: 0 0 .35em;
	padding: 0;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 700);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	line-height: 1.25;
	color: var(--nfa-heading);
}

.nfa-box .nfa-text {
	margin: 0 0 1.1em;
	font-size: 1em;
	line-height: 1.6;
}

.nfa-box .nfa-form { margin: 0; }

.nfa-box .nfa-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nfa-box .nfa-input {
	flex: 1 1 240px;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: .85em 1.05em;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .16);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.nfa-box .nfa-input:focus {
	outline: none;
	border-color: var(--nfa-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nfa-accent) 22%, transparent);
}
.nfa-box .nfa-input[aria-invalid="true"] { border-color: #b3261e; }

.nfa-box .nfa-button,
.nfa-page .nfa-button {
	flex: 0 0 auto;
	margin: 0;
	padding: .85em 1.7em;
	font-family: var(--e-global-typography-accent-font-family, inherit);
	font-weight: var(--e-global-typography-accent-font-weight, 600);
	font-size: 1rem;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	background: var(--nfa-accent, var(--e-global-color-accent, #333));
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: filter .2s, transform .15s;
}
.nfa-box .nfa-button:hover,
.nfa-box .nfa-button:focus-visible,
.nfa-page .nfa-button:hover { filter: brightness(.9); color: #fff; }
.nfa-box .nfa-button:active { transform: translateY(1px); }
.nfa-box .nfa-button:focus-visible { outline: 2px solid var(--nfa-accent); outline-offset: 2px; }
.nfa-box .nfa-button[disabled] { opacity: .65; cursor: wait; }

.nfa-box .nfa-consent {
	margin: .9em 0 0;
	font-size: .8rem;
	line-height: 1.55;
	opacity: .72;
}
.nfa-box .nfa-consent a { color: inherit; text-decoration: underline; }

.nfa-box .nfa-msg { margin: .8em 0 0; font-weight: 600; line-height: 1.5; }
.nfa-box .nfa-msg:empty { display: none; }
.nfa-box .nfa-msg.is-ok { color: #1d7a46; }
.nfa-box .nfa-msg.is-err { color: #b3261e; }
.nfa-box.is-done .nfa-row,
.nfa-box.is-done .nfa-consent { display: none; }

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

/* Stránka potvrzení / odhlášení */
.nfa-page {
	max-width: 680px;
	margin: clamp(40px, 8vw, 100px) auto;
	padding: 0 20px;
}
.nfa-page .nfa-box { margin: 0; text-align: center; }
.nfa-page .nfa-inner { margin: 0 auto; }
.nfa-page form { margin: 1.2em 0 0; }
.nfa-page .nfa-back { margin: 1.4em 0 0; font-size: .95em; }
.nfa-page .nfa-back a { color: var(--nfa-accent); }

@media (max-width: 480px) {
	.nfa-box .nfa-button { flex: 1 1 100%; }
}
