@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-regular.woff2") format("woff2");
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-bold.woff2") format("woff2");
}
:root {
  --accent: #00ff84;
  --text: #263238;
  --background: #ffffff;
  --muted: #68777f;
  --error: #c42242;
  --rail: 50px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 16px/1.5 Lato, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wizard { min-height: 100vh; min-height: 100dvh; }
.progress {
  height: 4px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
}
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .4s ease-out; }
.brand { position: absolute; top: 4px; left: 0; padding: 16px; z-index: 2; line-height: 0; }
.brand img { display: block; width: 130px; height: auto; max-width: 100%; }
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: calc(100% - var(--rail));
  padding: 144px 16px;
  outline: none;
}
.panel { width: 100%; max-width: 700px; min-width: 0; }
.panel.entering { animation: arrive .38s ease both; }
h1, h2, p { margin-top: 0; }
.welcome-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.welcome-copy { opacity: .85; }
.welcome-copy p { margin: 0 0 24px; line-height: 24px; }
.welcome-copy p:last-child { margin-bottom: 0; }
.welcome-actions { margin-top: 36px; }
.question-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
.question-description { font-size: 16px; line-height: 1.5; opacity: .85; margin-bottom: 24px; }
.step-label { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.answer-field {
  width: 100%;
  display: block;
  min-height: 43px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  padding: 8px 0;
  font-size: 22px;
  line-height: 1.5;
  outline: none;
}
.answer-field::placeholder { color: #98a0a4; opacity: 1; }
.answer-field:focus { border-bottom-width: 2px; padding-bottom: 7px; }
textarea.answer-field { resize: vertical; min-height: 104px; max-height: 340px; }
.field-hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.phone-row { display: flex; width: min(100%, 340px); align-items: stretch; border-bottom: 1px solid var(--text); gap: 8px; }
.phone-prefix { width: 95px; min-width: 95px; border: 0; background: transparent; color: var(--text); border-radius: 0; padding: 8px 0; font-size: 18px; }
.phone-row .answer-field { min-width: 0; border-bottom: 0; font-size: 20px; }
.phone-row:focus-within { border-bottom-width: 2px; }
.phone-row:focus-within .answer-field { padding-bottom: 7px; }
.question-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 8px 19.2px;
  color: #000000;
  box-shadow: 0 0 6px #00000026;
}
.button:hover { background: #00e676; border-color: #00e676; }
.button:active { transform: translateY(1px); }
.button-secondary { background: transparent; border-color: #bdc8ce; color: var(--text); box-shadow: none; }
.button-secondary:hover { background: #f2f6f4; border-color: var(--text); }
:where(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.options { border: 0; padding: 0; margin: 0; min-width: 0; }
.option { position: relative; display: flex; align-items: flex-start; gap: 8px; font-size: 19.6px; line-height: 1.4; padding: 8px 16px; border: 1px solid var(--text); border-radius: 4px; margin-bottom: 11.2px; cursor: pointer; overflow-wrap: anywhere; }
.option:last-child { margin-bottom: 0; }
.option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.option-letter { display: flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; margin-top: 3px; background: #26323826; font-size: 12px; font-weight: 400; }
.option:has(input:checked) { font-weight: 700; background: #2632381a; }
.option input:checked + .option-letter { color: #ffffff; background: var(--text); }
.option:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) { .option:hover { background: #2632380d; } }
.field-error { display: inline-block; margin: 8px 0 0; padding: 5px 9px; font-size: 14px; color: #ffffff; background: var(--error); border-radius: 4px; }
.answer-field[aria-invalid="true"], .phone-row.invalid { border-bottom-color: var(--error); }
.navigation { position: fixed; top: 50%; transform: translateY(-50%); right: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 10; }
.nav-button { border: 0; background: transparent; width: 44px; height: 44px; padding: 11px; border-radius: 50%; line-height: 0; }
.nav-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-button:hover:not(:disabled) { background: #00ff8426; }
.nav-button:disabled { opacity: .45; cursor: default; }
.review-description { color: var(--muted); line-height: 1.5; }
.review-list { margin: 24px 0; padding: 0; }
.review-row { border-top: 1px solid #e2e8e5; padding: 16px 0; display: grid; grid-template-columns: 155px minmax(0, 1fr) auto; gap: 16px; }
.review-row dt { font-size: 14px; color: var(--muted); }
.review-row dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.edit-answer { align-self: start; border: 0; background: transparent; color: var(--text); font-size: 13px; text-decoration: underline; padding: 2px 0; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.privacy-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 20px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes arrive { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .brand { position: relative; padding: 12px 16px 0; top: 4px; height: 48px; }
  .brand img { width: 118px; }
  .stage { width: 100%; min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); padding: 24px 16px calc(86px + env(safe-area-inset-bottom, 0px)); }
  .stage[data-view="welcome"], .stage[data-view="review"] { align-items: flex-start; }
  .stage[data-view="welcome"] { padding-top: 16px; }
  .welcome-title { font-size: 32px; }
  .question-title { font-size: 24px; }
  .welcome-actions { margin-top: 28px; }
  .question-actions { align-items: flex-start; }
  .button { min-height: 44px; }
  .keyboard-hint { display: none; }
  .navigation { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); right: 16px; transform: none; width: auto; flex-direction: row; gap: 4px; padding: 0; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 1px 2px #0000000d; }
  .nav-button { border-radius: 7px; }
  .option { font-size: 18px; }
  .review-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .review-row dt { grid-column: 1; }
  .review-row dd { grid-column: 1; grid-row: 2; }
  .edit-answer { grid-column: 2; grid-row: 1 / 3; }
  .review-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel.entering { animation: none; }
  .progress-fill { transition: none; }
}

/* Na conferência, a edição acontece pelos links de cada resposta. */
.stage[data-view="review"] ~ .navigation { display: none; }
