/* =====================================================================
   avalia+ — Anamnese pública (wizard de auto-cadastro)
   Complementa public/css/auth.css. Reusa a mesma paleta.
   v1.0 - 2026-04-29
   ===================================================================== */

.anam-wrap { max-width: 720px; }
.anam-card { padding: 28px 28px 24px; }

/* ── Correção: [hidden] não é sobrescrito por display:flex/inline-flex ─── */
.fg[hidden],
#anamProgress li[hidden] { display: none !important; }

/* ── Progresso ─────────────────────────────────────────────────────── */
.anam-progress {
  display: flex; gap: 4px; list-style: none;
  margin: 0 0 24px; padding: 0;
  font-size: .72rem; font-weight: 600; color: #64748b;
  flex-wrap: wrap;
}
.anam-progress li {
  flex: 1 1 0; min-width: 80px;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: rgba(15,23,42,.4);
  white-space: nowrap;
}
.anam-progress li span:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #94a3b8;
  font-size: .68rem;
}
.anam-progress .step-txt {
  display: inline; width: auto; height: auto;
  border-radius: 0; background: none;
  font-size: .72rem; font-weight: 600; color: inherit;
}
.anam-progress li.active {
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(129,140,248,.12));
  border-color: rgba(56,189,248,.35);
  color: #f1f5f9;
}
.anam-progress li.active span:first-child { background: var(--neon-blue); color: #020617; font-weight: 800; }
.anam-progress li.done span:first-child   { background: #22c55e; color: #022c0c; font-weight: 800; }

/* Abas inativas: só número — economiza espaço horizontal */
.anam-progress li:not(.active):not(.done) {
  flex: 0 0 auto; min-width: 34px;
  justify-content: center; padding: 6px 7px;
}
.anam-progress li:not(.active):not(.done) .step-txt { display: none; }
.anam-progress li.active { flex: 2 1 auto; }
.anam-progress li.done   { flex: 0 0 auto; min-width: 34px; justify-content: center; padding: 6px 7px; cursor: pointer; }
.anam-progress li.done:hover span:first-child { opacity: .75; }
.anam-progress li.done .step-txt { display: none; }

/* ── Steps ─────────────────────────────────────────────────────────── */
.anam-step { border: none; padding: 0; margin: 0 0 8px; }
.anam-step legend {
  font-size: 1.1rem; font-weight: 800; color: var(--auth-text);
  margin-bottom: 18px; padding: 0;
}
.anam-step[hidden] { display: none; }

/* ── Form fields ───────────────────────────────────────────────────── */
.anam-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.anam-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) {
  .anam-grid-2, .anam-grid-3 { grid-template-columns: 1fr; }
}

.fg .req { color: #f87171; }
.fg .hint { color: var(--auth-text-dim); font-size: .72rem; margin-top: 4px; display: block; }

.anam-card input[type="text"],
.anam-card input[type="email"],
.anam-card input[type="tel"],
.anam-card input[type="date"],
.anam-card input[type="number"],
.anam-card input[type="password"],
.anam-card select,
.anam-card textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15,23,42,.6);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: var(--auth-text);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .15s, background .15s;
}
.anam-card input:focus,
.anam-card select:focus,
.anam-card textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  background: rgba(15,23,42,.85);
}
.anam-card textarea { resize: vertical; min-height: 60px; }
.anam-card label.mini {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .7rem; color: #94a3b8; font-weight: 600;
}

/* ── Chips (esportes / condições) ──────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative;
  cursor: pointer;
}
.chip input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: .8rem;
  background: rgba(15,23,42,.6);
  border: 1px solid var(--auth-border);
  color: #cbd5e1;
  user-select: none;
  transition: background .12s, border-color .12s, color .12s;
}
.chip input:checked + span {
  background: linear-gradient(135deg, rgba(14,165,233,.35), rgba(129,140,248,.25));
  border-color: var(--neon-blue);
  color: #f8fafc;
  font-weight: 600;
}
.chip:hover span { border-color: rgba(255,255,255,.2); }

/* ── Detalhe esporte ───────────────────────────────────────────────── */
.esp-detail {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(15,23,42,.4);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
}
.esp-detail .esp-title { font-size: .85rem; font-weight: 700; color: #cbd5e1; margin-bottom: 8px; }

/* ── PAR-Q+ ────────────────────────────────────────────────────────── */
.parq { display: flex; flex-direction: column; gap: 10px; }
.parq-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: rgba(15,23,42,.5);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
}
.parq-q { font-size: .85rem; color: #e2e8f0; flex: 1; }
.parq-yn { display: flex; gap: 14px; font-size: .85rem; color: #cbd5e1; }
.parq-yn label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

/* ── Checkbox LGPD ─────────────────────────────────────────────────── */
.checkbox-row { margin-bottom: 10px; }
.cbx { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .85rem; color: #cbd5e1; }
.cbx input[type="checkbox"] { margin-top: 3px; accent-color: var(--neon-blue); }

/* ── Botões e ações ────────────────────────────────────────────────── */
.anam-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.btn-ghost {
  padding: 12px 18px;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid var(--auth-border);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.anam-card .btn-submit {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #818cf8 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: filter .12s;
}
.anam-card .btn-submit:hover { filter: brightness(1.1); }

.anam-foot {
  text-align: center; margin-top: 14px;
  font-size: .82rem; color: var(--auth-text-dim);
}
.anam-foot a { color: var(--neon-blue); text-decoration: none; font-weight: 600; }
.anam-foot a:hover { text-decoration: underline; }

/* ── Alert ──────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .85rem;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert-err {
  background: rgba(248,113,113,.08);
  border-color: rgba(248,113,113,.3);
  color: #fecaca;
}
.alert-ok {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.3);
  color: #bbf7d0;
}

/* ── Modal de seleção (esportes / condições) ────────────────────────── */
.sel-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--auth-border);
  background: rgba(15,23,42,.6);
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.sel-trigger:hover { border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.04); }
.sel-trigger-icon { font-size: 1.1rem; }
.sel-trigger-label { flex: 1; color: #94a3b8; font-size: .9rem; }
.sel-trigger-badge {
  font-size: .75rem; font-weight: 700;
  background: rgba(56,189,248,.15); color: #38bdf8;
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 99px; padding: 2px 10px; min-width: 24px; text-align: center;
}
.sel-trigger-arrow { color: #475569; font-size: .85rem; }

.sel-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sel-summary-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px; font-size: .78rem;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22); color: #7dd3fc;
}
.sel-summary-chip .rm {
  cursor: pointer; opacity: .6; font-size: .7rem; line-height: 1; margin-left: 2px;
}
.sel-summary-chip .rm:hover { opacity: 1; }

.sel-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,6,23,.8); backdrop-filter: blur(4px);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sel-modal-overlay.open { opacity: 1; pointer-events: auto; }
.sel-modal {
  background: #0f172a; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; width: min(540px, 94vw); max-height: 82vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transform: translateY(12px); transition: transform .2s;
}
.sel-modal-overlay.open .sel-modal { transform: none; }
.sel-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 12px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.sel-modal-head h3 { flex: 1; margin: 0; font-size: 1rem; color: #e2e8f0; }
.sel-modal-head button {
  background: none; border: none; color: #64748b; font-size: 1.2rem;
  cursor: pointer; line-height: 1; padding: 4px;
}
.sel-modal-head button:hover { color: #e2e8f0; }
.sel-modal-search {
  padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.sel-modal-search input {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: #e2e8f0;
  font-size: .875rem; outline: none; font-family: inherit;
}
.sel-modal-search input:focus { border-color: rgba(56,189,248,.4); }
.sel-modal-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.sel-modal-body::-webkit-scrollbar { width: 4px; }
.sel-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.sel-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sel-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #94a3b8; font-size: .85rem;
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.sel-opt:hover { border-color: rgba(56,189,248,.35); color: #e2e8f0; background: rgba(56,189,248,.06); }
.sel-opt.sel  { border-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,.12); font-weight: 600; }
.sel-opt.hidden { display: none; }
.sel-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.07);
}
.sel-modal-foot .sel-count { font-size: .82rem; color: #64748b; }
.sel-modal-foot .btn-confirm {
  padding: 9px 22px; border-radius: 8px; border: none;
  background: #0ea5e9; color: #fff; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .12s;
}
.sel-modal-foot .btn-confirm:hover { background: #38bdf8; }

/* ── Detalhe de esporte (dentro do form) ────────────────────────────── */
.esp-detail {
  margin-top: 8px; padding: 10px 12px;
  background: rgba(15,23,42,.4);
  border: 1px solid var(--auth-border); border-radius: 10px;
}
.esp-detail .esp-title { font-size: .85rem; font-weight: 700; color: #cbd5e1; margin-bottom: 8px; }
.esp-detail[hidden] { display: none; }

/* ── Card de dados fixos (info read-only) ───────────────────────────── */
.info-card {
  background: rgba(15,23,42,.5); border: 1px solid var(--auth-border);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.info-card-header {
  font-size: .68rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.info-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.info-card-field .label { font-size: .72rem; color: #94a3b8; }
.info-card-field .value { font-size: .92rem; color: #f1f5f9; font-weight: 600; }
@media (max-width: 400px) { .info-card-grid { grid-template-columns: 1fr; } }

/* ── Mobile improvements ────────────────────────────────────────────── */
@media (max-width: 520px) {
  .anam-wrap  { padding: 0; }
  .anam-card  { padding: 18px 14px 20px; border-radius: 0; min-height: 100svh; }

  /* Barra de progresso: scroll horizontal, ícones visíveis */
  .anam-progress {
    overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 6px; gap: 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .anam-progress::-webkit-scrollbar { display: none; }
  .anam-progress li {
    min-width: 52px; flex: 0 0 auto;
    font-size: .58rem; padding: 6px 6px;
  }
  /* Esconde texto do label, mantém só ícone/número no mobile pequeno */
  .anam-progress li { white-space: nowrap; overflow: hidden; text-overflow: clip; }

  /* Botões de ação: ocupam toda a largura empilhados */
  .anam-actions {
    gap: 8px; flex-direction: column-reverse;
  }
  .anam-actions button { width: 100%; }
  .anam-card .btn-submit, .btn-ghost {
    padding: 15px 12px; font-size: .92rem;
  }

  /* PAR-Q: empilha pergunta + resposta verticalmente */
  .parq-item  { flex-direction: column; gap: 8px; }
  .parq-yn    { gap: 24px; }

  /* Chips menores em mobile */
  .chip span  { font-size: .75rem; padding: 5px 10px; }
}

@media (max-width: 380px) {
  .anam-progress li { min-width: 40px; font-size: .52rem; padding: 5px 4px; }
  .anam-progress li span { width: 14px; height: 14px; font-size: .58rem; }
}

/* ── Honeypot: invisível para humanos, visível para bots ────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  tabindex: -1;
}

/* ── Hints dinâmicos (validação em tempo real) ──────────────────────── */
.hint-dynamic {
  display: block;
  margin-top: 5px; padding: 5px 10px;
  border-radius: 6px; border-left: 3px solid;
  font-size: .72rem; line-height: 1.4;
  animation: hintin .15s ease;
}
@keyframes hintin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.hint-dynamic.hint-ok     { background: rgba(34,197,94,.08);  border-color: #22c55e; color: #86efac; }
.hint-dynamic.hint-info   { background: rgba(56,189,248,.08); border-color: #38bdf8; color: #7dd3fc; }
.hint-dynamic.hint-warn   { background: rgba(251,191,36,.08); border-color: #fbbf24; color: #fde68a; }
.hint-dynamic.hint-danger { background: rgba(248,113,113,.1); border-color: #f87171; color: #fca5a5; }

/* ── PAR-Q counter (respostas afirmativas em tempo real) ─────────────── */
.parq-counter {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 12px;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25);
  color: #fde68a; font-size: .85rem; line-height: 1.4;
  transition: opacity .2s;
}
.parq-counter.parq-counter-danger {
  background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fca5a5;
}

/* ── Aviso inline de inconsistência ──────────────────────────────────── */
.inline-warn {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border-radius: 8px; margin-top: 8px;
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.22);
  color: #fde68a; font-size: .8rem; line-height: 1.4;
  animation: hintin .15s ease;
}
.inline-warn .iw-icon { flex-shrink: 0; }

/* ── hint-inline tooltip ────────────────────────────────────────────── */
.hint-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(148,163,184,.15);
  border: 1px solid rgba(148,163,184,.3);
  color: #94a3b8; font-size: .68rem; cursor: help;
  margin-left: 4px; vertical-align: middle;
}

/* ── Seção de grupo — Águas Abertas ──────────────────────────────────── */
.agua-section-head {
  margin: 20px 0 0;
  color: #38bdf8;
}
.agua-head-btn {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: 7px; width: 100%;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: inherit; cursor: pointer;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(56,189,248,.18);
}
.agua-head-btn:hover { opacity: .8; }
.agua-head-arrow { margin-left: auto; font-size: .7rem; flex-shrink: 0; }

.agua-group-body[hidden] { display: none; }

/* ── Seções colapsáveis — genéricas (todos os steps) ─────────────── */
.form-section-head {
  margin: 18px 0 0;
  color: #38bdf8;
}
.form-section-btn {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: 7px; width: 100%;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: inherit; cursor: pointer;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(56,189,248,.18);
}
.form-section-btn:hover { opacity: .8; }
.form-section-arrow { margin-left: auto; font-size: .7rem; flex-shrink: 0; }
.form-section-body[hidden] { display: none !important; }

html[data-theme="light"] .agua-section-head { color: #0284c7; }
html[data-theme="light"] .agua-head-btn { border-bottom-color: rgba(2,132,199,.2); }
html[data-theme="light"] .form-section-head { color: #0284c7; }
html[data-theme="light"] .form-section-btn { border-bottom-color: rgba(2,132,199,.2); }

/* ── Opções de radio em bloco vertical (águas abertas) ──────────────── */
.agua-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.agua-opt-row {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; padding: 9px 12px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  transition: border-color .15s, background .15s;
  font-size: .9rem; line-height: 1.4;
  text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--auth-text);
}
/* seletor mais específico para vencer .fg label de auth.css */
.fg label.agua-opt-row {
  text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--auth-text);
}
.agua-opt-row:hover { border-color: rgba(14,165,233,.4); background: rgba(14,165,233,.05); }
.agua-opt-row input[type=radio] { margin-top: 3px; flex-shrink: 0; accent-color: #0ea5e9; }
.agua-opt-row input[type=radio]:checked + span { color: #e0f2fe; font-weight: 600; }
.agua-opt-row:has(input:checked) {
  border-color: rgba(14,165,233,.6);
  background: rgba(14,165,233,.07);
}

@media (max-width: 520px) {
  .agua-opt-row { padding: 8px 10px; font-size: .85rem; }
}

/* ── Fotos posturais (step 7) ───────────────────────────────────────── */
.badge-opt {
  font-size: .68rem; font-weight: 500;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.22);
  color: #94a3b8; border-radius: 4px;
  padding: 1px 7px; vertical-align: middle; margin-left: 6px;
}

.foto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.foto-slot > label {
  display: block;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: #94a3b8; margin-bottom: 6px;
}

.foto-drop {
  position: relative;
  aspect-ratio: 2/3;
  border: 2px dashed rgba(148,163,184,.22);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.02);
  transition: border-color .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.foto-drop:hover  { border-color: rgba(14,165,233,.5); background: rgba(14,165,233,.05); }
.foto-drop.has-photo { border-color: rgba(34,197,94,.5); border-style: solid; }

.foto-inp {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%; z-index: 1;
}

.foto-hint {
  text-align: center; font-size: .78rem; color: #64748b;
  pointer-events: none; line-height: 1.5;
  padding: 8px;
}
.foto-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }

.foto-prev {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.foto-del {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 26px; height: 26px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  border: none; border-radius: 50%; color: #fff;
  font-size: .8rem; cursor: pointer; line-height: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.foto-del:hover { background: rgba(220,38,38,.8); }

@media (max-width: 400px) {
  .foto-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 300px) {
  .foto-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   LIGHT THEME — [data-theme="light"]
   Corrige cores hardcoded dark que ficam invisíveis em fundo claro.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Barra de progresso ── */
html[data-theme="light"] .anam-progress { color: #475569; }
html[data-theme="light"] .anam-progress li {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.1);
  color: #475569;
}
html[data-theme="light"] .anam-progress li span {
  background: rgba(0,0,0,.08);
  color: #475569;
}
html[data-theme="light"] .anam-progress li.active {
  background: linear-gradient(135deg, rgba(2,132,199,.12), rgba(99,102,241,.08));
  border-color: rgba(2,132,199,.3);
  color: #0f172a;
}
html[data-theme="light"] .anam-progress li.active span { background: #0284c7; color: #fff; }
html[data-theme="light"] .anam-progress li.done span   { background: #16a34a; color: #fff; }

/* ── Inputs / selects / textareas ── */
html[data-theme="light"] .anam-card input[type="text"],
html[data-theme="light"] .anam-card input[type="email"],
html[data-theme="light"] .anam-card input[type="tel"],
html[data-theme="light"] .anam-card input[type="date"],
html[data-theme="light"] .anam-card input[type="number"],
html[data-theme="light"] .anam-card input[type="password"],
html[data-theme="light"] .anam-card select,
html[data-theme="light"] .anam-card textarea {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.15);
  color: #0f172a;
}
html[data-theme="light"] .anam-card input:focus,
html[data-theme="light"] .anam-card select:focus,
html[data-theme="light"] .anam-card textarea:focus {
  border-color: #0284c7;
  background: #fff;
}
html[data-theme="light"] .anam-card label.mini { color: #64748b; }

/* ── Chips (esportes / condições) ── */
html[data-theme="light"] .chip span {
  background: rgba(255,255,255,.8);
  border-color: rgba(0,0,0,.12);
  color: #475569;
}
html[data-theme="light"] .chip input:checked + span {
  background: linear-gradient(135deg, rgba(2,132,199,.2), rgba(99,102,241,.15));
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 600;
}
html[data-theme="light"] .chip:hover span { border-color: rgba(2,132,199,.4); }

/* ── Detalhe de esporte ── */
html[data-theme="light"] .esp-detail {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .esp-detail .esp-title { color: #334155; }

/* ── PAR-Q+ ── */
html[data-theme="light"] .parq-item {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .parq-q   { color: #334155; }
html[data-theme="light"] .parq-yn  { color: #475569; }

/* ── Checkbox LGPD ── */
html[data-theme="light"] .cbx { color: #475569; }

/* ── Botões ── */
html[data-theme="light"] .btn-ghost {
  color: #475569;
  border-color: rgba(0,0,0,.15);
}
html[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,.04); }

/* ── Alertas ── */
html[data-theme="light"] .alert-err {
  background: rgba(220,38,38,.07);
  border-color: rgba(220,38,38,.3);
  color: #b91c1c;
}
html[data-theme="light"] .alert-ok {
  background: rgba(22,163,74,.07);
  border-color: rgba(22,163,74,.3);
  color: #15803d;
}

/* ── Card de info (dados fixos) ── */
html[data-theme="light"] .info-card {
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .info-card-header       { color: #64748b; }
html[data-theme="light"] .info-card-field .label { color: #64748b; }
html[data-theme="light"] .info-card-field .value { color: #0f172a; }

/* ── Modal de seleção (esportes / condições) ── */
html[data-theme="light"] .sel-trigger {
  background: rgba(255,255,255,.8);
  border-color: rgba(0,0,0,.15);
}
html[data-theme="light"] .sel-trigger:hover {
  border-color: rgba(2,132,199,.4);
  background: rgba(2,132,199,.04);
}
html[data-theme="light"] .sel-trigger-label { color: #64748b; }
html[data-theme="light"] .sel-modal-overlay { background: rgba(0,0,0,.5); }
html[data-theme="light"] .sel-modal {
  background: #fff;
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
html[data-theme="light"] .sel-modal-head         { border-bottom-color: rgba(0,0,0,.08); }
html[data-theme="light"] .sel-modal-head h3      { color: #0f172a; }
html[data-theme="light"] .sel-modal-head button  { color: #64748b; }
html[data-theme="light"] .sel-modal-head button:hover { color: #0f172a; }
html[data-theme="light"] .sel-modal-search        { border-bottom-color: rgba(0,0,0,.06); }
html[data-theme="light"] .sel-modal-search input {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.12);
  color: #0f172a;
}
html[data-theme="light"] .sel-modal-search input:focus { border-color: rgba(2,132,199,.4); }
html[data-theme="light"] .sel-modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); }
html[data-theme="light"] .sel-opt {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.1);
  color: #475569;
}
html[data-theme="light"] .sel-opt:hover {
  border-color: rgba(2,132,199,.35);
  color: #334155;
  background: rgba(2,132,199,.06);
}
html[data-theme="light"] .sel-opt.sel {
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(2,132,199,.1);
}
html[data-theme="light"] .sel-modal-foot { border-top-color: rgba(0,0,0,.08); }
html[data-theme="light"] .sel-modal-foot .sel-count { color: #64748b; }

/* ── Rádios Águas Abertas ── */
html[data-theme="light"] .agua-opt-row {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .agua-opt-row:hover {
  border-color: rgba(2,132,199,.4);
  background: rgba(2,132,199,.04);
}
html[data-theme="light"] .agua-opt-row input[type=radio]:checked + span { color: #0369a1; }
html[data-theme="light"] .agua-opt-row:has(input:checked) {
  border-color: rgba(2,132,199,.6);
  background: rgba(2,132,199,.06);
}

/* ── Fotos posturais ── */
html[data-theme="light"] .badge-opt {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
  color: #64748b;
}
html[data-theme="light"] .foto-slot > label { color: #64748b; }
html[data-theme="light"] .foto-drop {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.15);
}
html[data-theme="light"] .foto-drop:hover {
  border-color: rgba(2,132,199,.5);
  background: rgba(2,132,199,.04);
}
html[data-theme="light"] .foto-hint { color: #64748b; }
/* Inline color fixes — dark-only cores hardcoded em elementos */
html[data-theme="light"] [style*="color:#cbd5e1"] { color: #334155 !important; }
html[data-theme="light"] [style*="color:#e2e8f0"] { color: #0f172a  !important; }
html[data-theme="light"] [style*="color:#f1f5f9"] { color: #0f172a  !important; }

/* ─────────────────────────────────────────────────────────────────────────
   CARD OPTIONS — nivel_atividade, fumante, álcool
   ─────────────────────────────────────────────────────────────────────── */
.card-opts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.card-opt {
  position: relative; cursor: pointer; flex: 1 1 0; min-width: 76px;
}
.card-opt input[type=radio] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.card-opt-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 8px; border-radius: 10px;
  border: 1.5px solid rgba(148,163,184,.15);
  background: rgba(255,255,255,.02);
  text-align: center;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.card-opt:hover .card-opt-inner {
  border-color: rgba(14,165,233,.4); background: rgba(14,165,233,.04);
}
.card-opt input:checked + .card-opt-inner {
  border-color: rgba(14,165,233,.7); background: rgba(14,165,233,.1);
}
.card-opt-icon  { font-size: 1.35rem; line-height: 1; }
.card-opt-label { font-size: .78rem; font-weight: 700; color: #e2e8f0; }
.card-opt-hint  { font-size: .66rem; color: #64748b; }
.card-opt input:checked + .card-opt-inner .card-opt-label { color: #38bdf8; }
.card-opt input:checked + .card-opt-inner .card-opt-hint  { color: #94a3b8; }

.card-opts-compact .card-opt-inner { padding: 10px 8px; }
.card-opts-compact .card-opt-icon  { font-size: 1.1rem; }
.card-opts-compact .card-opt-label { font-size: .74rem; }
.card-opts-compact .card-opt { min-width: 60px; }

/* ─────────────────────────────────────────────────────────────────────────
   RANGE SLIDERS — horas_sono, consumo_agua_l
   ─────────────────────────────────────────────────────────────────────── */
.slider-field { display: flex; flex-direction: column; gap: 10px; }
.slider-label-row {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.slider-label-row label { margin: 0; }
.slider-val-wrap { display: flex; align-items: baseline; gap: 3px; }
.slider-val      { font-size: 1.75rem; font-weight: 800; color: #38bdf8; line-height: 1; }
.slider-val-unit { font-size: .78rem; color: #64748b; font-weight: 400; }

input[type=range].anam-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 99px;
  background: rgba(148,163,184,.15);
  outline: none; cursor: pointer; display: block;
}
input[type=range].anam-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: #0ea5e9; cursor: pointer;
  border: 3px solid rgba(2,132,199,.4);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
  transition: box-shadow .15s;
}
input[type=range].anam-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(14,165,233,.22);
}
input[type=range].anam-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0ea5e9; cursor: pointer; border: 3px solid rgba(2,132,199,.4);
}

/* ─────────────────────────────────────────────────────────────────────────
   SKIP TOGGLES — textareas opcionais (dores, lesões, cirurgias)
   ─────────────────────────────────────────────────────────────────────── */
.fg-optional { position: relative; }
.skip-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; color: #64748b; cursor: pointer;
  margin-bottom: 6px; user-select: none; font-weight: 400;
  transition: color .12s;
}
.skip-toggle:hover { color: #94a3b8; }
.skip-toggle input { accent-color: #64748b; width: 13px; height: 13px; flex-shrink: 0; }
.fg-optional.is-skipped textarea,
.fg-optional.is-skipped input[type=text],
.fg-optional.is-skipped input[type=number] {
  opacity: .28; pointer-events: none; resize: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   NADA+ TOGGLE CARD — equipe_nada_plus
   ─────────────────────────────────────────────────────────────────────── */
.nada-toggle-label {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(148,163,184,.15);
  background: rgba(255,255,255,.02); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nada-toggle-label:hover {
  border-color: rgba(14,165,233,.35); background: rgba(14,165,233,.04);
}
.nada-toggle-label:has(input:checked) {
  border-color: rgba(14,165,233,.65); background: rgba(14,165,233,.09);
}
.nada-icon  { font-size: 1.8rem; flex-shrink: 0; }
.nada-body strong { display: block; font-size: .88rem; color: #f1f5f9; }
.nada-body small  { display: block; font-size: .72rem; color: #64748b; margin-top: 2px; }
.nada-check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(148,163,184,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: transparent; flex-shrink: 0;
  background: transparent; transition: all .15s;
}
.nada-toggle-label:has(input:checked) .nada-check {
  background: #0ea5e9; border-color: #0ea5e9; color: #fff; font-weight: 800;
}
.nada-toggle-label:has(input:checked) .nada-body strong { color: #38bdf8; }

/* ─────────────────────────────────────────────────────────────────────────
   STEP SUBTITLE
   ─────────────────────────────────────────────────────────────────────── */
.step-sub {
  font-size: .78rem; color: #64748b; font-weight: 400;
  margin: -10px 0 16px; line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────
   STEP 6 SUMMARY
   ─────────────────────────────────────────────────────────────────────── */
.step6-summary {
  background: rgba(15,23,42,.5); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.step6-summary h4 {
  font-size: .72rem; color: #64748b; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px; font-weight: 700;
}
.sum-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sum-item {
  padding: 7px 10px; border-radius: 8px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
}
.sum-item .sum-lbl {
  font-size: .65rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em;
}
.sum-item .sum-val {
  font-size: .82rem; color: #94a3b8; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sum-item.ok .sum-val   { color: #86efac; }
.sum-item.empty .sum-val { color: #475569; font-style: italic; }

/* ── Light theme ── */
html[data-theme="light"] .card-opt-inner {
  background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .card-opt:hover .card-opt-inner {
  border-color: rgba(2,132,199,.4); background: rgba(2,132,199,.04);
}
html[data-theme="light"] .card-opt input:checked + .card-opt-inner {
  border-color: rgba(2,132,199,.7); background: rgba(2,132,199,.1);
}
html[data-theme="light"] .card-opt-label { color: #334155; }
html[data-theme="light"] .card-opt input:checked + .card-opt-inner .card-opt-label { color: #0369a1; }
html[data-theme="light"] input[type=range].anam-range { background: rgba(0,0,0,.1); }
html[data-theme="light"] .slider-val { color: #0284c7; }
html[data-theme="light"] .nada-toggle-label {
  background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.1);
}
html[data-theme="light"] .nada-body strong { color: #0f172a; }
html[data-theme="light"] .step6-summary {
  background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08);
}
html[data-theme="light"] .step6-summary h4 { color: #94a3b8; }
html[data-theme="light"] .sum-item {
  background: rgba(0,0,0,.025); border-color: rgba(0,0,0,.06);
}
html[data-theme="light"] .sum-item.ok .sum-val   { color: #15803d; }
html[data-theme="light"] .sum-item.empty .sum-val { color: #94a3b8; }

