/* ============================================================
   Stand de Vendas — estilos compartilhados (formulário + painel)
   Paleta em variáveis: troque --accent para a cor da sua marca.
   ============================================================ */
:root {
  color-scheme: light;          /* sempre claro, ignora o modo escuro do aparelho */
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f7f4ee;
  --ink: #211d18;
  --muted: #766b5c;
  --line: #e6ded1;
  --line-strong: #d8cdba;
  --accent: #9a7b4f;         /* bronze/champagne sóbrio */
  --accent-ink: #6f5638;
  --accent-soft: #f0e7d8;
  --ok: #2f7d5b;
  --ok-soft: #e3f2ea;
  --danger: #b4472f;
  --shadow: 0 1px 2px rgba(33,29,24,.05), 0 8px 24px rgba(33,29,24,.06);
  --radius: 14px;
  --radius-sm: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Modo escuro desativado — o stand usa sempre o visual claro. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cabeçalho da marca ---------- */
.brand {
  text-align: center;
  padding: 26px 20px 10px;
}
.brand .kicker {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}
.brand h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 6vw, 34px);
  margin: 4px 0 2px;
  letter-spacing: .01em;
}
.brand .sub { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- Formulário ---------- */
form { display: block; }
fieldset {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 20px;
  margin: 0 0 16px;
}
legend {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  padding: 0 8px;
  margin-left: -4px;
  color: var(--ink);
}
legend .n {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.field { margin-top: 14px; }
.field:first-of-type { margin-top: 6px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 78px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23766b5c' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: #a99e8d; }

/* ---------- Chips (multi-seleção touch) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all .12s;
}
.chips label:active { transform: scale(.97); }
.chips input:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.chips input:focus-visible + label { box-shadow: 0 0 0 3px var(--accent-soft); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blocos de comprador (quando há mais de um) */
.comprador { border-top: 1px dashed var(--line-strong); padding-top: 16px; margin-top: 18px; }
.comprador:first-child { border-top: none; padding-top: 0; margin-top: 6px; }
.comprador-titulo {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 10px;
}

/* ---------- Consentimento ---------- */
.consent {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.consent input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.consent label { font-size: 13px; color: var(--muted); font-weight: 400; margin: 0; }

/* ---------- Botões ---------- */
.actions { margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font: inherit; font-weight: 700; font-size: 16px;
  color: #fff; background: var(--accent);
  border: none; border-radius: var(--radius-sm);
  padding: 15px 20px;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }

.btn-ghost {
  background: transparent; color: var(--accent-ink);
  border: 1.5px solid var(--line-strong); width: auto;
  font-size: 14px; padding: 10px 16px; font-weight: 600;
}
.btn-ghost:hover { filter: none; background: var(--surface-2); }

.err {
  color: var(--danger); font-size: 14px; font-weight: 600;
  margin-top: 12px; min-height: 1px;
}
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }

/* ---------- Tela de sucesso ---------- */
.success { text-align: center; padding: 40px 16px; }
.success .check {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--ok-soft);
  display: grid; place-items: center;
}
.success .check svg { width: 40px; height: 40px; stroke: var(--ok); }
.success h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.success p { color: var(--muted); margin: 0 0 24px; }
.hidden { display: none !important; }
