/**
 * University Portal -- plugin-owned styling, deliberately self-contained
 * so this flow keeps working and looking reasonable no matter which theme
 * is active (the whole point of registering everything in PHP rather than
 * relying on the theme/page-builder).
 */

.unf-registration,
.unf-dashboard {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: #1f2430;
}

.unf-dashboard {
	max-width: 1000px;
}

/* Honeypot: hidden via CSS, not type="hidden", so simple bots that only
   skip literal hidden inputs still get caught. */
.unf-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.unf-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.unf-card-narrow {
	max-width: 460px;
	margin: 40px auto;
}

.unf-breadcrumb {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}
.unf-breadcrumb a {
	color: #6b7280;
	text-decoration: none;
}

.unf-form-row {
	margin-bottom: 16px;
}
.unf-form-row label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}
.unf-form-row .req {
	color: #dc2626;
}
.unf-form-row input[type="text"],
.unf-form-row input[type="email"],
.unf-form-row input[type="tel"],
.unf-form-row input[type="password"],
.unf-form-row select,
.unf-form-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}
.unf-form-row input.unf-invalid,
.unf-form-row textarea.unf-invalid {
	border-color: #dc2626;
}
.unf-form-row-half {
	display: flex;
	gap: 16px;
}
.unf-form-row-half > div {
	flex: 1;
}
@media (max-width: 480px) {
	.unf-form-row-half {
		flex-direction: column;
		gap: 0;
	}
}

.unf-field-error {
	color: #dc2626;
	font-size: 12px;
	margin: 4px 0 0;
	min-height: 14px;
}
.unf-form-error {
	color: #dc2626;
	font-size: 14px;
	margin: 12px 0;
}
.unf-form-error:empty {
	display: none;
}
.unf-form-success {
	color: #15803d;
	font-size: 14px;
	margin: 12px 0;
}
.unf-form-success:empty {
	display: none;
}
.unf-hint {
	font-size: 12px;
	color: #6b7280;
	margin: 4px 0 0;
}

.unf-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.unf-btn-primary {
	background: #0b3d91;
	color: #ffffff;
}
.unf-btn-primary:hover {
	background: #092f70;
	color: #ffffff;
}
.unf-btn-secondary {
	background: #eef1f6;
	color: #1f2430;
}
.unf-link-btn {
	background: none;
	border: none;
	color: #0b3d91;
	cursor: pointer;
	padding: 0;
	font-size: 13px;
	text-decoration: underline;
}

.unf-review-list {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 6px 12px;
	margin: 0;
}
.unf-review-list dt {
	font-weight: 600;
	color: #6b7280;
}
.unf-review-list dd {
	margin: 0;
}
.unf-review-card {
	margin-bottom: 16px;
}

.unf-strength-meter {
	height: 6px;
	background: #e5e7eb;
	border-radius: 4px;
	margin-top: 8px;
	overflow: hidden;
}
.unf-strength-meter span {
	display: block;
	height: 100%;
	width: 0%;
	background: #dc2626;
	transition: width 0.2s ease, background 0.2s ease;
}
.unf-strength-meter.unf-strength-weak span {
	width: 33%;
	background: #dc2626;
}
.unf-strength-meter.unf-strength-medium span {
	width: 66%;
	background: #d97706;
}
.unf-strength-meter.unf-strength-strong span {
	width: 100%;
	background: #15803d;
}

.unf-success-card {
	text-align: center;
	padding: 32px;
}

.unf-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.unf-notice-success {
	background: #ecfdf3;
	color: #15803d;
	border: 1px solid #a7f3d0;
}

.unf-dash-header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.unf-dash-header h1 {
	font-size: 22px;
	margin: 0;
}
.unf-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}
.unf-badge-premium {
	background: #fef3c7;
	color: #92400e;
}
.unf-badge-standard {
	background: #eef1f6;
	color: #4b5563;
}

.unf-dash-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.unf-dash-nav {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.unf-dash-nav-link {
	padding: 10px 14px;
	border-radius: 6px;
	color: #1f2430;
	text-decoration: none;
	font-size: 14px;
}
.unf-dash-nav-link:hover {
	background: #f4f5f7;
}
.unf-dash-nav-link.is-active {
	background: #0b3d91;
	color: #ffffff;
}
.unf-dash-content {
	flex: 1;
	min-width: 0;
}
@media (max-width: 700px) {
	.unf-dash-layout {
		flex-direction: column;
	}
	.unf-dash-nav {
		flex: none;
		flex-direction: row;
		overflow-x: auto;
	}
}

.unf-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.unf-card-stat {
	font-size: 28px;
	font-weight: 700;
	margin: 4px 0 12px;
}

.unf-followers-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.unf-followers-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f1f4;
}
.unf-followers-list img {
	border-radius: 50%;
}

.unf-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	font-size: 14px;
}
.unf-table th,
.unf-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #f0f1f4;
}

.unf-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.unf-status-pending {
	background: #fef3c7;
	color: #92400e;
}
.unf-status-verified {
	background: #ecfdf3;
	color: #15803d;
}
