/*!
 * i House Booking — واجهة الويزارد
 * كل الأنماط مقصورة على .ihb عشان ما تأثرش على الثيم.
 */

.ihb {
	--ihb-navy: #0b2d42;
	--ihb-navy-2: #123c56;
	--ihb-orange: #d7622c;
	--ihb-orange-d: #b94f1f;
	--ihb-ivory: #f8f5ee;
	--ihb-grey: #5f7886;
	--ihb-line: rgba(11, 45, 66, .13);
	--ihb-r: 16px;

	position: relative;
	direction: rtl;
	text-align: right;
	max-width: 900px;
	margin-inline: auto;
	padding: clamp(20px, 3.4vw, 38px);
	background:
		radial-gradient(120% 90% at 92% -12%, rgba(215, 98, 44, .09) 0%, transparent 56%),
		linear-gradient(180deg, #fffdf9 0%, var(--ihb-ivory) 100%);
	border: 1px solid var(--ihb-line);
	border-radius: 24px;
	box-shadow: 0 30px 70px -46px rgba(11, 45, 66, .65), 0 1px 0 #fff inset;
	color: var(--ihb-navy);
	font-family: Tajawal, Alexandria, "Segoe UI", system-ui, sans-serif;
	line-height: 1.65;
	overflow: hidden;
}

.ihb *,
.ihb *::before,
.ihb *::after {
	box-sizing: border-box;
}

.ihb-empty {
	direction: rtl;
	padding: 18px;
	border: 1px dashed rgba(11, 45, 66, .3);
	border-radius: 14px;
	background: #f8f5ee;
	color: #0b2d42;
	text-align: center;
	font-family: Tajawal, system-ui, sans-serif;
}

/* ============ العنوان ============ */

.ihb-head {
	margin-bottom: 22px;
	padding-inline-start: 15px;
	border-inline-start: 4px solid var(--ihb-orange);
}

.ihb-head h3 {
	margin: 0 0 6px;
	font-size: clamp(21px, 2.7vw, 28px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--ihb-navy);
}

.ihb-head p {
	margin: 0;
	max-width: 60ch;
	color: var(--ihb-grey);
	font-size: 15px;
}

/* ============ لافتة لوحة التصميم ============ */

.ihb-board {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--ihb-navy);
	border-radius: 15px;
	color: var(--ihb-ivory);
}

.ihb-board-ic {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: rgba(215, 98, 44, .22);
	color: #f0a578;
}

.ihb-board-ic svg {
	width: 22px;
	height: 22px;
}

.ihb-board-t {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ihb-board-t strong {
	font-size: 15.5px;
	font-weight: 800;
}

.ihb-board-t span {
	font-size: 13px;
	color: rgba(248, 245, 238, .78);
	line-height: 1.6;
}

/* ============ شريط الخطوات ============ */

.ihb-rail {
	position: relative;
	margin: 0 0 20px;
	padding: 0 6px;
}

.ihb-track {
	position: absolute;
	inset-block-start: 19px;
	inset-inline: 30px;
	height: 3px;
	border-radius: 999px;
	background: rgba(11, 45, 66, .1);
	overflow: hidden;
}

.ihb-track i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ihb-orange), #e88a52);
	transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.ihb-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ihb-stp {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	flex: 1 1 0;
	min-width: 0;
}

.ihb-dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(11, 45, 66, .14);
	color: var(--ihb-grey);
	font-size: 15px;
	font-weight: 800;
	transition: background .28s ease, border-color .28s ease, color .28s ease, transform .28s ease;
}

.ihb-dot svg {
	position: absolute;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: #fff;
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	transform: scale(.5);
	transition: opacity .22s ease, transform .22s ease;
}

.ihb-lbl {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ihb-grey);
	white-space: nowrap;
	transition: color .28s ease;
}

.ihb-stp.is-on .ihb-dot {
	background: var(--ihb-orange);
	border-color: var(--ihb-orange);
	color: #fff;
	transform: scale(1.06);
	box-shadow: 0 0 0 5px rgba(215, 98, 44, .15);
}

.ihb-stp.is-on .ihb-lbl {
	color: var(--ihb-navy);
}

.ihb-stp.is-done .ihb-dot {
	background: var(--ihb-navy);
	border-color: var(--ihb-navy);
	color: transparent;
}

.ihb-stp.is-done .ihb-dot b {
	opacity: 0;
}

.ihb-stp.is-done .ihb-dot svg {
	opacity: 1;
	transform: scale(1);
}

.ihb-stp.is-done .ihb-lbl {
	color: var(--ihb-navy);
}

/* ============ شرايط الاختيار ============ */

.ihb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 11px 13px;
	background: rgba(11, 45, 66, .045);
	border: 1px solid var(--ihb-line);
	border-radius: 13px;
}

.ihb-chips[hidden] {
	display: none;
}

.ihb-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	background: #fff;
	border: 1px solid var(--ihb-line);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ihb-navy);
}

.ihb-chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ihb-orange);
}

/* ============ الألواح ============ */

.ihb-pane[hidden] {
	display: none;
}

.ihb-pane.is-on {
	animation: ihb-in .34s cubic-bezier(.2, .7, .3, 1);
}

.ihb-pane.is-back {
	animation-name: ihb-in-back;
}

@keyframes ihb-in {
	from {
		opacity: 0;
		transform: translateX(-18px);
	}
}

@keyframes ihb-in-back {
	from {
		opacity: 0;
		transform: translateX(18px);
	}
}

.ihb-q {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ihb-navy);
}

.ihb-qs {
	margin: 0 0 16px;
	color: var(--ihb-grey);
	font-size: 14.5px;
}

/* ============ الخدمات ============ */

.ihb-svcs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.ihb-svc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 92px;
	padding: 16px 18px 16px 42px;
	background: #fff;
	border: 1.5px solid var(--ihb-line);
	border-radius: var(--ihb-r);
	cursor: pointer;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ihb-svc:hover {
	border-color: rgba(215, 98, 44, .5);
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -22px rgba(11, 45, 66, .7);
}

.ihb-svc input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ihb-svc-ic {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(11, 45, 66, .06);
	color: var(--ihb-navy);
	transition: background .18s ease, color .18s ease;
}

.ihb-svc-ic .ihb-ic {
	width: 25px;
	height: 25px;
}

.ihb-svc-b {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.ihb-svc-b strong {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ihb-navy);
}

.ihb-svc-m {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--ihb-grey);
}

.ihb-price {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(215, 98, 44, .12);
	color: var(--ihb-orange-d);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.ihb-tick {
	position: absolute;
	inset-block-start: 11px;
	inset-inline-start: 11px;
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--ihb-orange);
	opacity: 0;
	transform: scale(.4);
	transition: opacity .2s ease, transform .22s cubic-bezier(.2, .9, .3, 1.5);
}

.ihb-tick svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: #fff;
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ihb-svc.is-on {
	border-color: var(--ihb-orange);
	box-shadow: 0 0 0 3px rgba(215, 98, 44, .15);
}

.ihb-svc.is-on .ihb-svc-ic {
	background: rgba(215, 98, 44, .13);
	color: var(--ihb-orange-d);
}

.ihb-svc.is-on .ihb-tick {
	opacity: 1;
	transform: scale(1);
}

.ihb-svc:focus-within {
	outline: 2px solid var(--ihb-navy);
	outline-offset: 2px;
}

/* ============ شريط الأيام ============ */

.ihb-dates {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	padding: 4px 2px 14px;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.ihb-dates::-webkit-scrollbar {
	height: 6px;
}

.ihb-dates::-webkit-scrollbar-thumb {
	background: rgba(11, 45, 66, .22);
	border-radius: 999px;
}

.ihb-date {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	width: 72px;
	padding: 10px 6px 11px;
	background: #fff;
	border: 1.5px solid var(--ihb-line);
	border-radius: 14px;
	cursor: pointer;
	font: inherit;
	color: var(--ihb-navy);
	transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.ihb-date span {
	font-size: 12px;
	font-weight: 700;
	color: var(--ihb-grey);
}

.ihb-date b {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
}

.ihb-date i {
	font-size: 11px;
	font-style: normal;
	color: rgba(95, 120, 134, .85);
}

.ihb-date:hover {
	border-color: rgba(215, 98, 44, .5);
	transform: translateY(-2px);
}

.ihb-date.is-on {
	background: var(--ihb-navy);
	border-color: var(--ihb-navy);
	color: var(--ihb-ivory);
	box-shadow: 0 12px 24px -18px rgba(11, 45, 66, .9);
}

.ihb-date.is-on span,
.ihb-date.is-on i {
	color: rgba(248, 245, 238, .8);
}

/* ============ المواعيد ============ */

.ihb-slots {
	min-height: 56px;
}

.ihb-times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 9px;
}

.ihb-time {
	padding: 12px 6px;
	background: #fff;
	border: 1.5px solid var(--ihb-line);
	border-radius: 12px;
	cursor: pointer;
	font: 600 15px/1.2 inherit;
	color: var(--ihb-navy);
	transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.ihb-time:hover {
	border-color: rgba(215, 98, 44, .55);
	transform: translateY(-1px);
}

.ihb-time.is-on {
	background: var(--ihb-orange);
	border-color: var(--ihb-orange);
	color: #fff;
	box-shadow: 0 10px 20px -14px rgba(215, 98, 44, .9);
}

.ihb-hint {
	margin: 0;
	padding: 13px 15px;
	background: rgba(95, 120, 134, .08);
	border-radius: 12px;
	color: var(--ihb-grey);
	font-size: 14px;
}

.ihb-hint.is-warn {
	background: rgba(215, 98, 44, .1);
	color: var(--ihb-orange-d);
}

.ihb-load {
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-inline-end: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(95, 120, 134, .3);
	border-top-color: var(--ihb-orange);
	border-radius: 50%;
	animation: ihb-spin .7s linear infinite;
}

@keyframes ihb-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ============ ملخّص فوق البيانات ============ */

.ihb-recap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 18px;
	padding: 13px 16px;
	background: var(--ihb-navy);
	border-radius: 14px;
	color: var(--ihb-ivory);
	font-size: 14.5px;
	font-weight: 600;
}

.ihb-recap:empty {
	display: none;
}

.ihb-recap b {
	font-weight: 800;
}

.ihb-recap .ihb-rsep {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ihb-orange);
}

/* ============ الحقول ============ */

.ihb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.ihb-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ihb-navy);
}

.ihb-lb {
	display: block;
}

.ihb-grid label em {
	color: var(--ihb-orange);
	font-style: normal;
}

.ihb-full {
	grid-column: 1 / -1;
}

.ihb-inp {
	width: 100%;
	max-width: 100%;
	padding: 12px 13px;
	background: #fff;
	border: 1.5px solid var(--ihb-line);
	border-radius: 12px;
	font: 400 15px/1.5 inherit;
	color: var(--ihb-navy);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.ihb-inp::placeholder {
	color: rgba(95, 120, 134, .62);
}

.ihb-inp:focus {
	outline: none;
	border-color: var(--ihb-orange);
	box-shadow: 0 0 0 3px rgba(215, 98, 44, .14);
}

.ihb-inp.is-bad {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

textarea.ihb-inp {
	resize: vertical;
	min-height: 88px;
}

select.ihb-inp {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7886' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	background-size: 15px;
	padding-inline-start: 34px;
}

.ihb-sm {
	font-size: 12px;
	font-weight: 400;
	color: var(--ihb-grey);
}

.ihb-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
	padding: 13px 15px;
	background: rgba(37, 211, 102, .09);
	border: 1px solid rgba(37, 211, 102, .3);
	border-radius: 13px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
}

.ihb-check input {
	width: 18px;
	height: 18px;
	accent-color: #128c4a;
	cursor: pointer;
}

.ihb-wa-ic {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}

.ihb-wa-ic svg {
	width: 17px;
	height: 17px;
}

/* ============ الخطأ ============ */

.ihb-err {
	display: none;
	margin: 16px 0 0;
	padding: 12px 14px;
	background: rgba(192, 57, 43, .08);
	border: 1px solid rgba(192, 57, 43, .28);
	border-radius: 12px;
	color: #a5301f;
	font-size: 14px;
	font-weight: 600;
}

.ihb-err.is-on {
	display: block;
}

/* ============ التنقل ============ */

.ihb-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--ihb-line);
}

.ihb-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 0 22px;
	background: var(--ihb-navy);
	border: none;
	border-radius: 14px;
	color: #fff;
	font: 700 16.5px/1.3 inherit;
	cursor: pointer;
	transition: background .16s ease, transform .16s ease, opacity .16s ease;
}

.ihb-btn svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ihb-btn:hover:not(:disabled) {
	background: var(--ihb-navy-2);
	transform: translateY(-2px);
}

.ihb-btn--go {
	background: var(--ihb-orange);
	box-shadow: 0 16px 30px -20px rgba(215, 98, 44, .95);
}

.ihb-btn--go:hover:not(:disabled) {
	background: var(--ihb-orange-d);
}

.ihb-btn:disabled {
	opacity: .6;
	cursor: progress;
	transform: none;
}

.ihb-btn[hidden] {
	display: none;
}

.ihb-ghost {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 54px;
	padding: 0 18px;
	background: transparent;
	border: 1.5px solid var(--ihb-line);
	border-radius: 14px;
	color: var(--ihb-navy);
	font: 700 15px/1.3 inherit;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease;
}

.ihb-ghost svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ihb-ghost:hover {
	border-color: var(--ihb-navy);
	background: rgba(11, 45, 66, .04);
}

.ihb-ghost[hidden] {
	display: none;
}

/* ============ شاشة النجاح ============ */

.ihb-done {
	text-align: center;
	padding: 34px 18px 14px;
}

.ihb-done[hidden] {
	display: none;
}

.ihb-done-ic {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(37, 211, 102, .15);
	animation: ihb-pop .42s cubic-bezier(.2, .9, .3, 1.4);
}

.ihb-done-ic svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: #128c4a;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes ihb-pop {
	from {
		transform: scale(.4);
		opacity: 0;
	}
}

.ihb-done h4 {
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--ihb-navy);
}

.ihb-sum {
	display: inline-block;
	margin: 0 0 12px;
	padding: 9px 17px;
	border-radius: 999px;
	background: rgba(11, 45, 66, .06);
	color: var(--ihb-navy);
	font-size: 14.5px;
	font-weight: 700;
}

.ihb-sum:empty {
	display: none;
}

.ihb-ref {
	margin: 0;
	color: var(--ihb-grey);
	font-size: 15px;
}

.ihb-ref b {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 3px 10px;
	border-radius: 8px;
	background: rgba(11, 45, 66, .07);
	color: var(--ihb-navy);
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	direction: ltr;
}

/* ============ الموبايل ============ */

@media (max-width: 620px) {
	.ihb {
		border-radius: 18px;
		padding: 18px 14px;
	}

	.ihb-svcs,
	.ihb-grid {
		grid-template-columns: 1fr;
	}

	.ihb-times {
		grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	}

	.ihb-lbl {
		font-size: 12px;
	}

	.ihb-dot {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.ihb-track {
		inset-block-start: 17px;
		inset-inline: 26px;
	}

	.ihb-btn {
		min-height: 50px;
		font-size: 15.5px;
	}

	.ihb-ghost {
		min-height: 50px;
		padding: 0 14px;
	}
}

@media (max-width: 380px) {
	.ihb-date {
		width: 64px;
	}

	.ihb-lbl {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ihb *,
	.ihb *::before,
	.ihb *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
