/* =============================================================================
   HandyHand – Tracker Stylesheet  (hh-tracker.css)
   Place in your child theme root and enqueue from hh-4-frontend.php
   ============================================================================= */

/* ── Tracker form wrapper ───────────────────────────────────────────────────── */
.hh-tracker-form {
	max-width: 520px;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
}

.hh-tracker-form h3 {
	margin-top: 0;
}

/* ── Generic form inputs ────────────────────────────────────────────────────── */
.hh-input {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

/* ── Submit / CTA button ────────────────────────────────────────────────────── */
.hh-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #008037;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	cursor: pointer;
}

.hh-btn:hover {
	background: #006830;
}

/* ── Error message ──────────────────────────────────────────────────────────── */
.hh-error {
	color: #b00;
	margin: 8px 0 0;
}

/* ── Tracker results box ────────────────────────────────────────────────────── */
.hh-tracker-box {
	max-width: 720px;
	margin-top: 18px;
	padding: 20px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ── Current status panel ───────────────────────────────────────────────────── */
.hh-current-status {
	background: #e9f7f0;
	border-left: 6px solid #008037;
	padding: 16px 18px;
	border-radius: 8px;
	margin-bottom: 22px;
}

.hh-current-status h3 {
	margin: 0 0 10px;
	font-size: 22px;
	color: #008037;
	font-weight: 700;
}

.hh-current-status .hh-status-update {
	font-size: 15px;
	line-height: 1.5;
	color: #1b5e3a;
}

.hh-current-status .hh-status-time {
	font-weight: 600;
	margin-right: 6px;
}

/* ── Job details ────────────────────────────────────────────────────────────── */
.hh-job-details {
	padding: 16px 0;
	border-top: 1px dashed #ddd;
	border-bottom: 1px dashed #ddd;
	margin-bottom: 20px;
}

.hh-job-details p {
	margin: 6px 0;
	font-size: 14.5px;
	color: #333;
}

.hh-job-details strong {
	color: #111;
}

/* ── Issue details ──────────────────────────────────────────────────────────── */
.hh-issue-details {
	background: #f9f9f9;
	padding: 14px 16px;
	border-radius: 8px;
	margin: 16px 0;
	font-size: 14.5px;
	line-height: 1.6;
}

/* ── Uploads list ───────────────────────────────────────────────────────────── */
.hh-uploads {
	margin-top: 16px;
}

.hh-uploads ul {
	padding-left: 18px;
	margin: 8px 0;
}

.hh-uploads li {
	margin-bottom: 6px;
}

.hh-uploads a {
	color: #008037;
	text-decoration: none;
}

.hh-uploads a:hover {
	text-decoration: underline;
}

/* ── Image previews ─────────────────────────────────────────────────────────── */
.hh-upload-images {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.hh-upload-images img {
	width: 120px;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #ddd;
}

/* ── Previous updates section ───────────────────────────────────────────────── */
.hh-previous-updates {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.hh-previous-updates p {
	font-size: 14px;
	margin-bottom: 8px;
	color: #444;
}

/* ── Show/hide toggle link ──────────────────────────────────────────────────── */
.hh-toggle-updates {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	color: #008037;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
}

.hh-toggle-updates:hover {
	text-decoration: underline;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.hh-current-status h3 {
		font-size: 20px;
	}

	.hh-tracker-box {
		padding: 16px;
	}

	.hh-tracker-form {
		max-width: 100%;
	}
}
