/* Design system Átrio 2.0 — cobre/espresso (não dourado). Tokens canônicos. */
:root {
  --void: #07080C;
  --void-2: #0A0B10;
  --panel: #13151E;
  --panel-2: #1A1D28;
  --line: #242838;
  --line-2: #2E3344;
  --gold: #C4956A;        /* cobre (accent principal) */
  --gold-2: #D4AD86;
  --gold-soft: #8B6550;   /* espresso profundo */
  --gold-glow: rgba(196,149,106,.28);
  --ink: #F4EFEA;
  --ink-dim: #C7C7D0;
  --muted: #8A8A95;
  --ok: #34D399;
  --err: #F87171;
  --radius: 14px;
  --fh: 'Sora', sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
  --fm: 'Space Grotesk', monospace;
}

* { box-sizing: border-box; }
/* o atributo [hidden] deve sempre vencer display:flex/grid das regras abaixo */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fb);
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(196,149,106,.10), transparent 60%),
    radial-gradient(900px 500px at -5% 100%, rgba(196,149,106,.06), transparent 55%),
    var(--void-2);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .ph h1 { font-family: var(--fh); letter-spacing: -.02em; }
.mono { font-family: var(--fm); font-feature-settings: "tnum"; }
.bg-glow { display: none; }  /* gradiente vive no body (padrão 2.0) */

.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,12,.7);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub {
  font-size: 11px; color: var(--muted); border-left: 1px solid var(--line-2);
  padding-left: 12px; letter-spacing: .04em; text-transform: uppercase;
}

.shell {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto; padding: 32px 20px 80px;
}

/* Stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.stepper .dot {
  flex: 1; min-width: 90px;
  font-size: 12px; color: var(--ink-dim);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; gap: 8px; transition: .2s;
}
.stepper .dot b {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: var(--panel-2); color: var(--ink-dim); flex: none;
}
.stepper .dot.active { border-color: var(--gold-soft); color: var(--ink); }
.stepper .dot.active b { background: var(--gold); color: #241a12; }
.stepper .dot.done b { background: var(--ok); color: #fff; }

/* Steps */
.step h2 { margin: 0 0 6px; font-size: 22px; }
.hint { color: var(--ink-dim); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 13px; color: var(--ink-dim); }
input[type="text"], input[type="email"], textarea, select {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; transition: border-color .15s;
}
select { appearance: none; cursor: pointer; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(196,149,106,.12);
}
textarea { resize: vertical; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--err); }

/* Campo com checkbox inline (ex.: administrador) */
.field.check {
  flex-direction: row; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; cursor: pointer;
}
.field.check span { font-size: 14px; color: var(--ink); }

/* Escolha de finalidade */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.choice:hover { border-color: var(--gold-soft); }
.choice:has(input:checked) {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,149,106,.14);
  background: linear-gradient(180deg, rgba(196,149,106,.07), transparent);
}
.choice strong { display: block; }
.choice small { color: var(--ink-dim); font-size: 12px; }

/* Grupos de checkbox (forma de atuação, atividade auxiliar) */
.check-group { margin: 16px 0; }
.cg-title { font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; }
.check-group > div:last-child {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
}
.chk {
  display: flex; gap: 8px; align-items: center; cursor: pointer;
  font-size: 13px; color: var(--ink); padding: 4px 0;
}

/* Sócio card */
.socio-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.socio-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.socio-head h3 { margin: 0; font-size: 16px; color: var(--gold); }
.socio-rm {
  background: none; border: none; color: var(--ink-dim);
  cursor: pointer; font-size: 13px;
}
.socio-rm:hover { color: var(--err); }

/* Upload rows */
.upload-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; margin-bottom: 12px;
}
.upload-row strong { display: block; font-size: 14px; }
.upload-row small { color: var(--ink-dim); font-size: 12px; }
.upload-row.has-file { border-color: var(--gold-soft); }
.btn-file {
  cursor: pointer; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink); padding: 8px 16px; border-radius: 9px; font-size: 14px;
}
.btn-file:hover { border-color: var(--gold-soft); }
.file-name { font-size: 12px; color: var(--gold); display: block; margin-top: 4px; }

/* Radio block */
.radio-block {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin: 16px 0; display: flex; gap: 24px; align-items: center;
}
.radio-block legend { padding: 0 6px; font-size: 13px; color: var(--ink-dim); }
.radio-block label { display: flex; gap: 7px; align-items: center; cursor: pointer; }

/* Resumo */
.resumo {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px; font-size: 14px;
}
.resumo h4 { margin: 14px 0 6px; color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.resumo h4:first-child { margin-top: 0; }
.resumo .r { color: var(--ink-dim); }
.resumo .r b { color: var(--ink); font-weight: 600; }

/* Taxas */
.taxas-card {
  background: linear-gradient(180deg, rgba(196,149,106,.07), rgba(196,149,106,.02));
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px;
}
.taxas-card h4 { margin: 0 0 6px; color: var(--gold); font-size: 15px; }
.taxas-card .obs { color: var(--ink-dim); font-size: 12px; margin-bottom: 10px; }
.taxas-card ul { margin: 0; padding-left: 0; list-style: none; }
.taxas-card li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.taxas-card li:last-child { border-bottom: none; }
.taxas-card .val { color: var(--gold); font-weight: 600; }

/* Definições da Átrio (read-only no form do cliente) */
.defs-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.def { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.def:last-of-type { border-bottom: none; }
.def > span { color: var(--ink-dim); }
.def > b { color: var(--ink); text-align: right; font-weight: 600; }
.def-foot { padding: 12px 0 4px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 4px; }
.def-foot b { color: var(--gold); font-family: var(--fm); }

/* Blocos do form leve */
.block { margin-top: 22px; }
.block-title { font-size: 14px; color: var(--gold); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.block-title small { color: var(--ink-dim); font-weight: normal; }
.info-card {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}
.info-card strong { color: var(--gold); }
.info-card p { margin: 6px 0 0; color: var(--ink-dim); font-size: 13px; line-height: 1.5; }

/* Avisos importantes */
.avisos-card {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--gold-soft); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px;
}
.avisos-card h4 { margin: 0 0 8px; color: var(--gold); font-size: 14px; }
.avisos-card ul { margin: 0; padding-left: 18px; }
.avisos-card li { font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; line-height: 1.5; }

/* Declaração */
.declaracao {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-dim); cursor: pointer;
}
.declaracao input { margin-top: 3px; }

/* Buttons / nav */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.btn-primary {
  margin-left: auto;
  background: linear-gradient(180deg, var(--gold), var(--gold-soft));
  color: #241a12; border: none; font-weight: 700; font-size: 15px;
  padding: 12px 26px; border-radius: 10px; cursor: pointer; transition: .15s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 20px; border-radius: 10px; cursor: pointer; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--gold-soft); }

/* Success */
.success { text-align: center; padding: 60px 20px; }
.success-mark {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%; background: rgba(22,163,74,.15);
  border: 2px solid var(--ok); color: var(--ok);
  font-size: 38px; display: grid; place-items: center;
}
.success .protocolo { margin-top: 18px; font-size: 18px; }
.success .protocolo strong { color: var(--gold); letter-spacing: 1px; }

.footer { position: relative; z-index: 1; text-align: center; color: var(--ink-dim); font-size: 12px; padding: 24px; }

.err-msg { color: var(--err); font-size: 13px; margin-top: 10px; min-height: 18px; }

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .stepper .dot span { display: none; }
}
