/* =========================================================
   MÉTODO AUTORA — Candidatura (formulário de prospecção)
   ========================================================= */
:root {
  --green-900: #14241f;
  --green-800: #1b332b;
  --green-700: #234237;
  --green-600: #2f5446;
  --cream: #f6f1e7;
  --cream-2: #efe7d7;
  --paper: #fffdf8;
  --terra: #c2683d;
  --terra-dark: #a8552f;
  --ink: #1f2a26;
  --muted: #5e6c64;
  --line: #e3dccd;
  --shadow: 0 30px 80px -40px rgba(20, 36, 31, .55);
  --radius: 22px;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(194,104,61,.16), transparent 55%),
    radial-gradient(90% 90% at 0% 110%, rgba(47,84,70,.18), transparent 55%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
}

/* ---------- Cartão ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 38px;
  overflow: hidden;
}

.progress {
  height: 6px;
  background: var(--cream-2);
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--terra), var(--terra-dark));
  border-radius: 0 6px 6px 0;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px 4px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-800);
  letter-spacing: -.02em;
}
.brand span { color: var(--terra); font-style: italic; }
.step-count {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Passos ---------- */
.step {
  display: none;
  padding: 18px 34px 0;
  animation: stepIn .5s cubic-bezier(.4, 0, .2, 1);
}
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .9rem;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
  color: var(--green-800);
}
h1 em, h2 em { font-style: italic; color: var(--terra); }
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 .5rem;
  color: var(--green-800);
}

.lead { font-size: 1.06rem; color: var(--muted); margin: 0 0 1.5rem; }

.q {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.42rem;
  line-height: 1.25;
  color: var(--green-800);
  margin-bottom: .35rem;
}
.opt { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--muted); font-style: normal; }
.hint { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }

/* ---------- Campos ---------- */
.input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: .95rem 1.1rem;
  margin-top: .6rem;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #aab1a9; }
.input:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(194,104,61,.14);
}
.input--area { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ---------- Escolhas ---------- */
.choices { display: grid; gap: .65rem; margin-top: 1rem; }
.choice {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  position: relative;
  transition: border-color .18s, background .18s, transform .12s;
}
.choice:hover { border-color: var(--terra); background: #fff7ef; }
.choice::after {
  content: "";
  position: absolute;
  right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: border-color .18s, background .18s;
}
.choice.is-selected {
  border-color: var(--terra);
  background: #fff7ef;
}
.choice.is-selected::after {
  border-color: var(--terra);
  background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Consentimento ---------- */
.check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .18s, background .18s;
}
.check:hover { border-color: var(--terra); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--terra); flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--terra);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 26px -14px rgba(194,104,61,.9);
}
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); transform: translateY(-2px); }
.btn:disabled,
.btn:disabled:hover {
  background: #d4a894;
  border-color: #d4a894;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: .75;
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; width: 100%; margin-top: .4rem; }
.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--cream); color: var(--green-800); border-color: var(--green-600); transform: none; }

.actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.6rem;
}
.actions .btn { flex: 1; }
.actions .btn--ghost { flex: 0 0 auto; padding-inline: 1.3rem; }

.reassure {
  font-size: .85rem;
  color: var(--muted);
  margin: 1rem 0 0;
  text-align: center;
}

.call {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--green-800);
  margin: 0 0 1.2rem;
}

/* ---------- Erros ---------- */
.error {
  display: none;
  color: var(--terra-dark);
  font-size: .9rem;
  font-weight: 500;
  margin: .6rem 0 0;
}
.error.is-visible { display: block; }

/* ---------- Campo-isca anti-spam ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Tela final ---------- */
.step--done { text-align: center; padding-top: 28px; }
.link-secondary {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--terra);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: underline;
}
.link-secondary:hover { color: var(--terra-dark); }
.done__seal {
  width: 84px; height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--terra), var(--terra-dark));
  color: #fff; font-size: 2.4rem; font-weight: 700;
  box-shadow: 0 16px 36px -16px rgba(194,104,61,.9);
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsivo ---------- */
@media (max-width: 520px) {
  body { padding: 0; }
  .card { border-radius: 0; min-height: 100vh; max-width: none; border: none; display: flex; flex-direction: column; }
  .card__head { padding: 20px 22px 4px; }
  .step { padding: 14px 22px 0; }
  .actions { flex-direction: row; }
}
