/* Escolha Personalizada de Gráficos — Radiestônica */
:root {
  --terra: #6b4a2b;
  --terra-escuro: #4a3018;
  --dourado: #c9a227;
  --dourado-claro: #e8d48b;
  --creme: #faf5ec;
  --branco: #ffffff;
  --erro: #b3402a;
  --ok: #3e7a3e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Georgia, 'Times New Roman', serif; background: var(--creme); color: var(--terra-escuro); line-height: 1.5; }
header.topo { background: linear-gradient(135deg, var(--terra-escuro), var(--terra)); color: var(--dourado-claro); text-align: center; padding: 22px 16px 14px; }
header.topo h1 { font-size: 1.35rem; letter-spacing: 0.5px; }
header.topo p.sub { color: var(--branco); font-size: 0.95rem; margin-top: 6px; }

/* barra fixa (contador + botão) */
.barra-fixa { position: sticky; top: 0; z-index: 50; background: var(--dourado); color: var(--terra-escuro); text-align: center; padding: 8px 10px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.28); }
.barra-fixa .contador-fixo { font-weight: bold; font-size: 1.05rem; }
.barra-fixa.completo { background: var(--ok); color: var(--branco); }
#btnEnviar { margin-top: 7px; background: var(--terra); color: var(--dourado-claro); font-size: 1.02rem; font-weight: bold; font-family: inherit; border: none; border-radius: 9px; padding: 10px 34px; cursor: pointer; }
#btnEnviar:disabled { background: rgba(74,48,24,0.35); color: rgba(255,255,255,0.75); cursor: not-allowed; }
#btnEnviar:not(:disabled):hover { background: var(--terra-escuro); }
.barra-fixa.completo #btnEnviar { background: var(--terra-escuro); color: var(--dourado-claro); }
.msg-validacao { margin-top: 5px; font-size: 0.85rem; font-weight: bold; min-height: 1em; color: var(--terra-escuro); }
.barra-fixa.completo .msg-validacao { color: #fff; }

main { max-width: 1000px; margin: 0 auto; padding: 16px; }

form.dados { background: var(--branco); border: 1px solid var(--dourado-claro); border-radius: 12px; padding: 18px 16px; margin-bottom: 18px; }
form.dados h2 { font-size: 1.1rem; color: var(--terra); margin-bottom: 12px; }
.campo { margin-bottom: 14px; border-radius: 8px; }
.campo label { display: block; font-weight: bold; margin-bottom: 4px; font-size: 0.95rem; }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="date"], .campo input[type="email"] { width: 100%; padding: 10px; border: 1px solid #c9b891; border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--creme); }
.campo input:focus { outline: 2px solid var(--dourado); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: flex; align-items: center; gap: 6px; font-weight: normal; background: var(--creme); border: 1px solid #c9b891; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 0.95rem; }
.radios input { accent-color: var(--terra); }

/* destaque de campos faltando */
.campo-erro label { color: var(--erro); }
.campo-erro input { border-color: var(--erro) !important; background: #fbe9e6 !important; }
.campo-erro .radios { outline: 2px solid var(--erro); outline-offset: 3px; border-radius: 8px; }

.whats-info { font-size: 0.9rem; color: var(--terra); margin-top: 4px; }
.whats-info a { color: var(--terra); font-weight: bold; }

.aviso { background: #fdf3d7; border: 2px solid var(--dourado); border-radius: 12px; padding: 16px; margin-bottom: 18px; font-size: 1.05rem; font-weight: bold; color: var(--terra-escuro); text-align: center; }
.aviso p { margin: 0; }
.aviso p + p { margin-top: 10px; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.item { background: var(--branco); border: 2px solid #e0d3b8; border-radius: 10px; padding: 8px; text-align: center; cursor: pointer; user-select: none; transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s; position: relative; }
.item img { width: 100%; height: 110px; object-fit: contain; display: block; margin-bottom: 6px; background: var(--branco); }
.item .nome { font-size: 0.82rem; line-height: 1.25; }
.item:hover { border-color: var(--dourado); }
.item.selecionado { border-color: var(--dourado); box-shadow: 0 0 0 3px var(--dourado-claro); background: #fdf8e8; }
.item.selecionado::after { content: "\2714"; position: absolute; top: 6px; right: 8px; background: var(--dourado); color: var(--terra-escuro); font-weight: bold; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.item.desabilitado { opacity: 0.35; pointer-events: none; }

/* tela de agradecimento */
.agradecimento { max-width: 640px; margin: 40px auto; padding: 32px 24px; background: var(--branco); border: 2px solid var(--ok); border-radius: 16px; text-align: center; }
.agradecimento h2 { color: var(--ok); font-size: 1.5rem; margin-bottom: 16px; line-height: 1.3; }
.agradecimento p { font-size: 1.1rem; margin-bottom: 12px; color: var(--terra-escuro); }
.agradecimento a { color: var(--terra); font-weight: bold; }
.divisor-youtube { border: none; border-top: 1px solid var(--dourado-claro); margin: 22px 0 14px; }
.youtube-linha { font-size: 0.9rem !important; color: var(--terra) !important; opacity: 0.85; }

footer { text-align: center; font-size: 0.85rem; color: var(--terra); padding: 16px; }

@media (max-width: 480px) {
  .grade { grid-template-columns: repeat(2, 1fr); }
  header.topo h1 { font-size: 1.12rem; }
}
