:root {
  --navy: #000b28;
  --navy-2: #0f1d40;
  --primary: #0068cf;
  --primary-hover: #0a56a8;
  --primary-soft: #e8f1fc;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --text: #0f1d40;
  --muted: #5b6785;
  --faint: #8a94ad;
  --border: #dde4f0;
  --border-strong: #c3cee2;
  --red: #e34948;
  --red-soft: #fdeceb;
  --amber-soft: #fff6e0;
  --green: #0c8a3e;
  --green-soft: #e6f6ec;
  --neutral: #c8ccd6;
  --radius: 14px;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid rgba(0, 104, 207, .35); outline-offset: 2px; }

/* ---------- Cabeçalho ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img.logo { height: 52px; width: auto; display: block; margin: -4px 0 -4px -10px; }
.brand strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.brand span { color: #b6c2dc; font-size: .88rem; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.topbar .spacer { flex: 1; }

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 18px 20px 84px;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fb8ff;
  margin: 0 0 8px;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.12; }
.hero p { color: #c9d4ea; margin: 10px 0 0; max-width: 52ch; }

/* ---------- Formulário ---------- */
.form-wrap { max-width: 640px; margin: -60px auto 40px; padding: 0 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 29, 64, .06);
}
form.card { padding: 8px 24px 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q { padding: 20px 0; border-bottom: 1px solid var(--border); }
.q:last-of-type { border-bottom: 0; }
.q legend, .q > label.q-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
  padding: 0;
}
.q .hint { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.opt { color: var(--faint); font-weight: 500; font-family: var(--font-body); font-size: .85rem; }

.scale { display: grid; gap: 8px; }
.scale.s5 { grid-template-columns: repeat(5, 1fr); }
.scale.s11 { grid-template-columns: repeat(11, 1fr); gap: 5px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 2px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fafcff;
  cursor: pointer;
  text-align: center;
  transition: border-color .12s, background .12s, transform .08s;
  user-select: none;
}
.scale.s11 label { min-height: 46px; font-weight: 700; }
.scale label b { font-family: var(--font-display); font-size: 1.15rem; }
.scale label small { font-size: .74rem; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.scale label:hover { border-color: var(--border-strong); }
.scale input:focus-visible + label { outline: 3px solid rgba(0, 104, 207, .35); outline-offset: 2px; }
.scale input:checked + label {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.scale input:checked + label small { color: #dbe9ff; }
.scale-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

select, input[type=text], input[type=tel], input[type=password], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
select:focus, input:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 104, 207, .15); }
textarea { min-height: 96px; resize: vertical; }

.aspect { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 0; }
.aspect + .aspect { border-top: 1px dashed var(--border); }
.aspect span { font-weight: 500; }
.aspect .scale.s5 { grid-template-columns: repeat(5, 44px); gap: 6px; }
.aspect .scale label { min-height: 40px; padding: 4px; }
.aspect .scale label b { font-size: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fafcff;
  cursor: pointer;
  font-size: .9rem;
  user-select: none;
}
.chips input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.chips input:focus-visible + label { outline: 3px solid rgba(0, 104, 207, .35); outline-offset: 2px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }

.privacy { font-size: .8rem; color: var(--muted); margin: 4px 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; cursor: pointer;
  padding: 12px 18px; font-weight: 700;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.block { width: 100%; padding: 15px; font-size: 1rem; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.light { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.light:hover { background: var(--bg); }
.btn.sm { padding: 6px 10px; font-size: .82rem; border-radius: 8px; }

.error { color: #b42323; background: var(--red-soft); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 0 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 48px 28px; }
.thanks .tick {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
}
.thanks h2 { font-size: 1.5rem; margin-bottom: 8px; }
.thanks p { color: var(--muted); margin: 0 auto; max-width: 42ch; }

.foot { text-align: center; color: var(--faint); font-size: .8rem; padding: 0 0 32px; }

@media (max-width: 560px) {
  form.card { padding: 4px 16px 18px; }
  .scale.s11 { grid-template-columns: repeat(6, 1fr); }
  .scale.s5 label small { font-size: .68rem; }
  .aspect { grid-template-columns: 1fr; gap: 6px; }
  .aspect .scale.s5 { grid-template-columns: repeat(5, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
.topbar.narrow .topbar-inner { max-width: 672px; padding-left: 16px; padding-right: 16px; }
@media (max-width: 560px) { .brand img.logo { height: 44px; } }
