:root{
  --bg:#faf8f5;
  --card:#ffffff;
  --text:#2b2620;
  --text-muted:#8a8378;
  --accent:#7a5c46;
  --accent-soft:#efe7de;
  --border:#e6ddd1;
  --radius:14px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
.wrap{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  padding:24px 20px 40px;
  display:flex;
  flex-direction:column;
}
.screen{display:none}
.screen.active{display:block;flex:1}

h1{font-size:26px;font-weight:600;margin:0 0 4px}
h2{font-size:20px;font-weight:600;margin:0 0 12px}
.subtitle{color:var(--text-muted);margin:0 0 24px;font-size:15px}
.muted{color:var(--text-muted);font-size:14px}

label{
  display:block;
  font-size:13px;
  color:var(--text-muted);
  margin-bottom:14px;
}
input, select{
  display:block;
  width:100%;
  margin-top:6px;
  padding:12px 14px;
  font-size:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  color:var(--text);
  font-family:inherit;
}
input:focus, select:focus{outline:2px solid var(--accent);outline-offset:1px}

button{
  font-family:inherit;
  font-size:15px;
  padding:13px 20px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  cursor:pointer;
}
button.primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  width:100%;
  margin-top:8px;
  font-weight:500;
}
button:disabled{opacity:.4;cursor:not-allowed}
button:active:not(:disabled){transform:scale(.98)}

.progress-row{display:flex;justify-content:space-between;font-size:13px;color:var(--text-muted);margin-bottom:8px}
.progress-bar{height:6px;background:var(--accent-soft);border-radius:6px;overflow:hidden;margin-bottom:28px}
#progress-fill{height:100%;width:0%;background:var(--accent);transition:width .25s ease}

#q-text{font-size:18px;font-weight:500;margin:0 0 20px;line-height:1.5}
#q-choices{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}
.choice-btn{
  text-align:left;
  padding:14px 16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  font-size:15px;
}
.choice-btn.selected{border-color:var(--accent);background:var(--accent-soft)}

#q-scale{margin-bottom:20px}
#scale-input{width:100%}
.scale-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--text-muted);margin-top:8px;gap:8px}
.scale-labels span:first-child, .scale-labels span:last-child{max-width:38%}
#scale-val{font-weight:600;color:var(--text);font-size:16px}

.nav-row{display:flex;justify-content:space-between;gap:12px;margin-top:8px}
.nav-row button{flex:1}

#screen-done{text-align:center;padding-top:60px}

/* Consentimento LGPD */
.consentimento{
  margin: 16px 0;
  padding: 14px;
  background: var(--accent-soft, #efe7de);
  border-radius: var(--radius, 14px);
}
.consentimento-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.consentimento-label input[type="checkbox"]{
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.consentimento-label a{ color: var(--accent, #7a5c46); text-decoration: underline; }

/* Área do relatório de texto (versão sem visual ainda) */
.report-output{
  white-space: pre-wrap;
  text-align: left;
  max-width: 700px;
  margin: 24px auto 0;
  line-height: 1.7;
  font-size: 15px;
  display: none;
}
