/* =============================================================================
   HandyHand – Accounts & Dashboards Stylesheet  (hh-accounts.css)
   Covers: registration forms, login, dashboards, job cards, status badges.
   Place in child theme root alongside hh-tracker.css
   ============================================================================= */

/* ── Base variables ─────────────────────────────────────────────────────────── */
:root {
	--hh-green:       #008037;
	--hh-green-dark:  #006830;
	--hh-green-light: #e9f7f0;
	--hh-border:      #e2e2e2;
	--hh-text:        #1a1a1a;
	--hh-muted:       #666;
	--hh-error:       #b00020;
	--hh-error-bg:    #fff0f1;
	--hh-success-bg:  #e9f7f0;
	--hh-radius:      10px;
	--hh-shadow:      0 4px 16px rgba(0,0,0,0.06);
}

/* ── Form wrapper ───────────────────────────────────────────────────────────── */
.hh-form-wrap {
	max-width: 640px;
	margin: 24px auto;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
}

.hh-form-wrap.hh-form-narrow {
	max-width: 440px;
}

.hh-form-title {
	margin: 0 0 6px;
	font-size: 22px;
	color: var(--hh-text);
}

.hh-form-sub {
	margin: 0 0 24px;
	color: var(--hh-muted);
	font-size: 14px;
}

/* ── Form sections ──────────────────────────────────────────────────────────── */
.hh-form-section {
	margin-bottom: 24px;
}

.hh-section-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--hh-green);
	margin: 0 0 14px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--hh-green-light);
}

.hh-form-note {
	font-size: 13px;
	color: var(--hh-muted);
	background: #fffbea;
	border-left: 4px solid #f5a623;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
}

/* ── Fields ─────────────────────────────────────────────────────────────────── */
.hh-field {
	margin-bottom: 14px;
}

.hh-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--hh-text);
	margin-bottom: 5px;
}

.hh-req {
	color: var(--hh-error);
}

.hh-input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 7px;
	box-sizing: border-box;
	background: #fff;
	color: var(--hh-text);
	transition: border-color 0.15s;
}

.hh-input:focus {
	outline: none;
	border-color: var(--hh-green);
	box-shadow: 0 0 0 3px rgba(0,128,55,0.12);
}

.hh-hint {
	display: block;
	font-size: 12px;
	color: var(--hh-muted);
	margin-top: 4px;
}

/* ── Checkboxes ─────────────────────────────────────────────────────────────── */
.hh-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}

.hh-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.4;
}

.hh-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	accent-color: var(--hh-green);
	flex-shrink: 0;
}

.hh-popia {
	font-size: 13px;
	color: var(--hh-muted);
	line-height: 1.5;
}

.hh-popia a {
	color: var(--hh-green);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.hh-btn {
	display: inline-block;
	padding: 11px 20px;
	background: var(--hh-green);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}

.hh-btn:hover {
	background: var(--hh-green-dark);
	color: #fff !important;
}

.hh-btn-full {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.hh-btn-outline {
	display: inline-block;
	padding: 9px 18px;
	background: transparent;
	color: var(--hh-green) !important;
	border: 2px solid var(--hh-green);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}

.hh-btn-outline:hover {
	background: var(--hh-green);
	color: #fff !important;
}

/* ── Links ──────────────────────────────────────────────────────────────────── */
.hh-link {
	color: var(--hh-green);
	text-decoration: none;
}

.hh-link:hover {
	text-decoration: underline;
}

/* ── Form divider ───────────────────────────────────────────────────────────── */
.hh-form-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--hh-muted);
	font-size: 13px;
}

.hh-form-divider::before,
.hh-form-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--hh-border);
}

/* ── Feedback boxes ─────────────────────────────────────────────────────────── */
.hh-error-box {
	background: var(--hh-error-bg);
	border-left: 5px solid var(--hh-error);
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	color: var(--hh-error);
	font-size: 14px;
}

.hh-error-box ul {
	margin: 0;
	padding-left: 18px;
}

.hh-error-box li {
	margin-bottom: 4px;
}

.hh-error-box a {
	color: var(--hh-error);
}

.hh-success-box {
	background: var(--hh-success-bg);
	border-left: 5px solid var(--hh-green);
	padding: 20px 24px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hh-success-box h3 {
	margin: 0 0 8px;
	color: var(--hh-green);
}

.hh-notice {
	background: #f0f0f0;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 15px;
}

.hh-info-box {
	max-width: 540px;
	margin: 40px auto;
	text-align: center;
	padding: 40px 32px;
	background: #fff;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
}

.hh-info-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.hh-info-box h2 {
	margin: 0 0 12px;
	color: var(--hh-text);
}

.hh-info-box p {
	color: var(--hh-muted);
	line-height: 1.6;
}

/* ── Dashboard layout ───────────────────────────────────────────────────────── */
.hh-dashboard {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 0 40px;
}

.hh-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 24px 0 20px;
	border-bottom: 2px solid var(--hh-green-light);
	margin-bottom: 28px;
}

.hh-dashboard-greeting {
	margin: 0 0 4px;
	font-size: 24px;
	color: var(--hh-text);
}

.hh-dashboard-sub {
	margin: 0;
	color: var(--hh-muted);
	font-size: 14px;
}

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

.hh-logout-link {
	font-size: 13px;
	color: var(--hh-muted) !important;
}

/* ── Stats row ──────────────────────────────────────────────────────────────── */
.hh-stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 28px;
}

.hh-stat-card {
	background: #fff;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	padding: 18px;
	text-align: center;
	box-shadow: var(--hh-shadow);
}

.hh-stat-num {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: var(--hh-green);
	line-height: 1;
}

.hh-stat-label {
	display: block;
	font-size: 12px;
	color: var(--hh-muted);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Job cards ──────────────────────────────────────────────────────────────── */
.hh-job-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hh-job-card {
	background: #fff;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	overflow: hidden;
	transition: box-shadow 0.15s;
}

.hh-job-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

.hh-job-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid var(--hh-border);
	background: #fafafa;
}

.hh-job-service {
	font-weight: 700;
	font-size: 15px;
	color: var(--hh-text);
}

.hh-job-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.2px;
}

.hh-job-card-body {
	padding: 14px 18px;
}

.hh-job-update {
	font-size: 14px;
	color: var(--hh-text);
	margin: 0 0 8px;
	line-height: 1.5;
}

.hh-job-time {
	font-weight: 600;
	color: var(--hh-muted);
}

.hh-job-ref {
	font-size: 12px;
	color: var(--hh-muted);
	margin: 0;
}

.hh-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: var(--hh-muted);
	margin: 0 0 8px;
}

.hh-job-desc {
	font-size: 14px;
	color: #444;
	margin: 0;
	line-height: 1.5;
}

.hh-job-card-footer {
	padding: 12px 18px;
	border-top: 1px solid var(--hh-border);
	background: #fafafa;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.hh-empty-state {
	text-align: center;
	padding: 48px 24px;
	background: #fafafa;
	border: 2px dashed var(--hh-border);
	border-radius: var(--hh-radius);
}

.hh-empty-state p {
	color: var(--hh-muted);
	font-size: 15px;
	margin-bottom: 18px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.hh-form-wrap {
		padding: 20px 16px;
		margin: 12px;
		border-radius: 8px;
	}

	.hh-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.hh-stats-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.hh-stat-card {
		padding: 12px 8px;
	}

	.hh-stat-num {
		font-size: 24px;
	}

	.hh-checkbox-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hh-job-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.hh-job-meta {
		flex-direction: column;
		gap: 4px;
	}

	.hh-form-divider + div {
		flex-direction: column;
	}

	.hh-info-box {
		margin: 20px 12px;
		padding: 28px 20px;
	}
}
