body[data-page='diagnostico'] {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.guided-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 0 32px;
  flex-shrink: 0;
}
.guided-header .brand {
  min-height: 44px;
}
.guided-header .brand img {
  width: 160px;
  height: auto;
}
body[data-page='diagnostico'] main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 16px 32px;
}
.guided-shell {
  width: min(640px, 100%);
  margin: 0 auto;
}
.guided-footer {
  padding: 24px 32px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.guided-footer p {
  margin: 0;
}
.guided-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.guided-shell h1 {
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.guided-shell h1:focus {
  outline: none;
}
.guided-shell h1:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 8px;
}
#guided-intro {
  text-align: center;
}
#guided-intro .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}
#guided-intro h1 {
  font-size: 44px;
}
#guided-intro .lead {
  font-size: 17px;
  margin: 20px auto 12px;
  max-width: 540px;
}
.guided-intro-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 470px;
}
.guided-start {
  width: min(360px, 100%);
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}
.guided-start > span,
.guided-actions .button > span {
  font-size: 23px;
  line-height: 1;
}
.guided-direct {
  margin-top: 8px;
  text-align: center;
}
.guided-direct a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  padding: 8px 0;
}
.guided-direct a:hover {
  text-decoration: underline;
}
.guided-progress {
  margin-bottom: 20px;
}
.guided-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
}
#step-label {
  color: var(--blue);
  font-weight: 650;
}
#step-category {
  color: var(--muted);
  text-align: right;
}
.guided-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  appearance: none;
}
.guided-progress progress::-webkit-progress-bar {
  background: var(--line);
}
.guided-progress progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 10px;
}
.guided-progress progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 10px;
}
.guided-help {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 20px;
}
.guided-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.guided-group + .guided-group {
  margin-top: 18px;
}
.guided-group legend {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  padding: 0;
  margin-bottom: 12px;
}
.guided-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.guided-options {
  display: grid;
  gap: 10px;
}
.guided-option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.guided-option:hover {
  border-color: #9aa8ed;
}
.guided-option:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: #f0f2ff;
}
.guided-option:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.guided-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}
.guided-option input:focus-visible {
  outline: none;
}
.guided-group[aria-invalid='true'] .guided-option {
  border-color: #b52c2c;
}
.guided-error {
  font-size: 13px;
  color: #a22626;
  line-height: 1.5;
  margin: 10px 0 0;
}
.guided-error:empty {
  display: none;
}
.guided-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.guided-actions .button {
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 160px;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 50px;
  padding: 12px 24px;
}
.guided-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
}
.guided-back:hover {
  background: var(--white);
}
.guided-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.guided-field:nth-child(-n + 2) {
  align-self: end;
}
.guided-field[data-field='atividade'],
.guided-fields:not(:has([data-field='cidade'])) [data-field='link'] {
  grid-column: 1 / -1;
}
.guided-field label {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  column-gap: 4px;
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}
.guided-field .guided-required {
  color: var(--blue);
}
.guided-field input {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #aeb6aa;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  min-height: 46px;
}
.guided-field input[aria-invalid='true'] {
  border-color: #b52c2c;
}
.guided-processing {
  width: min(520px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: guided-processing-in 420ms ease-out both;
}
.guided-processing .eyebrow {
  justify-content: center;
  margin: 22px 0 14px;
}
.guided-processing h1 {
  font-size: 36px;
}
.guided-processing > p:last-of-type {
  max-width: 470px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.guided-processing-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
}
.guided-processing-mark::before,
.guided-processing-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.guided-processing-mark::before {
  border: 2px solid var(--line);
}
.guided-processing-mark::after {
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  animation: guided-processing-spin 900ms linear infinite;
}
.guided-processing-mark img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  animation: guided-processing-pulse 900ms ease-in-out infinite alternate;
}
.guided-processing-bar {
  width: min(320px, 82%);
  height: 5px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.guided-processing-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transform-origin: left center;
  animation: guided-processing-progress 1800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes guided-processing-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes guided-processing-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes guided-processing-pulse {
  to {
    transform: scale(0.92);
  }
}
@keyframes guided-processing-progress {
  from {
    transform: scaleX(0.06);
  }
  to {
    transform: scaleX(1);
  }
}
.guided-shell[data-step='resultado'] > #guided-panel > #result-eyebrow,
.guided-shell[data-step='resultado'] > #guided-panel > #guided-title,
.guided-shell[data-step='resultado'] > #guided-panel > .guided-help,
.guided-shell[data-step='resultado'] #guided-result {
  animation: guided-result-in 480ms ease-out both;
}
.guided-shell[data-step='resultado'] > #guided-panel > #guided-title {
  animation-delay: 60ms;
}
.guided-shell[data-step='resultado'] > #guided-panel > .guided-help {
  animation-delay: 110ms;
}
.guided-shell[data-step='resultado'] #guided-result {
  animation-delay: 160ms;
}
@keyframes guided-result-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.guided-points {
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.guided-points h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.guided-points ol {
  list-style: none;
  counter-reset: points;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}
.guided-points li {
  counter-increment: points;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}
.guided-points li::before {
  content: counter(points);
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.guided-note {
  margin: 14px 0 0;
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  background: white;
  border-radius: 0 12px 12px 0;
  font-size: 12px;
  line-height: 1.7;
}
.guided-transparency {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0;
}
.guided-restart {
  display: block;
  margin: 12px auto 0;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 0;
  min-height: 44px;
  text-underline-offset: 4px;
}
.guided-restart:hover {
  text-decoration: underline;
}
.guided-result-link {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  justify-content: space-between;
  text-align: left;
}
.guided-result-link span {
  flex: none;
  font-size: 22px;
  line-height: 1;
}
.guided-microcopy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 0;
  text-align: center;
}
.guided-nojs {
  font-size: 15px;
  line-height: 1.7;
}
.guided-shell[data-step='resultado'] h1 {
  font-size: 30px;
}
#result-eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
}
.guided-shell[data-step='resultado'] .guided-help {
  margin: 10px 0 14px;
}
@media (min-width: 601px) and (max-height: 800px) {
  body[data-page='diagnostico'] main {
    padding-block: 8px;
  }
  .guided-progress {
    margin-bottom: 14px;
  }
  .guided-help {
    margin: 10px 0 14px;
  }
  .guided-actions {
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  .guided-header {
    min-height: 76px;
    padding: 0 20px;
  }
  .guided-header .brand img {
    width: 148px;
  }
  body[data-page='diagnostico'] main {
    padding: 16px 20px;
  }
  .guided-footer {
    padding: 24px 20px 28px;
  }
  .guided-footer a {
    display: flex;
    justify-content: center;
  }
  #guided-intro h1 {
    font-size: 34px;
  }
  .guided-shell h1 {
    font-size: 29px;
  }
  #guided-intro .lead {
    font-size: 15px;
    margin-top: 18px;
  }
  .guided-progress {
    margin-bottom: 16px;
  }
  .guided-help {
    font-size: 15px;
    margin: 10px 0 16px;
  }
  .guided-option {
    padding: 10px 14px;
    min-height: 52px;
    font-size: 14px;
    gap: 13px;
  }
  .guided-actions {
    gap: 12px;
  }
  .guided-actions .button {
    min-width: 144px;
    padding: 12px 16px;
    gap: 10px;
  }
  .guided-back {
    padding: 12px 14px;
  }
  .guided-points {
    padding: 18px;
  }
  .guided-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guided-field label {
    min-height: auto;
  }
  .guided-processing h1 {
    font-size: 30px;
  }
  .guided-processing-mark {
    width: 84px;
    height: 84px;
  }
  .guided-processing-mark img {
    width: 54px;
    height: 54px;
  }
}
@media (min-width: 601px) {
  #group-atendimento .guided-options,
  #group-local .guided-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #group-atendimento .guided-option,
  #group-local .guided-option {
    align-items: center;
    gap: 10px;
    padding: 14px;
    font-size: 14px;
  }
  #group-atendimento input,
  #group-local input {
    margin: 0;
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 360px) {
  #guided-intro h1 {
    font-size: 30px;
  }
  .guided-shell h1 {
    font-size: 26px;
  }
}
