/**
 * RANDOM HANDS - Luxury Monochrome & Animated Front-End Tracking Stylesheet.
 * Exclusively tailored to Randomhands.net Black & White Aesthetic.
 *
 * @package RH_DPD_Tracking
 */

/* Container & Global Scope */
.rh-tracker-wrapper {
	max-width: 880px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #09090b;
	box-sizing: border-box;
}

.rh-tracker-wrapper *,
.rh-tracker-wrapper *::before,
.rh-tracker-wrapper *::after {
	box-sizing: border-box;
}

/* Master Card */
.rh-tracker-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
	border: 1px solid #e4e4e7;
	position: relative;
	overflow: hidden;
}

/* Brand Header */
.rh-tracker-header {
	text-align: center;
	margin-bottom: 32px;
}

.rh-brand-crest {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #09090b;
	color: #ffffff;
	padding: 7px 20px;
	border-radius: 999px;
	margin-bottom: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 1px solid #27272a;
}

.rh-brand-crest-title {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.rh-brand-crest-dot {
	color: #71717a;
	font-size: 14px;
}

.rh-brand-crest-sub {
	font-size: 10px;
	font-weight: 700;
	color: #a1a1aa;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.rh-tracker-title {
	font-size: 32px;
	font-weight: 900;
	color: #09090b;
	letter-spacing: -0.8px;
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.rh-tracker-subtitle {
	font-size: 15px;
	color: #52525b;
	margin: 0 auto;
	max-width: 580px;
	line-height: 1.5;
}

/* Tabs */
.rh-track-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 28px;
}

.rh-tab-btn {
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	color: #52525b;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rh-tab-btn:hover {
	background: #e4e4e7;
	color: #09090b;
}

.rh-tab-btn.active {
	background: #09090b;
	color: #ffffff;
	border-color: #09090b;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
}

/* Form Panes */
.rh-fields-pane {
	display: none;
	animation: rhFadeIn 0.3s ease-out;
}

.rh-fields-pane.active {
	display: block;
}

@keyframes rhFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.rh-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 640px) {
	.rh-form-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.rh-form-field {
	margin-bottom: 20px;
}

.rh-field-label {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: #18181b;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rh-req-star {
	color: #71717a;
	margin-left: 2px;
}

.rh-input-box {
	position: relative;
	display: flex;
	align-items: center;
}

.rh-input-prefix {
	position: absolute;
	left: 16px;
	color: #71717a;
	font-weight: 700;
	font-size: 15px;
	pointer-events: none;
}

.rh-text-input {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 42px;
	background: #fafafa;
	border: 1.5px solid #d4d4d8;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #09090b;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rh-text-input:focus {
	outline: none;
	background: #ffffff;
	border-color: #09090b;
	box-shadow: 0 0 0 4px rgba(9, 9, 11, 0.1);
}

.rh-text-input::placeholder {
	color: #a1a1aa;
	font-weight: 400;
}

/* Submit Action Button */
.rh-form-action {
	margin-top: 8px;
}

.rh-btn-track {
	width: 100%;
	height: 54px;
	background: #09090b;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.rh-btn-track:hover {
	background: #18181b;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.rh-btn-track:active {
	transform: translateY(0);
}

.rh-btn-track:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.rh-btn-content {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.rh-btn-arrow {
	font-size: 18px;
	transition: transform 0.2s;
}

.rh-btn-track:hover .rh-btn-arrow {
	transform: translateX(4px);
}

.rh-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: rhSpin 0.8s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

@keyframes rhSpin {
	to { transform: rotate(360deg); }
}

/* Error Alert */
.rh-alert-error {
	margin-top: 20px;
	padding: 16px 20px;
	background: #18181b;
	color: #ffffff;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	border-left: 5px solid #71717a;
	animation: rhShake 0.4s ease;
}

@keyframes rhShake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* ===================================================
   RESULTS VIEW & ANIMATED JOURNEY TRACKER
   =================================================== */

.rh-results-mount {
	margin-top: 36px;
}

.rh-result-view {
	animation: rhSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rhSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Hero Status Card */
.rh-hero-card {
	background: #09090b;
	color: #ffffff;
	border-radius: 18px;
	padding: 30px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
	border: 1px solid #27272a;
	margin-bottom: 30px;
}

.rh-hero-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.rh-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #18181b;
	border: 1px solid #27272a;
	padding: 5px 14px;
	border-radius: 999px;
}

.rh-pulse-radar {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
	animation: rhRadarPulse 1.8s infinite;
}

@keyframes rhRadarPulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.rh-live-text {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1.5px;
	color: #e4e4e7;
}

.rh-order-tag {
	font-size: 12px;
	font-weight: 800;
	color: #a1a1aa;
	letter-spacing: 1px;
}

.rh-hero-body-row {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 28px;
}

.rh-status-icon-frame {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: #18181b;
	border: 1px solid #27272a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	flex-shrink: 0;
	animation: rhFloatIcon 3s ease-in-out infinite;
}

@keyframes rhFloatIcon {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.rh-status-pretitle {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #a1a1aa;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.rh-status-headline {
	font-size: 26px;
	font-weight: 900;
	color: #ffffff;
	margin: 0 0 6px 0;
	letter-spacing: -0.5px;
}

.rh-status-paragraph {
	font-size: 14px;
	color: #d4d4d8;
	margin: 0;
	line-height: 1.4;
}

.rh-hero-metrics-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 12px;
	padding: 14px 18px;
}

@media (max-width: 600px) {
	.rh-hero-metrics-strip {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.rh-metric-cell {
	display: flex;
	flex-direction: column;
}

.rh-metric-lbl {
	font-size: 11px;
	font-weight: 800;
	color: #71717a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.rh-metric-data {
	font-size: 13px;
	font-weight: 700;
	color: #f4f4f5;
}

/* ===================================================
   ANIMATED 5-STEP JOURNEY BAR (FUN & HIGH-END)
   =================================================== */

.rh-journey-section {
	background: #fafafa;
	border: 1px solid #e4e4e7;
	border-radius: 18px;
	padding: 28px 24px 34px 24px;
	margin-bottom: 30px;
}

.rh-journey-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 36px;
}

.rh-journey-heading {
	font-size: 15px;
	font-weight: 900;
	color: #09090b;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.rh-journey-badge {
	font-size: 11px;
	font-weight: 800;
	background: #09090b;
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 999px;
}

.rh-progress-track-wrapper {
	position: relative;
	margin: 20px 10px;
}

.rh-progress-track-bg {
	position: absolute;
	top: 24px;
	left: 5%;
	right: 5%;
	height: 6px;
	background: #e4e4e7;
	border-radius: 999px;
	z-index: 1;
}

.rh-progress-track-fill {
	position: absolute;
	top: 24px;
	left: 5%;
	height: 6px;
	background: #09090b;
	border-radius: 999px;
	z-index: 2;
	transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* Vehicle Pointer */
.rh-track-vehicle {
	position: absolute;
	right: -18px;
	top: -34px;
	width: 36px;
	height: 36px;
	background: #09090b;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	border: 2px solid #ffffff;
	animation: rhVehicleBounce 1.5s ease-in-out infinite alternate;
}

@keyframes rhVehicleBounce {
	0% { transform: translateY(0); }
	100% { transform: translateY(-5px); }
}

.rh-step-nodes {
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 3;
}

.rh-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.rh-node-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #d4d4d8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 900;
	color: #71717a;
	margin-bottom: 12px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.rh-node.is-complete .rh-node-circle {
	background: #09090b;
	color: #ffffff;
	border-color: #09090b;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rh-node.is-active .rh-node-circle {
	background: #09090b;
	color: #ffffff;
	border-color: #09090b;
	box-shadow: 0 0 0 6px rgba(9, 9, 11, 0.15);
	transform: scale(1.12);
}

.rh-node-title {
	font-size: 13px;
	font-weight: 800;
	color: #71717a;
	display: block;
	line-height: 1.2;
}

.rh-node.is-complete .rh-node-title,
.rh-node.is-active .rh-node-title {
	color: #09090b;
	font-weight: 900;
}

.rh-node-sub {
	font-size: 10px;
	font-weight: 600;
	color: #a1a1aa;
	margin-top: 3px;
	display: block;
}

@media (max-width: 600px) {
	.rh-node-circle {
		width: 38px;
		height: 38px;
		font-size: 13px;
	}
	.rh-node-title {
		font-size: 11px;
	}
	.rh-node-sub {
		display: none;
	}
}

/* ===================================================
   TRACKING ID STRIP & COPY BUTTON
   =================================================== */

.rh-tracking-id-strip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 16px;
}

.rh-id-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #71717a;
	margin-bottom: 4px;
}

.rh-id-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rh-id-code {
	font-family: monospace;
	font-size: 15px;
	font-weight: 900;
	color: #09090b;
	background: #f4f4f5;
	padding: 5px 12px;
	border-radius: 8px;
	border: 1px solid #d4d4d8;
}

.rh-id-copy-btn {
	background: #09090b;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.rh-id-copy-btn:hover {
	background: #27272a;
	transform: translateY(-1px);
}

.rh-carrier-pill {
	display: inline-block;
	background: #09090b;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 8px;
	letter-spacing: 0.5px;
}

/* ===================================================
   CHECKPOINT HISTORY TIMELINE
   =================================================== */

.rh-timeline-card {
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 18px;
	padding: 26px;
	margin-bottom: 30px;
}

.rh-timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
	border-bottom: 1px solid #f4f4f5;
	padding-bottom: 14px;
}

.rh-timeline-title {
	font-size: 16px;
	font-weight: 900;
	color: #09090b;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rh-checkpoint-badge {
	font-size: 11px;
	font-weight: 800;
	background: #f4f4f5;
	color: #52525b;
	padding: 4px 10px;
	border-radius: 999px;
}

.rh-timeline-stream {
	position: relative;
	padding-left: 20px;
}

.rh-timeline-event {
	position: relative;
	padding-bottom: 22px;
}

.rh-timeline-event:last-child {
	padding-bottom: 0;
}

.rh-event-marker {
	position: absolute;
	left: -20px;
	top: 4px;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rh-event-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #d4d4d8;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px #e4e4e7;
	z-index: 2;
}

.rh-timeline-event.is-first-event .rh-event-dot {
	background: #09090b;
	box-shadow: 0 0 0 4px rgba(9, 9, 11, 0.2);
}

.rh-event-line {
	width: 2px;
	flex-grow: 1;
	background: #e4e4e7;
	margin-top: 4px;
}

.rh-timeline-event:last-child .rh-event-line {
	display: none;
}

.rh-event-card {
	background: #fafafa;
	border: 1px solid #f4f4f5;
	border-radius: 12px;
	padding: 14px 18px;
}

.rh-timeline-event.is-first-event .rh-event-card {
	background: #ffffff;
	border-color: #e4e4e7;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.rh-event-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.rh-event-title {
	font-size: 14px;
	font-weight: 900;
	color: #09090b;
}

.rh-event-time {
	font-size: 12px;
	font-weight: 600;
	color: #71717a;
}

.rh-event-location {
	font-size: 13px;
	font-weight: 600;
	color: #52525b;
}

.rh-event-desc {
	font-size: 12px;
	color: #71717a;
	margin: 6px 0 0 0;
	line-height: 1.4;
}

/* ===================================================
   ORDER ITEMS & DESTINATION CARD
   =================================================== */

.rh-order-summary-card {
	background: #fafafa;
	border: 1px solid #e4e4e7;
	border-radius: 18px;
	padding: 24px;
}

.rh-order-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	border-bottom: 1px solid #e4e4e7;
	padding-bottom: 12px;
}

.rh-order-summary-title {
	font-size: 15px;
	font-weight: 900;
	color: #09090b;
	margin: 0;
}

.rh-order-total-badge {
	font-size: 14px;
	font-weight: 900;
	color: #09090b;
}

.rh-order-items-table {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.rh-order-item-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 10px;
	padding: 12px 16px;
}

.rh-item-title {
	font-size: 14px;
	font-weight: 800;
	color: #09090b;
	display: block;
}

.rh-item-meta {
	font-size: 12px;
	color: #71717a;
	font-weight: 600;
}

.rh-item-subtotal {
	font-size: 14px;
	font-weight: 800;
	color: #09090b;
}

.rh-shipping-dest-box {
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	padding: 14px 18px;
}

.rh-dest-label {
	font-size: 11px;
	font-weight: 800;
	color: #71717a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 4px;
}

.rh-dest-address {
	font-size: 13px;
	color: #27272a;
	line-height: 1.5;
	font-style: normal;
}
