/* Niksa Form — estilos del formulario público */
.niksa-form-wrap {
	--niksa-accent: #6d5efc;
	--niksa-accent-soft: rgba(109, 94, 252, 0.12);
	--niksa-border: #e2e5ee;
	--niksa-text: #1f2430;
	--niksa-muted: #8089a0;
	--niksa-bg: #ffffff;
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--niksa-text);
}

.niksa-form {
	background: var(--niksa-bg);
	border: 1px solid var(--niksa-border);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 18px 50px -22px rgba(31, 36, 48, 0.35);
	position: relative;
	overflow: hidden;
}

.niksa-form::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, var(--niksa-accent), #b18cff);
}

.niksa-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.niksa-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.niksa-label {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--niksa-text);
}

.niksa-req {
	color: #e2483c;
}

.niksa-field input[type="text"],
.niksa-field input[type="email"],
.niksa-field input[type="tel"],
.niksa-field input[type="number"],
.niksa-field input[type="date"],
.niksa-field textarea,
.niksa-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1.5px solid var(--niksa-border);
	border-radius: 12px;
	font-size: 15px;
	color: var(--niksa-text);
	background: #fbfbfe;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	font-family: inherit;
}

.niksa-field textarea {
	resize: vertical;
	min-height: 96px;
}

.niksa-field input:focus,
.niksa-field textarea:focus,
.niksa-field select:focus {
	outline: none;
	border-color: var(--niksa-accent);
	background: #fff;
	box-shadow: 0 0 0 4px var(--niksa-accent-soft);
}

.niksa-field input.niksa-invalid {
	border-color: #e2483c;
	box-shadow: 0 0 0 4px rgba(226, 72, 60, 0.12);
}

.niksa-error-hint {
	color: #e2483c;
	font-size: 12.5px;
}

/* Opciones (radio / checkbox) */
.niksa-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.niksa-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1.5px solid var(--niksa-border);
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	transition: border-color 0.15s, background 0.15s;
}

.niksa-choice:hover {
	border-color: var(--niksa-accent);
}

.niksa-choice input {
	accent-color: var(--niksa-accent);
}

/* Dropzone de archivos */
.niksa-dropzone {
	position: relative;
	border: 2px dashed var(--niksa-border);
	border-radius: 14px;
	background: #fafaff;
	transition: border-color 0.18s, background 0.18s;
}

.niksa-dropzone.is-drag,
.niksa-dropzone:hover {
	border-color: var(--niksa-accent);
	background: var(--niksa-accent-soft);
}

.niksa-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.niksa-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 16px;
	text-align: center;
	color: var(--niksa-muted);
	pointer-events: none;
}

.niksa-dropzone-inner svg {
	color: var(--niksa-accent);
}

.niksa-dropzone-text {
	font-size: 14px;
	font-weight: 500;
	color: var(--niksa-text);
}

.niksa-dropzone-hint {
	font-size: 12px;
	color: var(--niksa-muted);
}

.niksa-file-list {
	list-style: none;
	margin: 0;
	padding: 0 12px 12px;
}

.niksa-file-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--niksa-border);
	border-radius: 10px;
	padding: 8px 12px;
	margin-top: 8px;
	font-size: 13px;
}

.niksa-file-list .niksa-file-remove {
	background: none;
	border: none;
	color: #e2483c;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

/* Botón */
.niksa-actions {
	margin-top: 26px;
}

.niksa-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 22px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--niksa-accent), #9b5efc);
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s;
	box-shadow: 0 12px 26px -10px var(--niksa-accent);
}

.niksa-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 32px -10px var(--niksa-accent);
}

.niksa-submit:active {
	transform: translateY(0);
}

.niksa-submit[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.niksa-spinner {
	width: 17px;
	height: 17px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: niksa-spin 0.7s linear infinite;
}

@keyframes niksa-spin {
	to { transform: rotate(360deg); }
}

/* Mensajes */
.niksa-message {
	margin-top: 16px;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 14px;
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f6c9c4;
}

.niksa-success {
	text-align: center;
	padding: 44px 24px;
	border: 1px solid var(--niksa-border);
	border-radius: 20px;
	background: var(--niksa-bg);
	animation: niksa-pop 0.35s ease;
}

.niksa-success-icon {
	width: 78px;
	height: 78px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--niksa-accent-soft);
	color: var(--niksa-accent);
}

.niksa-success-text {
	font-size: 16px;
	font-weight: 500;
	color: var(--niksa-text);
}

@keyframes niksa-pop {
	0% { transform: scale(0.96); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

/* Honeypot */
.niksa-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.niksa-form-notice {
	border: 1px dashed #d0a000;
	background: #fff8e1;
	color: #8a6d00;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
}

@media (max-width: 600px) {
	.niksa-form { padding: 22px; border-radius: 16px; }
}
