/* ============================================================
   PRECIANO — cadastro.css (wizard de cadastro), design "Ink & Teal"
   Reestiliza a estrutura existente do cadastro multi-etapas com os
   tokens do novo design. Mantém os mesmos nomes de classe do markup
   (a lógica JS depende deles).
   ============================================================ */

body.cadastro-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* ── TOPBAR ── */
.cadastro-topbar {
  background: var(--ink-950);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cadastro-topbar .logo {
  display: flex; align-items: center; gap: 9px;
}
.cadastro-topbar .logo--full {
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
}
.cadastro-topbar .logo-full {
  height: 26px;
  width: auto;
  display: block;
}
.cadastro-topbar-link { font-size: .85rem; color: rgba(255,255,255,.6); }
.cadastro-topbar-link a { color: var(--teal-400); font-weight: 600; }
.cadastro-topbar-link a:hover { text-decoration: underline; }

/* ── LAYOUT EM DUAS COLUNAS ── */
.cadastro-page-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}

/* PAINEL ESQUERDO — BENEFÍCIOS */
.cadastro-benefits-panel {
  background: linear-gradient(168deg, var(--ink-950) 0%, var(--ink-900) 55%, #0D2A44 100%);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cadastro-benefits-panel::before {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,172,156,.22), transparent 65%);
  pointer-events: none;
}
.cadastro-benefits-panel h2 {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 760; color: #fff;
  line-height: 1.2; letter-spacing: -.02em;
}
.cadastro-benefits-panel h2 span { color: var(--teal-400); }

.benefit-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; }
.benefit-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.benefit-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.benefit-desc  { font-size: .8rem; color: #8FA9BE; line-height: 1.55; }

.trust-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #7E96AB; }
.trust-item svg { color: var(--teal-400); }

/* PAINEL DIREITO — FORMULÁRIO */
.cadastro-form-panel {
  background: #FDFEFE;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  overflow-y: auto;
}
.cadastro-form-wrap {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
}

.cadastro-login-link {
  text-align: center;
  font-size: .85rem;
  color: var(--t3);
  margin-top: 8px;
}
.cadastro-login-link a { color: var(--teal-700); font-weight: 650; }
.cadastro-login-link a:hover { text-decoration: underline; }

.cadastro-footer {
  text-align: center;
  padding: 16px 24px;
  font-size: .75rem;
  color: var(--t4);
  background: #fff;
  border-top: 1px solid var(--line);
}
.cadastro-footer a { color: var(--t4); }
.cadastro-footer a:hover { color: var(--t2); text-decoration: underline; }

/* ── BARRA DE ETAPAS ── */
.steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.step-item::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.step-item:last-child::after { display: none; }
.step-item.done::after   { background: var(--teal-500); }
.step-item.active::after { background: var(--line); }

.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  position: relative; z-index: 1;
  transition: all .2s;
}
.step-item.pending .step-circle { background: var(--paper); color: var(--t4); border: 2px solid var(--line); }
.step-item.active  .step-circle { background: var(--teal-600); color: #fff; border: 2px solid var(--teal-600); box-shadow: 0 0 0 4px var(--teal-100); }
.step-item.done    .step-circle { background: var(--teal-600); color: #fff; border: 2px solid var(--teal-600); }
.step-item.done    .step-circle::after { content: '✓'; font-size: .75rem; }

.step-label { font-size: .68rem; font-weight: 600; color: var(--t4); white-space: nowrap; }
.step-item.active .step-label { color: var(--teal-700); }
.step-item.done   .step-label { color: var(--teal-600); }

.step-panel { display: none; flex-direction: column; gap: 16px; }
.step-panel.visible { display: flex; }

.step-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 760; color: var(--ink-900); margin-bottom: 4px; letter-spacing: -.02em; }
.step-desc  { font-size: .875rem; color: var(--t3); margin-bottom: 8px; line-height: 1.6; }

.nav-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ── CAMPOS DE FORMULÁRIO ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }

.field-label { font-size: .8rem; font-weight: 600; color: var(--t2); }
.field-required { color: var(--err-tx); }

.field-input,
.field-select {
  padding: 11px 13px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--t1);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus,
.field-select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field-input.is-invalid { border-color: var(--err-tx); }
.field-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--err-bg); }
.field-select.is-invalid { border-color: var(--err-tx); }

.field-error { font-size: .75rem; color: var(--err-tx); margin-top: 2px; display: none; }
.field-error.show { display: block; }

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236E8399' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── SENHA ── */
.password-field { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--t4);
  font-size: .95rem; padding: 0; line-height: 1;
}
.password-toggle:hover { color: var(--t2); }

.password-strength { display: flex; gap: 4px; margin-top: 6px; }
.password-strength-seg {
  height: 3px; flex: 1; border-radius: 999px;
  background: var(--line); transition: background .2s;
}
.password-strength-seg.level-1 { background: var(--err-tx); }
.password-strength-seg.level-2 { background: var(--amber); }
.password-strength-seg.level-3 { background: #E0B90A; }
.password-strength-seg.level-4 { background: var(--wpp); }

.password-strength-label { font-size: .72rem; color: var(--t4); margin-top: 4px; }

/* ── SELEÇÃO EM CARDS (planos) ── */
.option-list { display: flex; flex-direction: column; gap: 10px; }

.option-card {
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.option-card:hover { border-color: var(--teal-200); background: var(--teal-50); }
.option-card.selected { border-color: var(--teal-500); background: var(--teal-50); }

.option-card-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--t4); flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.option-card.selected .option-card-radio { border-color: var(--teal-600); background: var(--teal-600); }
.option-card-radio::after {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; opacity: 0; transition: opacity .15s;
}
.option-card.selected .option-card-radio::after { opacity: 1; }

.option-card-title    { font-size: .9rem; font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.option-card-subtitle { font-size: .78rem; color: var(--t3); margin-bottom: 4px; }
.option-card-desc     { font-size: .75rem; color: var(--t3); line-height: 1.6; }

.option-card-badge {
  margin-left: auto; font-size: .68rem; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; background: var(--teal-600); color: #fff;
  white-space: nowrap; align-self: flex-start; flex-shrink: 0;
}

/* ── CAIXA DE CONSENTIMENTO ── */
.consent-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.consent-item input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0; accent-color: var(--teal-600);
  width: 16px; height: 16px; cursor: pointer;
}
.consent-item label { font-size: .8rem; color: var(--t2); line-height: 1.55; cursor: pointer; }
.consent-item label a { color: var(--teal-700); font-weight: 600; }
.consent-item label a:hover { text-decoration: underline; }

.consent-item.is-pending {
  background-color: var(--err-bg);
  border-color: var(--err-tx);
}

/* Checkbox inline (etapa Empresa — "esse número também é WhatsApp") */
.cad-inline-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--t2); cursor: pointer;
}
.cad-inline-check input { accent-color: var(--teal-600); width: 16px; height: 16px; }

/* ── CAIXA DE AVISO INFORMATIVO ── */
.info-box {
  background: var(--info-bg); border: 1px solid var(--info-bd);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: .78rem; color: var(--info-tx); line-height: 1.6;
}

/* Nota discreta (rodapé de etapa) */
.cad-note {
  font-size: .72rem; color: var(--t4); line-height: 1.6; text-align: center;
}

/* ── RESUMO (lista chave/valor) ── */
.summary-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.summary-row { display: flex; justify-content: space-between; font-size: .83rem; }
.summary-row-label { color: var(--t3); }
.summary-row-value { font-weight: 600; color: var(--t1); }

/* ── BOTÕES ── */
.btn-primary {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%; padding: 13px;
  background: var(--teal-600); color: #fff;
  font-size: .95rem; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(14,148,134,.28);
  transition: background .18s, transform .15s;
}
.btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); }
.btn-primary.is-auto    { width: auto; padding: 10px 28px; }
.btn-primary.is-success { background: var(--teal-600); }
.btn-primary.is-success:hover { background: var(--teal-700); }

.btn-primary.is-disabled,
.btn-primary.is-disabled:hover {
  background: var(--line-2);
  color: var(--t4);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-text {
  background: none; border: none; font-size: .82rem; font-weight: 600;
  color: var(--t3); cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 5px; padding: 0;
}
.btn-text:hover { color: var(--t1); }

/* ── PAINEL DE SUCESSO ── */
.result-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}
.result-panel.visible { display: flex; }
.result-panel-icon  { font-size: 3.5rem; }
.result-panel-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 760; color: var(--ink-900); }
.result-panel-desc  { font-size: .9rem; color: var(--t3); line-height: 1.7; max-width: 340px; }

/* ── RESPONSIVO ── */
@media (max-width: 860px) {
  .cadastro-page-grid { grid-template-columns: 1fr; }
  .cadastro-benefits-panel { display: none; }
  .cadastro-form-panel { padding: 28px 20px; }
}
@media (max-width: 600px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .step-label { display: none; }
}
@media (max-width: 480px) {
  .cadastro-topbar { padding: 0 16px; }
  .cadastro-form-panel { padding: 20px 14px; }
}
