/* Bridgelink Booking: calendar board */
.blb {
	--blb-accent: var(--ast-global-color-0, #1D4ED8);
	--blb-border: #E9EBEF;
	--blb-muted: #6b7280;
	--blb-soft: #F5F7FB;
	--blb-text: #111827;
	margin-top: 24px;
	color: var(--blb-text);
	font-size: 15px;
	line-height: 1.5;
}
.blb [hidden] { display: none !important; }
.blb button { font-family: inherit; }

.blb-open,
.blb-submit {
	background: var(--blb-accent);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity .15s, transform .15s;
}
.blb-open:hover,
.blb-submit:hover { opacity: .9; }
.blb-submit:disabled { opacity: .6; cursor: wait; }

.blb-board {
	background: #fff;
	border: 1px solid var(--blb-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
	overflow: hidden;
	max-width: 760px;
}

.blb-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	padding: 20px 24px;
	border-bottom: 1px solid var(--blb-border);
}
.blb-eyebrow {
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--blb-accent);
	font-weight: 600;
}
.blb-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.blb-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--blb-muted); }
.blb-meta span { background: var(--blb-soft); border-radius: 999px; padding: 4px 10px; }
.blb-meta .blb-tz:empty { display: none; }

/* Step 1: calendar + times */
.blb-step-pick {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.blb-cal { padding: 20px 24px 24px; border-right: 1px solid var(--blb-border); }
.blb-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.blb-month { font-weight: 700; font-size: 16px; }
.blb-prev,
.blb-next {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--blb-border);
	background: #fff;
	color: var(--blb-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.blb-prev:disabled,
.blb-next:disabled { opacity: .35; cursor: default; }
.blb-dow,
.blb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.blb-dow span { font-size: 12px; color: var(--blb-muted); text-transform: uppercase; padding-bottom: 4px; }
.blb-days.is-loading { opacity: .4; }
.blb-day {
	aspect-ratio: 1 / 1;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #c0c4cc;
	font-size: 14px;
	padding: 0;
	cursor: default;
}
.blb-day.is-available {
	background: var(--blb-soft);
	color: var(--blb-accent);
	font-weight: 700;
	cursor: pointer;
}
.blb-day.is-available:hover { box-shadow: inset 0 0 0 2px var(--blb-accent); }
.blb-day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.blb-day.is-selected,
.blb-day.is-selected:hover { background: var(--blb-accent); color: #fff; box-shadow: none; }

.blb-times { padding: 20px 20px 24px; display: flex; flex-direction: column; min-height: 0; }
.blb-times-label { font-weight: 700; margin-bottom: 12px; min-height: 24px; }
.blb-slots {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	max-height: 330px;
	overflow-y: auto;
	padding-right: 4px;
}
.blb-slot {
	border: 1px solid var(--blb-accent);
	color: var(--blb-accent);
	background: #fff;
	border-radius: 8px;
	padding: 11px 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.blb-slot:hover { background: var(--blb-accent); color: #fff; }

/* Step 2: details form */
.blb-step-form { padding: 20px 24px 24px; margin: 0; }
.blb-chosen {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: var(--blb-soft);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-weight: 600;
}
.blb-change {
	background: none;
	border: 0;
	color: var(--blb-accent);
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
	flex-shrink: 0;
}
.blb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.blb-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin: 0; }
.blb-fields .blb-full { grid-column: 1 / -1; }
.blb-fields input,
.blb-fields textarea {
	width: 100%;
	border: 1px solid #d5d9e0;
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	background: #fff;
	color: var(--blb-text);
	box-sizing: border-box;
}
.blb-fields input:focus,
.blb-fields textarea:focus { outline: 2px solid var(--blb-accent); outline-offset: 1px; border-color: transparent; }
.blb-fields textarea { resize: vertical; min-height: 96px; }
.blb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.blb-error {
	margin-top: 14px;
	background: #FEF2F2;
	color: #B91C1C;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
}
.blb-submit { margin-top: 18px; min-width: 160px; }

/* Step 3: done */
.blb-step-done { padding: 36px 24px 40px; text-align: center; }
.blb-check {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	margin: 0 auto 14px;
	background: #ECFDF5;
	color: #047857;
	font-size: 28px;
	font-weight: 700;
}
.blb-done-title { font-size: 20px; font-weight: 700; }
.blb-done-text { color: var(--blb-muted); margin: 8px auto 0; max-width: 460px; }

/* Responsive */
@media (max-width: 767px) {
	.blb-head { padding: 16px 18px; }
	.blb-step-pick { grid-template-columns: 1fr; }
	.blb-cal { border-right: 0; border-bottom: 1px solid var(--blb-border); padding: 16px 16px 20px; }
	/* Keep day circles a comfortable size when the single column is wide (large phones, small tablets) */
	.blb-cal > * { max-width: 400px; margin-left: auto; margin-right: auto; }
	.blb-times { padding: 16px 16px 20px; }
	.blb-slots { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
	.blb-step-form { padding: 16px; }
	.blb-fields { grid-template-columns: 1fr; }
	.blb-chosen { flex-direction: column; align-items: flex-start; gap: 6px; }
	.blb-open,
	.blb-submit { width: 100%; }
	.blb-day { font-size: 15px; }
}
