/* Etapas de identificação e preparação do caminho. */
.quiz-back-bar {
  width: min(100%, 1120px);
  margin: -.5rem auto 0;
}

.quiz-back {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--teal-dark);
  font-size: 1.2rem;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .quiz-back:hover { background: var(--wash); }
}

.question-actions, .interlude .actions { justify-content: center; }
.question-actions > :only-child, .interlude .actions > :only-child { margin-inline: auto; }

.interlude.contact-step,
.interlude.plan-loading {
  width: min(100%, 680px);
}

.contact-step h1,
.plan-loading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-step > p:not(.interlude-label) {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.contact-field {
  display: grid;
  gap: .4rem;
  min-width: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-field input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: .78rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.contact-field input::placeholder { color: #687970; opacity: 1; }
.contact-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--teal); }
.contact-field input[aria-invalid="true"] { border-color: #a52d24; }

.contact-notice {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.contact-error { color: #9c2922; font-size: .88rem; line-height: 1.4; font-weight: 700; margin: 0; }
.contact-error:empty, .contact-error[hidden] { display: none; }
.contact-form .actions { margin-top: .5rem; }

.plan-loading {
  text-align: center;
}

.plan-loading::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 6px solid var(--wash);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: plan-spin 1.1s linear infinite;
}

.plan-loading h1,
.plan-loading p { margin-inline: auto; }
.plan-loading p { max-width: 38ch; color: var(--muted); line-height: 1.5; }
.plan-loading .plan-percent { display: block; margin: 1.6rem 0 .65rem; color: var(--teal-dark); font-size: clamp(2.3rem, 6vw, 3.3rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-loading .plan-progress { display: block; width: min(100%, 420px); height: 12px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.plan-loading .actions { justify-content: center; }
.next-invitation {
  width: min(100%, 600px);
  padding: clamp(2rem, 6vw, 3.8rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid #d4e8d9;
  border-top: 4px solid var(--teal);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(20 99 55 / 9%);
  text-align: center;
}
.invitation-emblem {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.35rem;
  border: 1px solid #c7e8d0;
  border-radius: 50%;
  background: #ecf7ef;
  color: var(--teal);
  font-size: 1.45rem;
  line-height: 1;
}
.next-invitation h1 {
  max-width: 15ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
.next-invitation h1 span { color: var(--teal); white-space: nowrap; }
.invitation-choice {
  max-width: 420px;
  margin: 0 auto 1rem;
  padding: .9rem 1rem;
  border: 1px solid #d7ebdc;
  border-radius: 10px;
  background: #f4fbf6;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}
.invitation-choice strong { color: var(--ink); }
.next-invitation .invitation-description { max-width: 38ch; margin: 0 auto; color: var(--muted); line-height: 1.5; }
.next-invitation .invitation-actions { justify-content: center; margin-top: 1.6rem; }
.next-invitation .invitation-actions > .button { flex: 0 1 335px; width: min(100%, 335px); margin: 0 auto; }

@keyframes plan-spin { to { transform: rotate(360deg); } }

.question-q23 .choices { gap: .75rem; }
.question-q23 .choice,
.question-q23 .choice:last-child {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 100px;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-align: left;
}

.question-q23 .choice::before {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wash);
  font-size: 1.8rem;
  line-height: 1;
}

.question-q23 .choice:has(input[value="sim"])::before { content: '✨'; }
.question-q23 .choice:has(input[value="nao"])::before { content: '💭'; }
.question-q23 .choice .choice-text { flex: 1 1 auto; min-width: 0; order: 1; font-size: 1.02rem; line-height: 1.4; font-weight: 700; }
.question-q23 .choice input { order: 2; flex: 0 0 auto; margin-left: auto; }
.question-q23 .choice.is-selected { background: var(--wash); border-color: var(--teal); }
.visual-result .result-actions { justify-content: center; }
.visual-result .result-actions > :only-child { margin-left: 0; }
.final-bottom-actions { justify-content: center; }

@media (hover: hover) and (pointer: fine) {
  .question-q23 .choice:hover { border-color: var(--teal); background: #f7fcf8; }
}

@media (max-width: 620px) {
  .contact-form { gap: .9rem; }
  .contact-field input:not([type="checkbox"]) { min-height: 52px; }
  .plan-loading::before { width: 56px; height: 56px; margin-bottom: 1.2rem; }
  .question-q23 .choice, .question-q23 .choice:last-child { min-height: 88px; padding: .85rem; gap: .7rem; }
  .question-q23 .choice::before { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.55rem; }
  .question-q23 .choice .choice-text { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-loading::before { animation: none; }
}
