.qbc-widget {
	--qbc-ink: #111827;
	--qbc-muted: #6b7280;
	--qbc-border: #e5e7eb;
	--qbc-border-hover: #9ca3af;
	--qbc-bg: #ffffff;
	--qbc-bg-subtle: #f9fafb;
	--qbc-radius: 10px;

	display: flex;
	max-width: 880px;
	margin: 32px auto;
	background: var(--qbc-bg);
	border: 1px solid var(--qbc-border);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
	overflow: hidden;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--qbc-ink);
	font-size: 14px;
	line-height: 1.45;
}

/* ---------- Sidebar ---------- */
.qbc-sidebar {
	width: 260px;
	flex-shrink: 0;
	padding: 28px 24px;
	border-right: 1px solid var(--qbc-border);
	background: var(--qbc-bg);
}
.qbc-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--qbc-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 12px;
}
.qbc-host-name {
	color: var(--qbc-muted);
	font-size: 13px;
	margin: 0 0 4px;
}
.qbc-event-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 16px;
	line-height: 1.3;
}
.qbc-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--qbc-muted);
	margin-bottom: 12px;
}
.qbc-meta-row svg { flex-shrink: 0; color: var(--qbc-muted); }
.qbc-selected-summary { color: var(--qbc-ink); font-weight: 500; }
.qbc-event-desc {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--qbc-border);
	color: var(--qbc-muted);
}

/* ---------- Main panel ---------- */
.qbc-main {
	flex: 1;
	min-width: 0;
	padding: 28px 28px 28px 0;
	display: flex;
	position: relative;
}
.qbc-step { width: 100%; }
.qbc-step-title { font-size: 16px; font-weight: 600; margin: 0 0 20px; }

/* ---------- Questions step ---------- */
.qbc-step-questions { padding-left: 28px; }
.qbc-question { margin-bottom: 22px; }
.qbc-question-text { font-weight: 500; margin: 0 0 10px; }
.qbc-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 1px solid var(--qbc-border);
	border-radius: var(--qbc-radius);
	margin-bottom: 8px;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease;
}
.qbc-option:hover { border-color: var(--qbc-border-hover); }
.qbc-option input[type="radio"] { accent-color: var(--qbc-ink); width: 16px; height: 16px; }
.qbc-option.qbc-selected { border-color: var(--qbc-ink); background: var(--qbc-bg-subtle); }
.qbc-next-btn, .qbc-submit, .qbc-confirm-slot-btn {
	background: var(--qbc-ink);
	color: #fff;
	border: none;
	padding: 11px 22px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	margin-top: 4px;
}
.qbc-next-btn:hover, .qbc-submit:hover { opacity: .88; }
.qbc-next-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Calendar step ---------- */
.qbc-step-calendar { display: flex; padding-left: 28px; gap: 24px; }
.qbc-cal-panel { width: 300px; flex-shrink: 0; }
.qbc-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.qbc-cal-month-label { font-weight: 600; font-size: 15px; }
.qbc-cal-nav button {
	width: 28px; height: 28px;
	border: 1px solid var(--qbc-border);
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: var(--qbc-ink);
}
.qbc-cal-nav button:hover { border-color: var(--qbc-border-hover); }
.qbc-cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.qbc-cal-nav { display: flex; gap: 6px; }

.qbc-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	color: var(--qbc-muted);
	font-size: 12px;
	margin-bottom: 6px;
}
.qbc-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	row-gap: 4px;
}
.qbc-cal-grid button {
	width: 36px;
	height: 36px;
	margin: 0 auto;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	color: var(--qbc-ink);
}
.qbc-cal-grid button:hover:not(:disabled) { background: var(--qbc-bg-subtle); }
.qbc-cal-grid button:disabled { color: #d1d5db; cursor: default; }
.qbc-cal-grid button.qbc-today { box-shadow: inset 0 0 0 1px var(--qbc-border-hover); }
.qbc-cal-grid button.qbc-selected-day { background: var(--qbc-ink); color: #fff; }
.qbc-cal-grid .qbc-empty-cell { visibility: hidden; }

.qbc-slots-panel {
	width: 220px;
	flex-shrink: 0;
	border-left: 1px solid var(--qbc-border);
	padding-left: 24px;
	max-height: 380px;
	overflow-y: auto;
}
.qbc-slots-date { font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.qbc-slots-list { display: flex; flex-direction: column; gap: 8px; }
.qbc-slot-row button {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--qbc-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	color: var(--qbc-ink);
	text-align: center;
}
.qbc-slot-row button:hover { border-color: var(--qbc-ink); }
.qbc-slot-row.qbc-slot-selected button {
	background: var(--qbc-ink);
	color: #fff;
	border-color: var(--qbc-ink);
}
.qbc-slots-empty { color: var(--qbc-muted); font-size: 13px; }

/* ---------- Contact step ---------- */
.qbc-step-contact { padding-left: 28px; max-width: 360px; }
.qbc-back-link {
	background: none;
	border: none;
	color: var(--qbc-muted);
	cursor: pointer;
	font-size: 13px;
	padding: 0;
	margin-bottom: 14px;
}
.qbc-back-link:hover { color: var(--qbc-ink); }
.qbc-step-contact label {
	display: block;
	font-weight: 500;
	margin-bottom: 14px;
	font-size: 13px;
}
.qbc-step-contact input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	margin-top: 5px;
	border: 1px solid var(--qbc-border);
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 14px;
	font-family: inherit;
}
.qbc-step-contact input:focus {
	outline: none;
	border-color: var(--qbc-ink);
}

/* ---------- Loading ---------- */
.qbc-loading {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.7);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--qbc-muted);
	font-size: 13px;
}
.qbc-spinner {
	width: 14px; height: 14px;
	border: 2px solid var(--qbc-border);
	border-top-color: var(--qbc-ink);
	border-radius: 50%;
	animation: qbc-spin .6s linear infinite;
}
@keyframes qbc-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.qbc-widget { flex-direction: column; margin: 0; border-radius: 0; }
	.qbc-sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--qbc-border); }
	.qbc-main { padding: 24px; }
	.qbc-step-questions, .qbc-step-calendar, .qbc-step-contact { padding-left: 0; }
	.qbc-step-calendar { flex-direction: column; }
	.qbc-cal-panel { width: 100%; }
	.qbc-slots-panel { width: 100%; border-left: none; border-top: 1px solid var(--qbc-border); padding-left: 0; padding-top: 20px; margin-top: 12px; max-height: none; }
}
