/* ============================================================
   Tracking Page Styles - Highfort Shipping
   ============================================================ */

.hf-tracking-section {
	padding: 60px 0 80px;
}

.hf-back-home {
	margin-bottom: 20px;
}

.hf-back-home a {
	color: var(--pbmit-secondary-color, #0d1b3e);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.hf-back-home a:hover {
	color: var(--pbmit-global-color, #ff4a17);
}

/* Search box */
.hf-track-search {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 35px 30px;
	margin-bottom: 35px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.hf-section-title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 10px;
}

.hf-search-desc {
	color: #666;
	max-width: 640px;
	margin: 0 auto 22px;
}

.hf-track-form-row {
	display: flex;
	gap: 12px;
	max-width: 640px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.hf-track-form-row input.form-control {
	flex: 1 1 300px;
	height: 54px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0 18px;
	color: #000;
	-webkit-text-fill-color: #000;
	background: #fff;
}

.hf-track-form-row input.form-control::placeholder {
	color: #777;
	-webkit-text-fill-color: #777;
	opacity: 1;
}

.hf-track-message {
	margin-top: 15px;
	font-weight: 600;
	min-height: 24px;
}

.hf-track-message.error { color: #dc3545; }
.hf-track-message.ok { color: #28a745; }

/* Cards */
.hf-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 28px;
	margin-bottom: 25px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
}

.hf-card-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f2f2f2;
}

.hf-card-title small {
	font-size: 13px;
	color: #888;
	font-weight: 400;
}

.hf-card-title i {
	color: var(--pbmit-global-color, #ff4a17);
	margin-right: 6px;
}

.hf-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	font-weight: 600;
}

/* Status header */
.hf-status-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.hf-tracking-number {
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.hf-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 30px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-badge-verified {
	background: #e6f7ec;
	color: #1d9e50;
}

.hf-status-current {
	text-align: right;
}

.hf-status-pill {
	display: inline-block;
	font-size: 17px;
	font-weight: 700;
	padding: 6px 18px;
	border-radius: 30px;
	margin: 6px 0;
	background: #fff3e0;
	color: #e65100;
	border: 1px solid #ffd9a0;
}

.hf-status-pill.st-delivered { background: #e6f7ec; color: #1d9e50; border-color: #a9e3c0; }
.hf-status-pill.st-on-the-way { background: #e3f0ff; color: #1662c4; border-color: #a8caff; }
.hf-status-pill.st-order-confirmed { background: #eef0ff; color: #4a54c9; border-color: #bfc4f5; }
.hf-status-pill.st-custom-hold { background: #fff3e0; color: #e65100; border-color: #ffd9a0; }

.hf-last-updated {
	margin-top: 4px;
}

/* Sender / receiver */
.hf-party-name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 6px;
}

.hf-party-line {
	color: #555;
	line-height: 1.7;
}

.hf-two-col .hf-card {
	height: 100%;
}

.hf-two-col {
	margin-bottom: 0;
}

.hf-two-col .col-md-6 {
	margin-bottom: 25px;
}

/* Info lists */
.hf-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hf-info-list li {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 9px 0;
	border-bottom: 1px dashed #eee;
}

.hf-info-list li:last-child { border-bottom: none; }

.hf-info-list li span {
	color: #777;
	font-weight: 600;
	font-size: 14px;
}

.hf-info-list li b {
	text-align: right;
	font-weight: 600;
}

.hf-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 30px;
}

@media (max-width: 575px) {
	.hf-info-grid { grid-template-columns: 1fr; }
}

/* Progress */
.hf-progress {
	display: flex;
	justify-content: space-between;
	position: relative;
	padding: 10px 0 0;
	flex-wrap: wrap;
	gap: 10px;
}

.hf-progress-step {
	flex: 1;
	min-width: 120px;
	text-align: center;
	position: relative;
	padding-top: 34px;
}

.hf-progress-step::before {
	content: '';
	position: absolute;
	top: 9px;
	left: 50%;
	right: -50%;
	height: 3px;
	background: #e5e5e5;
}

.hf-progress-step:last-child::before { display: none; }

.hf-progress-step.done::before { background: #1d9e50; }

.hf-progress-dot {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e5e5e5;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px #e5e5e5;
}

.hf-progress-step.done .hf-progress-dot {
	background: #1d9e50;
	box-shadow: 0 0 0 2px #1d9e50;
}

.hf-progress-step.active .hf-progress-dot {
	background: #e65100;
	box-shadow: 0 0 0 2px #e65100;
}

.hf-progress-label {
	font-weight: 700;
	font-size: 15px;
}

.hf-progress-date {
	font-size: 13px;
	color: #777;
	margin-top: 2px;
}

.hf-progress-note {
	font-size: 12px;
	color: #999;
}

/* Mobile: show the progress timeline vertically (dots on the left, line running down) */
@media (max-width: 767px) {
	.hf-progress {
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		padding: 4px 0 0;
		overflow: visible;
	}

	.hf-progress-step {
		flex: none;
		min-width: 0;
		width: 100%;
		text-align: left;
		padding: 0 0 26px 42px;
	}

	.hf-progress-step:last-child {
		padding-bottom: 0;
	}

	.hf-progress-dot {
		top: 0;
		left: 0;
		transform: none;
	}

	.hf-progress-step::before {
		top: 22px;
		bottom: 0;
		left: 10px;
		right: auto;
		width: 3px;
		height: auto;
	}

	.hf-progress-label {
		font-size: 15px;
		line-height: 22px;
	}
}

/* History */
.hf-history-item {
	position: relative;
	padding: 0 0 22px 28px;
	border-left: 2px solid #eee;
	margin-left: 8px;
}

.hf-history-item:last-child { padding-bottom: 0; }

.hf-history-item::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #ff4a17;
}

.hf-history-date {
	font-size: 13px;
	color: #888;
	font-weight: 600;
}

.hf-history-status {
	font-weight: 700;
	font-size: 16px;
	margin: 2px 0;
}

.hf-history-message {
	color: #555;
	line-height: 1.6;
}

/* Route */
.hf-route {
	padding: 10px 0;
}

.hf-route-stop {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.hf-route-marker {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hf-marker-a { background: #1d9e50; }
.hf-marker-b { background: #e65100; }
.hf-marker-c { background: #1662c4; }

.hf-route-title {
	font-weight: 700;
	font-size: 16px;
}

.hf-route-text { color: #555; }

.hf-route-updated {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

.hf-route-line {
	width: 3px;
	height: 42px;
	background: repeating-linear-gradient(#ddd, #ddd 5px, #fff 5px, #fff 10px);
	margin: 4px 0 4px 19px;
}

.hf-route-distance {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px dashed #eee;
	font-weight: 600;
	color: #555;
}

/* Parcel */
.hf-parcel {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.hf-parcel-photo {
	flex: 0 0 220px;
	text-align: center;
}

.hf-parcel-photo img {
	width: 100%;
	border-radius: 8px;
	border: 1px solid #eee;
}

.hf-parcel-photo-caption {
	font-size: 13px;
	color: #888;
	margin-top: 8px;
}

.hf-parcel-details {
	flex: 1 1 320px;
}

/* Result view: hide the search block, show a back button */
.hf-tracking-section.hf-show-result .hf-track-search,
.hf-tracking-section.hf-show-result .hf-back-home {
	display: none;
}

.hf-back-search {
	margin-bottom: 20px;
}

.hf-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--pbmit-secondary-color, #0d1b3e);
	border: 1px solid var(--pbmit-secondary-color, #0d1b3e);
	border-radius: 6px;
	padding: 11px 22px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.hf-back-btn:hover {
	background: var(--pbmit-secondary-color, #0d1b3e);
	color: #fff;
}

.hf-print-row .hf-back-btn {
	margin-right: 12px;
}

.hf-print-row {
	margin-top: 25px;
	text-align: center;
}

/* Print receipt */
@media print {
	.site-header,
	.site-footer,
	.hf-track-search,
	.hf-back-home,
	.hf-back-search,
	.hf-back-btn,
	.hf-print-row,
	.pbmit-backtotop,
	.pbmit-search-overlay {
		display: none !important;
	}

	body { background: #fff !important; }

	.hf-card {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		break-inside: avoid;
	}
}
