/* ===== DMM Form — leve, mobile-first ===== */
:root {
  --green: #34bb1a;         /* verde vivo da logo DMM */
  --green-strong: #2a9c14;  /* hover (mais escuro) */
  --green-soft: rgba(52,187,26,.12);
  --green-logo: #34bb1a;
  --orange: #f5a623;
  --ink: #3d4852;
  --ink-soft: #8a97a2;
  --line: #cfd6dc;
  --bg: #ffffff;
  --radius: 26px;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Progresso */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; background: #f0f0f0; z-index: 10; }
.progress__bar { height: 100%; width: 0; background: var(--green); transition: width .35s ease; }

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 60px;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.brand { text-align: center; padding: 8px 0 4px; }
.brand__logo {
  height: 44px; width: auto; max-width: 60%; object-fit: contain;
}
@media (min-width: 640px) { .brand__logo { height: 54px; } }

/* Steps */
form { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.step { display: none; animation: fade .3s ease; }
.step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q {
  display: block; font-size: 22px; font-weight: 500; line-height: 1.35;
  margin: 0 0 22px; color: var(--ink);
}

/* Campos texto */
.field {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  font-size: 19px; padding: 10px 2px; color: var(--ink);
  background: transparent; outline: none;
}
.field::placeholder { color: var(--ink-soft); }
.field:focus { border-bottom-color: var(--green); }

.phone { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.phone:focus-within { border-bottom-color: var(--green); }
.phone__flag { font-size: 22px; }
.field--phone { border-bottom: 0; flex: 1; }

/* Opções (rádio) */
.opts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; cursor: pointer; font-size: 16px;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__k {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.opt__t { line-height: 1.3; }
.opt:hover { border-color: var(--green); }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.opt:has(input:checked) .opt__k { background: var(--green); border-color: var(--green); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

/* Botão */
.btn {
  margin-top: 26px; border: 0; cursor: pointer;
  background: var(--green); color: #fff;
  font-size: 17px; font-weight: 600;
  padding: 12px 30px; border-radius: var(--radius);
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--green-strong); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }

/* Erro */
.err { color: #d64545; font-size: 14px; min-height: 18px; margin: 8px 0 0; }

/* Obrigado */
.step--thanks { text-align: center; }
.thanks { padding: 30px 0; }
.thanks__icon { color: var(--ink); transform: rotate(-8deg); }
.thanks__title { font-size: 30px; font-weight: 600; margin: 18px 0 10px; }
.thanks__text { color: var(--ink-soft); font-size: 16px; line-height: 1.5; max-width: 440px; margin: 0 auto; }

/* Setinhas de navegação */
.nav {
  position: fixed; top: 50%; right: 14px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 15;
}
.nav__btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--green);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.nav__btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.nav__btn:active { transform: scale(.94); }
.nav__btn[hidden] { display: none; }
.nav[hidden] { display: none; }

@media (min-width: 640px) {
  .nav { right: 28px; gap: 12px; }
  .nav__btn { width: 44px; height: 44px; }
}

/* Overlay envio */
.sending {
  position: fixed; inset: 0; background: rgba(255,255,255,.75);
  display: grid; place-items: center; z-index: 20;
}
.sending[hidden] { display: none; } /* garante que o overlay some quando hidden */
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(123,191,63,.25); border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop */
@media (min-width: 640px) {
  .q { font-size: 26px; }
  .field { font-size: 20px; }
  .wrap { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .progress__bar, .spinner { animation: none; transition: none; }
}
