/* ==========================================================================
   Claim intake form.
   Builds on the theme's form primitives (.apl-input, .apl-choice, .apl-field)
   rather than redefining them, so there is one control style across the site.
   The fallbacks let the form stay usable if it is ever rendered under a
   different theme.

   Loaded after the theme stylesheet (it declares it as a dependency), so
   where a rule here and a generic theme rule have equal specificity — prose
   measure, fieldset reset — this file wins.
   ========================================================================== */

/* --- Page --------------------------------------------------------------- */

/* Start the form close to the page head. The theme's section padding (96px)
   is sized for prose pages. */
.apl-section:has(.apl-intake-layout),
.apl-section:has(.apl-intake-success) { padding-top: var(--apl-s10, 2.5rem); }

/* The theme caps prose children at a reading measure (58ch); a form with
   paired fields needs its own width. */
.apl-prose > .apl-intake-layout { max-width: none; }
.apl-prose > .apl-intake-success { max-width: 42rem; }

/* --- Layout: step list beside the form ------------------------------------ */

.apl-intake-layout {
	display: grid;
	gap: var(--apl-s8, 2rem);
}

.apl-intake-main { min-width: 0; }

@media (min-width: 1024px) {
	.apl-intake-layout {
		grid-template-columns: 15rem minmax(0, 50rem);
		gap: var(--apl-s12, 3rem);
		justify-content: start;
	}
}

/* --- Step list ------------------------------------------------------------ */

/* Wide screens only. On a phone each card's "Step N of 4" already says where
   you are, and a sticky bar would cost scarce height under the header. */
.apl-intake-nav { display: none; }

@media (min-width: 1024px) {
	.apl-intake-nav {
		display: block;
		position: sticky;
		top: 6.5rem;
		align-self: start;
		padding-top: var(--apl-s2, 0.5rem);
	}
}

.apl-intake-nav .apl-intake-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apl-intake-nav__list li {
	position: relative;
	margin: 0;
	padding-bottom: var(--apl-s4, 1rem);
}

/* The thread joining the step numbers. */
.apl-intake-nav__list li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 30px;
	bottom: 0;
	width: 2px;
	border-radius: 1px;
	background: var(--apl-border, #E2E8F0);
}

.apl-intake-nav__list li:has(.is-done):not(:last-child)::after { background: var(--apl-gain-600, #003AEF); }

.apl-intake-nav__link {
	display: flex;
	align-items: flex-start;
	gap: var(--apl-s3, 0.75rem);
	color: var(--apl-text-2, #3D4B5C);
	font-size: var(--apl-fs-small, 0.9375rem);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	border-radius: var(--apl-radius-sm, 4px);
}

.apl-intake-nav__link:hover { color: var(--apl-ink-900, #0A1F33); text-decoration: underline; }

.apl-intake-nav__label { padding-top: 4px; }
.apl-intake-nav__optional { font-weight: 400; color: var(--apl-muted, #5E6B80); }

.apl-intake-nav__num {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--apl-border-s, #7E8EA6);
	background: var(--apl-surface, #FFFFFF);
	color: var(--apl-text-2, #3D4B5C);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	transition: background-color var(--apl-transition, 150ms), border-color var(--apl-transition, 150ms);
}

.apl-intake-nav__num svg { display: none; }

/* Current step: filled navy, label in ink. */
.apl-intake-nav__link[aria-current="step"] { color: var(--apl-ink-900, #0A1F33); }
.apl-intake-nav__link[aria-current="step"] .apl-intake-nav__num {
	background: var(--apl-ink-900, #0A1F33);
	border-color: var(--apl-ink-900, #0A1F33);
	color: #FFFFFF;
}

/* Finished step: the accent with a tick instead of the number. */
.apl-intake-nav__link.is-done .apl-intake-nav__num {
	background: var(--apl-gain-600, #003AEF);
	border-color: var(--apl-gain-600, #003AEF);
	color: #FFFFFF;
}
.apl-intake-nav__link.is-done .apl-intake-nav__digit { display: none; }
.apl-intake-nav__link.is-done .apl-intake-nav__num svg { display: block; }

.apl-intake-nav__help {
	margin: var(--apl-s4, 1rem) 0 0;
	padding-top: var(--apl-s5, 1.25rem);
	border-top: 1px solid var(--apl-border, #E2E8F0);
	font-size: var(--apl-fs-small, 0.9375rem);
	color: var(--apl-text-2, #3D4B5C);
	line-height: 1.5;
}

.apl-intake-nav__help a { display: block; font-weight: 700; color: var(--apl-ink-900, #0A1F33); }

/* --- Steps: one card each ------------------------------------------------- */

.apl-intake .apl-intake__section {
	padding: var(--apl-s5, 1.25rem);
	background: var(--apl-surface, #FFFFFF);
	border: 1px solid var(--apl-border, #E2E8F0);
	border-radius: var(--apl-radius-lg, 12px);
	box-shadow: var(--apl-shadow-1, 0 1px 3px rgba(10, 31, 51, .08));
	scroll-margin-top: 6.5rem;
}

@media (min-width: 640px) {
	.apl-intake .apl-intake__section { padding: var(--apl-s8, 2rem); }
}

.apl-intake .apl-intake__section + .apl-intake__section { margin-top: var(--apl-s5, 1.25rem); }

/* Doubled class: beats the theme's `.apl-fieldset { margin: 0 }`, which used
   to remove the space above every question group. */
.apl-intake .apl-intake__section > * + * { margin-top: var(--apl-s6, 1.5rem); }

/* Error-summary links jump to a field; keep it clear of the sticky header. */
.apl-intake :is(input, select, textarea, fieldset) { scroll-margin-top: 8rem; }

/* "Continue to step N" at the end of steps 1-3: a plain in-page link, for
   steps where typing (not a choice) finishes the step. */
.apl-intake .apl-intake__section > .apl-intake__next {
	margin-top: var(--apl-s6, 1.5rem);
	padding-top: var(--apl-s5, 1.25rem);
	border-top: 1px solid var(--apl-border, #E2E8F0);
	text-align: right;
}

.apl-intake__next-link {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2, 0.5rem);
	min-height: 44px;
	padding: var(--apl-s2, 0.5rem) var(--apl-s3, 0.75rem);
	border-radius: var(--apl-radius-sm, 4px);
	font-size: var(--apl-fs-small, 0.9375rem);
	font-weight: 600;
	color: var(--apl-ink-700, #1B456E);
	text-decoration: none;
}

.apl-intake__next-link:hover { background: var(--apl-ink-050, #F2F7FB); color: var(--apl-ink-900, #0A1F33); }

/* --- Step headings -------------------------------------------------------- */

.apl-intake .apl-intake__legend {
	display: flex;
	align-items: center;
	gap: var(--apl-s3, 0.75rem);
	font-size: var(--apl-fs-h3, 1.3125rem);
	font-weight: 700;
	color: var(--apl-ink-900, #0A1F33);
	margin: 0 0 var(--apl-s6, 1.5rem);
	padding-bottom: var(--apl-s5, 1.25rem);
	border-bottom: 1px solid var(--apl-border, #E2E8F0);
	line-height: 1.25;
}

/* "Step 2 of 4" above the step name. Numbered circles alone tell you where
   you are only if you already know how many there are. */
.apl-intake__step {
	display: block;
	font-size: var(--apl-fs-micro, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-muted, #5E6B80);
	margin-bottom: 2px;
}

.apl-intake__num {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: 50%;
	background: var(--apl-ink-900, #0A1F33);
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
}

/* --- Field rows ----------------------------------------------------------- */

.apl-intake__row {
	display: grid;
	gap: var(--apl-s4, 1rem);
}

@media (min-width: 640px) {
	.apl-intake__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apl-intake__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/*
	 * Paired fields line up. Each field shares the row's tracks through
	 * subgrid — label, control, help, error — so the boxes sit on one line
	 * and have one height even when a neighbour's label wraps or it has help
	 * text. Labels sit at the bottom of their track, right above the box.
	 * Previously the grid stretched controls to fill the cell, and paired
	 * boxes differed by up to 27px in height and 26px in position.
	 */
	.apl-intake__row:has(> .apl-field) { row-gap: 0; }

	.apl-intake__row > .apl-field {
		grid-row: span 4;
		grid-template-rows: subgrid;
		row-gap: 0;
		align-content: start;
	}

	.apl-intake__row > .apl-field > .apl-label { align-self: end; margin-bottom: var(--apl-s2, 0.5rem); }
	.apl-intake__row > .apl-field > :nth-child(n+3) { margin-top: var(--apl-s2, 0.5rem); }
}

/* Short single-line choices (fault, repairs, contact method) size to their
   text and share the row, instead of three fixed columns that wrapped
   "Shared or still disputed" onto two lines. */
.apl-intake__row--3:has(> .apl-choice) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s3, 0.75rem);
}

.apl-intake__row--3 > .apl-choice {
	flex: 1 1 auto;
	align-items: center;
	padding: var(--apl-s3, 0.75rem) var(--apl-s4, 1rem);
}

.apl-intake__row--3 > .apl-choice input { margin-top: 0; }
.apl-intake__row--3 > .apl-choice .apl-choice__text strong { margin: 0; font-weight: 600; }

/* The four services with their one-line descriptions: two by two. */
@media (min-width: 640px) {
	.apl-intake #service_type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apl-intake #service_type > :not(.apl-choice) { grid-column: 1 / -1; }
}

/* VIN: the box and its Look up button on one line. */
.apl-intake__vin-group {
	display: flex;
	gap: var(--apl-s2, 0.5rem);
}

.apl-intake__vin-group .apl-input { flex: 1 1 auto; min-width: 0; }
.apl-intake__vin-group .apl-btn { flex: none; min-height: var(--apl-control-h, 48px); }
.apl-intake__vin-group .apl-btn[hidden] { display: none; }
.apl-intake__vin-group .apl-btn[aria-busy="true"] { cursor: progress; }

/* Phones: the button goes under the box so all 17 characters stay visible. */
@media (max-width: 479px) {
	.apl-intake__vin-group { flex-direction: column; }
}

@media (min-width: 640px) {
	.apl-intake__vin { max-width: 32rem; }
}

/* What the lookup did. Empty until a lookup runs. */
.apl-intake__vin-status {
	margin: 0;
	font-size: var(--apl-fs-small, 0.9375rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--apl-ink-800, #102F4C);
}

.apl-intake__vin-status:empty { display: none; }
.apl-intake__vin-status[data-tone="ok"] { color: var(--apl-gain-800, #0026A3); }
.apl-intake__vin-status[data-tone="warn"] { color: var(--apl-flag-700, #8A4F08); }

/* A field the lookup just filled flashes the accent tint once. */
@keyframes apl-autofill {
	from { background-color: var(--apl-gain-100, #E8EEFE); }
	to   { background-color: var(--apl-surface, #FFFFFF); }
}

.apl-input.is-autofilled { animation: apl-autofill 1.6s ease-out; }

/* Money: a "$" inside the box instead of a placeholder figure that looked
   like an answer already filled in. */
.apl-input-money {
	position: relative;
	display: block;
}

.apl-input-money__sign {
	position: absolute;
	left: var(--apl-s4, 1rem);
	top: 50%;
	transform: translateY(-50%);
	color: var(--apl-muted, #5E6B80);
	font-size: var(--apl-fs-body, 1.0625rem);
	pointer-events: none;
}

.apl-input-money .apl-input { padding-left: 2.1rem; }

/* The file picker's button in the site's secondary-button style rather than
   the browser's grey default. */
.apl-intake .apl-file input[type="file"]::file-selector-button {
	margin-right: var(--apl-s3, 0.75rem);
	padding: var(--apl-s2, 0.5rem) var(--apl-s4, 1rem);
	min-height: 40px;
	border: 1px solid var(--apl-ink-700, #1B456E);
	border-radius: var(--apl-radius-sm, 4px);
	background: var(--apl-surface, #FFFFFF);
	color: var(--apl-ink-700, #1B456E);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.apl-intake .apl-file input[type="file"]:hover::file-selector-button {
	background: var(--apl-ink-050, #F2F7FB);
	border-color: var(--apl-ink-900, #0A1F33);
	color: var(--apl-ink-900, #0A1F33);
}

/* Monospace for identifiers the user must transcribe exactly. */
.apl-input--mono {
	font-family: var(--apl-font-mono, ui-monospace, monospace);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* --- Report box: "Have the insurer's valuation report?" -----------------
   On the form (step 1) and in the home page's total-loss tool. A dashed drop
   target with one button; the real file input sits inside the label,
   visually hidden but focusable, and the label shows its focus. */

.apl-docbox {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--apl-s3, 0.75rem) var(--apl-s5, 1.25rem);
	padding: var(--apl-s5, 1.25rem);
	border: 2px dashed var(--apl-ink-300, #9DB8D0);
	border-radius: var(--apl-radius-md, 8px);
	background: var(--apl-ink-050, #F2F7FB);
	transition: border-color var(--apl-transition, 150ms), background-color var(--apl-transition, 150ms);
}

.apl-docbox[hidden] { display: none; }
.apl-docbox.is-over { border-color: var(--apl-gain-600, #003AEF); background: var(--apl-gain-100, #E8EEFE); }
.apl-docbox.is-busy { cursor: progress; }
.apl-docbox.is-busy .apl-docbox__button { opacity: .6; pointer-events: none; }

.apl-docbox__title { margin: 0; font-weight: 700; color: var(--apl-ink-900, #0A1F33); }
.apl-docbox__help { margin: var(--apl-s1, 0.25rem) 0 0; font-size: var(--apl-fs-small, 0.9375rem); color: var(--apl-text-2, #3D4B5C); line-height: 1.45; }

.apl-docbox__button { position: relative; cursor: pointer; white-space: nowrap; }
.apl-docbox__button:focus-within { outline: 3px solid var(--apl-ink-700, #1B456E); outline-offset: 2px; }

.apl-docbox__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.apl-docbox__status,
.apl-docbox__privacy,
.apl-docbox__result { grid-column: 1 / -1; margin: 0; }

.apl-docbox__status { font-size: var(--apl-fs-small, 0.9375rem); font-weight: 600; color: var(--apl-ink-800, #102F4C); }
.apl-docbox__status:empty { display: none; }
.apl-docbox__status[data-tone="ok"] { color: var(--apl-gain-800, #0026A3); }
.apl-docbox__status[data-tone="warn"] { color: var(--apl-flag-700, #8A4F08); }

.apl-docbox__privacy { font-size: var(--apl-fs-micro, 0.8125rem); color: var(--apl-muted, #5E6B80); }

/*
 * The consent tick. It sits in the box's text column, above the button, and
 * not in the small print under it: having a document read means sending it to
 * a third party, and the visitor should be asked before the file picker opens
 * rather than told afterwards.
 */
.apl-docbox__consent { margin-top: var(--apl-s4, 1rem); }
.apl-docbox__consent .apl-choice { padding: var(--apl-s3, 0.75rem) var(--apl-s4, 1rem); }
.apl-docbox__consent .apl-choice__text strong { font-size: var(--apl-fs-small, 0.9375rem); }
.apl-docbox__consent-link { white-space: nowrap; }

@media (max-width: 559px) {
	.apl-docbox { grid-template-columns: 1fr; }
	.apl-docbox__button { justify-self: start; }
}

/* Home-page result: what the report says next to the market range. */
.apl-docbox__result {
	padding: var(--apl-s5, 1.25rem);
	background: var(--apl-surface, #FFFFFF);
	border: 1px solid var(--apl-border, #E2E8F0);
	border-radius: var(--apl-radius-md, 8px);
}

.apl-docbox__result[hidden] { display: none; }

.apl-docbox__facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: var(--apl-s2, 0.5rem) var(--apl-s5, 1.25rem);
	margin: 0 0 var(--apl-s3, 0.75rem);
}

.apl-docbox__facts dt { color: var(--apl-muted, #5E6B80); font-size: var(--apl-fs-small, 0.9375rem); }
.apl-docbox__facts dd { margin: 0; font-weight: 600; color: var(--apl-ink-900, #0A1F33); font-variant-numeric: tabular-nums; }
.apl-docbox__facts .apl-docbox__range { color: var(--apl-gain-800, #0026A3); font-size: 1.125rem; }

.apl-docbox__basis,
.apl-docbox__note { margin: 0 0 var(--apl-s3, 0.75rem); font-size: var(--apl-fs-small, 0.9375rem); color: var(--apl-text-2, #3D4B5C); line-height: 1.45; }

.apl-docbox--home { margin-top: var(--apl-s6, 1.5rem); }

/*
 * Diminished value tool: the repair bill is the tool itself rather than a
 * shortcut offered beside it, so the box carries the primary button and a
 * solid border instead of the dashed "drop something here if you like".
 */
.apl-docbox--dv {
	margin: 0;
	border-style: solid;
	border-color: var(--apl-ink-300, #9DB8D0);
	background: var(--apl-surface, #FFFFFF);
}

.apl-docbox--dv.is-over { border-style: dashed; }
.apl-docbox--dv .apl-docbox__title { font-size: var(--apl-fs-h4, 1.0625rem); }

/* --- Estimate card (step 1) -------------------------------------------- */

.apl-quote {
	padding: var(--apl-s5, 1.25rem) var(--apl-s6, 1.5rem);
	border-radius: var(--apl-radius-md, 8px);
	background: var(--apl-gain-100, #E8EEFE);
	border-left: 4px solid var(--apl-gain-600, #003AEF);
	transition: opacity var(--apl-transition, 150ms);
}

.apl-quote[hidden] { display: none; }
.apl-quote.is-refreshing .apl-quote__range,
.apl-quote.is-refreshing .apl-quote__basis,
.apl-quote.is-refreshing .apl-quote__note { opacity: .5; transition: opacity var(--apl-transition, 150ms); }

.apl-quote__label {
	margin: 0;
	font-size: var(--apl-fs-micro, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-gain-800, #0026A3);
}

.apl-quote__range {
	margin: var(--apl-s1, 0.25rem) 0 var(--apl-s2, 0.5rem);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--apl-ink-900, #0A1F33);
	font-variant-numeric: tabular-nums;
}

.apl-quote.is-empty .apl-quote__range { font-size: 1.125rem; }

.apl-quote__basis,
.apl-quote__note { margin: 0; font-size: var(--apl-fs-small, 0.9375rem); color: var(--apl-text-2, #3D4B5C); line-height: 1.45; }
.apl-quote__note { margin-top: var(--apl-s2, 0.5rem); }
.apl-quote__note:empty { display: none; }

/* --- Loading states ---------------------------------------------------------
   Every wait shows movement: a spinner in status lines and buttons, an
   indeterminate bar while a report is read, a shimmering placeholder while
   the estimate loads. Under prefers-reduced-motion the theme stops all
   animation; the text still says what is happening. */

.apl-spinner {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -0.15em;
	animation: apl-spin .75s linear infinite;
}

@keyframes apl-spin { to { transform: rotate(360deg); } }

.apl-working {
	display: flex;
	align-items: center;
	gap: var(--apl-s2, 0.5rem);
}

[data-tone="busy"] { color: var(--apl-ink-800, #102F4C); }

.apl-progress {
	position: relative;
	display: block;
	grid-column: 1 / -1;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(0, 58, 239, .14); /* a visible track on the pale box */
}

.apl-progress::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	border-radius: 2px;
	background: var(--apl-gain-600, #003AEF);
	animation: apl-indeterminate 1.4s ease-in-out infinite;
}

@keyframes apl-indeterminate {
	from { transform: translateX(-100%); }
	to   { transform: translateX(250%); }
}

.apl-skeleton {
	display: block;
	width: min(16rem, 80%);
	height: 1em;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(0, 58, 239, .10) 25%, rgba(0, 58, 239, .24) 50%, rgba(0, 58, 239, .10) 75%);
	background-size: 200% 100%;
	animation: apl-shimmer 1.2s linear infinite;
}

@keyframes apl-shimmer {
	from { background-position: 200% 0; }
	to   { background-position: -200% 0; }
}

.apl-btn.is-loading { cursor: progress; }

/* The send panel is a flex row: the bar takes a line of its own. */
.apl-intake__submit .apl-progress { flex: 1 0 100%; }
.apl-btn.is-loading .apl-spinner { margin-right: .1em; }

/* An estimate being refreshed keeps the old figures, dimmed, with a spinner. */
.apl-quote__label .apl-spinner { margin-left: var(--apl-s2, 0.5rem); width: .9em; height: .9em; }

@media (prefers-reduced-motion: reduce) {
	/* The bar cannot move: show it as a full, quieter stripe instead. */
	.apl-progress::before { width: 100%; opacity: .45; }
}

/* --- Honeypot ------------------------------------------------------------
   Positioned off-screen rather than display:none, because some bots skip
   display:none fields. aria-hidden on the wrapper keeps it away from screen
   readers, and tabindex="-1" keeps it out of the tab order.
   ------------------------------------------------------------------------ */

.apl-intake__hp {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Error summary ------------------------------------------------------- */

.apl-intake-errors {
	background: var(--apl-alert-100, #FBE9E9) !important;
	border-color: var(--apl-alert-600, #C0272D) !important;
	margin-bottom: var(--apl-s5, 1.25rem);
	scroll-margin-top: 6.5rem;
}

/* Doubled class: `.apl-callout--note .apl-callout__title` in the theme has the
   same specificity, which turned this title navy on a red error box. */
.apl-callout.apl-intake-errors .apl-callout__title {
	color: var(--apl-alert-700, #9B1C21);
	margin-top: 0; /* not the prose h2 top margin: it is the first thing in the box */
}
.apl-intake-errors ul { margin: var(--apl-s3, 0.75rem) 0 0; padding-left: 1.2em; }
.apl-intake-errors a { color: var(--apl-alert-700, #9B1C21); font-weight: 600; }

/* --- Send ----------------------------------------------------------------- */

.apl-intake__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apl-s4, 1rem) var(--apl-s6, 1.5rem);
	margin-top: var(--apl-s5, 1.25rem);
	padding: var(--apl-s5, 1.25rem);
	background: var(--apl-ink-050, #F2F7FB);
	border: 1px solid var(--apl-ink-100, #E4EDF5);
	border-radius: var(--apl-radius-lg, 12px);
}

@media (min-width: 640px) {
	.apl-intake__submit { padding: var(--apl-s6, 1.5rem) var(--apl-s8, 2rem); }
}

.apl-intake__submit .apl-btn { min-width: 16rem; }

.apl-intake__submit-note {
	display: flex;
	align-items: flex-start;
	gap: var(--apl-s2, 0.5rem);
	flex: 1 1 18rem;
	margin: 0;
	font-size: var(--apl-fs-small, 0.9375rem);
	color: var(--apl-text-2, #3D4B5C);
	line-height: 1.45;
}

.apl-intake__submit-note svg { flex: none; margin-top: 2px; color: var(--apl-ink-700, #1B456E); }

@media (max-width: 479px) {
	.apl-intake__submit .apl-btn { width: 100%; min-width: 0; }
}

/* --- Confirmation -------------------------------------------------------- */

.apl-intake-success {
	max-width: 42rem;
	padding: var(--apl-s8, 2rem);
	background: var(--apl-surface, #FFFFFF);
	border: 1px solid var(--apl-border, #E2E8F0);
	border-left: 4px solid var(--apl-gain-600, #003AEF);
	border-radius: var(--apl-radius-md, 8px);
	box-shadow: var(--apl-shadow-1, 0 1px 3px rgba(10, 31, 51, .08));
}

.apl-intake-success__icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--apl-gain-100, #E8EEFE);
	color: var(--apl-gain-700, #002FC4);
	margin-bottom: var(--apl-s5, 1.25rem);
}

.apl-intake-success h2 { margin-top: 0; margin-bottom: var(--apl-s4, 1rem); }

.apl-intake-success__ref {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apl-s3, 0.75rem);
	padding: var(--apl-s4, 1rem) var(--apl-s5, 1.25rem);
	margin-bottom: var(--apl-s6, 1.5rem);
	background: var(--apl-ink-050, #F2F7FB);
	border-radius: var(--apl-radius-sm, 4px);
}

.apl-intake-success__ref .apl-micro {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--apl-muted, #5E6B80);
}

.apl-intake-success__ref strong { font-size: 1.125rem; }

@media print {
	.apl-intake-nav { display: none; }
	.apl-intake .apl-intake__section { box-shadow: none; border-color: #000000; }
	.apl-intake-success { border: 1px solid #000000; box-shadow: none; }
}
