/* ===== VARIÁVEIS ===== */
:root {
  --blue: #2f63e6;
  --blue-dark: #1d4ed8;
  --red: #c91c1c;
  --green: #0b6e4f;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e9f2;
  --card-bg: #ffffff;
  --bg-image: url("/assets/bg-consulta.jpg?v=forcefix1");
}

/* ===== RESET E BASE ===== */
* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #f4f7fc;
  background-image:
    linear-gradient(rgba(214, 230, 247, 0.65), rgba(214, 230, 247, 0.75)),
    var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(244, 249, 255, 0.08);
  backdrop-filter: blur(4px);
}

.screen {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.screen.active { display: block; }

.page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-slot {
  width: 128px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}
.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-text {
  padding-left: 14px;
  border-left: 1px solid #e5e9f2;
}
.brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a2a4a;
}
.brand-text small {
  display: block;
  font-size: 12px;
  color: #5a6a8a;
  font-weight: 500;
}

.user-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-left: auto;
  margin-right: 240px;
  padding-top: 3px;
}
.user-header.hidden { display: none; }
.bell { 
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5a6a8a;
  background: #f3f6fb;
  border: 1px solid #dbe4f2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transform: translateY(-1px);
}
.bell svg {
  width: 16px;
  height: 16px;
}
.user-meta {
  min-width: 170px;
  text-align: right;
}
.user-meta strong { 
  display: block; 
  font-size: 13px; 
  color: #1a2a4a;
  font-weight: 600;
  line-height: 1.05;
}
.user-meta small { 
  color: #5a6a8a; 
  font-size: 12px;
  line-height: 1.05;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  transform: translateY(-1px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  height: 42px;
  background: #f1f5fa;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4a5a7a;
  font-size: 13px;
  margin-bottom: 28px;
  border-radius: 8px;
  font-weight: 500;
}

/* ===== CARD PRINCIPAL ===== */
.card {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.consult-card,
.loading-card {
  max-width: 460px;
  margin: 32px auto 24px;
}

.card-head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid #f0f3f8;
}
.card-head h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}
.card-head p {
  margin: 0;
  color: #374151;
  font-size: 14px;
}

/* ===== FORMULÁRIO ===== */
.form { padding: 24px; }
.form label:not(.checkline) {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.form input[type="text"] {
  width: 100%;
  border: 1px solid #d1d9e8;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fafcff;
}
.form input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 230, 0.12);
  background: #fff;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5a6a8a;
  font-size: 13px;
  line-height: 1.45;
  margin: 18px 0 22px;
}
.checkline input { margin-top: 3px; }

.form button {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 10px;
  height: 50px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(47, 99, 230, 0.25);
}
.form button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.error {
  color: #c53030;
  font-size: 13px;
  margin: 12px 0 0;
}
.error.hidden { display: none; }

.terms {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

/* ===== ETAPAS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 24px;
}
.step {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 11px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.step b {
  display: block;
  color: #1e40af;
  font-size: 12.5px;
  margin-bottom: 2px;
  font-weight: 400 !important;
}
.step span {
  display: block;
  color: #4b5563;
  font-size: 11.5px;
}
.step.active {
  border-color: #2f63e6;
  background: #f0f5ff;
  box-shadow: 0 0 0 3px rgba(47, 99, 230, 0.1);
}
.step.muted { 
  opacity: 0.55; 
  background: #f8fafc;
}

/* ===== BARRA DE SEGURANÇA ===== */
.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 32px;
  background: #eaf2ff;
  color: #2f4a8a;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 13px;
  border: 1px solid #c8d9f0;
}
.security-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #2f63e6;
}

/* ===== TELA DE RESULTADO ===== */
.result-screen {
  background: #f4f7fc;
  padding: 24px 0 60px;
}
.result-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
.result-title p {
  color: #1e40af;
  font-weight: 700;
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.result-title h1 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

/* ===== CARD DE INFRAÇÃO (Tela de Detalhes) ===== */
.infraction-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.infraction-header {
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e9f2;
}

.infraction-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 16px;
  padding: 8px 24px 4px;
}
.infraction-row-duo {
  grid-template-columns: 1fr 1fr;
}
.infraction-row-trio {
  grid-template-columns: 1fr 1fr 1fr;
}
.infraction-row > div {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 6px;
  padding: 8px 12px;
}
.infraction-row .label {
  font-size: 8px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: block;
}
.infraction-row .value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 400;
}

.infraction-values {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e5e9f2;
}
.infraction-values h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.value-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  color: #374151;
}
.value-row.total {
  border-top: 1px solid #e5e9f2;
  padding-top: 11px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: #111827;
}

.infraction-total-pix {
  background: #e0edff;
  padding: 14px 22px;
  text-align: center;
  border-bottom: 1px solid #c8d9f0;
}
.infraction-total-pix span {
  display: block;
  font-size: 11px;
  color: #1e40af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.infraction-total-pix strong {
  display: block;
  font-size: 26px;
  color: #15803d;
  margin-top: 1px;
  font-weight: 700;
}

.infraction-warning {
  padding: 14px 22px;
  background: #fefce8;
  border-bottom: 1px solid #fde047;
}
.infraction-warning b {
  display: block;
  color: #854d0e;
  margin-bottom: 6px;
  font-size: 13px;
}
.infraction-warning ul {
  margin: 0;
  padding-left: 18px;
  color: #854d0e;
  font-size: 13px;
  line-height: 1.4;
}

.infraction-cta {
  display: block;
  width: calc(100% - 44px);
  margin: 14px auto 18px;
  border: 0;
  border-radius: 9px;
  background: #2f63e6;
  color: #fff;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(47, 99, 230, 0.25);
}
.infraction-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.notice {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  color: #334155;
}
.notice b { font-size: 12.5px; }
.notice span { font-size: 12px; }

/* ===== LOADING ===== */
.loading-body {
  padding: 38px 32px 32px;
  text-align: center;
}
.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid #e0e9ff;
  border-top-color: #2f63e6;
  margin: 0 auto 24px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-body h2 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #1a2a4a;
}
.loading-body p {
  color: #5a6a8a;
  margin: 0;
  font-size: 14px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 27px 0 16px;
}
.secure-dot {
  color: #5b6576;
  font-size: 12px;
}
.secure-dot::first-letter { color: var(--blue); }

/* ===== TELA DE LOADING DE PAGAMENTO ===== */
.payment-loading-screen {
  background: #f4f7fc;
  padding: 40px 0 60px;
}
.process-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}
.big-loader {
  width: 64px;
  height: 64px;
  margin: 0 auto 34px;
  border-radius: 50%;
  background: conic-gradient(#5f42f5 0 76deg, rgba(95, 66, 245, 0.2) 76deg 360deg);
  display: grid;
  place-items: center;
  animation: spin 1s linear infinite;
}
.big-loader span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef4ff;
  display: block;
  position: relative;
}
.big-loader span::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #5f42f5;
}
.process-wrap h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 10px;
}
.process-wrap > p {
  color: #7b8494;
  font-size: 18px;
  margin: 0 0 8px;
}
.process-wrap > small {
  color: #9aa3b3;
  font-size: 16px;
  display: block;
  margin-bottom: 28px;
}

.progress-line {
  width: min(420px, 80vw);
  height: 6px;
  margin: 0 auto 32px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  overflow: hidden;
}
.progress-line span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #6a33f5, #26c6da);
  border-radius: inherit;
  animation: progressMove 1.25s ease-in-out infinite;
}
@keyframes progressMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.process-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}
.process-icon.blue { background: #deebff; color: #2f63e6; }
.process-icon.purple { background: #f2e3ff; color: #9b4df0; }
.process-icon.green { background: #d9f8e6; color: #14a45f; }
.process-card h2 { margin: 0 0 12px; font-size: 18px; }
.process-card p { margin: 0; color: var(--muted); font-size: 15px; }

.process-safe {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  color: #6b7484;
}
.process-safe b {
  display: block;
  color: #2f3745;
  font-size: 18px;
  margin-bottom: 12px;
}

/* ===== PAYWALL ===== */
.paywall-screen {
  background: #eef2f7;
  padding-bottom: 60px;
}
.payment-timer-bar {
  height: 52px;
  background: #c91c1c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(201, 28, 28, 0.2);
}

.checkout-summary {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
  margin-bottom: 14px;
  box-shadow: none;
}
.summary-item {
  display: grid;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  align-content: start;
}
.summary-item span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.summary-item b {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.35;
}
.summary-item strong {
  font-size: 17px;
  color: #14803d;
  font-weight: 700;
  letter-spacing: 0;
}
.summary-item .status-pill {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.summary-item:nth-child(3) b {
  color: #2563eb;
}
.summary-due-date {
  color: #dc2626;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: 0 0 8px;
}
.status-pill.pending {
  color: #ea580c;
}
.status-pill.pending .status-dot {
  animation: blinkPending 1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45);
}
.status-pill.paid { color: #0b6e4f; }
.status-pill.expired { color: #c91c1c; }
@keyframes blinkPending {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0);
  }
}

.pix-card {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 14px 14px 10px;
  box-shadow: none;
  text-align: center;
}
.pix-card h1 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #1f2937;
}
.pix-card > p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 13.5px;
}

.qr-frame {
  width: 184px;
  height: 184px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid #d7deea;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-frame .hidden { display: none; }
#qrPlaceholder {
  font-size: 13px;
  color: #6b7a94;
  text-align: center;
  font-weight: 500;
}

.checkout-link { margin: 8px auto 18px; }
.checkout-link a {
  display: inline-flex;
  background: #edf3ff;
  color: #2f5bd1;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.checkout-link.hidden { display: none; }

.pix-card label {
  display: block;
  text-align: left;
  font-size: 13px;
  color: #374151;
  margin-bottom: 7px;
}
.pix-copy-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 0;
  margin-bottom: 12px;
}
.pix-copy-row input {
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  height: 40px;
  padding: 0 12px;
  color: #4b5563;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: #f9fafb;
}
.pix-copy-row button {
  border: 1px solid #d1d5db;
  border-radius: 0 6px 6px 0;
  background: #f9fafb;
  cursor: pointer;
  color: #6b7280;
}

.howto {
  text-align: left;
  border: 1px solid #f5d36c;
  background: #fff7db;
  border-radius: 6px;
  color: #d97706;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.howto b { 
  display: block; 
  margin-bottom: 6px;
  font-size: 13px;
}
.howto ol { 
  margin: 0; 
  padding-left: 20px; 
  font-size: 13px; 
  line-height: 1.45; 
}

.pay-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.pay-actions button {
  border: 0;
  border-radius: 6px;
  height: 34px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.pay-actions .primary {
  background: #3464dd;
  color: #fff;
}
.pay-actions .primary:hover {
  background: #2b57c8;
  transform: translateY(-1px);
}
.pay-actions .secondary {
  background: #f3f4f6;
  color: #4b5563;
}
.pay-actions .secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.payment-feedback {
  margin: 8px 0 0;
}
.payment-feedback p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}
.payment-last-check {
  margin-top: 2px !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
  }
  .brand-text strong { font-size: 13px; }
  .brand-text small { font-size: 11px; }
  .brand small, .bell { display: none; }
  .logo-slot { width: 104px; }
  .user-header { margin-right: 0; }

  .consult-card,
  .loading-card {
    max-width: 100%;
    margin: 24px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
  }

  .security-note {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .infraction-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
  }
  .infraction-row-duo,
  .infraction-row-trio {
    grid-template-columns: 1fr 1fr;
  }
  .infraction-row .label { font-size: 11px; }
  .infraction-row .value b { font-size: 13px; }

  .process-cards {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pay-actions {
    grid-template-columns: 1fr;
  }
  .qr-frame {
    width: 180px;
    height: 180px;
  }

  .payment-timer-bar {
    font-size: 14px;
    padding: 0 16px;
    text-align: center;
  }

  .result-wrap {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .topbar { height: 54px; }
  .brand-text strong { font-size: 12px; }
  .brand-text small { font-size: 10px; }
  .logo-slot { width: 80px; }
  .user-header { margin-right: 0; }
  .card-head h1 { font-size: 18px; }
  .form button { font-size: 14px; }
  .qr-frame { width: 160px; height: 160px; }
}

/* ===== NOVOS ESTILOS DO HEAVY (para o card de Confirmação de Dados do Condutor) ===== */
.infraction-details {
  padding: 16px 22px;
  border-bottom: 1px solid #e5e9f2;
  background: #fff;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #854d0e;
  font-size: 14px;
}

.warning-icon {
  font-size: 16px;
}

.infraction-text {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.4;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.detail-item .label {
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.detail-item .value {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.status-vencida {
  color: #c53030;
  font-weight: 500;
}

.value-regularizacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e0edff;
  padding: 14px 22px;
  border-bottom: 1px solid #c8d9f0;
}

.value-regularizacao span {
  font-size: 11px;
  color: #1e40af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.value-regularizacao strong {
  font-size: 26px;
  color: #15803d;
  font-weight: 700;
}

/* Melhorias para ficar mais próximo da referência */
.infraction-card {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e9f2;
}

.infraction-header {
  padding: 18px 24px 12px;
  background: #f8fafc;
}

.infraction-row {
  gap: 14px 20px;
  padding: 8px 0;
}
.infraction-row-duo {
  grid-template-columns: 1fr 1fr;
}
.infraction-row-trio {
  grid-template-columns: 1fr 1fr 1fr;
}

.infraction-row .label {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: block;
}

.infraction-row .value {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
  display: block;
  margin-top: 1px;
}

.infraction-details {
  background: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e9f2;
}

.details-header {
  font-size: 13.5px;
  color: #854d0e;
}

.infraction-text {
  font-size: 13px;
  color: #374151;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 8px;
}

.detail-item {
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e5e9f2;
}

.detail-item .label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.detail-item .value {
  font-size: 15px;
  color: #0f172a;
  font-weight: 500;
  display: block;
  line-height: 1.25;
}

.infraction-warning {
  background: #fefce8;
  border-color: #fde047;
  padding: 16px 24px;
}

.infraction-warning b {
  font-size: 13px;
  color: #854d0e;
}

.infraction-warning ul {
  font-size: 13px;
  color: #854d0e;
}

.infraction-cta {
  height: 50px;
  font-size: 15.5px;
  border-radius: 8px;
  margin: 16px 24px 20px;
  width: calc(100% - 48px);
}

.notice {
  margin: 0 24px 20px;
  font-size: 12px;
}

/* ===== HOME REFERENCE OVERRIDES ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9fafb;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.35)),
    var(--bg-image);
}

.page-container.consult-shell {
  max-width: 100%;
  padding: 0 12px 32px;
}

.topbar {
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  padding: 0 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
}

.brand {
  gap: 10px;
}

.logo-slot {
  width: 118px;
  height: 24px;
}

.brand-text {
  padding-left: 12px;
  border-left: 1px solid #d1d5db;
}

.brand-text strong {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  line-height: 1.15;
}

.brand-text small {
  font-size: 10px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.15;
}

.consult-shell .breadcrumb {
  min-height: 38px;
  justify-content: flex-start;
  background: rgba(241, 245, 249, 0.95);
  color: #374151;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  padding: 9px 12px;
  font-weight: 400;
  font-size: 12px;
  max-width: 768px;
  margin: 0 auto 24px;
}

.consult-shell .breadcrumb span {
  margin-left: 4px;
  color: #111827;
  font-weight: 500;
}

.consult-card {
  max-width: 452px;
  margin: 0 auto 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.consult-card .card-head {
  padding: 18px 20px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

.consult-card .card-head h1 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.consult-card .card-head p {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.consult-card .form {
  padding: 18px 20px 20px;
}

.consult-card .form label {
  color: #374151;
  font-size: 13px;
  margin-bottom: 6px;
}

.consult-card .form input[type="text"] {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 11px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 15px;
}

.consult-card .form input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.consult-card .form input[type="text"].invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

.field-errors {
  margin-top: 6px;
  min-height: 20px;
}

.field-errors .error,
.consult-card #formError.error {
  margin: 0;
  color: #dc2626;
  font-size: 12px;
}

#redirecionamento {
  background: #1d4ed8;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
  margin-top: 4px;
  height: 46px;
  font-size: 15px;
}

#redirecionamento:hover {
  background: #1e40af;
}

#redirecionamento:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#redirecionamento:disabled:hover {
  background: #1d4ed8;
}

.consult-card .terms {
  padding: 12px 20px;
  color: #6b7280;
  line-height: 1.5;
  font-size: 11px;
  background: #fafafa;
}

#screenConsult .steps {
  max-width: 452px;
  margin: 0 auto 14px;
  gap: 10px;
}

#screenConsult .step {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 10px;
  box-shadow: none;
}

#screenConsult .step b {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

#screenConsult .step span {
  font-size: 11px;
  color: #7b8798;
}

.steps.compact .step b,
#screenResult .step b,
#screenLoading .step b,
#screenPaywall .step b {
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}

.steps.compact .step span,
#screenResult .step span,
#screenLoading .step span,
#screenPaywall .step span {
  color: #7b8798;
  font-weight: 400;
}

#screenConsult .step.active {
  border-color: #dbeafe;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(219, 234, 254, 1);
}

.security-note {
  align-items: flex-start;
  max-width: 452px;
  margin: 0 auto 32px;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #dbeafe;
}

.security-note svg {
  color: #1d4ed8;
  margin-top: 1px;
}

.security-note span {
  font-size: 11px;
  line-height: 1.45;
}
