.nezaldi-form {
	--nf-primary: #F37238;
	--nf-primary-hover: #D85F2A;
	--nf-accent: #154372;
	--nf-accent-soft: #4A6B8F;
	--nf-bg-card: #FFFFFF;
	--nf-bg-input: #FFFFFF;
	--nf-border: #E0DAD2;
	--nf-text: #2B2B2B;
	--nf-text-muted: #6B6560;
	--nf-text-placeholder: #99948F;
	--nf-bullet-inactive: #EBE8E3;
	--nf-on-dark: #FDF8F0;
	--nf-radius: 12px;
	--nf-radius-sm: 12px;
	--nf-radius-pill: 32px;
	--nf-shadow: 0 4px 24px rgba(21, 67, 114, 0.06);
	--nf-error: #B32D2E;

	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--nf-text);
	box-sizing: border-box;
}
.nezaldi-form *, .nezaldi-form *::before, .nezaldi-form *::after { box-sizing: border-box; }

.nezaldi-form .nf-form {
	background: var(--nf-bg-card);
	border-radius: var(--nf-radius);
	padding: 32px;
	box-shadow: var(--nf-shadow);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nezaldi-form .nf-stepper {
	display: flex;
	align-items: center;
	gap: 0;
}
.nezaldi-form .nf-step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	min-width: 64px;
}
.nezaldi-form .nf-step-bullet {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--nf-bullet-inactive);
	color: var(--nf-text-placeholder);
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; font-weight: 400;
	line-height: 1;
	transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
	position: relative;
}
.nezaldi-form .nf-step-item.is-active .nf-step-bullet,
.nezaldi-form .nf-step-item.is-complete .nf-step-bullet {
	background: var(--nf-accent);
	color: #fff;
}
.nezaldi-form .nf-step-item.is-active .nf-step-bullet {
	transform: scale(1.12);
	box-shadow: 0 0 0 4px rgba(21, 67, 114, 0.12);
}
.nezaldi-form .nf-step-num { display: block; }
.nezaldi-form .nf-step-check { display: none; }
.nezaldi-form .nf-step-item.is-active .nf-step-bullet { background: var(--nf-accent); }
.nezaldi-form .nf-step-item.is-complete .nf-step-bullet { background: var(--nf-accent); }
.nezaldi-form .nf-step-item.is-complete .nf-step-num { display: none; }
.nezaldi-form .nf-step-item.is-complete .nf-step-check { display: block; }
.nezaldi-form .nf-step-name {
	font-size: 16px;
	line-height: 22px;
	color: var(--nf-text-muted);
	font-weight: 400;
}
.nezaldi-form .nf-step-item.is-active .nf-step-name,
.nezaldi-form .nf-step-item.is-complete .nf-step-name { color: var(--nf-accent); }

.nezaldi-form .nf-step-line {
	flex: 1;
	height: 28px;
	display: flex;
	align-items: center;
	min-width: 24px;
}
.nezaldi-form .nf-step-line span {
	display: block;
	width: 100%;
	height: 2px;
	background: linear-gradient(to right, var(--nf-accent) 0%, var(--nf-accent) 50%, var(--nf-border) 50%, var(--nf-border) 100%);
	background-size: 200% 100%;
	background-position: 100% 0;
	border-radius: 1px;
	transition: background-position .5s ease;
}
.nezaldi-form .nf-step-line.is-complete span { background-position: 0 0; }

.nezaldi-form .nf-mobile-progress { display: none; }

.nezaldi-form .nf-step { border: 0; padding: 0; margin: 0; }
.nezaldi-form .nf-step[hidden] { display: none; }
.nezaldi-form .nf-step.is-entering {
	animation: nfStepIn .4s cubic-bezier(.22,.61,.36,1) both;
}
.nezaldi-form .nf-step.is-entering-back {
	animation: nfStepInBack .4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes nfStepIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes nfStepInBack {
	from { opacity: 0; transform: translateY(-14px); }
	to   { opacity: 1; transform: translateY(0); }
}
.nezaldi-form .nf-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 16px;
}
.nezaldi-form .nf-col-half { grid-column: span 1; }
.nezaldi-form .nf-col-full { grid-column: 1 / -1; }

.nezaldi-form .nf-field { display: flex; flex-direction: column; gap: 8px; }
.nezaldi-form .nf-label {
	font-size: 16px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.04em;
	color: var(--nf-text);
}
.nezaldi-form .nf-req { color: var(--nf-primary); }

.nezaldi-form .nf-input,
.nezaldi-form input.nf-input,
.nezaldi-form select.nf-input,
.nezaldi-form textarea.nf-input {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--nf-border);
	background-color: var(--nf-bg-input) !important;
	background-image: none;
	border-radius: var(--nf-radius);
	font-size: 18px;
	line-height: 29px;
	color: var(--nf-text);
	font-family: inherit;
	font-weight: 400;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-shadow: none;
}
.nezaldi-form .nf-input::placeholder { color: var(--nf-text-muted); opacity: 1; }
.nezaldi-form select.nf-input:invalid,
.nezaldi-form select.nf-input option[value=""] { color: var(--nf-text-muted); }
.nezaldi-form select.nf-input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'><path d='M1 1L7 7L13 1' stroke='%236B6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	padding-right: 42px;
}
.nezaldi-form .nf-textarea { min-height: 80px; resize: vertical; }
.nezaldi-form .nf-input:focus {
	outline: none;
	border-color: var(--nf-accent);
	box-shadow: 0 0 0 3px rgba(21, 67, 114, 0.12);
}
.nezaldi-form .nf-field.has-error .nf-input,
.nezaldi-form .nf-field.has-error .nf-card { border-color: var(--nf-error); }
.nezaldi-form .nf-field-error {
	font-size: 12px;
	color: var(--nf-error);
	margin-top: 2px;
}

.nezaldi-form .nf-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.nezaldi-form .nf-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px;
	border: 1.5px solid var(--nf-border);
	background: var(--nf-bg-input);
	border-radius: var(--nf-radius);
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
	min-height: 86px;
}
.nezaldi-form .nf-card input { position: absolute; opacity: 0; pointer-events: none; }
.nezaldi-form .nf-card__icon { font-size: 18px; }
.nezaldi-form .nf-card__label { font-weight: 600; font-size: 15px; color: var(--nf-text); }
.nezaldi-form .nf-card__sub { font-size: 12px; color: var(--nf-text-muted); }
.nezaldi-form .nf-card[data-value="maternal"]   { background: #FBF1D0; border-color: #E8D89A; }
.nezaldi-form .nf-card[data-value="primaria"]   { background: #DBE9F4; border-color: #B5CFE5; }
.nezaldi-form .nf-card[data-value="secundaria"] { background: #F4D9DD; border-color: #E0B5BB; }

.nezaldi-form .nf-card:hover { transform: translateY(-1px); }
.nezaldi-form .nf-card.is-selected {
	border-color: var(--nf-accent);
	box-shadow: 0 4px 14px rgba(30, 58, 95, 0.18);
	transform: translateY(-2px);
}
.nezaldi-form .nf-card[data-value="maternal"].is-selected   { border-color: #C9A93D; }
.nezaldi-form .nf-card[data-value="primaria"].is-selected   { border-color: #4A7BA8; }
.nezaldi-form .nf-card[data-value="secundaria"].is-selected { border-color: #B05865; }

.nezaldi-form .nf-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--nf-text);
	cursor: pointer;
	line-height: 1.4;
}
.nezaldi-form .nf-check input { margin-top: 2px; flex-shrink: 0; }

.nezaldi-form .nf-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.nezaldi-form .nf-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 8px;
}
.nezaldi-form .nf-actions [data-action="primary"] { margin-left: auto; }

.nezaldi-form .nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: var(--nf-radius-pill);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	font-family: inherit;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background .25s ease, transform .15s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
}
.nezaldi-form .nf-btn:active { transform: scale(0.97); }
.nezaldi-form .nf-btn--primary {
	background: var(--nf-primary);
	color: var(--nf-on-dark);
	box-shadow: 0 2px 8px rgba(243, 114, 56, 0.25);
}
.nezaldi-form .nf-btn--primary:hover {
	background: var(--nf-primary-hover);
	box-shadow: 0 4px 14px rgba(243, 114, 56, 0.35);
	transform: translateY(-1px);
}
.nezaldi-form .nf-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
.nezaldi-form .nf-btn--secondary {
	background: transparent;
	color: var(--nf-accent);
	border-color: var(--nf-accent);
}
.nezaldi-form .nf-btn--secondary:hover { background: rgba(30, 58, 95, 0.06); }

.nezaldi-form .nf-error-banner {
	background: #FCEEEE;
	border: 1px solid #F1B8B8;
	color: var(--nf-error);
	padding: 12px 16px;
	border-radius: var(--nf-radius);
	font-size: 14px;
}

.nezaldi-form .nf-success {
	background: var(--nf-bg-card);
	border-radius: var(--nf-radius);
	padding: 56px 32px 64px;
	text-align: center;
	box-shadow: var(--nf-shadow);
	animation: nfSuccessIn .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes nfSuccessIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.nezaldi-form .nf-success__icon {
	width: 84px; height: 84px;
	margin: 0 auto 22px;
	display: block;
}
.nezaldi-form .nf-success__svg {
	width: 100%;
	height: 100%;
	display: block;
}
.nezaldi-form .nf-success__ring {
	fill: none;
	stroke: var(--nf-primary);
	stroke-width: 2;
	opacity: 0.25;
	transform-origin: 32px 32px;
	animation: nfRingPulse 1.6s ease-out .5s infinite;
}
.nezaldi-form .nf-success__bg {
	fill: var(--nf-primary);
	transform-origin: 32px 32px;
	transform: scale(0);
	animation: nfPop .5s cubic-bezier(.34,1.56,.64,1) .1s forwards;
}
.nezaldi-form .nf-success__check {
	stroke: #fff;
	stroke-width: 4.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	animation: nfDraw .35s ease-out .45s forwards;
}
@keyframes nfPop {
	0%   { transform: scale(0); }
	60%  { transform: scale(1.08); }
	100% { transform: scale(1); }
}
@keyframes nfDraw { to { stroke-dashoffset: 0; } }
@keyframes nfRingPulse {
	0%   { transform: scale(1);   opacity: 0.35; }
	70%  { transform: scale(1.4); opacity: 0; }
	100% { transform: scale(1.4); opacity: 0; }
}

.nezaldi-form .nf-success__title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--nf-accent);
	opacity: 0;
	transform: translateY(8px);
	animation: nfFadeUp .4s ease-out .55s forwards;
}
.nezaldi-form .nf-success__text {
	margin: 0;
	font-size: 15px;
	color: var(--nf-text);
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(8px);
	animation: nfFadeUp .4s ease-out .7s forwards;
}
@keyframes nfFadeUp { to { opacity: 1; transform: translateY(0); } }


@media (prefers-reduced-motion: reduce) {
	.nezaldi-form *,
	.nezaldi-form *::before,
	.nezaldi-form *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (max-width: 640px) {
	.nezaldi-form .nf-form { padding: 20px 18px; }
	.nezaldi-form .nf-stepper { display: none; }
	.nezaldi-form .nf-mobile-progress { display: block; margin-bottom: 20px; }
	.nezaldi-form .nf-mobile-label { font-size: 13px; color: var(--nf-accent); font-weight: 600; margin-bottom: 6px; }
	.nezaldi-form .nf-mobile-bar { height: 4px; background: #E5DDD0; border-radius: 2px; overflow: hidden; }
	.nezaldi-form .nf-mobile-bar__fill { height: 100%; background: var(--nf-accent); transition: width .25s; width: 25%; }
	.nezaldi-form .nf-grid { grid-template-columns: 1fr; }
	.nezaldi-form .nf-col-half { grid-column: 1 / -1; }
	.nezaldi-form .nf-cards { grid-template-columns: 1fr; }
	.nezaldi-form .nf-actions { flex-direction: column-reverse; }
	.nezaldi-form .nf-btn { width: 100%; }
	.nezaldi-form .nf-actions [data-action="primary"] { margin-left: 0; }
}
