/**
 * Consulting Booking Pro – Public Styles
 */

.cb-booking-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1a1a2e;
	background: #f8f9fc;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Progress indicator */
.cb-progress {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	position: relative;
}

.cb-progress::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: #dde1e8;
	z-index: 0;
}

.cb-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	z-index: 1;
}

.cb-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #dde1e8;
	color: #8892a4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.3s ease;
}

.cb-progress-step.active .cb-step-num,
.cb-progress-step.completed .cb-step-num {
	background: #4361ee;
	color: #fff;
}

.cb-progress-step.completed .cb-step-num {
	background: #2ec4b6;
}

.cb-step-label {
	margin-top: 6px;
	font-size: 11px;
	color: #8892a4;
	text-align: center;
}

.cb-progress-step.active .cb-step-label {
	color: #4361ee;
	font-weight: 600;
}

.cb-step-indicator {
	text-align: center;
	font-size: 13px;
	color: #8892a4;
	margin-bottom: 24px;
}

/* Steps */
.cb-step {
	display: none;
	animation: cbFadeIn 0.35s ease;
}

.cb-step.cb-step-active {
	display: block;
}

@keyframes cbFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.cb-step-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a2e;
}

.cb-category-filter {
	max-width: 320px;
	margin-bottom: 20px;
}

.cb-no-category-services[hidden] {
	display: none;
}

/* Service cards grid */
.cb-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.cb-service-card {
	background: #fff;
	border: 2px solid #e8ecf2;
	border-radius: 10px;
	padding: 20px;
	cursor: pointer;
	position: relative;
	transition: all 0.25s ease;
}

.cb-service-card:hover {
	border-color: #4361ee;
	box-shadow: 0 4px 16px rgba(67, 97, 238, 0.12);
	transform: translateY(-2px);
}

.cb-service-card.selected {
	border-color: #4361ee;
	background: #f0f3ff;
	box-shadow: 0 4px 16px rgba(67, 97, 238, 0.2);
}

.cb-service-check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #4361ee;
	color: #fff;
	font-size: 14px;
	display: none;
	align-items: center;
	justify-content: center;
}

.cb-service-card.selected .cb-service-check {
	display: flex;
}

.cb-service-name {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.cb-service-duration {
	font-size: 0.85rem;
	color: #4361ee;
	font-weight: 600;
	margin: 0 0 8px;
}

.cb-service-desc {
	font-size: 0.875rem;
	color: #666;
	margin: 0 0 10px;
	line-height: 1.5;
}

.cb-service-price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #2ec4b6;
	margin: 0;
}

/* Form elements */
.cb-form-group {
	margin-bottom: 20px;
}

.cb-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
}

.cb-form-group input,
.cb-form-group select,
.cb-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #e8ecf2;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.2s;
	box-sizing: border-box;
	background: #fff;
}

.cb-form-group input:focus,
.cb-form-group select:focus,
.cb-form-group textarea:focus {
	outline: none;
	border-color: #4361ee;
}

.cb-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* Time slots */
.cb-time-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 44px;
}

.cb-time-slot {
	padding: 8px 16px;
	border: 2px solid #e8ecf2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s;
}

.cb-time-slot:hover {
	border-color: #4361ee;
	color: #4361ee;
}

.cb-time-slot.selected {
	background: #4361ee;
	border-color: #4361ee;
	color: #fff;
}

.cb-time-slot:disabled,
.cb-time-slot.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Appointment type buttons */
.cb-type-buttons {
	display: flex;
	gap: 12px;
}

.cb-type-btn {
	flex: 1;
	padding: 16px;
	border: 2px solid #e8ecf2;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.cb-type-btn:hover {
	border-color: #4361ee;
}

.cb-type-btn.selected {
	border-color: #4361ee;
	background: #f0f3ff;
	color: #4361ee;
}

.cb-type-icon {
	font-size: 1.5rem;
}

/* Summary & payment */
.cb-summary-box {
	background: #fff;
	border: 2px solid #e8ecf2;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.cb-summary-box h3 {
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.cb-summary-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cb-summary-box li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.95rem;
}

.cb-summary-box li:last-child {
	border-bottom: none;
}

.cb-summary-box li strong {
	color: #4361ee;
}

.cb-payment-section {
	background: #fff;
	border: 2px solid #e8ecf2;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.cb-payment-section h3 {
	margin: 0 0 16px;
}

.cb-bank-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.cb-bank-card {
	background: #f8f9fc;
	border: 1px solid #e8ecf2;
	border-radius: 8px;
	padding: 16px;
}

.cb-bank-card h4 {
	margin: 0 0 10px;
	color: #4361ee;
}

.cb-bank-card p {
	margin: 4px 0;
	font-size: 0.875rem;
}

.cb-payment-message {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.6;
	padding: 12px;
	background: #fffbeb;
	border-radius: 8px;
	border-left: 4px solid #f59e0b;
}

/* Buttons */
.cb-step-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e8ecf2;
}

.cb-btn {
	padding: 12px 28px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.cb-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cb-btn-primary {
	background: #4361ee;
	color: #fff;
	margin-left: auto;
}

.cb-btn-primary:hover:not(:disabled) {
	background: #3451d1;
}

.cb-btn-secondary {
	background: #e8ecf2;
	color: #444;
}

.cb-btn-secondary:hover {
	background: #dde1e8;
}

.cb-btn-success {
	background: #2ec4b6;
	color: #fff;
	margin-left: auto;
}

.cb-btn-success:hover:not(:disabled) {
	background: #25a99d;
}

/* Messages */
.cb-messages {
	margin-bottom: 16px;
}

.cb-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
}

.cb-message-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.cb-message-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.cb-hint,
.cb-empty {
	color: #8892a4;
	font-size: 0.9rem;
}

/* Success state */
.cb-success-message {
	text-align: center;
	padding: 40px 20px;
}

.cb-success-icon {
	font-size: 4rem;
	margin-bottom: 16px;
}

.cb-success-message h2 {
	color: #2ec4b6;
	margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
	.cb-booking-wrapper {
		padding: 16px;
		margin: 0 8px;
	}

	.cb-services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cb-form-row {
		grid-template-columns: 1fr;
	}

	.cb-step-label {
		display: none;
	}

	.cb-type-buttons {
		flex-direction: column;
	}

	.cb-step-actions {
		flex-direction: column;
	}

	.cb-btn-primary,
	.cb-btn-success {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.cb-services-grid {
		grid-template-columns: 1fr;
	}
}
