/* ------------------------------------------------------------------
 * کافه کارشناس — فرم فرانت‌اند
 * ایده‌ی طراحی: خروجی محاسبه مثل یک «برگه کارشناسی» چاپ‌شده با مهر گاراژ است.
 * زمینه‌ی صفحه: آسفالت تیره‌ی گاراژ با شبکه‌ی محو نقشه‌کشی (بلوپرینت)
 * کاغذ برگه: کرم گرم (خودِ عنصر شاخص، نه پس‌زمینه‌ی کلی صفحه)
 * تایپوگرافی: Lalezar برای عنوان/عدد قیمت/مهر، Vazirmatn برای بدنه
 * ------------------------------------------------------------------ */

.ck-wizard {
	--ck-ink: #241A14;
	--ck-copper: #B5652D;
	--ck-copper-dark: #8C4A1F;
	--ck-teal: #1F6F63;
	--ck-amber: #E8A33D;
	--ck-ochre: #C97A2E;
	--ck-rust: #B23A2E;
	--ck-paper: #FBF3E4;
	--ck-paper-2: #F3E6CC;
	--ck-line: #E3D2AC;
	--ck-text-soft: #6E5B47;
	--ck-garage-dark: #1C1712;
	--ck-garage-dark-2: #262019;

	direction: rtl;
	font-family: "Vazirmatn", Tahoma, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	background: var(--ck-garage-dark);
	background-image:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 26px 26px;
	border-radius: 22px;
	padding: 30px 22px 34px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* --- سربرگ برند --- */
.ck-wizard-header {
	text-align: center;
	margin-bottom: 22px;
}

.ck-brand-eyebrow {
	display: inline-block;
	color: var(--ck-amber);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1px;
	border: 1px solid rgba(232, 163, 61, 0.4);
	border-radius: 999px;
	padding: 4px 14px;
	margin-bottom: 10px;
}

.ck-brand-title {
	font-family: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
	font-weight: 400;
	font-size: 30px;
	color: #F7EEDD;
	margin: 0 0 6px;
	line-height: 1.4;
}

.ck-brand-sub {
	color: #C9BCA6;
	font-size: 13.5px;
	margin: 0;
}

/* --- نشانگر مراحل --- */
.ck-steps-nav {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	margin-bottom: 16px;
}

.ck-step-dot {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #8d7c67;
	font-size: 11px;
	font-weight: 600;
}

.ck-step-dot i {
	font-style: normal;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	color: #C9BCA6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	transition: all 0.2s ease;
}

.ck-step-dot.active {
	color: #F7EEDD;
}

.ck-step-dot.active i {
	background: var(--ck-copper);
	border-color: var(--ck-copper);
	color: #fff;
}

.ck-step-dot.done i {
	background: var(--ck-teal);
	border-color: var(--ck-teal);
	color: #fff;
}

/* --- کارت برگه (عنصر شاخص) --- */
.ck-ticket-card {
	background: var(--ck-paper);
	border-radius: 14px;
	padding: 28px 26px 24px;
	position: relative;
	box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.ck-ticket-card::before {
	content: "";
	position: absolute;
	top: -10px;
	right: 14px;
	left: 14px;
	height: 20px;
	background-image: radial-gradient(circle 6px, var(--ck-garage-dark) 6px, transparent 7px);
	background-size: 24px 20px;
	background-position: top center;
	background-repeat: repeat-x;
}

.ck-step h3 {
	margin: 0 0 14px;
	color: var(--ck-ink);
	font-size: 17px;
	font-weight: 800;
	border-bottom: 1px dashed var(--ck-line);
	padding-bottom: 10px;
}

.ck-step label {
	display: block;
	margin: 14px 0 6px;
	font-weight: 600;
	color: var(--ck-ink);
	font-size: 13.5px;
}

.ck-step input[type="text"],
.ck-step input[type="number"],
.ck-step select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--ck-line);
	border-radius: 9px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
	background: #fff;
	color: var(--ck-ink);
}

.ck-step input:focus,
.ck-step select:focus {
	outline: none;
	border-color: var(--ck-copper);
	box-shadow: 0 0 0 3px rgba(181, 101, 45, 0.15);
}

.ck-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400 !important;
	margin: 10px 0 !important;
	font-size: 14px;
}

.ck-checkbox-row input {
	width: auto !important;
	accent-color: var(--ck-copper);
}

.ck-hint {
	color: var(--ck-text-soft);
	font-size: 12.5px;
	margin-top: -6px;
}

/* --- نقشه بدنه --- */
.ck-diagram-wrap {
	display: flex;
	justify-content: center;
	margin: 14px 0 6px;
}

.ck-car-svg {
	width: 200px;
	height: auto;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.ck-car-outline {
	fill: #fff;
	stroke: #d9c6a3;
	stroke-width: 2;
}

.ck-panel {
	fill: var(--ck-teal);
	fill-opacity: 0.55;
	stroke: var(--ck-ink);
	stroke-width: 1.2;
	cursor: pointer;
	transition: fill 0.15s ease, fill-opacity 0.15s ease;
}

.ck-panel:hover {
	fill-opacity: 0.8;
}

.ck-panel[data-status="buffed"] {
	fill: var(--ck-amber);
	fill-opacity: 0.85;
}

.ck-panel[data-status="painted"] {
	fill: var(--ck-ochre);
	fill-opacity: 0.9;
}

.ck-panel[data-status="replaced"] {
	fill: var(--ck-rust);
	fill-opacity: 0.9;
}

.ck-legend {
	font-size: 12.5px;
	line-height: 2;
	max-height: 150px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--ck-line);
	border-radius: 9px;
	padding: 10px 14px;
	margin-top: 10px;
	color: var(--ck-ink);
}

.ck-legend-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-inline-start: 6px;
	vertical-align: middle;
}

/* --- دکمه‌ها --- */
.ck-btn-secondary,
.ck-btn-primary {
	border: none;
	border-radius: 9px;
	padding: 11px 22px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 700;
	font-family: inherit;
}

.ck-btn-primary {
	background: var(--ck-copper);
	color: #fff;
}

.ck-btn-primary:hover {
	background: var(--ck-copper-dark);
}

.ck-btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
}

.ck-btn-secondary {
	background: var(--ck-paper-2);
	color: var(--ck-ink);
}

.ck-nav-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px dashed var(--ck-line);
}

/* --- برگه‌ی نتیجه (رسید کارشناسی) --- */
.ck-receipt {
	position: relative;
	padding-top: 6px;
}

.ck-receipt-stamp {
	position: absolute;
	top: -6px;
	left: 0;
	width: 74px;
	height: 74px;
	border: 3px double var(--ck-teal);
	border-radius: 50%;
	color: var(--ck-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: "Lalezar", "Vazirmatn", sans-serif;
	font-size: 12px;
	line-height: 1.3;
	transform: rotate(-14deg) scale(0);
	animation: ck-stamp-in 0.5s 0.15s cubic-bezier(.2,1.4,.4,1) forwards;
}

@keyframes ck-stamp-in {
	to {
		transform: rotate(-14deg) scale(1);
	}
}

.ck-receipt-price-label {
	font-size: 12.5px;
	color: var(--ck-text-soft);
	margin-bottom: 2px;
}

.ck-receipt-price {
	font-family: "Lalezar", "Vazirmatn", sans-serif;
	font-size: 34px;
	color: var(--ck-ink);
	line-height: 1.2;
	margin-bottom: 4px;
	padding-inline-end: 90px;
}

.ck-receipt-range {
	color: var(--ck-text-soft);
	font-size: 13px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px dashed var(--ck-line);
}

.ck-receipt-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	font-size: 12.5px;
	color: var(--ck-ink);
	border-bottom: 1px dotted var(--ck-line);
}

.ck-receipt-row span:first-child {
	color: var(--ck-text-soft);
}

.ck-receipt-row span:last-child {
	font-weight: 700;
	white-space: nowrap;
}

.ck-hp-field {
	position: absolute;
	left: -5000px;
	top: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ck-error {
	color: var(--ck-rust);
	font-weight: 700;
}

@media (max-width: 480px) {
	.ck-wizard {
		padding: 22px 14px 26px;
	}
	.ck-step-dot {
		font-size: 10px;
	}
	.ck-receipt-price {
		padding-inline-end: 0;
	}
	.ck-receipt-stamp {
		position: static;
		margin-bottom: 14px;
		transform: rotate(-6deg) scale(0);
	}
}
