/*
 * Route: Get a Quote (handoff section E).
 *
 * Two columns to the handoff's spec — fluid form card + 360px sidebar, capped
 * at 1160px, stacking below ~900px. Loaded on this route only.
 */

.as-main.as-route-quote { max-width: none; padding-inline: 0; }
.as-route-quote .as-section { padding-inline: 0; }

.as-q-hero { padding-block: 56px 32px; }

/*
 * The hero is centred and at display size. The first build reached for
 * .as-section__title, which is 30px and left-aligned because it heads a section
 * inside a page — this heads the page. Different job, different type.
 */
.as-q-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3-5); text-align: center; }
.as-q-hero__eyebrow {
	margin: 0;
	color: var(--atomic-blue);
}
.as-q-hero__title { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.as-q-hero__sub { margin: 0; max-width: 56ch; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-q-hero__sub strong { color: var(--color-text); }

.as-q-body { padding-block: 0 64px; }

.as-q__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--space-8);
	align-items: start;
}

/* ── Form card ───────────────────────────────────────────────────────────── */
.as-q__card { padding: 34px; border-radius: var(--radius-lg); }

.as-q__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4-5);
}

.as-q__field { margin-bottom: 20px; }
.as-q__row .as-q__field { margin-bottom: 0; }
.as-q__row { margin-bottom: 20px; }

.as-q__label {
	display: block;
	margin-bottom: 6px;
	color: var(--color-text);
}

/* Cloud link: a quiet row under the drop zone, label beside the field. */
.as-q__cloud { display: flex; align-items: center; gap: var(--space-2-5); margin-top: 10px; }
.as-q__cloud-label { flex: none; font-size: var(--text-xs); color: var(--color-text-muted); }
.as-q__input--sm { padding: 10px 14px; font-size: var(--text-sm); }
.as-q__opt { font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.06em; }

.as-q__input {
	width: 100%;
	padding: 12px 14px;
	/*
	 * --atomic-input-bg / --atomic-input-border are legacy brand tokens for
	 * inputs on a DARK surface (#3a4156), and nothing else in the theme uses
	 * them. Chosen by name here, they filled every field on a white card with
	 * navy. The form sits on --color-surface, so its inputs do too.
	 */
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: inherit;
	font-size: var(--text-body);
	color: var(--color-text);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.as-q__input::placeholder { color: var(--color-placeholder); }

.as-q__input:focus {
	border-color: var(--atomic-blue);
}

.as-q__textarea { resize: vertical; min-height: 130px; line-height: var(--leading-body); }

.as-q__fieldset { border: 0; margin: 0 0 20px; padding: 0; }

/* ── Product chips ───────────────────────────────────────────────────────── */
.as-q__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.as-q__chip { position: relative; }

/* The checkbox stays focusable and reachable; the label is what is seen. */
.as-q__chip input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.as-q__chip span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: var(--color-surface);
	font-size: var(--text-sm);
	font-weight: 600;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.as-q__chip input:hover + span { background: var(--color-surface-tint); }

.as-q__chip input:focus-visible + span {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

/* Selected reads as blue fill with a tick, per the handoff. */
.as-q__chip input:checked + span {
	background: var(--atomic-blue);
	border-color: var(--atomic-blue);
	color: var(--atomic-white);
}

.as-q__chip input:checked + span::before { content: "✓ "; }

/* ── Drop zone ───────────────────────────────────────────────────────────── */
.as-q__drop {
	position: relative;
	padding: 22px 18px;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface-alt);
	text-align: center;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.as-q__drop.is-over {
	border-color: var(--atomic-blue);
	background: var(--color-surface-tint);
}

.as-q__drop-text { margin: 0; font-size: var(--text-sm); }
.as-q__hint { margin: 6px 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }

.as-q__browse {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--atomic-blue);
	text-decoration: underline;
	cursor: pointer;
}

/* Visually hidden, not display:none — a hidden input cannot be clicked open,
   and the browse button needs something real to trigger. */
.as-q__file {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.as-q__filelist {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.as-q__filelist li {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 6px 0;
	font-size: var(--text-sm);
	border-top: 1px solid var(--color-border-soft);
}

.as-q__filelist li span:last-child { color: var(--color-text-muted); white-space: nowrap; }
.as-q__filelist li.is-bad { color: #b3261e; }

/* ── Submit ──────────────────────────────────────────────────────────────── */
.as-q__submit { display: flex; align-items: center; gap: var(--space-3-5); flex-wrap: wrap; }
.as-q__promise { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ── Errors and success ──────────────────────────────────────────────────── */
.as-q__err {
	margin: 6px 0 0;
	font-size: var(--text-sm);
	font-weight: 600;
	color: #b3261e;
}

.as-q__err--top {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #f3c9c5;
	border-radius: var(--radius-md);
	background: #fdf3f2;
}

.as-q__sent { padding: 28px; }
.as-q__sent-title { margin: 0 0 8px; font-size: var(--text-h3); }

/* The honeypot must be unreachable, not merely invisible. */
.as-q__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.as-q__side { display: grid; gap: var(--space-4); }

.as-q__skip, .as-q__next, .as-q__tip { padding: 24px; border-radius: var(--radius-lg); }

.as-q__side-head {
  margin: 0 0 14px;
  color: var(--atomic-blue);
}

.as-q__side-head--dark { color: var(--color-text-muted); }

.as-q__side-row {
	display: flex;
	align-items: center;
	gap: var(--space-2-5);
	padding: 8px 0;
	color: inherit;
	font-size: var(--text-sm);
	font-weight: 600;
}

.as-q__side-row:hover { color: var(--atomic-blue); }
.as-q__side-row svg { flex: 0 0 22px; color: var(--atomic-blue); }

/* The rule is the mock's, and it is what separates the ways to reach a person
   from the hours in which one is there. */
.as-q__side-note {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: var(--text-xs);
	line-height: 1.55;
	color: #c3c8d2;
}

.as-q__step { display: flex; gap: var(--space-3); margin-top: 14px; }
.as-q__step p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); }

.as-q__step-num {
	flex: 0 0 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: var(--radius-pill);
	background: var(--color-surface-tint);
	color: var(--atomic-blue);
	font-size: var(--text-xs);
	font-weight: 800;
}

.as-q__tip p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.as-q__wrap { padding-inline: 24px; }
	.as-q__cols { grid-template-columns: minmax(0, 1fr); }
	.as-q__row { grid-template-columns: 1fr; gap: var(--space-5); }
	.as-q__card { padding: 20px; }
}
