/* حجوزات السيارات - تصميم فورم الحجز العام */
.csb-booking-widget {
	--csb-navy: #0b1220;
	--csb-navy-light: #131c30;
	--csb-red: #e00000;
	--csb-red-dark: #b30000;
	--csb-white: #ffffff;
	--csb-green: #1fa956;
	--csb-green-dark: #17803f;
	--csb-gray: #8a93a6;
	--csb-border: #26314a;

	direction: rtl;
	text-align: right;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	background: var(--csb-navy);
	color: var(--csb-white);
	border-radius: 14px;
	padding: 28px;
	max-width: 760px;
	margin: 0 auto;
	box-shadow: 0 10px 30px rgba(0,0,0,0.35);
	box-sizing: border-box;
}

.csb-booking-widget * {
	box-sizing: border-box;
}

.csb-widget-header {
	text-align: center;
	margin-bottom: 26px;
}

.csb-widget-title {
	color: var(--csb-white);
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
}

.csb-widget-subtitle {
	color: var(--csb-white);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
}

.csb-widget-desc {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	margin: 0;
}

.csb-stepper {
	display: flex;
	justify-content: space-between;
	margin-bottom: 28px;
	flex-wrap: wrap;
	gap: 8px;
}

.csb-step-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 60px;
	opacity: 0.5;
}

.csb-step-indicator.csb-step-active,
.csb-step-indicator.csb-step-done {
	opacity: 1;
}

.csb-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--csb-navy-light);
	border: 2px solid var(--csb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	margin-bottom: 6px;
	font-size: 14px;
}

.csb-step-indicator.csb-step-active .csb-step-num {
	background: var(--csb-red);
	border-color: var(--csb-red);
	color: var(--csb-white);
}

.csb-step-indicator.csb-step-done .csb-step-num {
	background: var(--csb-navy-light);
	border-color: var(--csb-green);
	color: var(--csb-green);
}

.csb-step-label {
	font-size: 12px;
	text-align: center;
	color: var(--csb-white);
	opacity: 0.75;
}

.csb-step-indicator.csb-step-active .csb-step-label,
.csb-step-indicator.csb-step-done .csb-step-label {
	color: var(--csb-white);
	font-weight: 600;
	opacity: 1;
}

.csb-form-step {
	display: none;
}

.csb-form-step.csb-step-visible {
	display: block;
	animation: csb-fade-in 0.25s ease;
}

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

.csb-form-step h3 {
	margin: 0 0 18px;
	font-size: 20px;
	color: var(--csb-white);
}

.csb-step-desc {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 16px;
	font-size: 14px;
}

.csb-field {
	margin-bottom: 18px;
}

.csb-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--csb-white);
	font-weight: 500;
}

.csb-field input[type="text"],
.csb-field input[type="tel"],
.csb-field input[type="email"],
.csb-field input[type="date"],
.csb-field select,
.csb-field textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--csb-navy-light);
	border: 1px solid var(--csb-border);
	border-radius: 8px;
	color: var(--csb-white);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.csb-field input:focus,
.csb-field select:focus,
.csb-field textarea:focus {
	outline: none;
	border-color: var(--csb-red);
}

.csb-field input::placeholder,
.csb-field textarea::placeholder {
	color: rgba(255, 255, 255, 0.65);
	opacity: 1;
}

/* قوائم الخدمة والساعة: خلفية بيضاء ونص أسود واضح كما هو مطلوب */
.csb-field select.csb-select-white {
	background: #ffffff;
	color: #1a1a1a;
	border-color: #d7dae0;
}

.csb-field select.csb-select-white option {
	color: #1a1a1a;
	background: #ffffff;
}

.csb-field select.csb-select-white:focus {
	border-color: var(--csb-red);
}

.csb-field.csb-field-error input,
.csb-field.csb-field-error select {
	border-color: var(--csb-red);
}

.csb-error-msg {
	display: block;
	color: #ff8080;
	font-size: 12px;
	margin-top: 5px;
	min-height: 14px;
}

.csb-slots-message {
	display: block;
	color: #ffb3b3;
	font-size: 13px;
	margin-top: 6px;
}

.csb-step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	gap: 10px;
}

.csb-btn {
	padding: 12px 28px;
	border-radius: 4px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.csb-btn:active {
	transform: scale(0.98);
}

.csb-btn-primary,
.csb-btn-secondary {
	background: var(--csb-red);
	color: var(--csb-white);
	border: 1px solid var(--csb-red);
}

.csb-btn-primary {
	margin-inline-start: auto;
}

.csb-btn-primary:hover,
.csb-btn-secondary:hover {
	background: var(--csb-red-dark);
	border-color: var(--csb-red-dark);
	color: var(--csb-white);
}

.csb-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.csb-summary {
	background: var(--csb-navy-light);
	border: 1px solid var(--csb-border);
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 10px;
}

.csb-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--csb-border);
	font-size: 14px;
}

.csb-summary-row:last-child {
	border-bottom: none;
}

.csb-summary-row span {
	color: rgba(255, 255, 255, 0.8);
}

.csb-form-message {
	background: rgba(224, 0, 0, 0.15);
	border: 1px solid var(--csb-red);
	color: var(--csb-white);
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.csb-success-step {
	text-align: center;
	padding: 30px 10px;
}

.csb-success-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background: var(--csb-red);
	color: var(--csb-white);
	font-size: 30px;
	margin: 0 auto 18px;
}

.csb-success-title {
	color: var(--csb-white);
	margin-bottom: 8px;
}

.csb-success-text {
	color: rgba(255, 255, 255, 0.85);
}

.csb-services-list {
	background: var(--csb-navy, #0b1220);
	border-radius: 10px;
	padding: 16px;
}

.csb-services-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csb-services-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #26314a;
	color: #ffffff;
}

/* حقل التاريخ المخصص بترتيب يوم/شهر/سنة */
.csb-date-field-wrapper {
	position: relative;
}

.csb-field input[type="text"].csb-date-display {
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-inline-start: 40px;
}

.csb-calendar-popup {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	background: var(--csb-navy-light);
	border: 1px solid var(--csb-border);
	border-radius: 8px;
	padding: 12px;
	z-index: 20;
	box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.csb-calendar-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.csb-cal-month-label {
	color: var(--csb-white);
	font-weight: 600;
	font-size: 14px;
}

.csb-cal-nav {
	background: transparent;
	border: 1px solid var(--csb-border);
	color: var(--csb-white);
	border-radius: 4px;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.csb-cal-nav:hover {
	border-color: var(--csb-red);
	color: var(--csb-red);
}

.csb-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.csb-cal-weekday {
	text-align: center;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	padding-bottom: 4px;
}

.csb-cal-cell {
	text-align: center;
	padding: 7px 0;
	border-radius: 4px;
	font-size: 13px;
	color: var(--csb-white);
	cursor: pointer;
	background: transparent;
	border: none;
	font-family: inherit;
}

.csb-cal-cell:hover:not(.csb-cal-disabled):not(.csb-cal-empty) {
	background: rgba(224, 0, 0, 0.25);
}

.csb-cal-cell.csb-cal-selected {
	background: var(--csb-red);
	color: var(--csb-white);
	font-weight: 700;
}

.csb-cal-cell.csb-cal-disabled {
	color: rgba(255, 255, 255, 0.25);
	cursor: not-allowed;
}

.csb-cal-cell.csb-cal-empty {
	cursor: default;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 480px) {
	.csb-booking-widget {
		padding: 18px;
		border-radius: 10px;
	}

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

	.csb-step-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.csb-btn {
		width: 100%;
	}

	.csb-btn-primary {
		margin-inline-start: 0;
	}
}
