:root {
  --primary: #134067;
  --primary-2: #1d5f94;
  --accent: #28b9d1;
  --bg: #eef4f9;
  --surface: rgba(255, 255, 255, .94);
  --text: #16212b;
  --muted: #667788;
  --border: #d6e1eb;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 24px 60px rgba(19, 64, 103, .16);
}
body.dark {
  --bg: #07131f;
  --surface: rgba(14, 31, 47, .96);
  --text: #f2f6f9;
  --muted: #b8c5d0;
  --border: #294156;
  --shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(40,185,209,.20), transparent 30%),
    radial-gradient(circle at 90% 100%, rgba(19,64,103,.22), transparent 32%),
    var(--bg);
}
button, input, textarea, select { font: inherit; }
.theme-toggle {
  position: fixed; right: 22px; top: 22px; z-index: 10;
  width: 48px; height: 48px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); cursor: pointer; box-shadow: var(--shadow);
}
.app-shell { width: min(980px, 94%); margin: 0 auto; padding: 52px 0; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px);
  backdrop-filter: blur(14px);
}
.brand { text-align: center; }
.brand img { width: min(330px, 78%); height: auto; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; }
h1 { color: var(--primary); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; margin: 10px auto 16px; max-width: 780px; }
body.dark h1, body.dark h2 { color: #8edcf0; }
.intro { max-width: 760px; margin: 0 auto; color: var(--muted); line-height: 1.75; }
.progress-wrap { margin: 36px 0 42px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; margin-bottom: 9px; }
.progress-track { height: 11px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .35s ease; }
.step { display: none; animation: rise .28s ease; }
.step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
h2 { color: var(--primary); margin: 0 0 24px; font-size: clamp(1.45rem, 3vw, 2rem); }
.welcome-card { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(40,185,209,.06); }
.welcome-card li { margin: 12px 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-weight: 600; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); color: var(--text);
  background: transparent; border-radius: 12px; padding: 14px 15px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(40,185,209,.15);
}
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(180,35,24,.12) !important; }
.helper { color: var(--muted); margin-top: -12px; }
.navigation { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.btn { border: 0; border-radius: 12px; padding: 14px 24px; font-weight: 700; cursor: pointer; }
.btn.primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 28px rgba(19,64,103,.23); }
.btn.secondary { color: var(--primary); background: rgba(19,64,103,.09); }
.btn:disabled { opacity: .55; cursor: wait; }
.review { border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 20px; max-height: 420px; overflow: auto; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-item strong { display: block; color: var(--primary); margin-bottom: 5px; }
body.dark .review-item strong { color: #8edcf0; }
.check-row { flex-direction: row; align-items: flex-start; font-weight: 500; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; }
.status { margin-top: 14px; min-height: 24px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.success { color: var(--success); }
footer { text-align: center; color: var(--muted); margin-top: 38px; font-size: .9rem; }
@media (max-width: 720px) {
  .app-shell { width: 96%; padding: 18px 0; }
  .panel { border-radius: 20px; padding: 24px 18px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .navigation { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .theme-toggle { right: 12px; top: 12px; }
}


/* Uploads */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  background: rgba(40,185,209,.05);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.upload-box:hover {
  border-color: var(--accent);
  background: rgba(40,185,209,.10);
  transform: translateY(-1px);
}
.upload-box input[type="file"] {
  margin-top: 10px;
  padding: 10px;
  background: var(--surface);
}
.upload-title {
  font-weight: 700;
  color: var(--primary);
}
body.dark .upload-title { color: #8edcf0; }
.upload-note, .file-limit {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}
.file-summary {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(19,64,103,.04);
}
.file-chip small { color: var(--muted); }
.success-card {
  text-align: center;
  padding: 28px;
}
.protocol {
  display: inline-block;
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(40,185,209,.12);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
}
body.dark .protocol { color: #8edcf0; }


/* Campo antispam invisível para usuários */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
