.cqb-form-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
	gap: 32px;
	max-width: 960px;
	margin: 0 auto;
	align-items: start;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--cqb-body-color, #1f2937);
	font-size: var(--cqb-body-size, 14px);
	box-sizing: border-box;
}

.cqb-form-wrap * {
	box-sizing: border-box;
}

.cqb-main-column {
	grid-column: 1 !important;
	min-width: 0;
	width: 100%;
}

.cqb-summary {
	grid-column: 2 !important;
	width: 100%;
	max-width: 300px !important;
}

@media (max-width: 720px) {
	.cqb-form-wrap {
		grid-template-columns: 1fr !important;
		padding-bottom: 84px; /* reserve space so the fixed mobile total bar never covers the form */
	}
	.cqb-main-column {
		grid-column: 1 !important;
	}
	.cqb-summary {
		display: none !important; /* replaced on mobile by the compact fixed total bar */
	}
}

.cqb-summary {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: var(--cqb-border-radius, 10px);
	padding: 20px;
	height: fit-content;
}

@media (min-width: 721px) {
	.cqb-summary {
		position: sticky;
		top: 40px;
	}
}

.cqb-summary h4 {
	margin: 0 0 12px;
	font-size: 15px;
}

.cqb-summary-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid #e5e7eb;
}

.cqb-summary-logo {
	max-height: 36px;
	max-width: 120px;
	object-fit: contain;
}

.cqb-summary-company-name {
	font-weight: 700;
	font-size: 14px;
	color: #111827;
}

.cqb-summary-items {
	margin-bottom: 10px;
}

.cqb-summary-item-row {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	padding: 5px 0;
	color: #4b5563;
}

.cqb-summary-empty {
	font-size: 12.5px;
	color: #9ca3af;
	margin: 0 0 10px;
}

/*
 * Notes from the pricing engine — the front-only reduction, "we'll confirm
 * that one with you", "properties this size are quoted individually". They
 * explain a total that would otherwise look wrong, so they sit with it.
 */
.cqb-summary-notes {
	margin: 0 0 10px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: var(--cqb-border-radius, 8px);
}

.cqb-summary-note {
	font-size: 12px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0;
}

.cqb-summary-note + .cqb-summary-note {
	margin-top: 6px;
}

/* "On request" instead of a price — never styled to look like a figure. */
.cqb-summary-item-poa span:last-child,
.cqb-quote-preview-poa span:last-child {
	font-style: italic;
	color: #6b7280;
}

.cqb-summary-item-adjustment,
.cqb-quote-preview-adjustment {
	font-style: italic;
	color: #9ca3af !important;
	border-top: 1px dashed #e5e7eb;
	margin-top: 4px;
	padding-top: 8px !important;
}

.cqb-summary-item-discount,
.cqb-quote-preview-discount {
	color: #16a34a !important;
	font-weight: 600;
}

.cqb-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px solid #e5e7eb;
}

.cqb-summary-total {
	font-size: 15px;
	border-bottom: none;
	padding-top: 10px;
}

.cqb-form h3 {
	font-size: var(--cqb-heading-size, 16px);
	color: var(--cqb-heading-color, #111827);
	margin: 24px 0 10px;
}

.cqb-form h3:first-child {
	margin-top: 0;
}

.cqb-steps {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #9ca3af;
}

.cqb-step-indicator.active {
	color: var(--cqb-accent-color, #02879c);
	font-weight: 600;
}

.cqb-counter-grid,
.cqb-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.cqb-counter {
	border: 1px solid #e5e7eb;
	border-radius: var(--cqb-border-radius, 8px);
	padding: 10px 14px;
}

.cqb-counter label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}

.cqb-stepper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cqb-stepper button {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 6px !important;
	border: 1px solid #d1d5db !important;
	background: #fff !important;
	cursor: pointer;
	font-size: 16px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}

.cqb-checkbox-grid,
.cqb-radio-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.cqb-checkbox-grid label,
.cqb-radio-grid label {
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cqb-hint {
	font-size: 13px;
	color: #6b7280;
	margin: 6px 0;
}

/* ───────────── Matrix mode: property, bedrooms, frequency ─────────────
 * These questions have few, short answers ("Semi-Detached", "3", "4 Weekly"),
 * and on a phone they're the whole form. Tap targets rather than a column of
 * radio dots.
 */
.cqb-choice-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 4px;
}

.cqb-choice {
	position: relative;
	display: block;
	cursor: pointer;
}

/*
 * The card is the visible control, but the radio underneath stays a real
 * radio — hidden this way it's still focusable, still announced, and still
 * covered by the browser's own "please pick one" validation, which is what
 * makes the Continue button able to block on it.
 */
.cqb-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.cqb-choice-face {
	display: block;
	padding: 11px 18px;
	font-size: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--cqb-border-radius, 8px);
	transition: border-color .15s ease, background-color .15s ease;
}

.cqb-choice:hover .cqb-choice-face {
	border-color: #cbd5e1;
}

.cqb-choice input:checked + .cqb-choice-face {
	color: var(--cqb-accent-color, #02879c);
	font-weight: 600;
	background: #f8fafc;
	border-color: var(--cqb-accent-color, #02879c);
	box-shadow: inset 0 0 0 1px var(--cqb-accent-color, #02879c);
}

.cqb-choice input:focus-visible + .cqb-choice-face {
	outline: 2px solid var(--cqb-accent-color, #02879c);
	outline-offset: 2px;
}

/* Bedroom counts and Yes/No: one or two characters, so they read as a row
   of buttons rather than a row of stretched cards. */
.cqb-choice-grid--tight .cqb-choice-face {
	min-width: 46px;
	padding: 11px 12px;
	text-align: center;
}

.cqb-check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Multi-select, so the box stays visible — nothing else tells the customer
   they may pick more than one. */
.cqb-check-card {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 16px;
	font-size: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--cqb-border-radius, 8px);
	cursor: pointer;
}

.cqb-check-card input {
	margin: 0;
	accent-color: var(--cqb-accent-color, #02879c);
}

.cqb-check-card:has(input:checked) {
	background: #f8fafc;
	border-color: var(--cqb-accent-color, #02879c);
}

#cqb-session-hours {
	width: 100%;
}

.cqb-conditional {
	margin-top: 10px;
	padding: 12px;
	background: #f8fafc;
	border-radius: 8px;
}

.cqb-conditional label {
	display: block;
	font-size: 13px;
}

.cqb-conditional input,
.cqb-conditional textarea,
.cqb-field-grid input,
.cqb-form select {
	width: 100%;
	margin-top: 4px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.cqb-field-grid label {
	font-size: 13px;
	display: block;
}

.cqb-check-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin: 16px 0;
}

.cqb-btn {
	background: var(--cqb-accent-color, #02879c);
	color: var(--cqb-button-text-color, #fff);
	border: none;
	padding: 12px 24px;
	border-radius: var(--cqb-border-radius, 8px);
	font-size: 15px;
	cursor: pointer;
	margin-top: 20px;
}

.cqb-btn-secondary {
	background: #fff;
	color: var(--cqb-accent-color, #02879c);
	border: 1px solid var(--cqb-accent-color, #02879c);
}

.cqb-form-actions {
	display: flex;
	gap: 12px;
}

.cqb-message {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.cqb-message-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.cqb-message-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.cqb-download-pdf {
	background: #111827;
	margin-top: 10px;
	width: 100%;
}

.cqb-quote-preview {
	margin-top: 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
}

.cqb-quote-preview-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	background: #111827;
	color: #fff;
}

.cqb-quote-preview-logo {
	max-height: 28px;
	max-width: 100px;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	padding: 3px 6px;
}

.cqb-quote-preview-company {
	font-weight: 700;
	font-size: 14px;
	flex: 1;
}

.cqb-quote-preview-badge {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #cbd5e1;
	border: 1px solid #374151;
	border-radius: 20px;
	padding: 4px 10px;
	white-space: nowrap;
}

.cqb-quote-preview h5 {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #02879c;
	margin: 18px 20px 8px;
}

.cqb-quote-preview h5:first-of-type {
	margin-top: 20px;
}

.cqb-quote-preview-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 6px 20px;
	color: #374151;
}

.cqb-quote-preview-row:not(.cqb-quote-preview-total):nth-of-type(even) {
	background: #f8fafc;
}

.cqb-quote-preview-total {
	font-size: 16px;
	font-weight: 700;
	margin: 16px 20px 20px;
	padding: 14px 16px;
	border-radius: var(--cqb-border-radius, 10px);
	background: var(--cqb-accent-color, #02879c);
	color: var(--cqb-button-text-color, #fff);
}

/* The theme (or Elementor) forces display on buttons/divs with !important,
   which silently defeats the native [hidden] attribute. Force it back. */
.cqb-message[hidden],
.cqb-download-pdf[hidden],
.cqb-step[hidden],
.cqb-conditional[hidden],
.cqb-quote-preview[hidden],
.cqb-promo-message[hidden],
.cqb-social-proof[hidden] {
	display: none !important;
}

/* Mobile: replace the full summary sidebar with a slim fixed bar pinned to
   the bottom of the screen, showing only the live total — the detailed
   breakdown would otherwise overlay/push down the form on small screens. */
.cqb-mobile-total-bar {
	display: none;
}

@media (max-width: 720px) {
	.cqb-mobile-total-bar {
		display: flex !important;
		position: fixed !important;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		background: #fff;
		border-top: 1px solid #e5e7eb;
		box-shadow: 0 -6px 16px rgba(17, 24, 39, 0.08);
		padding: 14px 20px;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	}
}

.cqb-mobile-total-label {
	font-size: 12.5px;
	color: #6b7280;
}

.cqb-mobile-total-value {
	font-size: 19px;
	font-weight: 700;
	color: #111827;
}

/* Urgency banner */
.cqb-urgency-banner {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 20px;
}

/* Promo code */
.cqb-promo-row {
	display: flex;
	gap: 10px;
}
.cqb-promo-row input[type="text"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}
.cqb-promo-row .cqb-btn {
	margin-top: 0;
	white-space: nowrap;
}
.cqb-promo-message {
	font-size: 13px;
	margin: 8px 0 0;
	padding: 8px 12px;
	border-radius: 6px;
}
.cqb-promo-success {
	background: #ecfdf5;
	color: #065f46;
}
.cqb-promo-error {
	background: #fef2f2;
	color: #991b1b;
}

/* Social proof toast */
.cqb-social-proof {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9998;
	background: #111827;
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 13px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
	max-width: 300px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.cqb-social-proof-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (max-width: 720px) {
	.cqb-social-proof {
		left: 12px;
		bottom: 90px; /* clear the mobile total bar */
		right: 12px;
		max-width: none;
	}
}

/* Honeypot — invisible to real customers, present for bots that fill every field */
.cqb-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Progress bar */
.cqb-progress-track {
	background: #f1f5f9;
	border-radius: 4px;
	height: 6px;
	overflow: hidden;
	margin-bottom: 16px;
}
.cqb-progress-fill {
	background: var(--cqb-accent-color, #02879c);
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

/* Photo upload */
.cqb-photo-previews {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}
.cqb-photo-thumb {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #9ca3af;
}
.cqb-photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Save & resume */
.cqb-save-resume-link {
	background: none;
	border: none;
	color: var(--cqb-accent-color, #02879c);
	text-decoration: underline;
	font-size: 13px;
	cursor: pointer;
	margin-left: 12px;
	margin-top: 20px;
}
.cqb-save-resume-box {
	margin-top: 12px;
	padding: 14px;
	background: #f8fafc;
	border-radius: 8px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.cqb-save-resume-box input[type="email"] {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	flex: 1;
	min-width: 180px;
}
.cqb-save-resume-message {
	width: 100%;
	font-size: 12.5px;
	color: #6b7280;
	margin: 4px 0 0;
}
