.ube-booking-form,
.ube-booking-form * {
	box-sizing: border-box;
}

.ube-booking-form {
	display: grid;
	gap: 18px;
	max-width: var(--ube-form-max-width, 980px);
	color: var(--ube-form-text, #1d2327);
}

.ube-booking-panel {
	display: grid;
	gap: 18px;
	width: 100%;
	padding: 18px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ube-step-indicator {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ube-step-indicator button {
	display: grid;
	gap: 4px;
	align-items: center;
	justify-items: center;
	min-width: 0;
	min-height: 48px;
	width: 100%;
	padding: 8px 4px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	color: #50575e;
	background: #f6f7f7;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.ube-step-indicator button span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	color: #50575e;
	background: #fff;
	border: 1px solid #dcdcde;
}

.ube-step-indicator button.is-active {
	color: #0a4b78;
	background: #eef6fc;
	border-color: #72aee6;
}

.ube-step-indicator button.is-active span,
.ube-step-indicator button.is-complete span {
	color: #fff;
	background: #2271b1;
	border-color: #2271b1;
}

.ube-booking-step {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.ube-booking-step[hidden] {
	display: none;
}

.ube-booking-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.ube-service-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ube-service-card {
	position: relative;
	display: block !important;
	cursor: pointer;
}

.ube-service-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ube-service-card span {
	display: grid;
	gap: 6px;
	min-height: 72px;
	padding: 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
	transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ube-service-card em {
	color: #50575e;
	font-style: normal;
	font-weight: 500;
}

.ube-service-card small {
	color: #646970;
	font-weight: 700;
}

.ube-service-card input:checked + span {
	border-color: #2271b1;
	background: #eef6fc;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.14);
}

.ube-service-card input:checked + span::after {
	content: "Selected";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	color: #fff;
	background: #2271b1;
	font-size: 12px;
	font-weight: 700;
}

.ube-service-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	padding: 12px 14px;
	border: 1px solid #c3d9eb;
	border-radius: 8px;
	background: #f0f6fc;
}

.ube-service-summary span {
	color: #50575e;
}

.ube-booking-form label {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.ube-booking-form input,
.ube-booking-form select,
.ube-booking-form textarea {
	width: 100%;
	min-height: 44px;
	max-width: 100%;
	border-radius: 6px;
}

.ube-booking-heading {
	display: grid;
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f1;
}

.ube-booking-heading h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.ube-booking-heading p {
	margin: 0;
	color: #646970;
}

.ube-slot-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ube-calendar-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	min-width: 0;
}

.ube-calendar-panel,
.ube-slot-panel {
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.ube-calendar-header {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	gap: 10px;
	align-items: center;
	text-align: center;
}

.ube-calendar-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	font-weight: 800;
	cursor: pointer;
}

.ube-calendar-weekdays,
.ube-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
	min-width: 0;
}

.ube-calendar-weekdays span {
	color: #646970;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.ube-calendar-day,
.ube-calendar-spacer {
	min-width: 0;
	min-height: 44px;
	border-radius: 8px;
}

.ube-calendar-day {
	border: 1px solid #72aee6;
	color: #0a4b78;
	background: #eef6fc;
	font-weight: 800;
	cursor: pointer;
}

.ube-calendar-day.is-disabled,
.ube-calendar-day:disabled {
	color: #8c8f94;
	background: #f0f0f1;
	border-color: #dcdcde;
	cursor: not-allowed;
	text-decoration: line-through;
}

.ube-calendar-day.is-selected {
	color: #fff;
	background: #2271b1;
	border-color: #135e96;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

.ube-calendar-message,
.ube-slot-panel p {
	margin: 0;
	color: #646970;
	font-weight: 600;
}

.ube-calendar-message.is-error {
	color: #8a2424;
}

.ube-slot-panel h4 {
	margin: 0;
	font-size: 16px;
}

.ube-slot-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid #2271b1;
	border-radius: 8px;
	color: #0a4b78;
	background: #eef6fc;
	font-weight: 800;
	cursor: pointer;
}

.ube-slot-button.is-selected {
	color: #fff;
	background: #2271b1;
	border-color: #135e96;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

.ube-slot-option {
	position: relative;
	display: inline-flex !important;
	cursor: pointer;
}

.ube-slot-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ube-slot-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid #2271b1;
	border-radius: 8px;
	color: #0a4b78;
	background: #eef6fc;
	font-weight: 700;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.ube-slot-option input:checked + span {
	color: #fff;
	background: #2271b1;
	border-color: #135e96;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

.ube-step-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ube-booking-button,
.ube-booking-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: 100%;
	padding: 0 18px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ube-booking-button {
	border: 0;
	color: #fff;
	background: #2271b1;
}

.ube-booking-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.ube-booking-secondary {
	border: 1px solid #c3c4c7;
	color: #1d2327;
	background: #fff;
}

.ube-overview-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ube-overview-grid > div,
.ube-overview-notes {
	display: grid;
	gap: 5px;
	padding: 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.ube-overview-grid span,
.ube-overview-notes span {
	color: #646970;
	font-weight: 700;
}

.ube-overview-notes p {
	margin: 0;
	white-space: pre-wrap;
}

.ube-booking-notice,
.ube-booking-empty {
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.ube-booking-notice.is-success {
	color: #0a5f38;
	background: #dff7ea;
	border: 1px solid #8bd3a8;
}

.ube-booking-notice.is-error {
	color: #8a2424;
	background: #fde8e8;
	border: 1px solid #f0aaaa;
}

.ube-booking-empty {
	color: #646970;
	background: #f6f7f7;
	border: 1px dashed #b8c2cc;
}

.ube-booking-form .ube-booking-panel,
.ube-booking-form .ube-step-indicator button,
.ube-booking-form .ube-service-card span,
.ube-booking-form .ube-service-summary,
.ube-booking-form .ube-calendar-panel,
.ube-booking-form .ube-slot-panel,
.ube-booking-form .ube-calendar-nav,
.ube-booking-form .ube-calendar-day,
.ube-booking-form .ube-slot-button,
.ube-booking-form .ube-booking-button,
.ube-booking-form .ube-booking-secondary,
.ube-booking-form .ube-overview-grid > div,
.ube-booking-form .ube-overview-notes,
.ube-booking-form input,
.ube-booking-form select,
.ube-booking-form textarea {
	border-radius: var(--ube-form-radius, 8px);
}

.ube-booking-form .ube-booking-panel,
.ube-booking-form .ube-step-indicator button,
.ube-booking-form .ube-service-card span,
.ube-booking-form .ube-calendar-panel,
.ube-booking-form .ube-slot-panel,
.ube-booking-form .ube-overview-grid > div,
.ube-booking-form .ube-overview-notes {
	border-color: var(--ube-form-border, #dcdcde);
}

.ube-booking-form .ube-step-indicator button.is-active,
.ube-booking-form .ube-service-card input:checked + span,
.ube-booking-form .ube-service-summary,
.ube-booking-form .ube-calendar-day,
.ube-booking-form .ube-slot-button {
	background: var(--ube-form-accent, #eef6fc);
}

.ube-booking-form .ube-step-indicator button.is-active,
.ube-booking-form .ube-service-card input:checked + span,
.ube-booking-form .ube-calendar-day,
.ube-booking-form .ube-slot-button {
	border-color: var(--ube-form-primary, #2271b1);
}

.ube-booking-form .ube-step-indicator button.is-active span,
.ube-booking-form .ube-step-indicator button.is-complete span,
.ube-booking-form .ube-service-card input:checked + span::after,
.ube-booking-form .ube-calendar-day.is-selected,
.ube-booking-form .ube-slot-button.is-selected,
.ube-booking-form .ube-booking-button {
	background: var(--ube-form-primary, #2271b1);
	border-color: var(--ube-form-primary, #2271b1);
}

.ube-booking-form.ube-button-style-outline .ube-booking-button {
	color: var(--ube-form-primary, #2271b1);
	background: #fff;
	border: 1px solid var(--ube-form-primary, #2271b1);
}

.ube-booking-form.ube-button-style-soft .ube-booking-button {
	color: var(--ube-form-primary, #2271b1);
	background: var(--ube-form-accent, #eef6fc);
	border: 1px solid var(--ube-form-primary, #2271b1);
}

@media (min-width: 768px) {
	.ube-booking-grid,
	.ube-overview-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ube-service-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ube-booking-button,
	.ube-booking-secondary {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.ube-service-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ube-calendar-layout {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
		align-items: start;
	}
}
