/*
 * CW Request Quote — the /request-quote/ form + /request-quote/status/ page.
 *
 * ⚠ The quote flow's accent is the company BLUE (--cw-rewards), not lime —
 * owner decision 2026-09-04, chosen over grey and olive. The reasoning, and
 * why it is a deliberate exception to the token file's "rewards and money
 * only" rule, is written up at the top of frontend.css. Keep the two sheets
 * in step: the nudge, the basket button, this form and the tracking page are
 * one blue action.
 *
 * Radius 8px throughout (the system's own). Units are PX on purpose: Bricks
 * sets html { font-size: 62.5% }, so rem is 10px on this site.
 */
.cwrq {
	--cwrq-blue: var(--cw-rewards, #185aa6);
	--cwrq-blue-deep: var(--cw-rewards-deep, #12467f);
	--cwrq-blue-mid: var(--cw-rewards-mid, #5b7fa8);
	--cwrq-blue-tint: var(--cw-rewards-tint, #e9f1fa);
	--cwrq-blue-line: var(--cw-rewards-line, #cdddf0);
	--cwrq-ink: var(--cw-ink, #263238);
	--cwrq-ink-2: var(--cw-ink-2, #52575a);
	--cwrq-grey: var(--cw-grey, #6b6b6b);
	--cwrq-faint: var(--cw-faint, #9a9a94);
	--cwrq-line: var(--cw-line, #e7e5df);
	--cwrq-line-2: var(--cw-line-2, #d6d3ca);
	--cwrq-ground: var(--cw-ground, #f7f7f5);
	--cwrq-card: var(--cw-card, #ffffff);
	--cwrq-brick: var(--cw-brick, #a3372c);
	--cwrq-brick-tint: var(--cw-brick-tint, #fbeeec);
	--cwrq-brick-line: var(--cw-brick-line, #eed3ce);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cwrq-ink);
	background: var(--cwrq-ground);
	padding: 28px 0 56px;
}
.cwrq *, .cwrq *::before, .cwrq *::after { box-sizing: border-box; }

.cwrq-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cwrq-wrap--narrow { max-width: 760px; }

.cwrq-head { margin-bottom: 22px; }
.cwrq-kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cwrq-blue);
}
.cwrq-h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--cwrq-ink); }
.cwrq-sub { margin: 8px 0 0; max-width: 64ch; color: var(--cwrq-ink-2); }
.cwrq-sub a, .cwrq-signed a { color: var(--cwrq-blue); font-weight: 700; }

.cwrq-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}
@media (max-width: 900px) {
	.cwrq-grid { grid-template-columns: 1fr; }
	.cwrq-aside { order: -1; }
}

.cwrq-card {
	background: var(--cwrq-card);
	border: 1px solid var(--cwrq-line);
	border-radius: 8px;
	padding: 20px;
}
.cwrq-card + .cwrq-card { margin-top: 16px; }
.cwrq-empty { text-align: center; padding: 40px 24px; }
.cwrq-empty h2 { margin: 0 0 6px; font-size: 22px; }
.cwrq-empty p { margin: 0 0 16px; color: var(--cwrq-ink-2); }

/* ── Form ──────────────────────────────────────────────────────────────── */
.cwrq-form { min-width: 0; }
.cwrq-step {
	background: var(--cwrq-card);
	border: 1px solid var(--cwrq-line);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 16px;
}
.cwrq-step h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 800;
}
.cwrq-step__n {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--cwrq-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}
.cwrq-signed { margin: -6px 0 14px; font-size: 13px; color: var(--cwrq-grey); }

.cwrq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .cwrq-row2 { grid-template-columns: 1fr; } }

.cwrq-field { margin-bottom: 12px; min-width: 0; }
.cwrq-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--cwrq-ink-2);
	margin-bottom: 5px;
}
.cwrq-field input,
.cwrq-field select,
.cwrq-field textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--cwrq-ink);
	background: #fff;
	border: 1.5px solid var(--cwrq-line-2);
	border-radius: 8px;
	padding: 11px 12px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cwrq-field input:focus,
.cwrq-field select:focus,
.cwrq-field textarea:focus {
	border-color: var(--cwrq-blue);
	box-shadow: 0 0 0 3px var(--cwrq-blue-tint);
}
.cwrq-field.is-invalid input,
.cwrq-field.is-invalid select { border-color: var(--cwrq-brick); background: var(--cwrq-brick-tint); }
.cwrq-field__error { margin: 5px 0 0; font-size: 12px; color: var(--cwrq-brick); font-weight: 600; }
.cwrq-field__error[hidden] { display: none; }

.cwrq-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--cwrq-ink-2);
	margin: 4px 0 0;
	cursor: pointer;
}
.cwrq-check input { margin-top: 3px; accent-color: var(--cwrq-blue); }

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

.cwrq-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .cwrq-modes { grid-template-columns: 1fr; } }
.cwrq-mode {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--cwrq-line-2);
	border-radius: 8px;
	padding: 12px 14px;
	cursor: pointer;
	font: inherit;
	color: var(--cwrq-ink);
	transition: border-color .15s ease, background .15s ease;
}
.cwrq-mode:hover { border-color: var(--cwrq-blue); }
.cwrq-mode.is-selected { border-color: var(--cwrq-blue); background: var(--cwrq-blue-tint); box-shadow: inset 0 0 0 1px var(--cwrq-blue); }
.cwrq-mode__name { font-weight: 800; font-size: 15px; }
.cwrq-mode__sub { font-size: 12px; color: var(--cwrq-grey); }
.cwrq-block[hidden] { display: none; }
.cwrq-branch-address { margin: 8px 0 0; font-size: 13px; color: var(--cwrq-ink-2); background: var(--cwrq-blue-tint); border: 1px solid var(--cwrq-blue-line); border-radius: 8px; padding: 8px 10px; }
.cwrq-branch-address[hidden] { display: none; }

/* "Quoted by <branch> · Change" */
.cwrq-quotedby {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--cwrq-blue-tint);
	border: 1px solid var(--cwrq-blue-line);
	border-radius: 8px;
}
.cwrq-quotedby[hidden] { display: none; }
.cwrq-quotedby__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.cwrq-quotedby__label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cwrq-blue);
}
.cwrq-quotedby__name {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--cwrq-ink);
	line-height: 1.3;
}
.cwrq-quotedby__why {
	display: block;
	font-size: 12px;
	color: var(--cwrq-ink-2);
}
.cwrq-quotedby__why[hidden] { display: none; }
.cwrq-quotedby__change {
	flex: 0 0 auto;
	background: #fff;
	border: 1.5px solid var(--cwrq-line-2);
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	color: var(--cwrq-ink-2);
	padding: 7px 14px;
	cursor: pointer;
}
.cwrq-quotedby__change:hover { border-color: var(--cwrq-blue); color: var(--cwrq-blue); }
.cwrq-quotedby__picker { margin: 12px 0 0; }
.cwrq-quotedby__picker[hidden] { display: none; }

.cwrq-callout {
	background: #fdf4e6;
	border: 1px solid #ecdcc0;
	color: #7a4f10;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	margin-bottom: 14px;
}
.cwrq-notice {
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	margin-bottom: 14px;
	background: var(--cwrq-brick-tint);
	border: 1px solid var(--cwrq-brick-line);
	color: var(--cwrq-brick);
	font-weight: 600;
}
.cwrq-notice[hidden] { display: none; }
.cwrq-notice.is-info { background: var(--cwrq-blue-tint); border-color: var(--cwrq-blue-line); color: var(--cwrq-blue); }

.cwrq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cwrq-actions--status { margin-top: 16px; }
.cwrq-fineprint { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--cwrq-faint); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.cwrq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 800;
	font-size: 14px;
	line-height: 1.2;
	padding: 10px 18px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cwrq-btn--primary { background: var(--cwrq-blue); color: #fff !important; }
.cwrq-btn--primary:hover { background: var(--cwrq-blue-deep); color: #fff !important; }
.cwrq-btn--primary[disabled] { opacity: .6; cursor: progress; }
.cwrq-btn--ghost { background: #fff; border-color: var(--cwrq-line-2); color: var(--cwrq-ink-2) !important; }
.cwrq-btn--ghost:hover { border-color: var(--cwrq-blue); color: var(--cwrq-blue) !important; }
.cwrq-btn--big { padding: 14px 24px; font-size: 15px; }

/* ── Summary ───────────────────────────────────────────────────────────── */
.cwrq-summary__h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.cwrq-summary__count {
	background: var(--cwrq-blue-tint);
	color: var(--cwrq-blue);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 800;
}
.cwrq-lines { list-style: none; margin: 0; padding: 0; }
.cwrq-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid var(--cwrq-line);
	font-size: 13px;
}
.cwrq-line__main { min-width: 0; }
.cwrq-line__name { display: block; font-weight: 600; color: var(--cwrq-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cwrq-line__meta { display: block; color: var(--cwrq-faint); font-size: 12px; }
.cwrq-line__qty { color: var(--cwrq-grey); white-space: nowrap; }
.cwrq-line__total { font-weight: 700; white-space: nowrap; }
.cwrq-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--cwrq-blue-tint);
	border: 1px solid var(--cwrq-blue-line);
	color: var(--cwrq-blue);
	font-size: 11px;
	font-weight: 800;
	vertical-align: middle;
}
.cwrq-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 12px;
	font-size: 15px;
}
.cwrq-summary__total strong { font-size: 20px; }
.cwrq-summary__note { margin: 10px 0 0; font-size: 12px; color: var(--cwrq-grey); }
.cwrq-summary__edit { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--cwrq-blue); font-weight: 700; }

/* ── Status page ───────────────────────────────────────────────────────── */
.cwrq-progress {
	list-style: none;
	margin: 4px 0 18px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.cwrq-progress li { position: relative; text-align: center; font-size: 12px; color: var(--cwrq-faint); padding-top: 22px; }
.cwrq-progress__dot {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 14px; height: 14px; border-radius: 50%;
	background: #fff; border: 2px solid var(--cwrq-line-2);
}
.cwrq-progress li::before {
	content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--cwrq-line-2); z-index: -1;
}
.cwrq-progress li:first-child::before { display: none; }
.cwrq-progress li.is-done { color: var(--cwrq-ink); font-weight: 700; }
.cwrq-progress li.is-done .cwrq-progress__dot { background: var(--cwrq-blue); border-color: var(--cwrq-blue); }
.cwrq-progress li.is-done::before { background: var(--cwrq-blue); }
.cwrq-progress li.is-current .cwrq-progress__dot { box-shadow: 0 0 0 4px var(--cwrq-blue-tint); }
.cwrq-status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.cwrq-status-pill--muted { background: var(--cwrq-line); color: var(--cwrq-ink-2); }
.cwrq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.cwrq-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cwrq-grey); }
.cwrq-facts dd { margin: 2px 0 0; font-size: 14px; }

/* ── The branch's message + the quoted price ──────────────────────────────
   A saving is the one place a green reads correctly on this page: it is a
   figure, not an action, so it cannot be confused with the blue Get Quote /
   Send request buttons. Everything clickable stays blue. */
.cwrq-facts__hero { font-weight: 800; color: var(--cwrq-blue); }

.cwrq-msg { border-left: 3px solid var(--cwrq-blue); }
.cwrq-msg__body { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--cwrq-ink); }
.cwrq-msg__when { margin: 8px 0 0; font-size: 12px; color: var(--cwrq-faint); }

.cwrq-cmp__totals {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 10px 0 4px;
}
.cwrq-cmp__fig { display: flex; flex-direction: column; gap: 2px; }
.cwrq-cmp__fig span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cwrq-grey); }
.cwrq-cmp__fig b { font-size: 20px; font-weight: 800; color: var(--cwrq-ink); }
.cwrq-cmp__fig--now b { color: var(--cwrq-blue); }
.cwrq-cmp__fig--save b { color: #4e7a12; }
.cwrq-cmp__fig--save small { font-size: 13px; font-weight: 700; }
.cwrq-cmp__was { color: var(--cwrq-faint); text-decoration: line-through; }
.cwrq-cmp__now { font-weight: 800; color: var(--cwrq-blue); }

.cwrq-cmp__h { margin: 18px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cwrq-grey); }
.cwrq-lines--cmp .cwrq-line { align-items: flex-start; }
.cwrq-line__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.cwrq-line__prices small { color: var(--cwrq-faint); font-size: 11px; }
.cwrq-chg {
	display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px;
	font-size: 11px; font-weight: 800; background: var(--cwrq-line); color: var(--cwrq-ink-2);
}
.cwrq-chg--better { background: #eef6dc; color: #3f640c; }
.cwrq-chg--higher { background: #fdeceb; color: #a3372c; }
.cwrq-chg--removed { background: #fdeceb; color: #a3372c; }
.cwrq-chg--added { background: var(--cwrq-blue-tint); color: var(--cwrq-blue-deep); }
.cwrq-cmp__rest { margin: 10px 0 0; font-size: 13px; color: var(--cwrq-ink-2); }
.cwrq-cmp__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--cwrq-faint); }
