/* ===========================================================================
   Request a quote page, design canvas "Request an offer page" (2026-10-07)
   ===========================================================================
   Loaded only on pages whose content uses the `cq-off-` sections (see
   inc/page-tilbud.php), so nothing here reaches other pages. Values follow
   the canvas and the Certain QMS Web Design System it was built with:
   eyebrow, H1 and lead, the Pipedrive quote form in a bordered card (left
   aligned, centred below 1024px), "What happens next?" as two bordered
   columns (stacked below 768px), then a rounded ink "Have questions?" card.

   Spacing comes from flex/grid `gap`, so block margins inside these sections
   are reset, as on the book a demo and contact pages. */

.cq-main {
	/* Same gutter as the header/footer (theme.json root padding). */
	--cq-off-gutter: var(--wp--style--root--padding-left, clamp(24px, 5.56vw, 80px));
	--cq-off-muted: #3f4947;
}

.wp-block-post-content > .cq-off-s {
	margin-block: 0 !important;
}

.cq-main .cq-off-s :where(h1, h2, h3, p, .wp-block-buttons, .wp-block-group) {
	margin: 0 !important;
}

.cq-main .cq-off-s {
	background-color: #ffffff;
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cq-main .cq-off-wrap {
	box-sizing: border-box;
	margin-inline: auto !important;
	/* 1200px of content, like the header and footer (contentSize). */
	max-width: calc(1200px + 2 * var(--cq-off-gutter));
	padding-inline: var(--cq-off-gutter);
}

/* --- Intro ----------------------------------------------------------------- */

.cq-main .cq-off-hero {
	padding-block: var(--cq-crumb-top) 48px;
}

/* Breadcrumb first: shared distances from style.css (--cq-crumb-*). The
   column's own gap is subtracted so the crumb-to-eyebrow space matches. */
.cq-main .cq-off-head > .cq-breadcrumb {
	margin-bottom: calc(var(--cq-crumb-gap) - 16px) !important;
}

.cq-main .cq-off-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cq-main .cq-off-eyebrow {
	color: var(--cq-navy);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cq-main .cq-off-title {
	color: var(--cq-ink);
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
	max-width: 760px;
}

.cq-main .cq-off-lead {
	color: var(--cq-off-muted);
	font-size: 20px;
	line-height: 1.6;
	max-width: 760px;
}

/* --- Form ------------------------------------------------------------------ */

.cq-main .cq-off-main {
	padding-block: 16px 96px;
}

.cq-main .cq-off-form {
	background-color: #ffffff;
	border: 1px solid var(--cq-border);
	border-radius: 12px;
	box-sizing: border-box;
	max-width: 580px;
	padding: 24px;
	scroll-margin-top: 104px;
}

/* Reserve the embed's height so the sections below do not jump on load. */
.cq-main .cq-off-form .pipedriveWebForms {
	min-height: 640px;
}

.cq-main .cq-off-form .cq-consent-gate {
	box-sizing: border-box;
	margin: 0;
	max-width: none;
}

@media (max-width: 1023.98px) {
	.cq-main .cq-off-form {
		margin-inline: auto;
	}
}

/* --- What happens next ----------------------------------------------------- */

.cq-main .cq-off-next {
	padding-block: 0 96px;
}

.cq-main .cq-off-next__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.cq-main .cq-off-next__title,
.cq-main .cq-off-q__title {
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-align: center;
}

.cq-main .cq-off-next__title {
	color: var(--cq-ink);
	font-size: clamp(28px, 3.2vw, 40px);
}

.cq-main .cq-off-steps {
	border-block: 1px solid var(--cq-border);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cq-main .cq-off-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
}

.cq-main .cq-off-step + .cq-off-step {
	border-left: 1px solid var(--cq-border);
}

.cq-main .cq-off-step__title {
	color: var(--cq-ink);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
}

.cq-main .cq-off-step__body {
	color: var(--cq-off-muted);
	font-size: 17px;
	line-height: 1.65;
}

@media (max-width: 767.98px) {
	.cq-main .cq-off-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-off-step {
		padding: 24px 0;
	}

	.cq-main .cq-off-step + .cq-off-step {
		border-left: 0;
		border-top: 1px solid var(--cq-border);
	}
}

/* --- Have questions? ------------------------------------------------------- */

.cq-main .cq-off-q {
	padding-block: 0 96px;
}

.cq-main .cq-off-q__card {
	align-items: center;
	background-color: var(--cq-ink);
	border-radius: 16px;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 56px 64px;
	text-align: center;
}

.cq-main .cq-off-q__title {
	color: #ffffff;
	font-size: clamp(28px, 2.8vw, 36px);
	text-wrap: balance;
}

.cq-main .cq-off-q__lead {
	color: var(--cq-sky);
	font-size: 18px;
	line-height: 1.55;
	max-width: 640px;
}

.cq-main .cq-off-q .wp-block-buttons {
	justify-content: center;
	margin-top: 20px !important;
}

.cq-main .cq-off-q .cq-off-btn--light > .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--cq-ink) !important;
}

.cq-main .cq-off-q .cq-off-btn--light > .wp-block-button__link:hover {
	background-color: var(--cq-sky) !important;
	color: var(--cq-ink) !important;
}

.cq-main .cq-off-q .wp-block-button > .wp-block-button__link:focus-visible {
	outline-color: var(--cq-sky);
}

@media (max-width: 599.98px) {
	.cq-main .cq-off-hero {
		padding-bottom: 32px;
	}

	.cq-main .cq-off-head {
		gap: 12px;
	}

	.cq-main .cq-off-head > .cq-breadcrumb {
		margin-bottom: calc(var(--cq-crumb-gap) - 12px) !important;
	}

	.cq-main .cq-off-lead {
		font-size: 18px;
	}

	.cq-main .cq-off-main {
		padding-block: 0 64px;
	}

	.cq-main .cq-off-form {
		border: 0;
		padding: 0;
	}

	.cq-main .cq-off-next,
	.cq-main .cq-off-q {
		padding-block: 0 64px;
	}

	.cq-main .cq-off-q__card {
		padding: 40px 24px;
	}
}
