:root {
	--otp-primary: #c0392b;
	--otp-secondary: #d4af37;
	--otp-accent: #f1c40f;
	--otp-bg: #ffffff;
	--otp-text: #2b2b2b;
	--otp-radius: 14px;
	--otp-shadow: 0 10px 30px rgba(192, 57, 43, 0.12);
}

.otp-tracking-wrapper {
	width: 100%;
	max-width: 640px;
	margin: 40px auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.otp-tracking-wrapper * {
	box-sizing: border-box;
}

.otp-card {
	background: var(--otp-bg);
	border-radius: var(--otp-radius);
	box-shadow: var(--otp-shadow);
	border-top: 6px solid var(--otp-primary);
	padding: 32px 28px;
	position: relative;
	overflow: hidden;
}

.otp-card::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 160px;
	height: 160px;
	background: radial-gradient(circle, var(--otp-accent) 0%, transparent 70%);
	opacity: 0.35;
	pointer-events: none;
}

.otp-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	color: var(--otp-primary);
	letter-spacing: -0.5px;
}

.otp-subtitle {
	margin: 0 0 24px;
	color: #6b6b6b;
	font-size: 14.5px;
}

.otp-form-row {
	margin-bottom: 18px;
}

.otp-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--otp-text);
}

.otp-form-row input[type="text"] {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #eee0c8;
	border-radius: 10px;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fffdf7;
}

.otp-form-row input[type="text"]:focus {
	outline: none;
	border-color: var(--otp-secondary);
	box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.otp-submit-btn {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--otp-primary), var(--otp-secondary));
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	box-shadow: 0 6px 18px rgba(192, 57, 43, 0.28);
}

.otp-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(192, 57, 43, 0.35);
}

.otp-submit-btn:active {
	transform: translateY(0);
}

.otp-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.otp-spinner {
	width: 16px;
	height: 16px;
	border: 3px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: otp-spin 0.7s linear infinite;
}

@keyframes otp-spin {
	to {
		transform: rotate(360deg);
	}
}

.otp-result {
	margin-top: 28px;
	animation: otp-fade-in 0.35s ease;
}

@keyframes otp-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.otp-alert {
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 500;
}

.otp-alert-error {
	background: #fdecea;
	color: var(--otp-primary);
	border: 1px solid #f5c6c1;
}

.otp-order-heading {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--otp-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.otp-order-heading .otp-badge {
	background: var(--otp-accent);
	color: #4a3b00;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
}

/* Timeline */
.otp-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.otp-timeline li {
	position: relative;
	padding: 0 0 26px 42px;
}

.otp-timeline li:last-child {
	padding-bottom: 0;
}

.otp-timeline li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 26px;
	bottom: -4px;
	width: 2px;
	background: #eee0c8;
}

.otp-timeline li:last-child::before {
	display: none;
}

.otp-timeline .otp-dot {
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eee0c8;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border: 3px solid var(--otp-bg);
	box-shadow: 0 0 0 2px #eee0c8;
}

.otp-timeline li.completed .otp-dot {
	background: var(--otp-primary);
	box-shadow: 0 0 0 2px var(--otp-primary);
}

.otp-timeline li.in_progress .otp-dot {
	background: var(--otp-accent);
	box-shadow: 0 0 0 2px var(--otp-accent);
	animation: otp-pulse 1.4s infinite;
}

@keyframes otp-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.5);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(241, 196, 15, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
	}
}

.otp-step-name {
	font-weight: 700;
	font-size: 15px;
	color: var(--otp-text);
}

.otp-step-meta {
	font-size: 13px;
	color: #8a8a8a;
	margin-top: 3px;
}

.otp-step-note {
	font-size: 13px;
	color: #555;
	margin-top: 4px;
	background: #fffbea;
	border-left: 3px solid var(--otp-accent);
	padding: 6px 10px;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
	.otp-card {
		padding: 22px 18px;
	}
	.otp-title {
		font-size: 21px;
	}
	.otp-submit-btn {
		font-size: 14.5px;
		padding: 12px 16px;
	}
}
