/* Business Structure Selector — hero & tool widget */
.bss-page {
  --bss-navy: #061a31;
  --bss-navy-2: #0b2947;
  --bss-coral: #f45f58;
  --bss-coral-dark: #d94a44;
  --bss-coral-soft: #fff2f1;
  --bss-ink: #10243a;
  --bss-muted: #5c6f82;
  --bss-line: #d9e2ea;
  --bss-green: #16825c;
  --bss-shadow: 0 24px 70px rgba(4, 24, 46, 0.16);
}

.bss-page .hero-tool {
  position: relative;
  min-height: calc(100svh - 58px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(54, 107, 155, 0.34), transparent 32%),
    linear-gradient(135deg, var(--bss-navy) 0%, #081f39 58%, #0b2d50 100%);
  color: #fff;
}

.bss-page .grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  color: #fff;
}

.bss-page .page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1850px;
  margin-inline: auto;
  padding-block: 26px 28px;
  padding-inline: clamp(24px, 5vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.25fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.bss-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffaaa6;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bss-page .kicker:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--bss-coral);
}

.bss-page .intro h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 800;
  text-align: left;
  word-spacing: normal;
}

.bss-page .intro h1 span {
  color: #ff817a;
}

.bss-page .intro-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: #c8d6e4;
  font-size: 0.98rem;
  line-height: 1.7;
}

.bss-page .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin-top: 20px;
  color: #c6d5e3;
  font-size: 0.74rem;
  font-weight: 650;
}

.bss-page .proof span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bss-page .proof svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #57dda1;
  stroke-width: 2.4;
}

.bss-page .search-intent {
  margin-top: 22px;
  padding: 13px 15px;
  max-width: 580px;
  border-left: 3px solid var(--bss-coral);
  background: rgba(255, 255, 255, 0.07);
  color: #bfcddd;
  font-size: 0.74rem;
  line-height: 1.55;
}

.bss-page .tool {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  color: var(--bss-ink);
  box-shadow: var(--bss-shadow);
  border-top: 4px solid var(--bss-coral);
  min-height: 610px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.bss-page .tool-head {
  position: relative;
  padding: 18px 21px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--bss-line);
}

.bss-page .tool-head small {
  display: block;
  margin-bottom: 4px;
  color: var(--bss-coral-dark);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bss-page .tool-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  text-align: left;
  word-spacing: normal;
  color: var(--bss-ink);
}

.bss-page .step-count {
  color: var(--bss-muted);
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.bss-page .progress-track {
  height: 3px;
  background: #e8edf2;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
}

.bss-page .progress-fill {
  height: 100%;
  width: 16.66%;
  background: var(--bss-coral);
  transition: width 0.28s ease;
}

.bss-page .tool-body {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 0.72fr);
  min-height: 0;
}

.bss-page .question-pane {
  padding: 21px;
  border-right: 1px solid var(--bss-line);
  min-width: 0;
}

.bss-page .question {
  display: none;
  animation: bss-fade 0.2s ease;
}

.bss-page .question.active {
  display: block;
}

@keyframes bss-fade {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bss-page .question-label {
  color: var(--bss-coral-dark);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bss-page .question h3 {
  margin: 5px 0 7px;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--bss-ink);
  text-align: left;
}

.bss-page .question > p {
  margin: 0 0 14px;
  color: var(--bss-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.bss-page .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bss-page .option {
  position: relative;
  min-height: 92px;
  padding: 13px 13px 12px;
  border: 1px solid var(--bss-line);
  background: #fff;
  text-align: left;
  color: var(--bss-ink);
  transition: 0.18s ease;
  cursor: pointer;
}

.bss-page .option:hover {
  border-color: #bac6d1;
  background: #fbfcfd;
}

.bss-page .option.selected {
  border-color: var(--bss-coral);
  background: var(--bss-coral-soft);
  box-shadow: inset 0 0 0 1px var(--bss-coral);
}

.bss-page .option-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  background: #f2f5f8;
  color: var(--bss-coral-dark);
}

.bss-page .selected .option-icon {
  background: #fff;
}

.bss-page .option-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.bss-page .option strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.3;
}

.bss-page .option .option-desc {
  display: block;
  margin-top: 3px;
  color: var(--bss-muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.bss-page .tick {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #bdc8d3;
  color: transparent;
  font-size: 0.65rem;
}

.bss-page .selected .tick {
  color: #fff;
  border-color: var(--bss-coral);
  background: var(--bss-coral);
}

.bss-page .result-pane {
  position: relative;
  padding: 21px;
  background: #f7f9fb;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bss-page .result-placeholder {
  margin-inline: auto;
  
  text-align: center;
  color: var(--bss-muted);
  max-width: 250px;
}

.bss-page .result-placeholder svg {
  width: 88px;
  height: 88px;
  margin-bottom: 10px;
}

.bss-page .result-placeholder strong {
  display: block;
  color: var(--bss-ink);
  font-size: 0.88rem;
}

.bss-page .result-placeholder p {
  margin: 5px 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

.bss-page .live-summary {
  display: none;
}

.bss-page .live-summary.visible {
  display: block;
  animation: bss-fade 0.22s ease;
}

.bss-page .fit-label {
  color: var(--bss-coral-dark);
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bss-page .result-name {
  margin: 5px 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--bss-ink);
  text-align: left;
}

.bss-page .result-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 14px;
  color: var(--bss-green);
  font-size: 0.7rem;
  font-weight: 800;
}

.bss-page .score-bar {
  flex: 1;
  height: 5px;
  background: #dfe8e4;
}

.bss-page .score-bar span {
  display: block;
  height: 100%;
  width: 88%;
  background: var(--bss-green);
}

.bss-page .why {
  margin: 0 0 12px;
  color: var(--bss-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.bss-page .reason-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bss-page .reason-list li {
  display: flex;
  gap: 7px;
  font-size: 0.68rem;
  line-height: 1.42;
}

.bss-page .reason-list svg {
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin-top: 1px;
  fill: none;
  stroke: var(--bss-green);
  stroke-width: 2.2;
}

.bss-page .watchout {
  margin-top: 13px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bss-line);
  font-size: 0.64rem;
  color: var(--bss-muted);
  line-height: 1.45;
}

.bss-page .watchout strong {
  color: var(--bss-ink);
}

.bss-page .result-actions {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 7px;
}

.bss-page .primary-action,
.bss-page .secondary-action {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.bss-page .primary-action {
  color: #fff;
  background: var(--bss-coral);
}

.bss-page .primary-action:hover {
  background: var(--bss-coral-dark);
  color: #fff;
}

.bss-page .secondary-action {
  border: 1px solid var(--bss-line);
  background: #fff;
  color: var(--bss-ink);
}

.bss-page .tool-footer {
  min-height: 56px;
  padding: 10px 21px;
  border-top: 1px solid var(--bss-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.bss-page .back,
.bss-page .next {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.bss-page .back {
  background: #fff;
  color: var(--bss-muted);
  border: 1px solid var(--bss-line);
}

.bss-page .back:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bss-page .next {
  color: #fff;
  background: var(--bss-navy-2);
}

.bss-page .next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bss-page .footer-note {
  color: var(--bss-muted);
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1080px) {
  .bss-page .hero-tool {
    min-height: auto;
  }

  .bss-page .page-shell {
    grid-template-columns: 1fr;
    padding-block: 42px;
    padding-inline: clamp(24px, 5vw, 96px);
  }

  .bss-page .intro h1,
  .bss-page .intro-copy {
    max-width: 760px;
  }

  .bss-page .tool {
    min-height: 590px;
  }
}

@media (max-width: 720px) {
  .bss-page .hero-tool {
    min-height: calc(100svh - 56px);
  }

  .bss-page .page-shell {
    padding-inline: clamp(16px, 4vw, 24px);
    padding-block: 25px;
    gap: 25px;
  }

  .bss-page .intro h1 {
    font-size: 2.45rem;
  }

  .bss-page .intro-copy {
    font-size: 0.88rem;
  }

  .bss-page .search-intent {
    display: none;
  }

  .bss-page .tool {
    min-height: 670px;
  }

  .bss-page .tool-body {
    grid-template-columns: 1fr;
  }

  .bss-page .question-pane {
    border-right: 0;
    border-bottom: 1px solid var(--bss-line);
  }

  .bss-page .result-pane {
    min-height: 220px;
  }

  .bss-page .option {
    min-height: 87px;
  }

  .bss-page .result-placeholder svg {
    display: none;
  }

  .bss-page .tool-footer {
    padding: 10px 14px;
  }

  .bss-page .footer-note {
    display: none;
  }
}

@media (max-width: 440px) {
  .bss-page .intro h1 {
    font-size: 2.12rem;
  }

  .bss-page .proof {
    font-size: 0.69rem;
  }

  .bss-page .tool-head,
  .bss-page .question-pane,
  .bss-page .result-pane {
    padding-left: 15px;
    padding-right: 15px;
  }

  .bss-page .options {
    gap: 7px;
  }

  .bss-page .option {
    padding: 11px;
    min-height: 92px;
  }

  .bss-page .option .option-desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bss-page .question,
  .bss-page .live-summary.visible,
  .bss-page .progress-fill {
    animation: none !important;
    transition: none !important;
  }
}
