/**
 * Nitido Core — estilos base de formularios.
 * Autónomos: se ven bien en cualquier tema. El tema Nitido los refina.
 */

.nf-form {
	--nf-coral: #e07856;
	--nf-coral-dark: #c9603f;
	--nf-tinta: #22303c;
	--nf-steel: #4a6b8a;
	--nf-blanco: #fbf9f5;
	--nf-bruma: #d9e2ea;
	--nf-error: #b23a22;
	font-family: inherit;
	color: var(--nf-tinta);
}

.nf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* hidden siempre gana dentro de los formularios (estados de éxito, filas inline). */
.nf-form [hidden] {
	display: none !important;
}

.nf-fields {
	display: grid;
	gap: 1rem;
}

.nf-grid-2 {
	display: grid;
	gap: 1rem;
}

@media (min-width: 560px) {
	.nf-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.nf-field {
	margin: 0;
	padding: 0;
	border: 0;
}

.nf-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nf-tinta);
}

.nf-req {
	color: var(--nf-coral);
	margin-left: 2px;
}

.nf-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(34, 48, 60, 0.16);
	border-radius: 1rem;
	background: #fff;
	padding: 0.8rem 1rem;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--nf-tinta);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nf-input:focus {
	outline: none;
	border-color: var(--nf-coral);
	box-shadow: 0 0 0 3px rgba(224, 120, 86, 0.25);
}

textarea.nf-input {
	resize: none;
}

.nf-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a6b8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	padding-right: 2.5rem;
}

/* Radios tipo tarjeta */
.nf-radio-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
}

.nf-radio {
	display: block;
	cursor: pointer;
	border: 1px solid rgba(34, 48, 60, 0.16);
	border-radius: 1rem;
	background: #fff;
	padding: 0.75rem 0.875rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.nf-radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nf-radio-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
}

.nf-radio-hint {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	color: var(--nf-steel);
}

.nf-radio:has(input:checked) {
	border-color: var(--nf-coral);
	background: rgba(224, 120, 86, 0.08);
	box-shadow: 0 0 0 1px var(--nf-coral);
}

/* Chips (zonas multi) */
.nf-chip-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nf-chip {
	cursor: pointer;
}

.nf-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nf-chip span {
	display: inline-block;
	border: 1px solid rgba(34, 48, 60, 0.18);
	border-radius: 999px;
	background: #fff;
	padding: 0.375rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--nf-tinta);
	transition: all 0.15s ease;
}

.nf-chip:has(input:checked) span {
	background: var(--nf-coral);
	border-color: var(--nf-coral);
	color: var(--nf-blanco);
}

/* Errores */
.nf-error,
.nf-form-error {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--nf-error);
	min-height: 0;
}

.nf-form-error {
	font-size: 0.85rem;
	text-align: center;
}

.has-error .nf-input {
	border-color: var(--nf-error);
}

/* Botón */
.nf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--nf-coral);
	color: var(--nf-blanco);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.9rem 1.75rem;
	cursor: pointer;
	box-shadow: 0 10px 30px -8px rgba(224, 120, 86, 0.45);
	transition: background 0.15s ease, transform 0.15s ease;
}

.nf-submit:hover {
	background: var(--nf-coral-dark);
	transform: translateY(-1px);
}

.nf-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.nf-note {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.75rem;
	color: var(--nf-steel);
}

/* Éxito */
.nf-success {
	text-align: center;
	padding: 1rem 0;
	outline: none;
}

.nf-success-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(74, 107, 138, 0.14);
	color: var(--nf-steel);
	font-size: 1.75rem;
	font-weight: 700;
}

.nf-success-title {
	margin: 1rem 0 0;
	font-size: 1.15rem;
	font-weight: 700;
}

.nf-success-text {
	margin: 0.5rem auto 0;
	max-width: 24rem;
	font-size: 0.875rem;
	color: var(--nf-steel);
}

.nf-success-wa {
	display: inline-block;
	margin-top: 1.1rem;
	border-radius: 999px;
	background: var(--nf-coral);
	color: var(--nf-blanco) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.75rem 1.5rem;
	box-shadow: 0 10px 30px -8px rgba(224, 120, 86, 0.45);
}

.nf-success-wa:hover {
	background: var(--nf-coral-dark);
}

/* Waitlist inline */
.nf-inline-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.nf-field-inline {
	flex: 1 1 220px;
}

.nf-submit-inline {
	width: auto;
	margin-top: 0;
	white-space: nowrap;
}

.nf-success-inline {
	padding: 0.5rem 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
