/* Cleaning Quote Tracker — public form
   Colours and font come from the admin screen as CSS variables on .cqt */

.cqt {
	--cqt-primary: #1f8fe0;
	--cqt-dark: #136fb3;
	--cqt-light: #6dd5ff;
	--cqt-text: #1c2b3a;
	--cqt-surface: #ffffff;
	--cqt-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cqt-line: #dde8f2;
	--cqt-tint: #f4f9fd;
	--cqt-muted: #6a8095;
	--cqt-radius: 14px;

	max-width: 780px;
	margin: 0 auto;
	padding: 8px 0 32px;
	font-family: var(--cqt-font);
	color: var(--cqt-text);
	font-size: 15px;
	line-height: 1.55;
	box-sizing: border-box;
}

.cqt *,
.cqt *::before,
.cqt *::after {
	box-sizing: inherit;
}

.cqt-card {
	position: relative;
	overflow: hidden;
	background: var(--cqt-surface);
	border: 1px solid var(--cqt-line);
	border-radius: 24px;
	padding: 34px 34px 30px;
	box-shadow: 0 24px 60px -28px rgba(17, 60, 100, 0.28);
}

.cqt-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--cqt-dark), var(--cqt-primary), var(--cqt-light));
}

.cqt-title {
	margin: 4px 0 6px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--cqt-dark);
	letter-spacing: -0.01em;
}

.cqt-subtitle {
	margin: 0 0 26px;
	color: var(--cqt-muted);
	font-size: 14.5px;
	max-width: 56ch;
}

/* ---- Step indicator ---- */

.cqt-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 26px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--cqt-line);
	list-style: none;
	counter-reset: none;
}

.cqt-progress-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cqt-muted);
	opacity: 0.55;
}

.cqt-progress-item.is-current,
.cqt-progress-item.is-done {
	opacity: 1;
	color: var(--cqt-text);
}

.cqt-progress-dot {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	border: 2px solid var(--cqt-line);
	background: var(--cqt-tint);
	font-size: 12px;
	font-weight: 700;
	color: var(--cqt-muted);
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cqt-progress-item.is-current .cqt-progress-dot {
	background: var(--cqt-primary);
	border-color: var(--cqt-primary);
	color: #fff;
}

.cqt-progress-item.is-done .cqt-progress-dot {
	background: var(--cqt-dark);
	border-color: var(--cqt-dark);
	color: #fff;
}

/* ---- Steps ---- */

.cqt-step[hidden] {
	display: none;
}

.cqt-step-note {
	margin: 0 0 20px;
	padding: 12px 16px;
	background: var(--cqt-tint);
	border-left: 3px solid var(--cqt-primary);
	border-radius: 0 10px 10px 0;
	font-size: 13.5px;
	color: var(--cqt-dark);
}

.cqt-step-empty {
	color: var(--cqt-muted);
	font-style: italic;
}

.cqt-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px 16px;
}

.cqt-field {
	min-width: 0;
	grid-column: span 6;
}

.cqt-w-half {
	grid-column: span 3;
}

.cqt-w-third {
	grid-column: span 2;
}

.cqt-label {
	display: block;
	margin-bottom: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cqt-text);
	margin-top: 20px;
}

.cqt-req {
	color: #d9483b;
	margin-left: 2px;
}

.cqt-price-hint {
	float: right;
	font-weight: 600;
	font-size: 12px;
	color: var(--cqt-dark);
	background: var(--cqt-tint);
	border-radius: 20px;
	padding: 1px 9px;
}

.cqt-help {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--cqt-muted);
}

.cqt-heading {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--cqt-dark);
}

.cqt-note p {
	margin: 0;
	font-size: 13.5px;
	color: var(--cqt-muted);
}

/* ---- Inputs ---- */

.cqt .cqt-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cqt-line);
	border-radius: var(--cqt-radius);
	background: #fdfeff;
	font-family: inherit;
	font-size: 14.5px;
	color: var(--cqt-text);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cqt .cqt-input:hover {
	border-color: #c3d9ec;
}

.cqt .cqt-input:focus,
.cqt .cqt-input:focus-visible {
	outline: none;
	border-color: var(--cqt-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(31, 143, 224, 0.16);
}

.cqt .cqt-textarea {
	min-height: 92px;
	resize: vertical;
	line-height: 1.6;
}

.cqt .cqt-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--cqt-muted) 50%), linear-gradient(135deg, var(--cqt-muted) 50%, transparent 50%);
	background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

.cqt-field.has-error .cqt-input {
	border-color: #d9483b;
	background: #fff8f7;
}

.cqt-error {
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	color: #d9483b;
}

/* ---- Choice cards / checkboxes ---- */

.cqt-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cqt-choice {
	flex: 1 1 auto;
	min-width: 150px;
}

.cqt-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.cqt-choice label {
	display: block;
	padding: 12px 16px;
	border: 1.5px solid var(--cqt-line);
	border-radius: var(--cqt-radius);
	background: #fdfeff;
	font-size: 14px;
	font-weight: 600;
	color: var(--cqt-text);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.cqt-choice label:hover {
	border-color: var(--cqt-primary);
}

.cqt-choice input:checked + label {
	border-color: var(--cqt-primary);
	background: var(--cqt-tint);
	color: var(--cqt-dark);
}

.cqt-choice input:focus-visible + label {
	outline: 2px solid var(--cqt-primary);
	outline-offset: 2px;
}

.cqt-choices-multi .cqt-choice label {
	text-align: left;
}

/* ---- Yes / No ---- */

.cqt-toggle {
	display: inline-flex;
	border: 1px solid var(--cqt-line);
	border-radius: 30px;
	overflow: hidden;
	background: #fdfeff;
}

.cqt-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.cqt-toggle label {
	padding: 9px 22px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cqt-muted);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.cqt-toggle input:checked + label {
	background: var(--cqt-primary);
	color: #fff;
}

.cqt-toggle input:focus-visible + label {
	outline: 2px solid var(--cqt-dark);
	outline-offset: -2px;
}

/* ---- Consent ---- */

.cqt-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 4px 0;
}

.cqt-consent input {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	accent-color: var(--cqt-primary);
	flex: 0 0 auto;
}

.cqt-consent label {
	font-size: 13.5px;
	color: var(--cqt-muted);
}

.cqt-consent a {
	color: var(--cqt-dark);
	font-weight: 600;
}

/* ---- Live estimate ---- */

.cqt-summary {
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid var(--cqt-line);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--cqt-tint), #fff);
}

.cqt-summary[hidden] {
	display: none;
}

.cqt-summary-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.cqt-summary-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--cqt-muted);
}

.cqt-summary-total {
	font-size: 26px;
	font-weight: 700;
	color: var(--cqt-dark);
	letter-spacing: -0.02em;
}

.cqt-summary-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px dashed var(--cqt-line);
}

.cqt-summary-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 13px;
	color: var(--cqt-text);
	border-bottom: 1px solid rgba(221, 232, 242, 0.6);
}

.cqt-summary-list li:last-child {
	border-bottom: 0;
}

.cqt-summary-list span:last-child {
	font-weight: 600;
	color: var(--cqt-dark);
	white-space: nowrap;
}

.cqt-summary-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--cqt-muted);
}

/* ---- Buttons ---- */

.cqt-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 26px;
}

.cqt .cqt-btn {
	border: 0;
	border-radius: 30px;
	padding: 13px 30px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cqt .cqt-btn-primary {
	background: var(--cqt-primary);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(31, 143, 224, 0.75);
}

.cqt .cqt-btn-primary:hover {
	background: var(--cqt-dark);
}

.cqt .cqt-btn-ghost {
	background: transparent;
	color: var(--cqt-muted);
	box-shadow: inset 0 0 0 1px var(--cqt-line);
}

.cqt .cqt-btn-ghost:hover {
	color: var(--cqt-text);
	box-shadow: inset 0 0 0 1px var(--cqt-primary);
}

.cqt .cqt-btn:focus-visible {
	outline: 2px solid var(--cqt-dark);
	outline-offset: 3px;
}

.cqt .cqt-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.cqt-form-error {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fdecea;
	color: #a4281c;
	font-size: 13.5px;
	font-weight: 600;
}

.cqt-form-error[hidden] {
	display: none;
}

/* ---- Honeypot ---- */

.cqt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Success ---- */

.cqt-success {
	text-align: center;
	padding: 30px 10px 14px;
}

.cqt-success[hidden] {
	display: none;
}

.cqt-success-mark {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--cqt-tint);
	color: var(--cqt-primary);
}

.cqt-success h3 {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	color: var(--cqt-dark);
}

.cqt-success p {
	margin: 0 auto;
	max-width: 46ch;
	color: var(--cqt-muted);
	font-size: 14.5px;
}

.cqt-success-total {
	margin-top: 16px !important;
	font-size: 17px !important;
	font-weight: 700;
	color: var(--cqt-dark) !important;
}

.cqt-success-total[hidden] {
	display: none;
}

/* ---- Date picker tweaks ---- */

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
	background: var(--cqt-primary);
	border-color: var(--cqt-primary);
}

/* ---- Small screens ---- */

@media (max-width: 680px) {
	.cqt-card {
		padding: 24px 20px 22px;
		border-radius: 18px;
	}

	.cqt-title {
		font-size: 22px;
	}

	.cqt-w-half,
	.cqt-w-third {
		grid-column: span 6;
	}

	.cqt-progress-label {
		display: none;
	}

	.cqt-progress {
		gap: 10px;
	}

	.cqt .cqt-btn {
		flex: 1;
		padding: 13px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cqt *,
	.cqt *::before,
	.cqt *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
