/**
 * Style cho wizard 5 bước của form đăng tin (dashboard-add-property).
 * File JS liên quan: assets/js/pages/dashboard-submit-form.js
 */

/* ============ Thanh tiến trình (progress bar) ============ */
.ndg-wizard-progress {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	padding: 0 8px;
	position: relative;
}

.ndg-wizard-progress::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 40px;
	right: 40px;
	height: 2px;
	background-color: #dde2ea;
	z-index: 0;
}

.ndg-wizard-step-dot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 1;
	flex: 1;
	cursor: default;
}

.ndg-wizard-dot-number {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #f0f2f5;
	border: 2px solid #dde2ea;
	color: #8a94a6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.25s ease;
}

.ndg-wizard-dot-label {
	font-size: 12px;
	color: #8a94a6;
	text-align: center;
	max-width: 90px;
	line-height: 1.3;
	transition: color 0.25s ease;
}

.ndg-wizard-step-dot.active .ndg-wizard-dot-number {
	background-color: #2f6fed;
	border-color: #2f6fed;
	color: #ffffff;
}

.ndg-wizard-step-dot.active .ndg-wizard-dot-label {
	color: #2f6fed;
	font-weight: 600;
}

.ndg-wizard-step-dot.done .ndg-wizard-dot-number {
	background-color: #2f6fed;
	border-color: #2f6fed;
	color: #ffffff;
}

.ndg-wizard-step-dot.done .ndg-wizard-dot-number::after {
	content: '✓';
}

.ndg-wizard-step-dot.done .ndg-wizard-dot-number span {
	display: none;
}

.ndg-wizard-step-dot.done .ndg-wizard-dot-label {
	color: #2f6fed;
}

.ndg-wizard-step-dot.done {
	cursor: pointer;
}

/* ============ Nút Tiếp theo / Quay lại ============ */
.ndg-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 24px 0 40px 0;
	padding-top: 16px;
	border-top: 1px solid #eef0f4;
}

.ndg-wizard-btn {
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.ndg-wizard-btn.ndg-wizard-next {
	background-color: #2f6fed;
	color: #ffffff;
	margin-left: auto;
}

.ndg-wizard-btn.ndg-wizard-next:hover {
	background-color: #2258c9;
}

.ndg-wizard-btn.ndg-wizard-back {
	background-color: transparent;
	color: #5a6472;
	border: 1px solid #dde2ea;
}

.ndg-wizard-btn.ndg-wizard-back:hover {
	background-color: #f0f2f5;
}

/* ============ Responsive ============ */
@media (max-width: 767px) {
	.ndg-wizard-dot-label {
		display: none; /* mobile: chỉ hiện số thứ tự, ẩn nhãn chữ cho gọn */
	}
	.ndg-wizard-progress::before {
		left: 20px;
		right: 20px;
	}
	.ndg-wizard-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}
