/*
 * Form style for every webform (TASK-031; design "Design guidelines ·
 * Forms", docs/plan/prototypes/organisation/form-style-general.pdf).
 *
 * White fields with a black line, labels above the field, a red asterisk
 * after required labels and "(optional)" after optional ones, a coral focus
 * ring, numbered sections, pills for two to five short answers, one black
 * button bottom left that turns coral on hover, an error summary at the top
 * and a black confirmation.
 *
 * On the stand-alone page of a webform (class lu-form--page, set in
 * liveurope.theme) the header and the wizard steps above it span the page
 * and the questions keep one column of at most 760px, as in the page designs
 * of the connection form and the add-artist form. Embedded forms keep the
 * column only.
 *
 * Not covered: the newsletter block in the footer keeps its own compact
 * layout, and the connection form (liveurope_organisation,
 * connection-request.css) carries its own copy of these rules.
 *
 * Utopia tokens between the 360px and 1280px viewport anchors (fluid_clamp),
 * the anchors of the theme's other koba sheets; the form title and the
 * reading column reuse the values of the connection form so the form pages
 * look alike. Loaded standalone after css/styles.css: the theme's main
 * stylesheet is built with Compass/Ruby SASS, which cannot be compiled
 * locally. The root selector carries a :not() so every rule here outranks
 * the compiled .webform-submission-form rules without !important.
 */

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) {
  --lu-form-ink: #000;
  --lu-form-white: #fff;
  --lu-form-surface: #edeaea;
  --lu-form-coral: #ff7159;
  --lu-form-error: #a8331f;
  /* Help text, counters and placeholders: 7.8:1 and 5.6:1 on white. */
  --lu-form-muted: #525252;
  --lu-form-placeholder: #686868;
  --lu-form-disabled-bg: #f4f3f1;
  --lu-form-disabled-line: #9b9a9a;
  --lu-form-disabled-button: #d6d5d3;
  --lu-form-step-line: #acacac;

  /* Type scale (360px => 1280px). */
  --lu-form-fs-help: clamp(0.8125rem, 0.788rem + 0.1087vw, 0.875rem);
  --lu-form-fs-label: clamp(0.875rem, 0.8505rem + 0.1087vw, 0.9375rem);
  --lu-form-fs-pill: clamp(0.875rem, 0.8505rem + 0.1087vw, 0.9375rem);
  --lu-form-fs-button: clamp(0.9375rem, 0.913rem + 0.1087vw, 1rem);
  --lu-form-fs-input: clamp(1rem, 0.9755rem + 0.1087vw, 1.0625rem);
  --lu-form-fs-intro: clamp(1rem, 0.9511rem + 0.2174vw, 1.125rem);
  --lu-form-fs-summary: clamp(1.0625rem, 1.0136rem + 0.2174vw, 1.1875rem);
  --lu-form-fs-success: clamp(1.125rem, 1.0761rem + 0.2174vw, 1.25rem);
  --lu-form-fs-section: clamp(1.375rem, 1.1304rem + 1.087vw, 2rem);
  /* Same as --koba-org-fs-form-title of the connection form (46px => 83px). */
  --lu-form-fs-title: clamp(2.875rem, 0.0801rem + 5.6748vw, 5.1875rem);
  /* A title that is a whole sentence (more than 40 characters), 30px =>
     51px between the same 360px and 1440px anchors. */
  --lu-form-fs-title-long: clamp(1.875rem, 1.4375rem + 1.9444vw, 3.1875rem);

  /* Space scale (360px => 1280px). */
  --lu-form-space-label: clamp(0.375rem, 0.3261rem + 0.2174vw, 0.5rem);
  --lu-form-space-pill: clamp(0.5rem, 0.4511rem + 0.2174vw, 0.625rem);
  --lu-form-space-gutter: clamp(0.75rem, 0.6766rem + 0.3261vw, 0.9375rem);
  --lu-form-space-pad: clamp(0.875rem, 0.8261rem + 0.2174vw, 1rem);
  --lu-form-space-pill-pad: clamp(1rem, 0.8043rem + 0.8696vw, 1.5rem);
  --lu-form-space-gap: clamp(1.25rem, 1.1522rem + 0.4348vw, 1.5rem);
  --lu-form-space-box: clamp(1.25rem, 0.9565rem + 1.3043vw, 2rem);
  --lu-form-space-button: clamp(1.5rem, 1.3043rem + 0.8696vw, 2rem);
  --lu-form-space-section: clamp(2rem, 1.8043rem + 0.8696vw, 2.5rem);
  --lu-form-space-page: clamp(3rem, 2.6087rem + 1.7391vw, 4rem);

  /* Control sizes (360px => 1280px). */
  --lu-form-field-height: clamp(3rem, 2.9022rem + 0.4348vw, 3.25rem);
  /* Round action button (file chooser) and choice pill. */
  --lu-form-pill-height: clamp(2.5rem, 2.4022rem + 0.4348vw, 2.75rem);
  --lu-form-choice-height: clamp(2.375rem, 2.3261rem + 0.2174vw, 2.5rem);
  /* Chosen value in a CiviCRM lookup, shown as a tag. */
  --lu-form-tag-height: clamp(1.75rem, 1.6522rem + 0.4348vw, 2rem);
  --lu-form-space-tag: clamp(0.625rem, 0.5761rem + 0.2174vw, 0.75rem);
  /* Next-step arrow of the guide: two waves and a head, 36 x 8. */
  --lu-form-arrow-w: 2.25rem;
  --lu-form-arrow-h: 0.5rem;
  --lu-form-box: 1.375rem;
  /* Minimum pointer target (WCAG 2.2 SC 2.5.8). */
  --lu-form-target: 1.5rem;
  --lu-form-step: 2rem;
  /* Reading column: 608px at 788px, 760px from 1440px (connection form). */
  --lu-form-column: clamp(38rem, 26.5184rem + 23.3129vw, 47.5rem);

  /* Lines are hairlines, not sizes. */
  --lu-form-line: max(1px, 0.0625rem);
  --lu-form-line-thick: max(1.5px, 0.09375rem);
  --lu-form-line-focus: max(2px, 0.125rem);
  --lu-form-ring: 0.25rem;
  --lu-form-focus: inset 0 0 0 var(--lu-form-line) var(--lu-form-ink), 0 0 0 var(--lu-form-ring) var(--lu-form-coral);

  max-inline-size: var(--lu-form-column);
  margin-inline: auto;
  padding-block: var(--lu-form-space-section) var(--lu-form-space-page);
  color: var(--lu-form-ink);
  font-size: var(--lu-form-fs-input);
  line-height: 1.5;
}

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

/* The header spans the page gutter; everything else stays in the column. */
form.webform-submission-form.lu-form--page:not(.region-footer5 *, .organisation-connection-form) {
  container: lu-form / inline-size;
  max-inline-size: none;
  padding-inline: var(--lu-form-space-gutter);
}

form.webform-submission-form.lu-form--page:not(.region-footer5 *, .organisation-connection-form) > :not(.lu-form__header, .webform-progress) {
  max-inline-size: var(--lu-form-column);
  margin-inline: auto;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--lu-form-space-gap);
  align-items: end;
  margin-block-end: var(--lu-form-space-section);
  padding-block-end: var(--lu-form-space-section);
  border-block-end: var(--lu-form-line) solid var(--lu-form-ink);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__title {
  margin: 0;
  padding: 0;
  font-size: var(--lu-form-fs-title);
  font-weight: 300;
  line-height: 1.1;
  /* A long title from an editor must not push the page sideways. */
  overflow-wrap: break-word;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__title--long {
  font-size: var(--lu-form-fs-title-long);
  line-height: 1.15;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__intro {
  font-size: var(--lu-form-fs-intro);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__intro :is(.form-item, p, h2, h3) {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__intro :is(h2, h3) {
  font-weight: 600;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__intro > * + *,
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__intro p + p {
  margin-block-start: var(--lu-form-space-label);
}

/* Layout jump: title left, intro right once the page is wide enough. */
@container lu-form (min-width: 48rem) {
  form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form__header:has(> .lu-form__intro) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: var(--lu-form-space-page);
  }
}

/* Note on required fields, once under the header. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .webform-required {
  margin-block: 0 var(--lu-form-space-section);
  font-size: var(--lu-form-fs-help);
}

.webform-required__marker {
  color: var(--lu-form-error, #a8331f);
}

/* The footer newsletter keeps its compact one-field layout. The footer
   block is hidden on the newsletter page itself (block visibility); should
   it show there, its copy would get the page header too, and one h1 per page
   is enough. */
.region-footer5 :is(.webform-required, .lu-form__header) {
  display: none;
}

/* The newsletter shows its steps on its own page only; embedded in the
   footer or a popup it stays one compact field. */
form.webform-submission-subscribe-to-our-newsletters-form:not(.lu-form--page) .webform-progress {
  display: none;
}

/* Sections ---------------------------------------------------------------- */

/* The compiled theme floats fieldsets and their legends; in a column they
   simply stack. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset {
  float: none;
  inline-size: 100%;
  min-inline-size: 0;
  margin: 0 0 var(--lu-form-space-gap);
  padding: 0;
  border: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) legend {
  float: none;
  inline-size: 100%;
  margin: 0;
  padding: 0;
}

/* Numbered sections: only when a form has two or more top-level sections.
   The counter steps on the fieldset, not in the legend: Chrome starts a
   new counter inside every legend. A hidden section (#states) is not
   rendered and so takes no number. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form):has(> fieldset.webform-type-fieldset ~ fieldset.webform-type-fieldset) {
  counter-reset: lu-form-section;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form):has(> fieldset.webform-type-fieldset ~ fieldset.webform-type-fieldset) > fieldset.webform-type-fieldset {
  counter-increment: lu-form-section;
}

/* A section whose title is hidden and that does not start with its own
   heading shows no number, so it takes none: the next title stays "1.". */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form):has(> fieldset.webform-type-fieldset ~ fieldset.webform-type-fieldset) > fieldset.webform-type-fieldset:has(> legend .visually-hidden):not(:has(> .fieldset-wrapper > .form-item:first-child :is(h2, h3):first-child)) {
  counter-increment: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form):has(> fieldset.webform-type-fieldset ~ fieldset.webform-type-fieldset) > fieldset.webform-type-fieldset > legend .fieldset-legend::before {
  content: counter(lu-form-section) ". ";
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > :is(fieldset, .form-item, .webform-flexbox) {
  margin-block: 0 var(--lu-form-space-gap);
}

/* A line between two sections and above the buttons. The legend of a
   fieldset sits on its top border, so the line is the bottom border of the
   section before. */
/* A section right after a loose question keeps the section distance. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > .form-item + fieldset.webform-type-fieldset {
  margin-block-start: var(--lu-form-space-section);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > fieldset.webform-type-fieldset:has(~ fieldset.webform-type-fieldset) {
  margin-block-end: var(--lu-form-space-section);
  padding-block-end: var(--lu-form-space-section);
  border-block-end: var(--lu-form-line) solid var(--lu-form-ink);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > fieldset.webform-type-fieldset ~ .form-actions {
  padding-block-start: var(--lu-form-space-section);
  border-block-start: var(--lu-form-line) solid var(--lu-form-ink);
}

/* A section with only hidden values (CiviCRM ids of the member who is
   logged in) shows nothing; without this it would be an empty band with a
   line. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > fieldset.webform-type-fieldset:not(:has(> .fieldset-wrapper > :not([type="hidden"]))) {
  display: none;
}

/* Some forms hide the section title and start the section with their own
   heading in the text; that heading gets the look and the number of a
   section title. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > fieldset.webform-type-fieldset > legend:has(> .visually-hidden) {
  margin: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) > fieldset.webform-type-fieldset:has(> legend .visually-hidden) > .fieldset-wrapper > .form-item:first-child :is(h2, h3):first-child {
  margin: 0 0 var(--lu-form-space-gap);
  /* The theme gives h3 a padding above and below. */
  padding: 0;
  font-size: var(--lu-form-fs-section);
  font-weight: 600;
  line-height: 1.25;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form):has(> fieldset.webform-type-fieldset ~ fieldset.webform-type-fieldset) > fieldset.webform-type-fieldset:has(> legend .visually-hidden) > .fieldset-wrapper > .form-item:first-child :is(h2, h3):first-child::before {
  content: counter(lu-form-section) ". ";
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.webform-type-fieldset > legend {
  margin-block-end: var(--lu-form-space-gap);
  font-size: var(--lu-form-fs-section);
  font-weight: 600;
  line-height: 1.25;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.webform-type-fieldset > legend .fieldset-legend {
  font: inherit;
}

/* Section help sits right under the section title. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.webform-type-fieldset > .fieldset-wrapper > .description:first-child,
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.webform-type-fieldset > .fieldset-wrapper > .fieldset__description:first-child {
  margin-block: calc(-1 * var(--lu-form-space-gap) + var(--lu-form-space-label)) var(--lu-form-space-gap);
}

/* Fields ------------------------------------------------------------------ */

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-item {
  float: none;
  margin: 0 0 var(--lu-form-space-gap);
  padding: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-item:last-child,
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset:last-child {
  margin-block-end: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(label, fieldset.fieldgroup > legend, fieldset.form-composite > legend, fieldset.webform-composite > legend) {
  display: block;
  margin: 0 0 var(--lu-form-space-label);
  font-family: inherit;
  font-size: var(--lu-form-fs-label);
  font-weight: 600;
  line-height: 1.4;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(fieldset.fieldgroup, fieldset.form-composite) > legend .fieldset-legend {
  font: inherit;
}

/* A question with checkboxes or radios leaves a little more room above
   its first answer than a label above a field. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(fieldset.checkboxes--wrapper, fieldset.radios--wrapper) > legend {
  margin-block-end: var(--lu-form-space-pad);
}

/* Required: a red asterisk after the label (replaces the core icon). */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-required::after {
  content: "*";
  display: inline;
  inline-size: auto;
  block-size: auto;
  margin: 0 0 0 0.2em;
  background: none;
  color: var(--lu-form-error);
  vertical-align: baseline;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-optional {
  font-weight: 400;
}

/* Help between label and field. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.description, .webform-element-description, .fieldset__description) {
  margin: 0 0 var(--lu-form-space-label);
  color: var(--lu-form-muted);
  font-size: var(--lu-form-fs-help);
  line-height: 1.45;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .description a {
  color: inherit;
}

/* Text fields, selects and the CiviCRM lookup share one box. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"], [type="search"], [type="date"]), select, textarea, ul.token-input-list) {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 100%;
  min-block-size: var(--lu-form-field-height);
  margin: 0;
  padding: 0 var(--lu-form-space-pad);
  border: var(--lu-form-line) solid var(--lu-form-ink);
  border-radius: 0;
  background-color: var(--lu-form-white);
  box-shadow: none;
  color: var(--lu-form-ink);
  font-family: inherit;
  font-size: var(--lu-form-fs-input);
  font-weight: 400;
  line-height: 1.4;
  transition: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) textarea {
  display: block;
  padding-block: calc(var(--lu-form-space-pad) * 0.75);
  resize: vertical;
}

/* One chevron for every dropdown. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) select {
  padding-inline-end: calc(var(--lu-form-space-pad) * 2 + 0.75rem);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--lu-form-space-pad) center;
  background-size: 0.75rem auto;
  cursor: pointer;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) select[multiple] {
  padding-block: calc(var(--lu-form-space-pad) * 0.5);
  background-image: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ::placeholder {
  color: var(--lu-form-placeholder);
  opacity: 1;
}

/* Focus: a 2px black line with a coral ring, on every field and button. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"], [type="search"], [type="date"]), select, textarea):focus,
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list:focus-within {
  /* The transparent outline keeps a ring in forced-colours mode. */
  outline: var(--lu-form-line-focus) solid transparent;
  box-shadow: var(--lu-form-focus);
}

/* Error: a 2px line in the error colour. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(input, select, textarea).error {
  /* The compiled theme tints .error pink; fields stay white. */
  border-color: var(--lu-form-error);
  background-color: var(--lu-form-white);
  box-shadow: inset 0 0 0 var(--lu-form-line) var(--lu-form-error);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(input, select, textarea).error:focus {
  box-shadow: inset 0 0 0 var(--lu-form-line) var(--lu-form-error), 0 0 0 var(--lu-form-ring) var(--lu-form-coral);
}

/* The compiled theme tints every .error element pink and red, also a whole
   group of checkboxes; the guide keeps the question black and only the
   message red. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .error:not(input, select, textarea) {
  background-color: transparent;
  color: inherit;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-item--error-message {
  display: flex;
  gap: 0.4em;
  margin: var(--lu-form-space-label) 0 0;
  color: var(--lu-form-error);
  font-size: var(--lu-form-fs-help);
  font-weight: 500;
}

/* A circled exclamation mark; decoration, the text carries the message. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-item--error-message::before {
  content: "";
  flex: none;
  inline-size: 1em;
  block-size: 1em;
  margin-block-start: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23a8331f' stroke-width='1.5'/%3E%3Cpath d='M8 4.5v4.5' stroke='%23a8331f' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='11.5' r='1' fill='%23a8331f'/%3E%3C/svg%3E") no-repeat center / contain;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-item--error-message strong {
  font-weight: inherit;
}

/* Disabled and read-only fields: grey, with a lighter line. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(input, select, textarea):is(:disabled, [readonly]):not([type="checkbox"], [type="radio"], [type="submit"], [type="hidden"]) {
  border-color: var(--lu-form-disabled-line);
  background-color: var(--lu-form-disabled-bg);
  color: var(--lu-form-placeholder);
}

/* Character counter, right under the field. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .text-count-message {
  display: block;
  margin-block-start: var(--lu-form-space-label);
  color: var(--lu-form-muted);
  font-size: var(--lu-form-fs-help);
  text-align: end;
}

/* Short fields side by side: date parts, first and last name. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .container-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lu-form-space-pill);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .container-inline > .form-item {
  flex: 1 1 6rem;
  margin: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .webform-flexbox {
  margin: 0 0 var(--lu-form-space-gap);
}

/* Sub-labels are small only under a visible group label ("Your name");
   with the group label hidden they are the field labels themselves. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .webform-composite-visible-title .container-inline label,
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.webform-name--wrapper, .webform-address--wrapper):not(.webform-composite-hidden-title) .form-item label {
  font-size: var(--lu-form-fs-help);
  font-weight: 500;
}

/* CiviCRM lookup ("Check if your organisation already exists"): the
   token list is the visible field, its own input stays borderless. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lu-form-space-label);
  overflow: visible;
  list-style: none;
  cursor: text;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li input {
  inline-size: auto;
  min-inline-size: 8rem;
  min-block-size: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--lu-form-fs-input);
  /* The list carries the focus ring; the input inside needs none. */
  outline: 0;
  box-shadow: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-input-token input[type="text"]:focus {
  box-shadow: none;
}

/* A chosen value is a black tag with a cross, as in the guide (32px high,
   8px apart through the list gap). The reset of the list items above would
   otherwise leave it as plain text. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-token {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--lu-form-space-tag) / 2);
  min-block-size: var(--lu-form-tag-height);
  padding-inline: var(--lu-form-space-tag) calc(var(--lu-form-space-tag) / 2);
  border-radius: 999px;
  background-color: var(--lu-form-ink);
  color: var(--lu-form-white);
  font-size: var(--lu-form-fs-label);
  /* The tag inherits a bold weight here; the guide shows regular. */
  font-weight: 400;
  line-height: 1.2;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-token :is(p, .token-input-delete-token) {
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

/* The cross keeps a 24px pointer target inside the 32px tag. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-token .token-input-delete-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--lu-form-target);
  min-block-size: var(--lu-form-target);
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-token .token-input-delete-token:hover {
  background-color: var(--lu-form-coral);
  color: var(--lu-form-ink);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.token-input-list li.token-input-selected-token {
  box-shadow: 0 0 0 var(--lu-form-line-focus) var(--lu-form-coral);
}

/* Results of the lookup; jQuery Tokeninput appends them to <body>. */
body div.token-input-dropdown {
  box-sizing: border-box;
  border: max(1px, 0.0625rem) solid #000;
  border-block-start: 0;
  background-color: #fff;
  color: #000;
  font-family: inherit;
  font-size: clamp(0.9375rem, 0.913rem + 0.1087vw, 1rem);
}

body div.token-input-dropdown p {
  margin: 0;
  padding: clamp(0.75rem, 0.6766rem + 0.3261vw, 0.9375rem) clamp(0.875rem, 0.8261rem + 0.2174vw, 1rem);
  color: #525252;
}

body div.token-input-dropdown ul li {
  padding: clamp(0.75rem, 0.6766rem + 0.3261vw, 0.9375rem) clamp(0.875rem, 0.8261rem + 0.2174vw, 1rem);
  background-color: #fff;
}

body div.token-input-dropdown ul li.token-input-selected-dropdown-item {
  background-color: #edeaea;
  color: #000;
}

/* webform_civicrm hides each answer of a checkbox question that belongs to
   an organisation until "+ Create new +" is chosen, but leaves the question
   itself on screen; hide the question while it has no answer to show. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.checkboxes--wrapper:has(.form-type-checkbox):not(:has(.form-type-checkbox:not([style*="display: none"]))) {
  display: none;
}

/* Choices ----------------------------------------------------------------- */

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-checkboxes, .form-radios) {
  display: flex;
  flex-direction: column;
  gap: var(--lu-form-space-gap);
  margin: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-checkboxes, .form-radios).webform-options-display-side-by-side {
  flex-flow: row wrap;
  column-gap: var(--lu-form-space-section);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-type-checkbox, .form-type-radio) {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--lu-form-space-pad) * 0.75);
  margin: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-checkboxes, .form-radios) > .form-item {
  margin: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-type-checkbox, .form-type-radio) > label.option {
  margin: 0;
  /* The label is the click target: 24px high (WCAG 2.5.8) around a 22px
     line, with the box moved down by the same amount below. */
  padding-block: calc((var(--lu-form-target) - var(--lu-form-box)) / 2);
  font-size: var(--lu-form-fs-input);
  font-weight: 400;
  line-height: var(--lu-form-box);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-type-checkbox, .form-type-radio) > input:is([type="checkbox"], [type="radio"]) {
  margin-block-start: calc((var(--lu-form-target) - var(--lu-form-box)) / 2);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-type-checkbox, .form-type-radio) > .description {
  flex-basis: 100%;
  margin: 0 0 0 calc(var(--lu-form-box) + var(--lu-form-space-pad) * 0.75);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-type-checkbox, .form-type-radio) {
  flex-wrap: wrap;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input:is([type="checkbox"], [type="radio"]) {
  flex: none;
  inline-size: var(--lu-form-box);
  block-size: var(--lu-form-box);
  margin: 0;
  border: var(--lu-form-line-thick) solid var(--lu-form-ink);
  border-radius: 0;
  background-color: var(--lu-form-white);
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input[type="radio"] {
  border-radius: 50%;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input[type="checkbox"]:checked {
  background: var(--lu-form-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 80%;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input[type="radio"]:checked {
  background: radial-gradient(circle, var(--lu-form-ink) 0 0.3125rem, var(--lu-form-white) calc(0.3125rem + 0.5px));
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input:is([type="checkbox"], [type="radio"]):focus-visible {
  outline: var(--lu-form-line-focus) solid transparent;
  box-shadow: var(--lu-form-focus);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input:is([type="checkbox"], [type="radio"]).error {
  border-color: var(--lu-form-error);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input:is([type="checkbox"], [type="radio"]):disabled {
  border-color: var(--lu-form-disabled-line);
  background-color: var(--lu-form-disabled-bg);
  cursor: default;
}

/* Pills for two to five short answers (class set in liveurope.theme). The
   radio stays in the page for the keyboard and screen readers; the label
   is the pill. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-radios.lu-form-pills {
  flex-flow: row wrap;
  gap: var(--lu-form-space-pill);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills > .form-type-radio {
  position: relative;
  display: block;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills input[type="radio"] {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  opacity: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills > .form-type-radio > label.option {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--lu-form-choice-height);
  padding: 0 var(--lu-form-space-pill-pad);
  border: var(--lu-form-line) solid var(--lu-form-ink);
  border-radius: 999px;
  background-color: var(--lu-form-white);
  font-size: var(--lu-form-fs-pill);
  font-weight: 500;
  line-height: 1.2;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills input[type="radio"]:checked + label.option {
  background-color: var(--lu-form-ink);
  color: var(--lu-form-white);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills input[type="radio"]:hover + label.option {
  border-color: var(--lu-form-coral);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills input[type="radio"]:focus-visible {
  box-shadow: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .lu-form-pills input[type="radio"]:focus-visible + label.option {
  outline: var(--lu-form-line-focus) solid transparent;
  box-shadow: inset 0 0 0 var(--lu-form-line) var(--lu-form-ink), 0 0 0 var(--lu-form-ring) var(--lu-form-coral);
}

/* The theme draws a box around radio groups; the guide has none. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) fieldset.radios--wrapper {
  padding: 0;
  border: 0;
}

/* File upload ------------------------------------------------------------- */

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-managed-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--lu-form-space-pill);
  padding: var(--lu-form-space-box);
  border: var(--lu-form-line) dashed var(--lu-form-ink);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input.form-file {
  max-inline-size: 100%;
  padding: 0;
  border: 0;
  font-size: var(--lu-form-fs-help);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input.form-file::file-selector-button {
  min-block-size: var(--lu-form-pill-height);
  margin-inline-end: var(--lu-form-space-pad);
  padding: 0 var(--lu-form-space-pill-pad);
  border: var(--lu-form-line) solid var(--lu-form-ink);
  border-radius: 999px;
  background-color: var(--lu-form-white);
  color: var(--lu-form-ink);
  font-family: inherit;
  font-size: var(--lu-form-fs-pill);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) input.form-file:hover::file-selector-button {
  border-color: var(--lu-form-coral);
}

/* An uploaded file is a row with a text link to remove it. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-managed-file .file {
  flex: 1 1 auto;
  font-size: var(--lu-form-fs-help);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-managed-file input[type="submit"][name$="_remove_button"] {
  min-block-size: 0;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lu-form-ink);
  font-size: var(--lu-form-fs-help);
  font-weight: 500;
  text-decoration: underline;
}

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

/* One black primary button, bottom left under the last field. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-actions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lu-form-space-pad) var(--lu-form-space-gap);
  margin: var(--lu-form-space-section) 0 0;
  text-align: start;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input[type="submit"], button, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--lu-form-field-height);
  min-inline-size: 7.5rem;
  margin: 0;
  padding: 0 var(--lu-form-space-button);
  border: var(--lu-form-line) solid var(--lu-form-ink);
  border-radius: 0;
  background-color: var(--lu-form-ink);
  box-shadow: none;
  color: var(--lu-form-white);
  font-family: inherit;
  font-size: var(--lu-form-fs-button);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}

/* Hover: coral with black text. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input[type="submit"], button, .button):hover {
  border-color: var(--lu-form-coral);
  background-color: var(--lu-form-coral);
  color: var(--lu-form-ink);
}

/* Secondary: save as draft, previous page, reset. */
/* :is(input, button) lifts these above the primary rule, whose
   input[type="submit"] would otherwise win. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input, button):is(.webform-button--draft, .webform-button--previous, .webform-button--reset) {
  background-color: var(--lu-form-white);
  color: var(--lu-form-ink);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input, button):is(.webform-button--draft, .webform-button--previous, .webform-button--reset):hover {
  border-color: var(--lu-form-ink);
  background-color: var(--lu-form-surface);
  color: var(--lu-form-ink);
}

/* Next step: the squiggly arrow of the guide (36 x 8, about 16px after the
   text). :is(input, button) lifts the extra end padding above the primary
   rule, so the arrow gets its own room instead of running into the label. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input, button).webform-button--next {
  padding-inline-end: calc(var(--lu-form-space-button) + var(--lu-form-arrow-w) + var(--lu-form-space-pad));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 8'%3E%3Cpath d='M.75 4q3.6-5 7.2 0t7.2 0 7.2 0 7.2 0H35M31.5.75 35 4l-3.5 3.25' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--lu-form-space-button) center;
  background-size: var(--lu-form-arrow-w) var(--lu-form-arrow-h);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input, button).webform-button--next:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 8'%3E%3Cpath d='M.75 4q3.6-5 7.2 0t7.2 0 7.2 0 7.2 0H35M31.5.75 35 4l-3.5 3.25' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input[type="submit"], button, .button):focus-visible {
  outline: var(--lu-form-line-focus) solid transparent;
  /* Guide: a 2px black line with a coral ring. On the black button the line
     sits outside, so the 2px band turns from white to black (21:1) and the
     focus stays visible even where the coral ring is faint on white. */
  box-shadow: 0 0 0 var(--lu-form-line-focus) var(--lu-form-ink), 0 0 0 calc(var(--lu-form-line-focus) + var(--lu-form-ring)) var(--lu-form-coral);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) :is(.form-actions, .webform-actions) :is(input[type="submit"], button, .button):disabled {
  border-color: var(--lu-form-disabled-button);
  background-color: var(--lu-form-disabled-button);
  color: var(--lu-form-placeholder);
  cursor: default;
}

/* Text link: cancel, back. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .form-actions a {
  color: var(--lu-form-ink);
  font-size: var(--lu-form-fs-button);
  font-weight: 500;
  text-decoration: underline;
}

/* Steps of a multi-page form ---------------------------------------------- */

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .webform-progress {
  margin-block-end: var(--lu-form-space-gap);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) ul.progress-tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lu-form-space-pad);
  margin: 0;
  padding: 0;
  list-style: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--lu-form-space-pill);
  margin: 0;
  padding: 0;
}

/* The connector line between two steps. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step + .progress-step::before {
  content: "";
  flex: none;
  inline-size: var(--lu-form-space-section);
  block-size: var(--lu-form-line);
  margin-inline-end: var(--lu-form-space-pill);
  background-color: var(--lu-form-step-line);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step .progress-marker {
  position: static;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--lu-form-step);
  block-size: var(--lu-form-step);
  padding: 0;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step .progress-marker::before {
  content: attr(data-text);
  position: static;
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 100%;
  border: var(--lu-form-line) solid var(--lu-form-ink);
  border-radius: 50%;
  background-color: var(--lu-form-white);
  color: var(--lu-form-ink);
  font-size: var(--lu-form-fs-help);
  font-weight: 500;
  line-height: 1;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step .progress-marker::after {
  content: none;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step.is-active .progress-marker::before {
  background-color: var(--lu-form-ink);
  box-shadow: 0 0 0 var(--lu-form-line-focus) var(--lu-form-white), 0 0 0 calc(var(--lu-form-line-focus) * 2) var(--lu-form-coral);
  color: var(--lu-form-white);
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step.is-complete .progress-marker::before {
  content: "";
  background: var(--lu-form-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 55%;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step .progress-text {
  padding: 0;
  font-size: var(--lu-form-fs-label);
}

/* The guide shows every step name in black; webform's own grey (#777) is
   not in the design. */
form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step .progress-title {
  color: var(--lu-form-ink);
  font-weight: 400;
}

form.webform-submission-form:not(.region-footer5 *, .organisation-connection-form) .progress-step.is-active .progress-title {
  font-weight: 600;
}

/* Messages ---------------------------------------------------------------- */

/* Status messages of the front end follow the same guide: the error summary
   with links to each field (Inline Form Errors), a black confirmation, and
   grey for what happens next. The messages region spans the page; the
   boxes keep the reading column of the forms. */
.region-highlighted .messages,
[data-drupal-messages] .messages {
  --lu-msg-ink: #000;
  --lu-msg-white: #fff;
  --lu-msg-coral: #ff7159;
  --lu-msg-error: #a8331f;
  --lu-msg-surface: #edeaea;
  --lu-msg-pad: clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem);
  --lu-msg-gap: clamp(0.75rem, 0.6766rem + 0.3261vw, 0.9375rem);
  box-sizing: border-box;
  max-inline-size: clamp(38rem, 26.5184rem + 23.3129vw, 47.5rem);
  margin: var(--lu-msg-gap) auto;
  padding: var(--lu-msg-pad) var(--lu-msg-pad) var(--lu-msg-pad) calc(var(--lu-msg-pad) + 1.5rem + var(--lu-msg-gap));
  border: max(1.5px, 0.09375rem) solid transparent;
  border-radius: 0;
  background-position: var(--lu-msg-pad) calc(var(--lu-msg-pad) + 0.1rem);
  background-repeat: no-repeat;
  background-size: 1.5rem;
  box-shadow: none;
  font-size: clamp(0.9375rem, 0.913rem + 0.1087vw, 1rem);
  line-height: 1.5;
}

.region-highlighted .messages--status,
[data-drupal-messages] .messages--status {
  border-color: var(--lu-msg-ink);
  background-color: var(--lu-msg-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ff7159'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
  color: var(--lu-msg-white);
}

.region-highlighted .messages--status a,
[data-drupal-messages] .messages--status a {
  color: inherit;
}

.region-highlighted .messages--error,
[data-drupal-messages] .messages--error {
  border-color: var(--lu-msg-error);
  background-color: var(--lu-msg-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23a8331f' stroke-width='1.3'/%3E%3Cpath d='M8 4.5v4.5' stroke='%23a8331f' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='11.5' r='0.9' fill='%23a8331f'/%3E%3C/svg%3E");
  color: var(--lu-msg-error);
  font-weight: 600;
}

.region-highlighted .messages--error a,
[data-drupal-messages] .messages--error a {
  color: var(--lu-msg-error);
  font-weight: 400;
  text-decoration: underline;
}

/* Inline Form Errors lists the fields comma-separated; the guide lists them
   one per line. */
.region-highlighted .messages--error ul,
[data-drupal-messages] .messages--error ul {
  margin: var(--lu-msg-gap) 0 0;
  padding-inline-start: 1.1em;
  list-style: disc;
}

.region-highlighted .messages--error ul.item-list__comma-list,
[data-drupal-messages] .messages--error ul.item-list__comma-list {
  display: block;
}

.region-highlighted .messages--error .item-list__comma-list li,
[data-drupal-messages] .messages--error .item-list__comma-list li {
  display: list-item;
}

.region-highlighted .messages--error .item-list__comma-list li::after,
[data-drupal-messages] .messages--error .item-list__comma-list li::after {
  content: none;
}

.region-highlighted .messages--warning,
[data-drupal-messages] .messages--warning {
  border-color: var(--lu-msg-surface);
  background-color: var(--lu-msg-surface);
  background-image: none;
  padding-inline-start: var(--lu-msg-pad);
  color: var(--lu-msg-ink);
}

/* Confirmation page of a webform: the same black box. */
.webform-confirmation .webform-confirmation__message {
  box-sizing: border-box;
  max-inline-size: clamp(38rem, 26.5184rem + 23.3129vw, 47.5rem);
  margin-inline: auto;
  padding: clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) calc(clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) + 2.25rem);
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ff7159'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem) / 1.5rem;
  color: #fff;
  font-size: clamp(0.9375rem, 0.913rem + 0.1087vw, 1rem);
}

.webform-confirmation .webform-confirmation__message a {
  color: inherit;
}

.webform-confirmation .webform-confirmation__message > :first-child {
  margin-block-start: 0;
}

.webform-confirmation .webform-confirmation__message > :last-child {
  margin-block-end: 0;
}

.webform-confirmation .webform-confirmation__back {
  max-inline-size: clamp(38rem, 26.5184rem + 23.3129vw, 47.5rem);
  margin: clamp(1.25rem, 1.1522rem + 0.4348vw, 1.5rem) auto 0;
}

.webform-confirmation .webform-confirmation__back a {
  color: #000;
  font-weight: 500;
  text-decoration: underline;
}
