/* LLCW form choices (see js/llcw-form-choices.js). Tokens only. 2026-10-21. */

/* Options stay in one column, whatever their number (Baymard, GOV.UK). The old two-column rule for long
   lists was removed in the expert review of 28 Oct 2026. */
.brxe-form.brxe-form.brxe-form .options-wrapper[hidden] { display: none; }

.ll-cs__hint { margin: -4px 0 8px; font-size: 16px; line-height: 1.5; }
.brxe-form.brxe-form .ll-cs__input { width: 100%; }
.ll-cs__list {
	margin: 8px 0 0;
	padding: 6px;
	list-style: none;
	background: var(--ll-white);
	color: var(--ll-support-blue);
	border: 2px solid var(--ll-support-blue);
	border-radius: 24px;
	max-height: 288px;
	overflow-y: auto;
}
.ll-cs__list[hidden] { display: none; }
.ll-cs__opt {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	border-radius: 16px;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
}
.ll-cs__opt[hidden] { display: none; }
.ll-cs__opt::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 2px solid var(--ll-support-blue);
	border-radius: 4px;
	background: var(--ll-white);
}
.ll-cs__opt[aria-selected="true"]::before {
	content: "\2713";
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ll-support-blue);
	color: var(--ll-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}
.ll-cs__opt:hover, .ll-cs__opt.is-active { background: var(--ll-light-calm-beige); }
.ll-cs__opt.is-active { outline: 2px solid var(--ll-support-blue); outline-offset: -2px; }
.ll-cs__empty { margin: 0; padding: 10px 14px; font-size: 16px; }
.ll-cs__empty[hidden] { display: none; }
.ll-cs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.ll-cs__chips[hidden] { display: none; }
.ll-cs__chips li { margin: 0; }
.ll-cs__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px;
	background: var(--ll-white);
	color: var(--ll-support-blue);
	border: 2px solid var(--ll-support-blue);
	border-radius: 9999px;
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
}
.ll-cs__chip:hover { background: var(--ll-light-calm-beige); }
.ll-cs__chip:focus-visible { outline: 3px solid var(--ll-support-blue); outline-offset: 2px; }
.ll-cs__x { font-size: 20px; line-height: 1; }

/* Word count under a hint (data-llcw-words). */
.brxe-form .ll-wc { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: inherit; }
.brxe-form .ll-wc.is-over { font-weight: 700; }

/* Stacked forms: radio/checkbox group labels match text-field labels (sentence case, no tracking),
   so long questions stay readable. */
.brxe-form.ll-form-stack.ll-form-stack .form-group > .label { text-transform: none; letter-spacing: normal; margin-bottom: 8px; }

/* ------------------------------------------------------------------------------------------------
   Multi-step forms (data-llcw-steps) and the post-submit tracker (data-llcw-track). 2026-10-21.
   Everything here is keyed to html.ll-ms-on (set by the script), so without JS the form stays one
   long page and the tracker reads as a plain "What happens next" list.
   ------------------------------------------------------------------------------------------------ */
[data-llcw-ms-js] { display: none; }
.ll-ms-on [data-llcw-ms-js] { display: revert; }
.brxe-form.brxe-form.brxe-form .form-group.ll-ms-off { display: none; }
[data-llcw-ms-hide][hidden], form.brxe-form.brxe-form.brxe-form.brxe-form[hidden], .ll-ms[hidden] { display: none; }

/* Sub-headings inside a step (the source document's section titles). */
.ll-form-stack.ll-form-stack .ll-form-sublegend { margin: 12px 0 0; color: var(--ll-support-blue); font-size: 19px; font-weight: 700; line-height: 1.3; }

/* Step heading: eyebrow "Step 2 of 5" above the title. */
.ll-ms-on .ll-form-legend .ll-ms__count { display: block; margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: normal; }
.ll-ms-on .brxe-form.brxe-form.brxe-form.brxe-form .form-group:has(> [data-llcw-step]) { margin-top: 0; padding-top: 0; border-top: 0; }
.ll-form-legend:focus { outline: none; }
.ll-form-legend:focus-visible { outline: 3px solid var(--ll-support-blue); outline-offset: 4px; border-radius: 4px; }

/* Progress stepper. */
.ll-ms { width: 100%; scroll-margin-top: 112px; }
.ll-ms__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ll-ms__item { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.ll-ms__item + .ll-ms__item::before {
	content: ""; position: absolute; top: 17px; right: calc(50% + 22px); left: calc(-50% + 22px);
	height: 2px; background: color-mix(in srgb, var(--ll-support-blue) 35%, transparent);
}
.ll-ms__item.is-done + .ll-ms__item::before { background: var(--ll-support-blue); }
.ll-ms__go {
	display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 0;
	background: none; border: 0; font: inherit; color: var(--ll-support-blue); text-align: center;
}
button.ll-ms__go { cursor: pointer; }
button.ll-ms__go:hover .ll-ms__name { text-decoration: underline; }
button.ll-ms__go:focus-visible { outline: 3px solid var(--ll-support-blue); outline-offset: 4px; border-radius: 12px; }
.ll-ms__num {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; box-sizing: border-box;
	border: 2px solid var(--ll-support-blue); border-radius: 9999px; background: var(--ll-white);
	color: var(--ll-support-blue); font-size: 16px; font-weight: 700; line-height: 1;
}
.ll-ms__item.is-current .ll-ms__num, .ll-ms__item.is-done .ll-ms__num { background: var(--ll-support-blue); color: var(--ll-white); }
.ll-ms__name { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ll-ms__item.is-current .ll-ms__name { font-weight: 700; }
@media (max-width: 767px) {
	.ll-ms__name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
	.ll-ms__go { min-height: 44px; justify-content: center; }
}

/* Next / Back / Send row, and the save + clear line. */
.ll-ms__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.ll-ms__controls > .ll-ms__btn:not(.ll-ms__btn--ghost), .brxe-form.brxe-form.brxe-form .ll-ms__controls > .submit-button-wrapper { order: -1; margin-left: 0; }
.brxe-form.brxe-form.brxe-form .ll-ms__controls > .submit-button-wrapper { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 0; width: auto; }
.ll-ms__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 12px 28px;
	box-sizing: border-box; border: 2px solid var(--ll-support-blue); border-radius: 9999px;
	background: var(--ll-support-blue); color: var(--ll-white); font: inherit; font-size: var(--ll-text); font-weight: 700; line-height: 1.2; cursor: pointer;
}
.ll-ms__btn--ghost { background: var(--ll-white); color: var(--ll-support-blue); }
.ll-ms__btn:focus-visible, .ll-ms__link:focus-visible { outline: 3px solid var(--ll-support-blue); outline-offset: 3px; }
.ll-ms__btn[hidden], .ll-ms__link[hidden], .brxe-form.brxe-form.brxe-form .ll-ms__controls > [hidden] { display: none; }
.ll-ms__link {
	display: inline-block; min-height: 44px; margin: 0; padding: 10px 0; background: none; border: 0;
	color: var(--ll-support-blue); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ll-ms__util { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ll-ms__saved { margin: 0; font-size: 16px; line-height: 1.5; }
.ll-ms__saved .ll-ms__link { padding: 0; min-height: 0; }
.ll-ms__saved[hidden], .ll-ms__confirm[hidden] { display: none; }
.ll-ms__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border: 2px solid var(--ll-support-blue); border-radius: 24px; background: var(--ll-white); }
.ll-ms__confirm p { flex-basis: 100%; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
@media (max-width: 478px) {
	.ll-ms__controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.brxe-form.brxe-form.brxe-form .ll-ms__controls > .submit-button-wrapper { flex: none; }
	.ll-ms__controls .ll-ms__btn, .brxe-form.brxe-form.brxe-form .ll-ms__controls > .submit-button-wrapper, .ll-ms__controls button[type=submit] { width: 100%; margin-left: 0; }
}

/* Review screen. */
.ll-ms__review { display: flex; flex-direction: column; gap: 24px; }
.ll-ms__review[hidden] { display: none; }
.ll-ms__review .ll-form-legend, .ll-ms__review .ll-form-note { margin: 0; }
.ll-ms__rsec { padding: 24px; border-radius: 24px; background: var(--ll-white); color: var(--ll-support-blue); }
.ll-ms__rhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ll-ms__rtitle { margin: 0; font-size: var(--ll-text-l); font-weight: 700; line-height: 1.3; }
.ll-ms__rhead .ll-ms__link { padding: 4px 0; min-height: 0; }
.ll-ms__dl { margin: 12px 0 0; }
.ll-ms__dl dt { margin: 16px 0 0; font-size: var(--ll-text-s); font-weight: 700; line-height: 1.4; }
.ll-ms__dl dt:first-child { margin-top: 0; }
.ll-ms__dl dd { margin: 0; font-size: var(--ll-text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ll-ms__none { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }

/* "Before you start" ticks. */
[data-llcw-ticks] > li { position: relative; padding-left: 32px; }
[data-llcw-ticks] > li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; }

/* Tracker: numbered stages joined by a line; after submit stage 1 is ticked and stage 2 is next. */
[data-llcw-track]:not(.is-done) [data-llcw-track-done] { display: none; }
[data-llcw-track-list] { counter-reset: llcw-stage; row-gap: 0; }
[data-llcw-track-stage] { position: relative; counter-increment: llcw-stage; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 24px 56px; min-height: 40px; }
[data-llcw-track-stage]:last-child { padding-bottom: 0; }
[data-llcw-track-stage]::before {
	content: counter(llcw-stage); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; box-sizing: border-box; border: 2px solid var(--ll-support-blue); border-radius: 9999px;
	background: var(--ll-white); color: var(--ll-support-blue); font-size: 17px; font-weight: 700; line-height: 1;
}
[data-llcw-track-stage]:not(:last-child)::after {
	content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px;
	background: color-mix(in srgb, var(--ll-support-blue) 35%, transparent);
}
[data-llcw-track-stage].is-done::before { content: "\2713"; background: var(--ll-support-blue); color: var(--ll-white); }
[data-llcw-track-stage].is-done::after { background: var(--ll-support-blue); }
[data-llcw-track-stage].is-next::before { box-shadow: 0 0 0 3px var(--ll-white), 0 0 0 5px var(--ll-support-blue); }
[data-llcw-track-stage] > :is(h3, h4) { padding-top: 8px; }
[data-llcw-track] [data-llcw-track-done]:focus { outline: none; }
[data-llcw-track] [data-llcw-track-done]:focus-visible { outline: 3px solid var(--ll-support-blue); outline-offset: 4px; }

/* ------------------------------------------------------------------------------------------------
   2026-10-22 review fixes (reports/rapid-signup-review-2026-10-22/ux-findings.md).
   ------------------------------------------------------------------------------------------------ */
/* Hints moved above their control by the script: the emptied HTML group collapses. */
.brxe-form.brxe-form.brxe-form .form-group.ll-hint-moved { display: none; }
.brxe-form.brxe-form.brxe-form .form-group > .ll-form-hint { margin: -2px 0 10px; }
.brxe-form .form-group > .ll-form-hint[hidden] { display: none; }

/* Step title reads as the page heading of each step, not a small caption. */
.ll-ms-on .brxe-form.brxe-form.brxe-form .ll-form-legend[data-llcw-step], .ll-ms-on .brxe-form.brxe-form.brxe-form .ll-ms__review > .ll-form-legend { font-size: var(--ll-h3); line-height: 1.25; }

/* Text-field labels match the choice-group labels in the multi-step form: no letter-spacing. */
.ll-ms-on form[data-llcw-steps] .form-group > label { letter-spacing: normal; text-transform: none; }

/* Stepper: "(optional)" on its own smaller line so the name doesn't wrap to four lines. */
.ll-ms__opt { display: block; font-size: 16px; font-weight: 400; }
.ll-ms { padding-top: 0; }
.ll-ms__name { overflow-wrap: anywhere; }

/* Focus scrolling (Tab, error focus) stops clear of the sticky header and, on phones, the crisis bar. */
.ll-ms-on form[data-llcw-steps] :is(input, select, textarea, button) { scroll-margin-top: 140px; scroll-margin-bottom: 24px; }
@media (max-width: 767px) {
	.ll-ms-on form[data-llcw-steps] :is(input, select, textarea, button) { scroll-margin-top: 76px; scroll-margin-bottom: 180px; }
}

/* Error summary: title plus one link per problem. */
.llcw-form-summary .ll-ms__sumtitle { margin: 0 0 8px; font-weight: 700; }
.llcw-form-summary .ll-ms__sumlist { margin: 0; padding-left: 20px; }
.llcw-form-summary .ll-ms__sumlist li { margin: 4px 0; }
.llcw-form-summary .ll-ms__sumlist a { color: var(--ll-support-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Top-of-step skip link sits under the step intro. */
.ll-ms__skiptop { display: block; margin-top: 8px; }

/* Step and review headings take focus by script only (tabindex=-1) so screen readers start there; no
   ring around a heading nobody can tab to (GOV.UK pattern). Interactive controls keep their rings. */
.ll-ms-on .ll-form-legend[data-llcw-step]:focus-visible, .ll-ms__review > .ll-form-legend:focus-visible { outline: none; }
