/* C:\Projetos\crlvbrasil\public\css\style.css
====== NOVO STYLE CSS (TEMA APP MODERNO) ====== */

:root {
  --bg: #f4f6f8; /* Fundo cinza bem claro para dar contraste aos cards brancos */
  --panel: #ffffff;
  --text: #1a1e29;
  --muted: #6b7280;
  
  /* Cores exatas da sua referência */
  --brand-dark: #001f54; /* Azul Marinho (Topo) */
  --brand: #0056e0;      /* Azul Royal Vibrante (Botões) */
  --brand-hover: #0046b8;
  
  --ok: #10b981;
  --err: #ef4444;
  --warn: #f59e0b;
  --border: #e5e7eb;
  
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 86, 224, 0.15); /* Sombra azulada sutil no botão primário */

  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; font-weight: 500;}
a:hover { color: var(--brand-hover); }

.container { max-width: 600px; margin: 0 auto; padding: 20px; width: 100%; }
main.container { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Tipografia */
.h1, .h2, .h3 { margin: 0 0 12px; font-weight: 700; color: var(--brand-dark); }
.h1 { font-size: 28px; line-height: 1.2;}
.h2 { font-size: 22px; }
.h3 { font-size: 18px; }
.lead { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.5; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-body { padding: 24px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: 12px; border: none;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: all 0.2s ease; width: 100%;
}
.btn-primary {
  background: #0056e0; color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background: #0056e0; color: #3af800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.btn-secondary { background: #f3f4f6; color: var(--text); }
.btn-secondary:hover { background: #e5e7eb; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f3f4f6; color: var(--text); }

/* Formulários */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.label { font-weight: 600; font-size: 14px; color: var(--text); }
.input, .select {
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: #fafafa; color: var(--text); font-size: 16px; outline: none;
  transition: border-color 0.2s;
}
.input:focus, .select:focus { border-color: var(--brand); background: #fff; }

/* Barra de Etapas (Stepper) */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 10px 0 30px;
  padding: 0 10px;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
  width: 33%;
}
.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step-label { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Etapa Ativa */
.step.active .step-number {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.step.active .step-label { color: var(--brand); }

/* Elementos Utilitários */
.alert { padding: 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 10px;}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.visually-hidden { position: absolute; left: -9999px; }