/*
 * Guided office-fit-out questions.
 * Loaded after office-fit-out-project.css; every rule is scoped to the
 * question-flow root so supplier cards, dialogs and the later brief are untouched.
 */
/* Programmatic heading focus announces the step without a selection-like ring.
 * Interactive controls retain their keyboard focus indicators. */
.ofp-flow-page .ofp-flow-title:focus,
.ofp-flow-page #ofp-vertical-title:focus,
.ofp-flow-page #ofp-matching-title:focus {
  outline: none;
  box-shadow: none;
}

.ofp-flow-page #ofp-intro-help {
  padding-top: 16px;
}

.ofp-flow-page .ofp-question-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ofp-flow-page .ofp-flow-progress {
  width: 100%;
  margin: 0 auto 16px;
}

.ofp-flow-page .ofp-flow-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.ofp-flow-page .ofp-flow-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #e1e6ea;
}

.ofp-flow-page #ofp-flow-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #76a62f;
  transition: width .22s ease;
}

.ofp-flow-page .ofp-flow-question {
  width: 100%;
  min-height: 310px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #e5e9ed;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 12px 32px rgba(34, 48, 63, .07);
}

.ofp-flow-page .ofp-flow-step[hidden],
.ofp-flow-page .ofp-flow-review[hidden],
.ofp-flow-page .ofp-search-help[hidden] {
  display: none !important;
}

.ofp-flow-page .ofp-flow-title,
.ofp-flow-page .ofp-flow-title h2 {
  margin: 0 0 27px;
  color: #22303f;
  font: 700 clamp(23px, 3.4vw, 30px)/1.2 "Space Grotesk", var(--ofp-font), sans-serif;
  letter-spacing: -.025em;
}

.ofp-flow-page .ofp-flow-title-hint {
  display: inline-block;
  max-width: 100%;
  color: #66717d;
  font: 400 13px/1.5 var(--ofp-font);
  letter-spacing: 0;
  vertical-align: middle;
}

.ofp-flow-page .ofp-flow-title .ofp-project-needs__optional {
  display: inline;
  margin-left: 7px;
  color: #687572;
  font: 500 12px/1.45 var(--ofp-font);
  letter-spacing: 0;
  white-space: normal;
}

.ofp-flow-page .ofp-flow-step--location .ofp-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ofp-flow-page .ofp-flow-step--location .ofp-field {
  min-width: 0;
}

.ofp-refine-expander > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  color: var(--ofp-ink);
  font-weight: 700;
  list-style: none;
}
.ofp-refine-expander > summary::-webkit-details-marker { display: none; }
.ofp-refine-expander[open] > summary svg { transform: rotate(180deg); }
.ofp-refine-expander > summary:focus-visible { outline: 2px solid var(--ofp-ink); outline-offset: -2px; }
.ofp-flow-page .ofp-flow-next svg { flex: 0 0 18px; color: inherit; }

.ofp-flow-page .ofp-flow-step--location .ofp-place-label {
  margin-bottom: 9px;
  color: #22303f;
  font-size: 13px;
  font-weight: 750;
}

.ofp-flow-page .ofp-flow-step--location .ofp-input-wrap,
.ofp-flow-page .ofp-flow-step--size .ofp-input-wrap,
.ofp-flow-page .ofp-flow-step--date .ofp-input-wrap {
  min-height: 52px;
  border-color: #cfd7de;
  border-radius: 9px;
  background: #fff;
}

.ofp-flow-page .ofp-flow-step .ofp-input-wrap:focus-within {
  border-color: #486272;
  outline: 3px solid rgba(72, 98, 114, .15);
  box-shadow: none;
}

.ofp-flow-page .ofp-flow-step .ofp-input-wrap input,
.ofp-flow-page .ofp-flow-step button.ofp-month-trigger {
  color: #17212b !important;
}

.ofp-flow-page .ofp-flow-step .ofp-field-help,
.ofp-flow-page .ofp-flow-step .ofp-place-status {
  margin-top: 8px;
  color: #66717d;
  font-size: 12px;
  line-height: 1.5;
}

.ofp-flow-page .ofp-flow-step--size .ofp-field,
.ofp-flow-page .ofp-flow-step--date .ofp-field {
  max-width: 560px;
}

.ofp-flow-page .ofp-size-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: clamp(6px, 2vw, 20px);
}
.ofp-flow-page .ofp-size-fields .ofp-field {
  min-width: 0;
  max-width: none;
  margin: 0;
}
.ofp-flow-page .ofp-size-or {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: #66717d;
  font-size: 14px;
  font-style: normal;
}

.ofp-flow-page .ofp-flow-control-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ofp-flow-page .ofp-flow-step--size .ofp-area-unit-row {
  gap: 10px;
}

.ofp-flow-page .ofp-flow-step--size .ofp-area-unit-row > .ofp-input-wrap {
  min-width: 0;
}

.ofp-flow-page .ofp-flow-step--size .ofp-unit-toggle {
  min-height: 46px;
  height: 46px;
  padding: 3px;
  border-radius: 7px;
  background: #f0efeb;
}

.ofp-flow-page .ofp-flow-step--size .ofp-unit-toggle button {
  min-width: 58px;
  height: 38px;
  min-height: 38px !important;
  padding: 0 11px !important;
  border-radius: 5px;
  color: #52606d;
  font-size: 12px !important;
}

.ofp-flow-page .ofp-flow-step--size .ofp-unit-toggle button[aria-pressed="true"] {
  background: #2c3e50;
  color: #fff;
}

.ofp-flow-page .ofp-flow-step--size .ofp-unit-toggle button:focus-visible {
  outline: 3px solid rgba(44, 62, 80, .32);
  outline-offset: 2px;
}

.ofp-flow-page .ofp-flow-step--date .ofp-month-picker {
  z-index: 220;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-flow-title,
.ofp-flow-page .ofp-flow-step--needs .ofp-flow-title h2 {
  margin-bottom: 12px;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-count {
  margin: 0 0 12px;
  color: #52606d;
  font-size: 12px;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-group {
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 8px 14px;
  padding: 11px 0;
  border-color: #e5e9ed;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-group__title {
  margin-top: 7px;
  color: #52606d;
  font-size: 12px;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-options {
  gap: 7px;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-chip {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-color: #cfd7de;
  border-radius: 999px !important;
  background: #fff;
  color: #344451;
  font: 600 12px/1.25 var(--ofp-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-chip:hover {
  border-color: #7e9b46;
  background: #fbfdf8;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-chip[aria-pressed="true"] {
  border-color: #2c3e50 !important;
  background: #2c3e50 !important;
  color: #fff !important;
}

.ofp-flow-page .ofp-flow-step--needs .ofp-keyword-chip:focus-visible {
  outline: 3px solid rgba(44, 62, 80, .32);
  outline-offset: 2px;
}

.ofp-flow-page .ofp-form-status {
  width: 100%;
  margin: 13px auto 0;
}

.ofp-flow-page .ofp-search-help:not([hidden]) {
  width: 100%;
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid #ead9b8;
  border-left: 3px solid #d7a921;
  border-radius: 7px;
  background: #fff9eb;
  color: #594929;
  font-size: 13px;
  line-height: 1.55;
}

.ofp-flow-page .ofp-flow-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  margin: 16px auto 0;
}

.ofp-flow-page .ofp-flow-nav .ofp-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 13px;
}

.ofp-flow-page .ofp-flow-nav #ofp-flow-back {
  border-color: #cbd3da;
  background: transparent;
  color: #344451 !important;
}

.ofp-flow-page .ofp-flow-nav #ofp-flow-back:hover:not(:disabled) {
  background: #f0efeb;
}

.ofp-flow-page .ofp-flow-nav #ofp-flow-next,
.ofp-flow-page .ofp-flow-nav #ofp-find-suppliers {
  margin-left: auto;
  border-color: #2c3e50;
  background: #2c3e50;
  color: #fff !important;
  box-shadow: none;
}

.ofp-flow-page .ofp-flow-nav #ofp-flow-next:hover:not(:disabled),
.ofp-flow-page .ofp-flow-nav #ofp-find-suppliers:hover:not(:disabled) {
  border-color: #3a5268;
  background: #3a5268;
}

.ofp-flow-page .ofp-flow-nav #ofp-flow-next:disabled,
.ofp-flow-page .ofp-flow-nav #ofp-find-suppliers:disabled {
  border-color: #cfd1ce;
  background: #cfd1ce;
  color: #687572 !important;
  opacity: 1;
  cursor: not-allowed;
}

.ofp-flow-page .ofp-flow-nav .ofp-button:focus-visible,
.ofp-flow-page .ofp-flow-review button:focus-visible {
  outline: 3px solid rgba(44, 62, 80, .35);
  outline-offset: 3px;
}

.ofp-flow-page .ofp-flow-note {
  width: 100%;
  margin: 13px auto 0;
  color: #66717d;
  font-size: 12px;
  line-height: 1.55;
}

.ofp-flow-page .ofp-flow-note i {
  margin-right: 6px;
  color: #536273;
}

.ofp-flow-page .ofp-flow-review {
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #e5e9ed;
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 8px 22px rgba(34, 48, 63, .05);
}

.ofp-flow-page .ofp-flow-review-copy {
  color: #52606d;
  font-size: 13px;
  line-height: 1.55;
}

.ofp-flow-page .ofp-flow-review button {
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #cbd3da;
  border-radius: 7px;
  background: #fff;
  color: #2c3e50;
  font-weight: 700;
  cursor: pointer;
}

.ofp-flow-page .ofp-flow-review button:hover {
  background: #f0efeb;
}

/* Matching summary becomes part of the page heading, not another card. */
.ofp-page.ofp-review-mode .ofp-intro.is-review-mode {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 12px;
  padding: 24px 0;
  text-align: center;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode > .ofp-eyebrow,
.ofp-page.ofp-review-mode .ofp-intro.is-review-mode > p:not(.ofp-flow-review) {
  display: none;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode > h1 {
  margin: 0 0 16px !important;
  text-align: center;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode > .ofp-flow-review {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode > .ofp-flow-review[hidden] {
  display: none !important;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode .ofp-flow-review-copy {
  min-width: 0;
  color: #52606d;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode .ofp-flow-review-line {
  margin: 0;
  text-align: center;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-review-summary {
  white-space: normal;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-edit {
  position: static;
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font: italic 400 12px/1.5 var(--ofp-font);
  font-weight: 400 !important;
  white-space: nowrap;
  vertical-align: baseline;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-edit:hover:not(:disabled) {
  color: inherit;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-edit:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-edit:focus-visible {
  outline: 2px solid #2c3e50;
  outline-offset: 3px;
  border-radius: 2px;
}

.ofp-page.ofp-review-mode #ofp-context {
  display: none !important;
}

.ofp-page.ofp-review-mode .ofp-shortlist {
  margin-top: 12px;
}

@media (max-width: 650px) {
  .ofp-flow-page .ofp-flow-progress {
    margin-bottom: 13px;
  }

  .ofp-flow-page .ofp-flow-question {
    min-height: 280px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .ofp-flow-page .ofp-flow-title,
  .ofp-flow-page .ofp-flow-title h2 {
    margin-bottom: 23px;
    font-size: clamp(22px, 6vw, 27px);
  }

  .ofp-flow-page .ofp-flow-step--location .ofp-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .ofp-flow-page .ofp-flow-step--needs .ofp-keyword-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .ofp-flow-page .ofp-flow-step--needs .ofp-keyword-group__title {
    margin-top: 0;
  }

  .ofp-flow-page .ofp-flow-nav {
    flex-wrap: wrap;
  }

  .ofp-flow-page .ofp-flow-nav .ofp-button {
    min-width: 0;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode {
    margin-bottom: 12px;
    text-align: center;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode > h1 {
    font-size: clamp(27px, 7vw, 36px) !important;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode .ofp-flow-review-copy {
    text-align: center;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-review-summary {
    white-space: normal;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode #ofp-flow-edit {
    position: static;
    margin: 0;
  }

  .ofp-page.ofp-review-mode .ofp-intro.is-review-mode > .ofp-flow-review {
    display: block;
  }

  .ofp-page.ofp-review-mode .ofp-shortlist {
    margin-top: 8px;
  }
}

@media (max-width: 380px) {
  .ofp-flow-page .ofp-flow-question {
    padding: 22px 16px;
  }

  .ofp-flow-page .ofp-flow-nav .ofp-button {
    padding-inline: 15px;
  }

  .ofp-flow-page .ofp-flow-step--size .ofp-area-unit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ofp-flow-page .ofp-flow-step--size .ofp-unit-toggle {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ofp-flow-page #ofp-flow-bar {
    transition: none;
  }
}

.ofp-flow-page .ofp-timing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.ofp-flow-page .ofp-timing-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid #d9e2dc;
  border-radius: 7px;
  background: #fff;
  color: #29463b;
  font-size: 14px;
  cursor: pointer;
}
.ofp-flow-page .ofp-timing-options label:has(input:checked) {
  border-color: #739481;
  background: #edf5f0;
}
.ofp-flow-page .ofp-timing-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #527964;
}
