/* =========================================================================
   CPD booking: template-cpd-booking.php.
   Scoped to .cb, mobile first, min-width queries at 640 / 768 / 900 / 1200.
   The house recipe from the 18 Sep 2026 spec, renamed, cut down to what a
   slim booking page uses: a compact hero, the booking section (product.css's
   .pd-enquiry, shared with the CPD page) and a one-line help band.
   ========================================================================= */

.cb {
	--cb-navy: #181d46;      /* Billi Blue */
	--cb-lightblue: #90cdeb; /* primary button on dark, accents */
	--cb-grey: #eaeaea;      /* borders, rules */
	--cb-band-grey: #f5f5f5;
	--cb-band-tint: #f1f5f5; /* Green Grey */
	--cb-text: #000;
	--cb-muted: #75757b;
	--cb-gutter: 20px;

	font-family: var(--font-din);
	color: var(--cb-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.cb { --cb-gutter: 40px; }
}

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

/* framework.css sets a global img { width: 100% }. */
.cb img { max-width: 100%; width: auto; height: auto; display: block; }

.cb-container {
	width: 100%;
	max-width: 1436px;
	margin: 0 auto;
	padding-left: var(--cb-gutter);
	padding-right: var(--cb-gutter);
}

/* ---- Sections ------------------------------------------------------------ */

.cb-section { padding: 48px 0; }

@media (min-width: 900px) {
	.cb-section { padding: 80px 0; }
}

.cb-section--grey { background: var(--cb-band-grey); }
.cb-section--tint { background: var(--cb-band-tint); }

/* ---- Buttons ---------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.cb .cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cb .cb-btn:hover,
.cb .cb-btn:focus-visible { opacity: 1; }

.cb .cb-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.cb .cb-btn--ghost:hover,
.cb .cb-btn--ghost:focus-visible { background: #fff; color: var(--cb-navy); box-shadow: none; }

.cb .cb-btn--outline { background: transparent; color: var(--cb-navy); box-shadow: inset 0 0 0 1px var(--cb-navy); }
.cb .cb-btn--outline:hover,
.cb .cb-btn--outline:focus-visible { background: var(--cb-navy); color: #fff; }

/* framework.css removes focus outlines sitewide. Navy on light, white on
   the hero. */
.cb :is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--cb-navy); outline-offset: 3px; }
.cb .cb-hero :is(a, button, summary):focus-visible { outline-color: #fff; }

/* ---- Hero (compact) ----------------------------------------------------------
   The title is an <h1>: typography.css gives it DM Serif Display at 400.
   Never set its font-weight or font-family. */

.cb-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--cb-navy);
	color: #fff;
	overflow: hidden;
}

.cb-hero--compact { min-height: 0; }

.cb-hero__inner { width: 100%; padding-top: 48px; padding-bottom: 48px; }
.cb-hero__content { max-width: 720px; }

.cb-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--cb-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cb .cb-hero__title { margin: 0; color: #fff; font-size: 34px; line-height: 1.12; }

.cb-hero__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.cb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 900px) {
	.cb-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.cb-hero--compact .cb-hero__inner { padding-top: 56px; padding-bottom: 56px; }
	.cb .cb-hero__title { font-size: 52px; }
	.cb-hero--compact .cb-hero__title { font-size: 44px; }
	.cb-hero__intro { font-size: 18px; }
}

/* ---- Booking (#cb-book) --------------------------------------------------------
   product.css's .pd-enquiry, unchanged apart from the aside's steps title,
   which is a <p> here rather than a div. */

.cb .pd-steps__title { margin: 0 0 16px; }

/* ---- Help line ---------------------------------------------------------------------
   White: it follows the booking section's grey band, and Green Grey under that
   grey reads as a seam rather than a new band. */

.cb-help__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.cb-help__text {
	margin: 0;
	max-width: 62ch;
	color: var(--cb-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

@media (min-width: 768px) {
	.cb-help__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
	.cb-help__inner .cb-btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.cb .cb-btn { transition: none; }
}
