.appointment-booking-overlay[hidden],
.appointment-booking-overlay .ab-choice[hidden],
.appointment-booking-overlay .ab-step[hidden],
.appointment-booking-overlay .ab-success[hidden],
.appointment-booking-overlay .ab-submitting[hidden] {
	display: none !important;
}

.appointment-booking-overlay {
	display: none;
	position: fixed;
	inset: 0;
	width: 100% !important;
	max-height: none !important;
	top: 0 !important;
	right: 0 !important;
	left: 0;
	transform: none !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	z-index: 10050;
}

.appointment-booking-overlay.sticky-form,
.appointment-booking-overlay.sticky-form.is-open {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-height: none !important;
	transform: none !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	z-index: 10050 !important;
}

.appointment-booking-overlay.is-open {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.appointment-booking-overlay .ab-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 28, 45, 0.55);
}

.appointment-booking-overlay .ab-panel {
	position: relative;
	z-index: 1;
	width: min(720px, calc(100% - 24px));
	max-height: min(92vh, 860px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(20, 30, 50, 0.28);
	padding: 28px 28px 20px;
}

.appointment-booking-overlay .ab-close,
.appointment-booking-overlay .close-btn {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent !important;
	color: #2C2D3F;
	font-size: 32px;
	line-height: 1;
	padding: 0 !important;
	border-radius: 50%;
}

.appointment-booking-overlay .ab-close:hover,
.appointment-booking-overlay .close-btn:hover {
	color: #c0392b;
	background: #f4f6f8 !important;
}

.appointment-booking-overlay .ab-header {
	padding-right: 36px;
	margin-bottom: 18px;
}

.appointment-booking-overlay .ab-kicker {
	margin: 0 0 4px;
	color: #32B87D;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.appointment-booking-overlay .ab-header h3,
.appointment-booking-overlay #ab-title {
	margin: 0 0 8px;
	color: #2C2D3F;
	font-size: 26px;
	font-weight: 700;
}

.appointment-booking-overlay .ab-intro,
.appointment-booking-overlay .ab-help {
	margin: 0 0 16px;
	color: #5c6570;
	font-size: 14px;
	line-height: 1.5;
}

.appointment-booking-overlay .ab-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.appointment-booking-overlay .ab-progress li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #8a939e;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f4f6f8;
}

.appointment-booking-overlay .ab-progress li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #d9dee5;
	color: #2C2D3F;
	font-size: 11px;
}

.appointment-booking-overlay .ab-progress li.is-active,
.appointment-booking-overlay .ab-progress li.is-complete {
	color: #2C2D3F;
	background: #e8f8f0;
}

.appointment-booking-overlay .ab-progress li.is-active span,
.appointment-booking-overlay .ab-progress li.is-complete span {
	background: #32B87D;
	color: #fff;
}

.appointment-booking-overlay .ab-step h4 {
	margin: 0 0 8px;
	color: #2C2D3F;
	font-size: 18px;
	font-weight: 600;
}

.appointment-booking-overlay .ab-subheading {
	margin: 22px 0 8px;
	padding-top: 8px;
	border-top: 1px solid #e6ebf0;
	font-size: 16px;
}

.appointment-booking-overlay .ab-choice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.appointment-booking-overlay .ab-choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	width: 100%;
	min-height: 112px;
	padding: 16px !important;
	border: 2px solid #e6eaef;
	border-radius: 12px;
	background: #fff !important;
	color: #2C2D3F;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.appointment-booking-overlay .ab-choice:hover,
.appointment-booking-overlay .ab-choice:focus {
	border-color: #32B87D;
	box-shadow: 0 8px 20px rgba(50, 184, 125, 0.12);
	outline: none;
	transform: translateY(-1px);
}

.appointment-booking-overlay .ab-choice.is-selected {
	border-color: #32B87D;
	background: #f3fbf7 !important;
	box-shadow: 0 0 0 3px rgba(50, 184, 125, 0.18);
}

.appointment-booking-overlay .ab-choice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: #e8f8f0;
	color: #32B87D;
	font-size: 16px;
}

.appointment-booking-overlay .ab-choice-label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.appointment-booking-overlay .ab-choice-text {
	margin-top: 4px;
	font-size: 12px;
	color: #5c6570;
}

.appointment-booking-overlay .ab-choice-desc {
	margin-top: 6px;
	font-size: 13px;
	color: #6b7380;
	line-height: 1.4;
}

.appointment-booking-overlay .ab-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.appointment-booking-overlay .ab-field,
.appointment-booking-overlay .ab-field-full {
	min-width: 0;
}

.appointment-booking-overlay .ab-field-full {
	grid-column: 1 / -1;
}

.appointment-booking-overlay .ab-field label,
.appointment-booking-overlay .ab-field legend {
	display: block;
	margin: 0 0 6px;
	color: #2C2D3F;
	font-size: 13px;
	font-weight: 600;
}

.appointment-booking-overlay .ab-required {
	color: #c0392b;
}

.appointment-booking-overlay .ab-optional {
	color: #8a939e;
	font-weight: 500;
}

.appointment-booking-overlay .ab-form input,
.appointment-booking-overlay .ab-form select,
.appointment-booking-overlay .ab-form textarea {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	background: #fff;
	color: #2C2D3F;
	font-size: 14px;
	text-transform: none;
}

.appointment-booking-overlay .ab-form textarea {
	height: 110px;
	padding: 12px 14px;
	resize: vertical;
}

.appointment-booking-overlay .ab-form input:focus,
.appointment-booking-overlay .ab-form select:focus,
.appointment-booking-overlay .ab-form textarea:focus {
	border-color: #32B87D;
	outline: none;
	box-shadow: 0 0 0 3px rgba(50, 184, 125, 0.15);
}

.appointment-booking-overlay .ab-inline-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.appointment-booking-overlay .ab-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.appointment-booking-overlay .ab-radio input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.appointment-booking-overlay .ab-review {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 10px 16px;
	margin: 0 0 16px;
	padding: 16px;
	background: #f7f9fb;
	border-radius: 12px;
}

.appointment-booking-overlay .ab-review dt {
	margin: 0;
	color: #6b7380;
	font-size: 13px;
	font-weight: 600;
}

.appointment-booking-overlay .ab-review dd {
	margin: 0;
	color: #2C2D3F;
	font-size: 15px;
	font-weight: 600;
}

.appointment-booking-overlay .ab-nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.appointment-booking-overlay .ab-nav .btn,
.appointment-booking-overlay .ab-success .btn {
	min-width: 140px;
	height: 46px;
	padding: 0 18px;
	border-radius: 8px;
}

.appointment-booking-overlay .ab-btn-secondary,
.appointment-booking-overlay .ab-btn-secondary:hover {
	background: #eef1f4 !important;
	color: #2C2D3F !important;
}

.appointment-booking-overlay .error {
	display: block;
	min-height: 18px;
	margin-top: 8px;
	color: #c0392b;
	font-size: 13px;
}

.appointment-booking-overlay .ab-success {
	text-align: center;
	padding: 28px 12px 12px;
}

.appointment-booking-overlay .ab-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #e8f8f0;
	color: #32B87D;
	font-size: 28px;
}

.appointment-booking-overlay .ab-success h4 {
	margin: 0 0 10px;
	color: #2C2D3F;
}

.appointment-booking-overlay .ab-success p {
	margin: 0 0 20px;
	color: #5c6570;
}

.appointment-booking-overlay .ab-step {
	animation: abFade 0.25s ease;
}

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

@media (max-width: 767px) {
	.appointment-booking-overlay .ab-panel {
		width: calc(100% - 16px);
		max-height: 96vh;
		padding: 20px 16px 16px;
		border-radius: 12px;
	}

	.appointment-booking-overlay .ab-fields,
	.appointment-booking-overlay .ab-review {
		grid-template-columns: 1fr;
	}

	.appointment-booking-overlay .ab-progress li {
		font-size: 11px;
		padding: 5px 8px;
	}

	.appointment-booking-overlay .ab-nav {
		flex-direction: column-reverse;
	}

	.appointment-booking-overlay .ab-nav .btn {
		width: 100%;
	}

	.appointment-booking-overlay .ab-header h3,
	.appointment-booking-overlay #ab-title {
		font-size: 22px;
	}
}

.appointment-booking-overlay .ab-submitting {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.86);
	border-radius: 16px;
}

.appointment-booking-overlay .ab-submitting-card {
	text-align: center;
	padding: 24px;
}

.appointment-booking-overlay .ab-submitting-card .fa-spinner {
	color: #0d6e7a;
	margin-bottom: 12px;
}

.appointment-booking-overlay .ab-submitting-card p {
	margin: 0;
	color: #2C2D3F;
	font-weight: 600;
}

.appointment-booking-overlay .ab-submitting-note {
	margin-top: 6px !important;
	font-weight: 400 !important;
	font-size: 14px;
	color: #5c6570 !important;
}

body.ab-open {
	overflow: hidden;
}
