/* CTI Order Tracker — matched to track-order.html theme */

.cti-order-tracker {
	--navy: #0f3e57;
	--navy-deep: #0a2d3f;
	--teal: #00a8b5;
	--teal-deep: #008a95;
	--orange: #ff6b35;
	--ink: #111;
	--ink-soft: #4a5760;
	--border: rgba(15, 62, 87, 0.12);
	--paper: #f7f9fa;
	--shadow: 0 10px 30px rgba(15, 62, 87, 0.1);
	--shadow-lg: 0 20px 50px rgba(15, 62, 87, 0.16);

	font-family: "Inter", sans-serif;
	color: #fff;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.cti-order-tracker *,
.cti-order-tracker *::before,
.cti-order-tracker *::after {
	box-sizing: border-box;
}

.cti-order-tracker h1,
.cti-order-tracker h2,
.cti-order-tracker h3,
.cti-order-tracker h4 {
	font-family: "Montserrat", sans-serif;
	line-height: 1.15;
	margin: 0;
}

.cti-order-tracker a {
	text-decoration: none;
	color: inherit;
}

.cti-order-tracker .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: transform 0.18s, background 0.18s, opacity 0.18s;
	text-decoration: none;
	font-family: inherit;
	white-space: nowrap;
}

.cti-order-tracker .btn-primary {
	background: var(--teal);
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 168, 181, 0.35);
}

.cti-order-tracker .btn-primary:hover {
	background: var(--teal-deep);
	transform: translateY(-2px);
}

.cti-order-tracker .btn-primary.is-loading {
	opacity: 0.7;
	pointer-events: none;
	transform: none;
}

/* TRACKER CARD (Elementor embed) */
.cti-order-tracker .tcard {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 16px;
	padding: 36px;
	width: 100%;
}

.cti-order-tracker .tinputs {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 14px;
	align-items: start;
}

.cti-order-tracker .cti-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cti-order-tracker .tinputs input {
	width: 100%;
	padding: 15px 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
	font-size: 14.5px;
	font-family: inherit;
	outline: none;
}

.cti-order-tracker .tinputs input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.cti-order-tracker .tinputs input:focus {
	outline: 2px solid var(--teal);
	outline-offset: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.cti-order-tracker .tinputs input.is-invalid {
	border-color: #ff6b6b;
	background: rgba(255, 107, 107, 0.08);
}

.cti-order-tracker .tinputs input.is-invalid:focus {
	outline-color: #ff6b6b;
}

.cti-order-tracker .cti-field-error {
	font-size: 12px;
	font-weight: 600;
	color: #ffb4b4;
	line-height: 1.3;
	min-height: 0;
}

.cti-order-tracker .cti-field-error[hidden] {
	display: none !important;
}

.cti-order-tracker .btn-primary.is-disabled,
.cti-order-tracker .btn-primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.cti-order-tracker .btn-primary.is-disabled:hover,
.cti-order-tracker .btn-primary:disabled:hover {
	background: var(--teal);
	transform: none;
}

@media (max-width: 700px) {
	.cti-order-tracker .tcard {
		padding: 22px 18px;
	}

	.cti-order-tracker .tinputs {
		grid-template-columns: 1fr;
	}

	.cti-order-tracker .btn {
		width: 100%;
	}
}

/* RESULT PANEL */
.cti-order-tracker .result-panel {
	display: none;
	margin-top: 32px;
	animation: ctiFadeIn 0.5s ease;
}

.cti-order-tracker .result-panel.show {
	display: block;
}

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

/* VEHICLE INFO STRIP */
.cti-order-tracker .veh-strip {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.cti-order-tracker .veh-strip > svg {
	width: 28px;
	height: 28px;
	color: var(--teal);
	flex-shrink: 0;
}

.cti-order-tracker .veh-info h4 {
	color: #fff;
	font-size: 15px;
	margin: 0;
}

.cti-order-tracker .veh-info p {
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	margin: 4px 0 0;
}

.cti-order-tracker .status-badge {
	margin-left: auto;
	background: var(--teal);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	white-space: nowrap;
}

/* PROGRESS */
.cti-order-tracker .progress-track {
	position: relative;
	display: flex;
	justify-content: space-between;
	padding: 0 10px;
}

.cti-order-tracker .progress-track::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 30px;
	right: 30px;
	height: 3px;
	background: rgba(255, 255, 255, 0.18);
	z-index: 0;
}

.cti-order-tracker .progress-fill {
	position: absolute;
	top: 19px;
	left: 30px;
	height: 3px;
	background: var(--teal);
	z-index: 1;
	width: 0%;
	max-width: calc(100% - 60px);
	transition: width 1.4s ease;
}

.cti-order-tracker .pstep {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.cti-order-tracker .pstep .dot {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--navy-deep);
	border: 3px solid rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
}

.cti-order-tracker .pstep .dot svg {
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, 0.4);
}

.cti-order-tracker .pstep.done .dot {
	background: var(--teal);
	border-color: var(--teal);
}

.cti-order-tracker .pstep.done .dot svg {
	color: #fff;
	stroke: #fff;
}

.cti-order-tracker .pstep.current-step .dot {
	background: var(--navy);
	border-color: var(--teal);
	box-shadow: 0 0 0 6px rgba(0, 168, 181, 0.2);
}

.cti-order-tracker .pstep.current-step .dot svg {
	color: var(--teal);
}

.cti-order-tracker .pstep span.label {
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	max-width: 90px;
	font-weight: 600;
}

.cti-order-tracker .pstep.done span.label,
.cti-order-tracker .pstep.current-step span.label {
	color: #fff;
}

/* TIMELINE */
.cti-order-tracker .timeline {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cti-order-tracker .tl-item {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 16px;
	padding-bottom: 22px;
	position: relative;
}

.cti-order-tracker .tl-item::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 24px;
	bottom: 0;
	width: 2px;
	background: rgba(255, 255, 255, 0.12);
}

.cti-order-tracker .tl-item:last-child::before {
	display: none;
}

.cti-order-tracker .tl-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	margin-top: 1px;
	flex-shrink: 0;
}

.cti-order-tracker .tl-dot.done {
	background: var(--teal);
	border-color: var(--teal);
}

.cti-order-tracker .tl-dot.current {
	background: transparent;
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(0, 168, 181, 0.2);
}

.cti-order-tracker .tl-content h4 {
	color: #fff;
	font-size: 14px;
	margin: 0 0 2px;
}

.cti-order-tracker .tl-content p {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	margin: 0;
}

.cti-order-tracker .tl-content .ts {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 3px;
}

/* NOT FOUND */
.cti-order-tracker .not-found {
	display: none;
	text-align: center;
	margin-top: 28px;
	color: rgba(255, 255, 255, 0.75);
	animation: ctiFadeIn 0.4s ease;
}

.cti-order-tracker .not-found.show {
	display: block;
}

.cti-order-tracker .not-found svg {
	width: 44px;
	height: 44px;
	color: rgba(255, 255, 255, 0.3);
	margin: 0 auto 12px;
	display: block;
}

.cti-order-tracker .not-found h4 {
	color: #fff;
	font-size: 17px;
	margin: 0 0 8px;
}

.cti-order-tracker .not-found p {
	margin: 0 auto;
	max-width: 440px;
	font-size: 14px;
}

.cti-order-tracker .not-found a {
	color: var(--teal);
}

@media (max-width: 800px) {
	.cti-order-tracker .pstep span.label {
		font-size: 10px;
		max-width: 64px;
	}

	.cti-order-tracker .pstep .dot {
		width: 32px;
		height: 32px;
	}

	.cti-order-tracker .progress-track::before,
	.cti-order-tracker .progress-fill {
		top: 15px;
	}
}
