.nexusa-apf-outer { width: 100%; }
.nexusa-apf-wrap { box-sizing: border-box; }
.nexusa-apf-wrap * { box-sizing: border-box; }

.nexusa-apf-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}

.nexusa-apf-step-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.nexusa-apf-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.nexusa-apf-step-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #1e3a8a;
}

.nexusa-apf-row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}
.nexusa-apf-row.cols-1 { grid-template-columns: 1fr; }
.nexusa-apf-row.cols-2 { grid-template-columns: 1fr 1fr; }
.nexusa-apf-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.nexusa-apf-group { display: flex; flex-direction: column; gap: 6px; }

.nexusa-apf-label {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.nexusa-apf-required { color: #dc2626; }

.nexusa-apf-field {
	width: 100%;
	font-size: 14px;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 14px;
	font-family: inherit;
	transition: border-color .15s ease;
}

.nexusa-apf-field:focus { border-color: #2563eb; outline: none; }

textarea.nexusa-apf-field { resize: vertical; min-height: 80px; }

.nexusa-apf-radio-row { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.nexusa-apf-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; cursor: pointer; }
.nexusa-apf-radio input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }

.nexusa-apf-parent-block {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	align-items: stretch;
}

.nexusa-apf-parent-tag {
	flex: 0 0 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	border-radius: 8px;
	padding: 12px 8px;
}
.nexusa-apf-parent-tag.father { background: #eef2ff; color: #3730a3; }
.nexusa-apf-parent-tag.mother { background: #fdf2f8; color: #9d174d; }

.nexusa-apf-parent-fields {
	flex: 1;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	padding: 16px;
}

.nexusa-apf-table-wrap { overflow-x: auto; margin-bottom: 20px; }

.nexusa-apf-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.nexusa-apf-table th {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	background: #f9fafb;
	padding: 10px 8px;
	border-bottom: 1px solid #e5e7eb;
}
.nexusa-apf-table td {
	padding: 8px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.nexusa-apf-exam-name { font-weight: 700; font-size: 13px; color: #111827; white-space: nowrap; }
.nexusa-apf-field-sm { padding: 8px 10px; font-size: 13px; }

.nexusa-apf-status {
	font-size: 14px;
	font-weight: 600;
	margin-top: 10px;
}
.nexusa-apf-status-success { color: #16a34a; }
.nexusa-apf-status-error { color: #dc2626; }

.nexusa-apf-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.nexusa-apf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	padding: 12px 22px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	font-family: inherit;
}

.nexusa-apf-btn-save {
	background: #fff;
	color: #2563eb;
	border-color: #2563eb;
}
.nexusa-apf-btn-save:hover { background: #eff6ff; }

.nexusa-apf-btn-submit {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
	margin-left: auto;
}
.nexusa-apf-btn-submit:hover { background: #1d4ed8; border-color: #1d4ed8; }

@media (max-width: 767px) {
	.nexusa-apf-row.cols-2,
	.nexusa-apf-row.cols-3 { grid-template-columns: 1fr; }
	.nexusa-apf-parent-block { flex-direction: column; }
	.nexusa-apf-parent-tag { flex: none; padding: 8px; }
	.nexusa-apf-actions { flex-direction: column-reverse; }
	.nexusa-apf-btn-submit { margin-left: 0; width: 100%; }
	.nexusa-apf-btn-save { width: 100%; }
}
