/* === Base container === */
.cargo-tracker-section {
	padding: 80px 20px;
	background-color: #fff;
	font-family: "Inter", sans-serif;
}

.cargo-tracker-container {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

/* === Title and text === */
.cargo-tracker-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.cargo-tracker-description {
	color: #666;
	max-width: 650px;
	margin: 0 auto 50px;
	font-size: 1rem;
}

/* === Progress tracker === */
.cargo-tracker-progress {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 60px auto;
	max-width: 700px;
}

/* Connecting line behind all circles */
.cargo-tracker-progress::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	background-color: #ccc;
	transform: translateY(-50%);
	z-index: 1;
}

/* Active portion of line */
.cargo-tracker-progress::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	height: 3px;
	background-color: #02a105;
	transform: translateY(-50%);
	z-index: 2;
	width: 45%; /* длина активной части (примерно до 2 этапа) */
}

/* === Each step === */
.cargo-tracker-step {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 25%;
}

.cargo-tracker-step .circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #ccc;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 1rem;
	z-index: 3;
}

.cargo-tracker-step.active .circle {
	background-color: #02a105;
}

.cargo-tracker-step .label {
	font-size: 0.9rem;
	color: #555;
	margin-top: 10px;
	line-height: 1.4;
	max-width: 150px;
}

.cargo-tracker-step.active .label {
	color: #02a105;
}

/* === Cargo details === */
.cargo-tracker-details {
	text-align: left;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 30px;
}

.cargo-tracker-details h3 {
	font-size: 1.5rem;
	color: #1a1a1a;
	margin-bottom: 25px;
	font-weight: 700;
}

.cargo-tracker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.cargo-tracker-item h4 {
	font-size: 0.95rem;
	color: #777;
	/* margin-bottom: 4px; */
	font-weight: 500;
}

.cargo-tracker-item p {
	font-size: 1.1rem;
	color: #000;
	font-weight: 600;
}
/* .cargo-tracker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	grid-auto-flow: dense;
}
 .cargo-tracker-item:last-child {
	grid-column: auto / span 2;
}
/*
.cargo-tracker-item:last-child:nth-child(odd):last-child {
	grid-column: auto / span 2;
} */
/* .cargo-tracker-item h4 {
	font-size: 0.95rem;
	color: #777;
	margin-bottom: 4px;
	font-weight: 500;
}

.cargo-tracker-item p {
	font-size: 1.1rem;
	color: #000;
	font-weight: 600;
} */

/* === Responsive === */
@media (max-width: 768px) {
	.cargo-tracker-progress {
		flex-direction: column;
		align-items: center;
	}

	.cargo-tracker-progress::before,
	.cargo-tracker-progress::after {
		width: 3px;
		height: 80%;
		left: 50%;
		top: 10%;
		transform: translateX(-50%);
	}

	.cargo-tracker-step {
		flex-direction: row;
		width: 100%;
		justify-content: flex-start;
		text-align: left;
		margin-bottom: 25px;
	}

	.cargo-tracker-step .label {
		margin-left: 15px;
		margin-top: 0;
	}
}

.cargo-tracking {
	background: #fff;
	padding: 60px 20px;
	font-family: "Inter", sans-serif;
}

.cargo-container {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.cargo-code {
	font-size: 18px;
	color: #222;
	margin-bottom: 50px;
}

.cargo-code span {
	font-weight: 600;
	margin-left: 8px;
}

/* === PROGRESS BAR === */
.cargo-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
}

.cargo-steps .progress-line {
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	height: 3px;
	background: #e5e5e5;
	z-index: 1;
}

	.cargo-steps::before {
		content: "";
		position: absolute;
		top: 20px;
		left: 0;
		width: var(--progress-width, 0%);
		height: 3px;
		background: #02a105;
		z-index: 2;
		transition: width 0.3s ease;
	}

/* === STEP === */
.step {
	position: relative;
	z-index: 3;
	text-align: center;
	flex: 1;
}

.circle {
	width: 40px;
	height: 40px;
	border: 5px solid #d9d9d9;
	border-radius: 50%;
	background: #fff;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.step.completed .circle {
	background: #02a105;
	border-color: #02a105;
}

.step.active .circle {
	border-color: #02a105;
}

.check {
	color: #fff;
	font-size: 16px;
	font-weight: bold;
}

.step p {
	margin-top: 12px;
	font-size: 14px;
	color: #555;
	max-width: 150px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.4;
}

.step.active p {
	color: #02a105;
}
/* === Responsive === */
@media (max-width: 768px) {
	.cargo-tracker-progress {
		flex-direction: column;
		align-items: center;
	}

	.cargo-tracker-progress::before,
	.cargo-tracker-progress::after {
		width: 3px;
		height: 80%;
		left: 50%;
		top: 10%;
		transform: translateX(-50%);
	}

	.cargo-tracker-step {
		flex-direction: row;
		width: 100%;
		justify-content: flex-start;
		text-align: left;
		margin-bottom: 25px;
	}

	.cargo-tracker-step .label {
		margin-left: 15px;
		margin-top: 0;
	}
}
.cargo-tracking {
	background: #fff;
	padding: 60px 20px;
	font-family: "Inter", sans-serif;
}

.cargo-container {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.cargo-code {
	font-size: 18px;
	color: #222;
	margin-bottom: 50px;
}

.cargo-code span {
	font-weight: 600;
	margin-left: 8px;
}

/* === PROGRESS BAR === */
.cargo-steps {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 2px;
}

.cargo-steps .progress-line {
	position: absolute;
	top: 0;
	left: 18px;
	width: 3px;
	height: 100%;
	background: #e5e5e5;
	z-index: 1;
}

.cargo-steps::before {
	content: "";
	position: absolute;
	top: 0;
	left: 18px;
	width: 3px;
	height: var(--progress-width, 0%);
	background: #02a105;
	z-index: 2;
	transition: height 0.3s ease;
}

/* === STEP === */
.step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 30px;
	position: relative;
	z-index: 3;
}

.step:last-child {
	margin-bottom: 0;
}

.circle {
	width: 36px;
	height: 36px;
	border: 3px solid #ccc;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	position: relative;
	z-index: 3;
}

.step.completed .circle {
	background: #02a105;
	border-color: #02a105;
}

.step.active .circle {
	border-color: #02a105;
	background: #fff;
	color: #02a105;
}

.check {
	font-size: 14px;
	color: #fff;
}

.step p {
	margin: 5px 0 0;
	line-height: 1.4;
	font-size: 15px;
	color: #333;
	font-weight: 500;
}

.step.active p {
	color: #02a105;
	font-weight: 600;
}

/* === Responsive === */
@media (min-width: 769px) {
	.cargo-steps {
		flex-direction: row;
		justify-content: space-between;
		padding-left: 0;
	}

	.cargo-steps .progress-line {
		top: 20px;
		left: 0;
		right: 0;
		width: 100%;
		height: 3px;
		background: #e5e5e5;
	}

	.cargo-steps::before {
		top: 20px;
		left: 0;
		width: var(--progress-width, 0%);
		height: 3px;
		background: #02a105;
		transition: width 0.3s ease;
	}

	.step {
		flex-direction: column;
		text-align: center;
		margin-bottom: 0;
	}

	.step .step-text {
		margin-top: 12px;
		width: 100%;
		display: grid;
		justify-content: center;
	}
}
