/*
 * fra-create.css — the Create assessment pop-up (workflow rebuild Stage 3, 2026-09-27).
 *
 * ⛔ A FORK OF THE FIRE DOORS "NEW INSPECTION" POP-UP, NOT A NEW DESIGN. Everything below the
 * FRA-only block is `inspections.css`'s `.insp-wizard-*` block (the one-screen create form with its
 * live summary), renamed `.fra-wiz-*`, exactly as Fire Stopping forked it as `.fss-wiz-*`. The
 * upload tiles and floorplan rules were left out: this pop-up takes no files (a cover photograph and
 * documents are added on the assessment page). Change the three forks together.
 *
 * What FRA adds, in the block at the end: the three STEPS (the owner chose a stepped flow), the
 * building and type choice cards, and the country refusal.
 *
 * ⚠ The dialog sits inside `.fra-page`, so every `--ipi-*` token resolves from `fra-shell.css`.
 * At ≤900px the canonical full-screen sheet rules in `style.css` own the dialog.
 */

[data-fra-create-source] {
  display: none;
}

/* Desktop only: at ≤900px the canonical full-screen rule in style.css owns the
   dialog. */
@media (min-width: 901px) {
  .modal.fra-wiz-modal .modal__dialog.fra-wiz-modal__dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
    height: min(88vh, 700px);
    max-height: min(88vh, 700px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  }
}

.fra-wiz-modal .modal__header.fra-wiz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  flex-shrink: 0;
}

.fra-wiz-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.fra-wiz-modal .modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}

.fra-wiz-modal .modal__close:hover {
  background: var(--surface-subtle);
}

.fra-wiz-modal form.fra-wiz-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.fra-wiz-modal .modal__body.fra-wiz-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.fra-wiz-main-slot {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px 30px;
}

.fra-wiz-main {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.fra-wiz-section {
  display: grid;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.fra-wiz-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.fra-wiz-section__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.fra-wiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fra-wiz-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.fra-wiz-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fra-wiz-modal .fra-wiz-form .fra-wiz-field__label {
  display: block;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.fra-wiz-field__optional {
  color: var(--ink-4);
  font-style: normal;
  font-weight: 400;
}

.fra-wiz-modal .fra-wiz-form input[type="text"],
.fra-wiz-modal .fra-wiz-form input[type="tel"],
.fra-wiz-modal .fra-wiz-form input[type="search"],
.fra-wiz-modal .fra-wiz-form input[type="date"],
.fra-wiz-modal .fra-wiz-form input[type="time"],
.fra-wiz-modal .fra-wiz-form select,
.fra-wiz-modal .fra-wiz-form textarea {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  background-color: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
}

/* Native select arrow, as in the approved mockup. `.fra-wiz-form select` and
   `.fra-wiz-modal select` both reset it (a `background` shorthand and
   `appearance: none`), which left the dropdowns looking like text inputs. */
.fra-wiz-modal .fra-wiz-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%236b6458' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  text-overflow: ellipsis;
}

/* Reset the native iOS rendering on date/time inputs so they share the height
   and vertical alignment of the text inputs and selects beside them — iOS gives
   them their own taller intrinsic box otherwise. Deliberately NOT applied to
   <select>, which still needs its native dropdown affordance. */
.fra-wiz-modal .fra-wiz-form input[type="date"],
.fra-wiz-modal .fra-wiz-form input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
}

.fra-wiz-modal .fra-wiz-form textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
}

.fra-wiz-modal .fra-wiz-form input::placeholder,
.fra-wiz-modal .fra-wiz-form textarea::placeholder {
  color: var(--ink-4);
}

.fra-wiz-modal .fra-wiz-form input:focus,
.fra-wiz-modal .fra-wiz-form select:focus,
.fra-wiz-modal .fra-wiz-form textarea:focus {
  outline: 2px solid #c49510;
  outline-offset: -1px;
  border-color: transparent;
  box-shadow: none;
}

/* --- Property search ------------------------------------------------------ */
.fra-wiz-picker {
  display: grid;
  gap: 8px;
}

.fra-wiz-picker__search {
  position: relative;
}

.fra-wiz-picker__search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  pointer-events: none;
}

.fra-wiz-modal .fra-wiz-form input[type="search"].fra-wiz-picker__input {
  padding-left: 36px;
}

.fra-wiz-picker__list {
  overflow: hidden;
  overflow-y: auto;
  max-height: 320px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 11px;
}

.fra-wiz-picker__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fra-wiz-picker__row:first-child {
  border-top: 0;
}

.fra-wiz-picker__row:hover,
.fra-wiz-picker__row:focus-visible {
  background: var(--surface-subtle);
}

.fra-wiz-picker__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-subtle);
  color: var(--ink-3);
  font-size: 17px;
  font-weight: 700;
}

.fra-wiz-picker__icon svg {
  width: 17px;
  height: 17px;
}

.fra-wiz-picker__icon--lg {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ebe3d2, #d8ccb4);
  color: #7a6a4d;
}

.fra-wiz-picker__icon--lg svg {
  width: 21px;
  height: 21px;
}

.fra-wiz-picker__row--new .fra-wiz-picker__icon {
  background: rgba(196, 149, 16, 0.12);
  color: #7a5c05;
}

.fra-wiz-picker__row--new strong {
  color: #7a5c05;
}

.fra-wiz-picker__text {
  min-width: 0;
}

.fra-wiz-picker__text strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fra-wiz-picker__text small {
  display: block;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fra-wiz-picker__card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 12px;
}

.fra-wiz-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.fra-wiz-pill--new {
  background: rgba(47, 122, 75, 0.1);
  color: #2f7a4b;
}

.fra-wiz-newprop {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--canvas) 43.4%, var(--surface-card));
  border: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 12px;
}

.fra-wiz-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: #7a5c05;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Street / Town / Postcode. Collapses to one column at ≤900px with the other grids. */
.fra-wiz-address {
  display: grid;
  gap: 12px;
}

.fra-wiz-grid--address {
  grid-template-columns: 1fr 150px;
}

/* --- Optional sections ---------------------------------------------------- */
.fra-wiz-more__toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fra-wiz-more.is-open .fra-wiz-more__toggle {
  background: var(--surface-subtle);
  border-color: transparent;
  border-radius: 11px 11px 0 0;
}

.fra-wiz-more__text strong {
  display: block;
  font-weight: 600;
}

.fra-wiz-more__summary {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}

.fra-wiz-more__summary:empty {
  display: none;
}

.fra-wiz-more__action {
  color: #7a5c05;
  font-size: 13px;
  font-weight: 600;
}

.fra-wiz-more__body {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--surface-subtle);
  border-top: 0;
  border-radius: 0 0 11px 11px;
}

.fra-wiz-more + .fra-wiz-more {
  margin-top: 0;
}

/* --- Summary panel -------------------------------------------------------- */
.fra-wiz-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  background: var(--canvas);
  border-left: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.fra-wiz-summary__title {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fra-wiz-summary__card {
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 14px;
}

.fra-wiz-summary__hero {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.fra-wiz-summary__hero-text {
  min-width: 0;
}

.fra-wiz-summary__hero-text strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fra-wiz-summary__hero-text small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.fra-wiz-summary__list {
  display: grid;
  margin: 0;
}

.fra-wiz-summary__row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: 13px;
}

.fra-wiz-summary__row:first-child {
  border-top: 0;
}

.fra-wiz-summary__row dt {
  color: var(--ink-3);
}

.fra-wiz-summary__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.fra-wiz-summary__row dd.is-empty {
  color: var(--ink-4);
  font-weight: 400;
}

/* --- Footer --------------------------------------------------------------- */
.fra-wiz-modal .modal__footer.fra-wiz-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  flex-shrink: 0;
}

.fra-wiz-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #2f7a4b;
  font-size: 13.5px;
  font-weight: 600;
}

.fra-wiz-footer__status:not(.is-ready) {
  color: var(--ink-3);
  font-weight: 500;
}

.fra-wiz-picker__more {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-3);
  font-size: 12.5px;
}

.fra-wiz-footer__status svg {
  width: 16px;
  height: 16px;
}

.fra-wiz-footer__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.fra-wiz-footer__actions .btn {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

.fra-wiz-footer__actions .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  /* One scroller on a phone: the canonical full-screen body. The canonical rules
     own the body's padding, so the slot adds none (css-standards gotcha 8). */
  .modal.modal--sheet.fra-wiz-modal .modal__body.fra-wiz-modal__body {
    display: block;
    overflow-y: auto;
  }

  .fra-wiz-main-slot {
    overflow: visible;
    padding: 0;
  }

  .fra-wiz-summary {
    display: none;
  }

  /* Inspector workspace redesign (2026-09-28): on a full-screen phone or tablet the property list
     uses the height it has. At 320px it showed five rows above half a screen of nothing. The
     subtraction is the header, search, section title and footer measured at 390 and 810. */
  .fra-wiz-picker__list {
    max-height: max(240px, calc(100dvh - 330px));
  }

  .fra-wiz-grid {
    grid-template-columns: 1fr;
  }

  .fra-wiz-grid.fra-wiz-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .fra-wiz-grid--3 > :last-child {
    grid-column: 1 / -1;
  }




  .fra-wiz-footer__status:empty {
    display: none;
  }

  .fra-wiz-footer__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-left: 0;
  }

  .fra-wiz-footer__actions .btn {
    min-height: 44px;
    justify-content: center;
  }
}

/* ==========================================================================
   FRA-only: steps, choice cards, refusals
   ========================================================================== */
.fra-wiz-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.fra-wiz-steps {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.fra-wiz-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  white-space: nowrap;
}

.fra-wiz-steps__dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-inset);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.fra-wiz-steps__item.is-current {
  color: var(--ink);
  font-weight: 600;
}

.fra-wiz-steps__item.is-current .fra-wiz-steps__dot {
  background: var(--ink);
  color: #fff;
}

.fra-wiz-steps__item.is-done {
  color: #1e7a45;
  font-weight: 600;
}

.fra-wiz-steps__item.is-done .fra-wiz-steps__dot {
  background: #1e7a45;
  color: #fff;
}

.fra-wiz-lede {
  margin: -6px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.fra-wiz-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fra-wiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.fra-wiz-choice:hover {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

/* Chosen: a solid ink edge and a warm fill — one border, never a border plus a ring. */
.fra-wiz-choice:has(input:checked) {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--canvas) 64%, var(--surface-card));
}

/* Keyboard focus rings the CARD, softly; the radio draws no box of its own. */
.fra-wiz-choice:has(input:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 149, 16, 0.35);
}

.fra-wiz-choice input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 50%;
  background: #fff;
  outline: none;
  cursor: pointer;
}

.fra-wiz-choice input[type="radio"]:checked {
  border-color: var(--ink);
  /* The dot is drawn in the background, not an inset shadow — the phone sheet's input rules
     clear box-shadow, which filled the radio solid black. */
  background: radial-gradient(circle, var(--ink) 0 4px, #fff 4.6px);
}

/* The global `input:focus` ring (and the phone sheet's) would draw a second ring on the radio;
   the card carries focus instead. */
.fra-wiz-modal .fra-wiz-choice input[type="radio"],
.fra-wiz-modal .fra-wiz-choice input[type="radio"]:focus,
.fra-wiz-modal .fra-wiz-choice input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: none;
}



.fra-wiz-choice input:not([type="radio"]) {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--ink);
}

.fra-wiz-choice__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fra-wiz-choice__text strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.fra-wiz-choice__text small {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* "Another building here" is a choice like the others (it was dashed, which read as disabled). */
.fra-wiz-choice--new .fra-wiz-choice__text strong::before {
  content: "+ ";
  color: var(--ink-3);
}

/* The new building's three fields, in a panel of their own under the cards. */
.fra-wiz-newbuilding {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--canvas) 64%, var(--surface-card));
}

.fra-wiz-newbuilding[hidden] {
  display: none;
}

.fra-wiz-newbuilding__title {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fra-wiz-newbuilding__hint {
  margin: -8px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.fra-wiz-newbuilding .fra-wiz-grid {
  align-items: start;
}

.fra-wiz-newbuilding .fra-wiz-field__hint {
  margin: 0;
  font-size: 12px;
}

.fra-wiz-choices--types .fra-wiz-choice__text small {
  font-size: 12px;
}

.fra-wiz-refusal {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(176, 48, 48, 0.07);
  color: #8a2323;
  font-size: 13.5px;
  line-height: 1.45;
}

.fra-wiz-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196, 149, 16, 0.1);
  color: #5c4504;
  font-size: 13px;
  line-height: 1.45;
}

.fra-wiz-warn a {
  color: inherit;
  font-weight: 600;
}

.fra-wiz-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.fra-wiz-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.fra-wiz-check input {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--ink);
}

.fra-wiz-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fra-wiz-inline .fra-wiz-choice {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.fra-wiz-modal fieldset.fra-wiz-field,
.fra-wiz-form fieldset.fra-wiz-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fra-wiz-form fieldset.fra-wiz-field > legend {
  margin-bottom: 8px;
  padding: 0;
}

.fra-wiz-field__hint {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

/* The chosen assessor's competence, under the picker (`fra-create-wizard.js` fills it) — the
   field hint's muted caption, and nothing at all while there is nothing to say. */
.fra-wiz-signature {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.fra-wiz-signature:empty {
  display: none;
}

.fra-wiz-source-actions {
  margin-top: 16px;
}

/* The steps: the no-JavaScript form shows all three; the pop-up shows one at a time. */
.fra-wiz-modal [data-fra-create-step][hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .fra-wiz-heading {
    gap: 8px;
  }

  /* The canonical sheet rules in style.css set every input's padding with !important, which
     put the search icon on top of the placeholder. */
  .modal.modal--sheet.fra-wiz-modal .fra-wiz-form input.fra-wiz-picker__input {
    padding-left: 38px !important;
  }

  .fra-wiz-picker__search svg {
    top: 50%;
    transform: translateY(-50%);
  }

  /* The primary action gets the whole first row; Back and Cancel share the row under it, so
     "Create assessment" never wraps inside a third of a phone. */
  .fra-wiz-modal .fra-wiz-footer__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fra-wiz-modal .fra-wiz-footer__actions [data-fra-create-next],
  .fra-wiz-modal .fra-wiz-footer__actions [data-fra-create-submit] {
    grid-column: 1 / -1;
    order: -1;
  }

  .fra-wiz-modal .fra-wiz-footer__actions:has([data-fra-create-back][hidden]) [data-fra-create-close] {
    grid-column: 1 / -1;
  }

  .fra-wiz-steps {
    gap: 10px;
    font-size: 12px;
  }

  .fra-wiz-choices {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  /* The step names stay on a phone (owner review, 2026-09-28): the steps take a row of their own
     under the title rather than losing their words. */
  .fra-wiz-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .fra-wiz-steps {
    gap: 12px;
  }

  .fra-wiz-steps__dot {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  /* The last thing in a step can scroll clear of the sticky footer. */
  .fra-wiz-main-slot {
    padding-bottom: 24px;
  }

  .fra-wiz-grid.fra-wiz-grid--3 {
    grid-template-columns: 1fr;
  }

  .fra-wiz-grid--3 > :last-child {
    grid-column: auto;
  }
}

/* Review L29: a field the step refuses says so under itself — `.ipi-field__error` (fra-shell.css),
   the capture door modal's treatment (12c28a3f) — never in the browser's bubble or a toast. */
.fra-wiz-modal .fra-wiz-form .fra-wiz-field.is-invalid input {
  border-color: rgba(176, 48, 48, 0.26) !important;
  box-shadow: 0 0 0 3px rgba(176, 48, 48, 0.08);
}
