/**
 * Complaint Management System Pro -- public-facing styles.
 *
 * Scoped entirely under .cmp-form-wrap so it never leaks into the
 * host theme; uses generic, theme-agnostic styling since we can't
 * assume any particular WordPress theme's design tokens.
 */

.cmp-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
}

.cmp-form-wrap p {
	margin: 0 0 14px;
}

.cmp-form-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cmp-required {
	color: #d63638;
}

.cmp-form-wrap input[type='text'],
.cmp-form-wrap input[type='email'],
.cmp-form-wrap input[type='tel'],
.cmp-form-wrap select,
.cmp-form-wrap textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 15px;
}

.cmp-form-wrap textarea {
	min-height: 120px;
}

.cmp-hint {
	display: block;
	font-size: 12px;
	color: #646970;
	font-weight: 400;
	margin-top: 4px;
}

.cmp-form-wrap input[type='file'] {
	width: 100%;
	box-sizing: border-box;
}

.cmp-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.cmp-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.cmp-btn-primary {
	background: #2271b1;
	color: #fff;
}

.cmp-btn-primary:hover {
	background: #135e96;
}

.cmp-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.cmp-notice-success {
	background: #e6f4ea;
	color: #1e6b34;
	border: 1px solid #b6dfc2;
}

.cmp-notice-error {
	background: #fbe4e4;
	color: #a4262c;
	border: 1px solid #f1b3b5;
}

.cmp-notice ul {
	margin: 0;
	padding-left: 18px;
}

.cmp-track-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.cmp-track-form label {
	width: 100%;
}

.cmp-track-table {
	width: 100%;
	border-collapse: collapse;
}

.cmp-track-table th {
	text-align: left;
	width: 160px;
	padding: 8px 0;
	vertical-align: top;
	font-weight: 600;
}

.cmp-track-table td {
	padding: 8px 0;
}

.cmp-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background: #f0f0f1;
}

/* Home page (Screen 1) -- scoped under .cmp-home-wrap so it never
 * leaks into the host theme, matching the rest of this stylesheet's
 * convention. Colors intentionally mirror the reference mockup's
 * navy/blue civic-portal palette. */

.cmp-home-wrap {
	max-width: 1100px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
}

.cmp-home-hero {
	background: linear-gradient(135deg, #0b1e3d, #14336b);
	color: #fff;
	border-radius: 8px;
	padding: 48px 32px;
	margin-bottom: 24px;
	text-align: center;
}

.cmp-home-hero-text h1 {
	color: #fff;
	font-size: 32px;
	margin: 0 0 12px;
}

.cmp-home-hero-text p {
	max-width: 560px;
	margin: 0 auto 24px;
	color: #cfd8ea;
}

.cmp-home-hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.cmp-home-wrap .cmp-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
}

.cmp-home-wrap .cmp-btn-primary {
	background: #2563eb;
	color: #fff;
}

.cmp-home-wrap .cmp-btn-secondary {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.cmp-home-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.cmp-stat-card {
	background: #f6f7f9;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	padding: 18px;
	text-align: center;
}

.cmp-stat-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: #0b1e3d;
}

.cmp-stat-label {
	display: block;
	font-size: 13px;
	color: #646970;
	margin-top: 4px;
}

.cmp-home-categories h2 {
	font-size: 20px;
	margin-bottom: 16px;
}

.cmp-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.cmp-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 8px;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	text-decoration: none;
	color: #1d2327;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cmp-category-tile:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.cmp-category-icon {
	font-size: 26px;
}

.cmp-category-name {
	font-size: 13px;
	text-align: center;
	font-weight: 600;
}

@media (max-width: 600px) {
	.cmp-home-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Citizen auth screens (register/OTP/login/forgot password) --
 * scoped under .cmp-auth-wrap, built on top of the same .cmp-form-wrap
 * base styles as the complaint form. */

.cmp-auth-wrap {
	max-width: 480px;
}

.cmp-form-row {
	display: flex;
	gap: 16px;
}

.cmp-form-row p {
	flex: 1;
	min-width: 0;
}

.cmp-auth-switch {
	text-align: center;
	font-size: 14px;
	margin-top: 12px;
}

@media (max-width: 480px) {
	.cmp-form-row {
		flex-direction: column;
		gap: 0;
	}
}

.cmp-home-hero-auth {
	margin-top: 16px;
	font-size: 14px;
	color: #cfd8ea;
}

.cmp-home-hero-auth a {
	color: #fff;
	text-decoration: underline;
}

.cmp-home-hero-greeting {
	font-weight: 600;
	color: #fff;
}

/* Citizen dashboard (Screen 6) */

.cmp-dashboard-wrap {
	font-size: 15px;
}

.cmp-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.cmp-dashboard-header h1 {
	margin: 0 0 4px;
	font-size: 24px;
}

.cmp-dashboard-header p {
	margin: 0;
	color: #646970;
}

.cmp-dashboard-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cmp-dashboard-columns {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: start;
}

.cmp-dashboard-main,
.cmp-dashboard-sidebar {
	background: #fff;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	padding: 20px;
}

.cmp-dashboard-main h2,
.cmp-dashboard-sidebar h2 {
	margin-top: 0;
	font-size: 17px;
}

.cmp-dashboard-table {
	margin-top: 12px;
}

.cmp-dashboard-table th,
.cmp-dashboard-table td {
	padding: 10px 6px;
	border-bottom: 1px solid #f0f0f1;
	width: auto;
}

.cmp-empty-state {
	color: #646970;
	padding: 16px 0;
}

.cmp-dashboard-pagination {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.cmp-dashboard-pagination a,
.cmp-page-current {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #e2e4e8;
	text-decoration: none;
}

.cmp-page-current {
	background: #0b1e3d;
	color: #fff;
	border-color: #0b1e3d;
}

.cmp-notification-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cmp-notification-list li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
}

.cmp-notification-list li:last-child {
	border-bottom: none;
}

.cmp-notification-list p {
	margin: 0 0 4px;
}

@media (max-width: 780px) {
	.cmp-dashboard-columns {
		grid-template-columns: 1fr;
	}
}
