/* TekTrol Booking Wizard Styles */

/* ── Base ─────────────────────────────────────────────── */
.tcb-wizard {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #ffffff;
}

/* ── Progress bar ────────────────────────────────────── */
.tcb-progress {
	margin-bottom: 2rem;
}

.tcb-progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.tcb-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 1;
}

.tcb-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #2a2a2a;
	color: #aaaaaa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	transition: background 0.2s, color 0.2s;
}

.tcb-progress-step.active .tcb-step-num {
	background: #e6332a;
	color: #fff;
}

.tcb-progress-step.done .tcb-step-num {
	background: #28a745;
	color: #fff;
}

.tcb-step-label {
	font-size: 0.7rem;
	color: #ffffff;
	text-align: center;
}

.tcb-progress-bar {
	height: 4px;
	background: #2a2a2a;
	border-radius: 2px;
	overflow: hidden;
}

.tcb-progress-fill {
	height: 100%;
	background: #e6332a;
	transition: width 0.3s ease;
}

/* ── Step title ─────────────────────────────────────── */
.tcb-step-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: #ffffff;
}

.tcb-plate-input:focus {
	color: white;
}

/* ── Step states ────────────────────────────────────── */
.tcb-step.locked {
	opacity: 0.6;
	pointer-events: none;
}

.tcb-step.locked input,
.tcb-step.locked textarea,
.tcb-step.locked button,
.tcb-step.locked .tcb-treatment-card,
.tcb-step.locked .tcb-branch-card,
.tcb-step.locked .tcb-cal-cell {
	cursor: not-allowed;
	opacity: 0.5;
}

.tcb-step.locked .tcb-next {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Plate input ────────────────────────────────────── */
.tcb-plate-input-wrapper {
	position: relative;
	max-width: 260px;
	margin-bottom: 1rem;
}

.tcb-plate-input {
	width: 100%;
	font-size: 1.8rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-align: center;
	text-transform: uppercase;
	padding: 0.75rem 1rem;
	border: 3px solid #e6332a;
	border-radius: 8px;
	background: #e6332a;
	color: #ffffff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.tcb-plate-input:focus {
	outline: none;
	border-color: #ff4a40;
}

.tcb-plate-spinner {
	display: none;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid #444;
	border-top-color: #e6332a;
	border-radius: 50%;
	animation: tcb-spin 0.6s linear infinite;
}

@keyframes tcb-spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* ── Car card ───────────────────────────────────────── */
.tcb-car-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	margin-bottom: 1rem;
	max-width: 480px;
	color: #ffffff;
}

.tcb-car-card-icon {
	font-size: 2rem;
}

.tcb-car-card-details {
	display: flex;
	flex-direction: column;
}

.tcb-car-card-details strong {
	font-size: 1.1rem;
	color: #ffffff;
}

/* ── Treatment cards ────────────────────────────────── */
.tcb-treatment-options {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.tcb-treatment-card {
	flex: 1;
	min-width: 160px;
	padding: 1.25rem;
	border: 2px solid #3a3a3a;
	border-radius: 10px;
	cursor: pointer;
	background: #2a2a2a;
	color: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
	text-align: center;
}

.tcb-treatment-card:hover:not(.unavailable) {
	border-color: #e6332a;
}

.tcb-treatment-card.selected {
	border-color: #e6332a;
	box-shadow: 0 0 0 3px rgba(230, 51, 42, 0.2);
	background: #2f111059;
}

.tcb-treatment-card.unavailable {
	opacity: 0.5;
	cursor: not-allowed;
}

.tcb-treatment-label {
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #ffffff;
}

.tcb-treatment-price {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fffff1;
}

.tcb-inner-fenders {
	margin-bottom: 0.75rem;
}

.tcb-price-summary {
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
	color: #ffffff;
}

.tcb-price-summary span {
	font-size: 1.4rem;
	font-weight: 800;
	color: #ffffff;
}

/* ── Branch cards ───────────────────────────────────── */
.tcb-branch-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.tcb-branch-card {
	padding: 1rem;
	border: 2px solid #3a3a3a;
	border-radius: 10px;
	cursor: pointer;
	background: #2a2a2a;
	color: #ffffff;
	transition: border-color 0.2s;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tcb-branch-card:hover,
.tcb-branch-card:focus {
	border-color: #e6332a;
	outline: none;
}

.tcb-branch-card.selected {
	border-color: #e6332a;
	background: #87464359;
}

.tcb-branch-name {
	font-size: 1rem;
	color: #ffffff;
}

.tcb-branch-address,
.tcb-branch-phone {
	font-size: 0.85rem;
	color: #aaaaaa;
}

.tcb-dist-badge {
	display: inline-block;
	font-size: 0.75rem;
	background: #2a2a2a;
	color: #aaaaaa;
	padding: 1px 6px;
	border-radius: 20px;
	margin-left: 4px;
	font-weight: 400;
	border: 1px solid #3a3a3a;
}

/* ── Calendar ──────────────────────────────────────── */
.tcb-calendar-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
	font-size: 1rem;
	color: #ffffff;
}

.tcb-cal-header {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	text-align: center;
	font-weight: 700;
	font-size: 0.8rem;
	color: #aaaaaa;
	margin-bottom: 4px;
}

.tcb-cal-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	margin-bottom: 1rem;
}

.tcb-cal-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.15s;
}

.tcb-cal-cell.available {
	background: #8f8f8f69;
	color: #4caf70;
}

.tcb-cal-cell.partial {
	background: #2a2010;
	color: #d4a020;
}

.tcb-cal-cell.fully-booked {
	background: #242424;
	color: #555555;
	cursor: not-allowed;
}

.tcb-cal-cell.disabled {
	color: #444444;
	cursor: not-allowed;
}

.tcb-cal-cell.selected {
	border-color: #e6332a !important;
	box-shadow: 0 0 0 2px rgba(230, 51, 42, 0.25);
}

.tcb-cal-cell.available:hover,
.tcb-cal-cell.partial:hover {
	filter: brightness(1.15);
}

/* ── Slot picker ────────────────────────────────────── */
.tcb-slot-picker {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.tcb-slot-btn {
	flex: 1;
	min-width: 140px;
	padding: 0.875rem 1rem;
	border: 2px solid #3a3a3a;
	border-radius: 8px;
	background: #2a2a2a;
	color: #ffffff;
	cursor: pointer;
	font-size: 0.95rem;
	transition: border-color 0.2s;
	text-align: left;
}

.tcb-slot-btn:hover:not(:disabled) {
	border-color: #e6332a;
}

.tcb-slot-btn.selected {
	border-color: #e6332a;
	background: #2f111059;
}

.tcb-slot-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tcb-badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 1px 7px;
	border-radius: 20px;
	font-weight: 700;
}

.tcb-badge.yellow {
	background: #2a2010;
	color: #d4a020;
}

/* ── Loaner / notes ────────────────────────────────── */
.tcb-loaner-section {
	margin-bottom: 1.25rem;
}

.tcb-loaner-status {
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.9rem;
}

.tcb-loaner-status.available {
	background: #1a3a20;
	color: #4caf70;
}

.tcb-loaner-status.unavailable {
	background: #2a2010;
	color: #d4a020;
}

.tcb-notes-section {
	margin-bottom: 1.25rem;
}

.tcb-notes-section label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: #ffffff;
}

.tcb-notes-section textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	resize: vertical;
	font-size: 0.95rem;
	font-family: inherit;
	box-sizing: border-box;
	background: #2a2a2a;
	color: #ffffff;
}

.tcb-char-counter {
	font-size: 0.8rem;
	color: #666666;
	text-align: right;
	margin-top: 4px;
}

/* ── Step 6 customer form ──────────────────────────── */
.tcb-booking-summary {
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	color: #ffffff;
}

.tcb-summary-row {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	color: #cccccc;
}

.tcb-form-row {
	margin-bottom: 1rem;
}

.tcb-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	color: #ffffff;
}

.tcb-form-row input[type="text"],
.tcb-form-row input[type="email"],
.tcb-form-row input[type="tel"] {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
	background: #2a2a2a;
	color: #ffffff;
	transition: border-color 0.2s;
}

.tcb-form-row input:focus {
	outline: none;
	border-color: #e6332a;
}

.tcb-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	color: #cccccc;
}

.tcb-field-error {
	font-size: 0.8rem;
	color: #e6332a;
	margin-top: 3px;
}

/* ── Actions / buttons ────────────────────────────── */
.tcb-step-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid #ffffff69;
}

.tcb-btn {
	padding: 0.625rem 1.5rem;
	border-radius: 6px;
	border: 2px solid transparent;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.tcb-btn-primary {
	background: #e6332a;
	color: #fff;
	border-color: #e6332a;
}

.tcb-btn-primary:hover:not(:disabled) {
	background: #c42820;
	border-color: #c42820;
}

.tcb-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tcb-btn-secondary {
	background: transparent;
	color: #cccccc;
	border-color: #3a3a3a;
}

.tcb-btn-secondary:hover {
	border-color: #666666;
}

.tcb-btn-icon {
	padding: 0.25rem 0.75rem;
	font-size: 1.5rem;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	color: #ffffff;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1;
}

/* ── Utilities ────────────────────────────────────── */
.tcb-error {
	color: #e6332a;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

.tcb-warning {
	background: #2a2010;
	border: 1px solid #d4a020;
	color: #d4a020;
	padding: 0.625rem 0.875rem;
	border-radius: 6px;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.tcb-loading {
	color: #aaaaaa;
	font-style: italic;
}

/* ── Review Section ───────────────────────────────── */
.tcb-review-summary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.tcb-review-section {
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	padding: 1rem;
}

.tcb-review-section h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	border-bottom: 2px solid #e6332a;
	padding-bottom: 0.5rem;
}

.tcb-review-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	font-size: 0.95rem;
}

.tcb-review-item .tcb-label {
	font-weight: 500;
	color: #aaaaaa;
}

.tcb-review-item .tcb-value {
	text-align: right;
	color: #ffffff;
	font-weight: 500;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
	.tcb-progress-step .tcb-step-label {
		display: none;
	}

	.tcb-treatment-options {
		flex-direction: column;
	}

	.tcb-branch-list {
		grid-template-columns: 1fr;
	}

	.tcb-slot-picker {
		flex-direction: column;
	}

	.tcb-step-actions {
		flex-direction: column-reverse;
	}

	.tcb-review-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
}