.eib-reserve-document {
	overflow-x: hidden;
	margin: 0 !important;
	background: #f4f8fa;
}

.eib-reserve-document #wpadminbar {
	display: none !important;
}

.eib-page {
	--primary: #18a99a;
	--primary-dark: #087b78;
	--primary-deep: #065f62;
	--primary-soft: #e8f8f6;
	--blue: #176bb3;
	--blue-deep: #104e8b;
	--accent: #f5bd3f;
	--text: #17242d;
	--muted: #6c7982;
	--border: #d9e2e7;
	--surface: #fff;
	--background: #f4f8fa;
	--danger: #c72e39;
	--danger-soft: #fff0f2;
	--success: #087849;
	--shadow: 0 18px 50px rgba(20, 53, 70, .10);
	min-height: 100vh;
	padding: clamp(16px, 4vw, 48px) 12px 28px;
	background:
		radial-gradient(circle at 92% 3%, rgba(24, 169, 154, .17), transparent 26%),
		radial-gradient(circle at 1% 38%, rgba(23, 107, 179, .11), transparent 28%),
		linear-gradient(180deg, #f7fbfc 0%, #f2f7f9 100%);
	color: var(--text);
	font-family: Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

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

.eib-page button,
.eib-page input {
	font: inherit;
}

.eib-page button:focus-visible,
.eib-page input:focus-visible {
	outline: 3px solid rgba(23, 107, 179, .28);
	outline-offset: 2px;
}

.eib-wrap {
	width: min(1040px, 100%);
	margin: 0 auto;
}

.eib-hero {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: linear-gradient(124deg, var(--primary-deep) 0%, var(--primary-dark) 44%, var(--blue-deep) 100%);
	box-shadow: 0 24px 65px rgba(9, 78, 104, .22);
	color: #fff;
}

.eib-brand {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px clamp(22px, 4vw, 42px);
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.eib-logo {
	display: grid;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	place-items: center;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .11);
}

.eib-logo img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 4px;
	object-fit: contain;
}

.eib-brand strong,
.eib-brand small {
	display: block;
}

.eib-brand strong {
	font-size: 19px;
}

.eib-brand small {
	margin-top: 4px;
	color: rgba(255, 255, 255, .78);
	font-size: 11px;
}

.eib-hero-copy {
	position: relative;
	z-index: 2;
	padding: clamp(34px, 6vw, 70px) clamp(22px, 6vw, 68px);
}

.eib-hero-service-line {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 11px;
	color: #dffaf6;
	font-size: 13px;
}

.eib-hero-service-line span {
	width: 28px;
	height: 3px;
	border-radius: 999px;
	background: var(--accent);
}

.eib-hero-service-line b {
	font-weight: 700;
}

.eib-eyebrow {
	display: inline-flex;
	margin-bottom: 15px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: rgba(255, 255, 255, .09);
	font-size: 13px;
	font-weight: 700;
}

.eib-hero h1 {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(27px, 5vw, 45px);
	font-weight: 800;
	line-height: 1.4;
}

.eib-hero p {
	max-width: 730px;
	margin: 0;
	color: rgba(255, 255, 255, .86);
	font-size: 16px;
	line-height: 2;
}

.eib-hero-orb {
	position: absolute;
	z-index: 1;
	display: block;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 50%;
	background: rgba(255, 255, 255, .055);
}

.eib-hero-orb-one {
	top: -88px;
	left: -70px;
	width: 230px;
	height: 230px;
}

.eib-hero-orb-two {
	bottom: -78px;
	left: 82px;
	width: 140px;
	height: 140px;
}

.eib-card,
.eib-success-card {
	position: relative;
	margin-top: 20px;
	padding: clamp(20px, 4vw, 36px);
	border: 1px solid rgba(199, 218, 226, .95);
	border-radius: 22px;
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 13px 36px rgba(16, 78, 103, .07);
}

.eib-card::before {
	position: absolute;
	top: 0;
	right: 28px;
	width: 72px;
	height: 4px;
	border-radius: 0 0 8px 8px;
	background: linear-gradient(90deg, var(--primary), var(--blue));
	content: "";
}

.eib-section-title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
}

.eib-calendar-heading {
	justify-content: space-between;
	gap: 22px;
}

.eib-title-with-step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.eib-step {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	border-radius: 13px;
	background: linear-gradient(145deg, var(--primary), var(--blue));
	box-shadow: 0 8px 18px rgba(24, 169, 154, .22);
	color: #fff;
	font-weight: 800;
}

.eib-section-title h2 {
	margin: 0 0 5px;
	color: var(--text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
}

.eib-section-title p {
	margin: 0;
	color: var(--muted);
	line-height: 1.8;
}

.eib-calendar-controls {
	display: grid;
	grid-template-columns: auto minmax(150px, auto) auto;
	align-items: center;
	gap: 8px;
}

.eib-calendar-controls button {
	min-height: 38px;
	padding: 7px 11px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: #fff;
	color: var(--primary);
	cursor: pointer;
}

.eib-calendar-controls button:hover:not(:disabled) {
	background: var(--primary-soft);
}

.eib-calendar-controls button:disabled {
	opacity: .42;
	cursor: not-allowed;
}

.eib-calendar-controls strong {
	text-align: center;
	font-size: 17px;
}

.eib-today-live-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding: 13px 16px;
	border: 1px solid rgba(28, 165, 147, .20);
	border-radius: 13px;
	background:
		linear-gradient(90deg, rgba(28, 165, 147, .08), rgba(21, 101, 170, .04)),
		#fff;
}

.eib-today-live-card span {
	color: var(--primary-dark);
	font-size: 12px;
	font-weight: 800;
}

.eib-today-live-card strong {
	font-size: 15px;
}

.eib-calendar {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
}

.eib-weekdays,
.eib-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.eib-weekdays span {
	display: grid;
	min-height: 42px;
	place-items: center;
	border-left: 1px solid var(--border);
	background: #f6f9fa;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.eib-weekdays span:last-child {
	border-left: 0;
}

.eib-weekdays .eib-friday-title {
	background: #fff5f6;
	color: var(--danger);
}

.eib-day {
	position: relative;
	display: flex;
	min-height: 96px;
	aspect-ratio: 1 / 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 7px;
	border: 0;
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
	background: #fff;
	color: var(--text);
	cursor: pointer;
	transition: .15s ease;
}

.eib-day:nth-child(7n) {
	border-left: 0;
}

.eib-day.blank {
	background: #fafcfd;
	cursor: default;
}

.eib-day:not(.blank):not(:disabled):hover {
	z-index: 1;
	background: var(--primary-soft);
	box-shadow: inset 0 0 0 2px var(--primary);
}

.eib-day strong {
	font-size: 21px;
}

.eib-day small {
	min-height: 19px;
	margin-top: 7px;
	font-size: 10px;
	line-height: 1.4;
}

.eib-day.today {
	box-shadow: inset 0 0 0 2px var(--blue);
}

.eib-day.today::after {
	position: absolute;
	top: 5px;
	right: 6px;
	color: var(--blue);
	content: "امروز";
	font-size: 9px;
	font-weight: 700;
}

.eib-day.selected {
	z-index: 2;
	background: linear-gradient(145deg, var(--primary), var(--blue));
	box-shadow: inset 0 0 0 2px var(--primary-dark);
	color: #fff;
}

.eib-day.selected small {
	color: #fff;
}

.eib-day.holiday {
	background: var(--danger-soft);
	color: var(--danger);
	cursor: not-allowed;
}

.eib-day.holiday small {
	color: var(--danger);
	font-weight: 800;
}

.eib-day.past {
	background: #f4f5f6;
	color: #aab1b6;
	cursor: not-allowed;
}

.eib-day:disabled {
	opacity: 1;
}

.eib-calendar-legend,
.eib-slot-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 19px;
	margin-top: 15px;
	color: var(--muted);
	font-size: 12px;
}

.eib-calendar-legend span,
.eib-slot-legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.eib-calendar-legend i,
.eib-slot-legend i {
	width: 12px;
	height: 12px;
	border-radius: 4px;
}

.eib-calendar-legend .today {
	border: 2px solid var(--blue);
	background: #fff;
}

.eib-calendar-legend .holiday,
.eib-slot-legend .busy {
	border: 1px solid var(--danger);
	background: var(--danger-soft);
}

.eib-calendar-legend .selected {
	background: var(--primary);
}

.eib-slot-legend .free {
	border: 1px solid var(--primary);
	background: var(--primary-soft);
}

.eib-slot-status {
	min-height: 24px;
	margin-bottom: 11px;
	color: var(--muted);
	font-size: 14px;
}

.eib-slot-status.error {
	color: var(--danger);
}

.eib-slots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.eib-slot {
	min-height: 82px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 13px;
	background: #fff;
	cursor: pointer;
	transition: .16s ease;
}

.eib-slot strong,
.eib-slot span,
.eib-slot small {
	display: block;
}

.eib-slot strong {
	font-size: 16px;
	direction: ltr;
}

.eib-slot span {
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	direction: ltr;
}

.eib-slot small {
	margin-top: 5px;
	font-size: 10px;
	font-weight: 700;
}

.eib-slot.free:hover {
	border-color: var(--primary);
	background: var(--primary-soft);
	transform: translateY(-2px);
}

.eib-slot.selected {
	border-color: var(--primary);
	background: linear-gradient(145deg, var(--primary-dark), var(--blue));
	box-shadow: 0 8px 20px rgba(8, 123, 120, .20);
	color: #fff;
}

.eib-slot.selected span,
.eib-slot.selected small {
	color: #fff;
}

.eib-slot.busy {
	border-color: #efb8bd;
	background: var(--danger-soft);
	color: var(--danger);
	cursor: not-allowed;
}

.eib-slot.busy span,
.eib-slot.busy small {
	color: #a84850;
}

#eibBookingForm {
	display: grid;
	gap: 16px;
}

#eibSlotsCard {
	scroll-margin-top: 24px;
}

.eib-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.eib-form-grid label {
	display: grid;
	gap: 8px;
	font-weight: 700;
}

.eib-form-grid label > span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.eib-form-grid label > span::before {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
	content: "";
}

.eib-form-grid input {
	width: 100%;
	min-height: 51px;
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	outline: none;
	background: #fbfdfe;
	color: var(--text);
	font-size: 15px;
}

.eib-form-grid input::placeholder {
	color: #9aa8b1;
	font-size: 13px;
}

.eib-form-grid input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(8, 123, 120, .11);
}

.eib-primary,
.eib-secondary {
	min-height: 51px;
	padding: 11px 20px;
	border-radius: 12px;
	font-weight: 800;
	cursor: pointer;
}

.eib-primary {
	border: 0;
	background: linear-gradient(100deg, var(--primary-dark), var(--blue));
	box-shadow: 0 8px 20px rgba(23, 107, 179, .15);
	color: #fff;
}

.eib-primary:hover {
	background: linear-gradient(100deg, var(--primary-deep), var(--blue-deep));
}

.eib-secondary {
	margin-top: 16px;
	border: 1px solid var(--primary);
	background: #fff;
	color: var(--primary);
}

.eib-secondary:hover {
	background: var(--primary-soft);
}

.eib-primary:disabled,
.eib-secondary:disabled {
	opacity: .62;
	cursor: wait;
}

.eib-error {
	min-height: 22px;
	color: var(--danger);
	font-size: 14px;
	font-weight: 700;
}

.eib-success-card {
	padding-block: clamp(38px, 7vw, 72px);
	text-align: center;
}

.eib-success-icon {
	display: grid;
	width: 74px;
	height: 74px;
	margin: 0 auto 18px;
	place-items: center;
	border-radius: 50%;
	background: #dcf7e9;
	color: var(--success);
	font-size: 39px;
	font-weight: 900;
}

.eib-success-card h2 {
	margin: 0 0 13px;
	color: var(--text);
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.5;
}

.eib-success-card p {
	max-width: 740px;
	margin: 0 auto 23px;
	color: var(--muted);
	font-size: 16px;
	line-height: 2.1;
}

.eib-global-message,
.eib-dependency-error {
	margin: 16px auto;
	padding: 14px;
	border: 1px solid #efb8bd;
	border-radius: 11px;
	background: var(--danger-soft, #fff0f2);
	color: var(--danger, #c72e39);
	font-family: Tahoma, Arial, sans-serif;
}

.eib-footer {
	display: flex;
	justify-content: center;
	padding: 22px 10px 0;
	color: var(--muted);
	font-size: 13px;
}

.eib-page [hidden] {
	display: none !important;
}

@media (max-width: 820px) {
	.eib-calendar-heading {
		display: block;
	}

	.eib-calendar-controls {
		margin-top: 15px;
	}

	.eib-slots {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.eib-hero,
	.eib-card,
	.eib-success-card {
		border-radius: 17px;
	}

	.eib-day {
		min-height: 76px;
	}
}

@media (max-width: 620px) {
	.eib-today-live-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.eib-weekdays span {
		font-size: 9px;
	}

	.eib-day {
		min-height: 60px;
		padding: 4px;
	}

	.eib-day strong {
		font-size: 17px;
	}

	.eib-day small {
		font-size: 8px;
	}

	.eib-day.today::after {
		display: none;
	}

	.eib-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 390px) {
	.eib-slots {
		grid-template-columns: 1fr;
	}

	.eib-calendar-controls {
		grid-template-columns: 1fr 1fr;
	}

	.eib-calendar-controls strong {
		grid-row: 1;
		grid-column: 1 / -1;
	}
}
