/* ============================================================
   Padrão Digital de Governo — Design System gov.br (DSGOV)
   Portal do Empreendedor — Regularização CNPJ MEI (SIMEI / PGMEI)
   Cores oficiais:
   - Azul Warm Vivid 70 (Primary): #1351B4
   - Azul Warm Dark 90 (Footer/Dark): #071D41
   - Verde Cool Vivid 50 (Success): #168821
   - Amarelo Vivid 20 (Warning): #FFCD07
   - Vermelho Vivid 50 (Danger): #E52207
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rawline:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gov-blue: #1351B4;
  --gov-blue-hover: #0C326F;
  --gov-blue-dark: #071D41;
  --gov-blue-light: #D4E5FF;
  --gov-blue-50: #EDF5FF;
  --gov-green: #168821;
  --gov-green-hover: #0f6818;
  --gov-green-light: #E3F5E1;
  --gov-yellow: #FFCD07;
  --gov-yellow-light: #FFF5C2;
  --gov-red: #E52207;
  --gov-red-dark: #B51B04;
  --gov-red-light: #FDE8E5;

  --primary: #1351B4;
  --primary-light: #2670E8;
  --primary-dark: #071D41;
  --accent: #1351B4;
  --accent-light: #2670E8;
  --accent-dark: #0C326F;
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --line: #DCDCDC;
  --text: #333333;
  --text-dark: #071D41;
  --muted: #555555;
  --green: #168821;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Rawline', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   CABEÇALHO OFICIAL GOV.BR (br-header)
   ============================================================ */
.br-header {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.br-header-top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.br-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.govbr-svg-logo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.br-header-divider {
  width: 1px;
  height: 22px;
  background: #cccccc;
}

.br-header-ministry {
  font-size: 12px;
  color: #555555;
  font-weight: 500;
  line-height: 1.25;
  max-width: 320px;
}

.br-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.br-header-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
}

.br-header-links a {
  color: var(--gov-blue);
  text-decoration: none;
  font-weight: 500;
}

.br-header-links a:hover {
  text-decoration: underline;
}

.br-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gov-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}

.br-sign-in svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.br-header-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.br-header-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.br-menu-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--gov-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.br-menu-trigger:hover {
  background: var(--gov-blue-50);
}

.br-menu-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.br-portal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gov-blue-dark);
  margin: 0;
  line-height: 1.2;
}

.br-portal-subtitle {
  font-size: 12px;
  color: #666666;
  display: block;
  font-weight: 400;
}

.br-header-badge {
  font-size: 12px;
  color: var(--gov-blue);
  background: var(--gov-blue-50);
  border: 1px solid #b8d4fe;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Compatibilidade com admin.php */
.header {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.gov-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.gov-logo { font-weight: 900; font-size: 26px; letter-spacing: -1.2px; color: #1351B4; }
.gov-logo .g-b { color: #1351B4; }
.gov-logo .g-y { color: #F7B731; }
.gov-logo .g-g { color: #168821; }
.gov-logo .g-br { color: #1351B4; font-weight: 800; font-size: 22px; }
.gov-divider { width: 1px; height: 24px; background: #cccccc; }
.gov-service { font-size: 14px; color: #071D41; font-weight: 500; }
.gov-service strong { font-weight: 700; color: #1351B4; }
.header .tag {
  margin-left: auto;
  font-size: 12px;
  color: #1351B4;
  background: #EDF5FF;
  border: 1px solid #B8D4FE;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ============================================================
   BREADCRUMB GOV.BR (br-breadcrumb)
   ============================================================ */
.br-breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 6px;
  font-size: 12.5px;
  color: #555555;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.br-breadcrumb a {
  color: var(--gov-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.br-breadcrumb a:hover {
  text-decoration: underline;
}

.br-breadcrumb svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.br-breadcrumb .crumb-sep {
  color: #888888;
  font-size: 11px;
}

.br-breadcrumb .crumb-current {
  color: #333333;
  font-weight: 600;
}

/* ============================================================
   FAIXA DE TÍTULO DO SERVIÇO GOV.BR
   ============================================================ */
.gov-service-banner {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 20px 18px;
  margin-bottom: 18px;
}

.gov-service-banner .wrap {
  max-width: 560px;
  margin: 0 auto;
}

.gov-service-banner h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gov-blue-dark);
  line-height: 1.22;
}

.gov-service-banner p {
  margin: 0;
  color: #555555;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ============================================================
   CONTAINER E CARDS (br-card)
   ============================================================ */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.card {
  background: var(--card);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gov-blue-dark);
}

.card .sub {
  margin: 0 0 20px;
  color: #555555;
  font-size: 14px;
}

/* ============================================================
   FORMULÁRIOS E BOTÕES PADRÃO GOV.BR (br-input / br-button)
   ============================================================ */
label.field {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.field-helper {
  display: block;
  font-size: 12px;
  color: #666666;
  margin-bottom: 8px;
}

input[type=text], input[type=tel], input[type=password] {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  color: #111111;
  border: 1px solid #888888;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #ffffff;
}

input:hover {
  border-color: #333333;
}

input:focus {
  border-color: var(--gov-blue);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(255, 205, 7, 0.45);
}

/* Botão Pílula Oficial gov.br */
.btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--gov-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--gov-blue-hover);
}

.btn-action-green {
  background: var(--gov-green);
  font-weight: 700;
}

.btn-action-green:hover {
  background: var(--gov-green-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-ghost {
  background: #ffffff;
  color: var(--gov-blue);
  border: 1px solid var(--gov-blue);
}

.btn-ghost:hover {
  background: var(--gov-blue-50);
}

/* ============================================================
   MENSAGENS E ALERTAS GOV.BR (br-message)
   ============================================================ */
.br-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 4px;
  margin: 16px 0;
  text-align: left;
}

.br-message.warning {
  background: var(--gov-yellow-light);
  border-left: 4px solid #F59E0B;
  color: #451a03;
}

.br-message.danger {
  background: var(--gov-red-light);
  border-left: 4px solid var(--gov-red);
  color: #5c0f06;
}

.br-message.info {
  background: var(--gov-blue-light);
  border-left: 4px solid var(--gov-blue);
  color: #071D41;
}

.br-message.success {
  background: var(--gov-green-light);
  border-left: 4px solid var(--gov-green);
  color: #0b4611;
}

.br-message-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.br-message.warning .br-message-icon {
  background: #F59E0B;
  color: #ffffff;
}

.br-message.danger .br-message-icon {
  background: var(--gov-red);
  color: #ffffff;
}

.br-message.info .br-message-icon {
  background: var(--gov-blue);
  color: #ffffff;
}

.br-message.success .br-message-icon {
  background: var(--gov-green);
  color: #ffffff;
}

.br-message-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.br-message-body {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
}

.br-message-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  display: block;
}

/* Compatibilidade com .alert-box */
.alert-box {
  background: #FFF8E6;
  border: 1px solid #F5D076;
  border-left: 5px solid #E52207;
  border-radius: 6px;
  padding: 20px;
  margin: 18px 0;
  text-align: left;
}

.alert-box.success {
  background: var(--gov-green-light);
  border-color: #86efac;
  border-left-color: var(--gov-green);
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  color: #B51B04;
  margin-bottom: 8px;
}

.alert-box.success .alert-title {
  color: #0f5f17;
}

.alert-title svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.alert-text {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.55;
  margin: 0;
}

.alert-text.has-action {
  margin-bottom: 16px;
}

.mei-consequences {
  margin: 12px 0 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  color: #333333;
}

.mei-consequences ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.mei-consequences li {
  margin-bottom: 5px;
}

/* ============================================================
   BADGES E STEPPER GOV.BR (br-step)
   ============================================================ */
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge.pend {
  background: var(--gov-red-light);
  color: var(--gov-red-dark);
  border: 1px solid #f8b4ac;
}

.badge.pago {
  background: var(--gov-green-light);
  color: var(--gov-green);
  border: 1px solid #a6f4c5;
}

.tracking-result-top-space {
  height: 8px;
}

.tracking-result-title {
  margin: 0;
  color: var(--gov-blue-dark);
  font-size: 17px;
  font-weight: 700;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 18px 0 22px;
  position: relative;
  padding: 16px 10px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: #d0d0d0;
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 30px;
  left: 50px;
  width: 46%;
  height: 2px;
  background: var(--gov-blue);
  z-index: 2;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
  flex: 1;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #999999;
}

.step.completed .step-icon {
  background: var(--gov-blue);
  border-color: var(--gov-blue);
  color: #ffffff;
}

.step.active .step-icon {
  background: var(--gov-red);
  border-color: var(--gov-red);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(229, 34, 7, 0.15);
}

.step-label {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #555555;
}

.step.completed .step-label {
  color: var(--gov-blue-dark);
}

.step.active .step-label {
  color: var(--gov-red-dark);
}

.step-date {
  font-size: 11px;
  color: #666666;
  margin-top: 2px;
}

/* ============================================================
   CARD EMERGENCIAL PÓS-CONSULTA (DESTAQUE CNPJ + TITULAR + FANTASIA)
   ============================================================ */
.emergency-card {
  background: #ffffff;
  border: 2px solid #DC2626;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.14);
  margin-bottom: 20px;
}

.emergency-top-bar {
  background: linear-gradient(90deg, #991B1B 0%, #DC2626 100%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FEF08A;
  flex-shrink: 0;
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.emergency-body {
  padding: 18px 18px 20px;
}

.emergency-identity-box {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-left: 5px solid #071D41;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.emergency-cnpj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.emergency-cnpj-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  display: block;
  letter-spacing: 0.4px;
}

.emergency-cnpj-number {
  font-size: 20px;
  font-weight: 900;
  color: #071D41;
  letter-spacing: -0.3px;
}

.emergency-status-pill {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.emergency-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.emergency-highlight-item {
  display: flex;
  flex-direction: column;
}

.emergency-highlight-item .lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.4px;
}

.emergency-highlight-item .val {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.emergency-highlight-item .val.fantasia {
  color: #1351B4;
}

.emergency-warning-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 14px 15px;
  margin-bottom: 16px;
}

.emergency-warning-title {
  color: #991B1B;
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.emergency-warning-title svg {
  width: 19px;
  height: 19px;
  fill: #DC2626;
  flex-shrink: 0;
}

.emergency-warning-text {
  margin: 0;
  font-size: 13.5px;
  color: #7F1D1D;
  line-height: 1.5;
}

.emergency-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 11px 15px;
  margin-bottom: 14px;
}

.emergency-price-strip .left span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400E;
}

.emergency-price-strip .left strong {
  font-size: 13px;
  color: #78350F;
}

.emergency-price-strip .right {
  text-align: right;
}

.emergency-price-strip .right span {
  display: block;
  font-size: 10.5px;
  color: #92400E;
  font-weight: 700;
  text-transform: uppercase;
}

.emergency-price-strip .right strong {
  font-size: 22px;
  font-weight: 900;
  color: #168821;
}

.btn-emergency-pay {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(135deg, #168821 0%, #0f6818 100%);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 136, 33, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, filter 0.15s;
}

.btn-emergency-pay:hover {
  filter: brightness(1.06);
}

.explanation-box {
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--shadow);
  text-align: left;
}

.explanation-header {
  background: #991B1B;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.explanation-body {
  padding: 16px 18px;
  font-size: 13.5px;
  color: #333333;
}

.explanation-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.explanation-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.45;
}

.explanation-list li:last-child {
  border-bottom: 0;
}

.explanation-list .ico {
  color: #DC2626;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.bottom-cta-card {
  margin-top: 20px;
  background: #ffffff;
  border: 2px solid #168821;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(22, 136, 33, 0.12);
}

/* ============================================================
   COMPROVANTE / FICHA CADASTRAL RECEITA FEDERAL & SIMEI
   ============================================================ */
.info-section {
  margin-top: 18px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
}

.info-title {
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid #d4d4d4;
  color: #ffffff;
  background: var(--gov-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-body {
  padding: 8px 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 13.5px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-key {
  color: #555555;
  font-weight: 500;
  flex-shrink: 0;
}

.info-val {
  font-weight: 700;
  color: #111111;
  text-align: right;
}

/* ============================================================
   TIMELINE VERTICAL (PGMEI)
   ============================================================ */
.vertical-timeline {
  position: relative;
  padding-left: 24px;
  margin: 14px 0;
  text-align: left;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #d4d4d4;
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 3px solid #ffffff;
  z-index: 2;
}

.timeline-dot.completed {
  background: var(--gov-blue);
}

.timeline-dot.alert {
  background: var(--gov-red);
  box-shadow: 0 0 0 3px rgba(229, 34, 7, 0.18);
}

.timeline-content {
  font-size: 13px;
}

.timeline-date {
  font-size: 11px;
  color: #666666;
  margin-bottom: 2px;
}

.timeline-title {
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
}

.timeline-desc {
  color: #555555;
  line-height: 1.45;
}

/* ============================================================
   TELA DE PAGAMENTO PIX — ESTILO GUIA DAS-MEI (PGMEI)
   ============================================================ */
.pix-payment-page {
  margin-top: 8px;
  scroll-margin-top: 84px;
}

.pix-payment-heading {
  text-align: left;
  margin-bottom: 14px;
}

.pix-payment-heading h2 {
  margin: 0 0 4px;
  color: var(--gov-blue-dark);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.pix-payment-heading p {
  margin: 0;
  color: #555555;
  font-size: 13.5px;
}

.pix-bank-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 13px 16px;
  border-left: 4px solid var(--gov-blue);
  border-radius: 4px;
  background: var(--gov-blue-light);
  color: #071D41;
}

.pix-bank-alert svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--gov-blue);
  stroke-width: 2;
  stroke-linecap: round;
}

.pix-bank-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.pix-checkout-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.das-header-strip {
  background: var(--gov-blue-dark);
  color: #ffffff;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pix-company-banner {
  background: #f8f9fa;
  padding: 13px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.pix-company-banner strong {
  color: var(--gov-blue-dark);
  font-weight: 700;
  display: block;
  font-size: 13.5px;
}

.pix-company-banner span {
  color: #555555;
}

.pix-deadline-row {
  min-height: 54px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #222222;
  font-size: 13.5px;
  font-weight: 600;
}

.pix-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gov-red);
}

.pix-countdown span {
  width: 24px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--gov-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pix-countdown b {
  margin: 0 2px;
  font-size: 16px;
}

.pix-order-summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
}

.pix-order-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pix-order-summary span {
  color: #666666;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.pix-order-summary strong {
  color: var(--gov-blue-dark);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.pix-product-summary {
  text-align: right;
}

.pix-product-summary strong {
  font-size: 13px;
  color: var(--gov-green);
  text-transform: uppercase;
}

.pix-result-panel {
  padding: 22px 32px 24px;
  text-align: center;
}

.pix-loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #555555;
  font-size: 14px;
}

.pix-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #dbeafe;
  border-top-color: var(--gov-blue);
  border-radius: 50%;
  animation: pix-spin 0.75s linear infinite;
}

@keyframes pix-spin {
  to { transform: rotate(360deg); }
}

.pix-error {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gov-red);
  font-size: 14px;
}

.pix-error button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gov-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pix-qr-wrap {
  position: relative;
  width: 196px;
  min-height: 196px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pix-qr-code,
.pix-qr-image {
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.pix-qr-code img,
.pix-qr-code canvas {
  width: 176px !important;
  height: 176px !important;
  display: block;
}

.pix-qr-wrap > span {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  padding: 3px 12px;
  border: 1px solid #cccccc;
  border-radius: 999px;
  background: #ffffff;
  color: var(--gov-blue-dark);
  font-weight: 600;
  font-size: 10.5px;
  white-space: nowrap;
}

.pix-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 20px;
}

.pix-trust-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #555555;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.pix-trust-grid svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gov-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pix-copy-button,
.pix-confirm-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.pix-copy-button {
  background: var(--gov-blue);
  color: #ffffff;
}

.pix-copy-button:hover {
  background: var(--gov-blue-hover);
}

.pix-copy-button.copied {
  background: var(--gov-green);
}

.pix-confirm-button {
  min-height: 44px;
  margin-top: 10px;
  background: #ffffff;
  color: var(--gov-blue);
  border: 1.5px solid var(--gov-blue);
}

.pix-confirm-button:hover {
  background: var(--gov-blue-50);
}

.pix-copy-button svg,
.pix-confirm-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pix-confirm-note {
  margin: 14px auto 0;
  max-width: 360px;
  color: #555555;
  font-size: 11.5px;
  line-height: 1.4;
}

.valor-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  background: var(--gov-blue-50);
  border: 1px solid #b8d4fe;
}

.valor-box .lbl {
  font-size: 11px;
  color: var(--gov-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.valor-box .valor {
  font-size: 30px;
  font-weight: 800;
  color: var(--gov-blue);
  margin-top: 4px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: #555555;
}

.trust svg {
  width: 15px;
  height: 15px;
  fill: var(--gov-green);
  flex: none;
}

/* ============================================================
   RODAPÉ OFICIAL GOV.BR (br-footer — Azul Escuro #071D41)
   ============================================================ */
.br-footer {
  background: var(--gov-blue-dark);
  color: #ffffff;
  margin-top: 48px;
  font-size: 13px;
}

.br-footer-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.br-footer-logo {
  margin-bottom: 24px;
}

.br-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.br-footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.br-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.br-footer-col li {
  margin-bottom: 7px;
}

.br-footer-col a {
  color: #d0d7e2;
  text-decoration: none;
  font-size: 12.5px;
}

.br-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.br-footer-bottom {
  background: #041126;
  padding: 14px 20px;
  text-align: center;
  font-size: 11.5px;
  color: #aeb9cc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Compatibilidade com .footer antigo */
.footer {
  text-align: center;
  color: #555555;
  font-size: 12.5px;
  padding: 28px 16px;
  border-top: 1px solid #dcdcdc;
  margin-top: 32px;
}

@media (max-width: 680px) {
  .br-header-links,
  .br-header-ministry,
  .br-header-divider {
    display: none;
  }
  .br-header-top,
  .br-header-bottom {
    padding: 8px 14px;
  }
  .br-portal-title {
    font-size: 15px;
  }
  .gov-service-banner {
    padding: 14px 16px 18px;
    margin-bottom: 16px;
  }
  .gov-service-banner h1 {
    font-size: 21px;
  }
  .card {
    padding: 20px 16px;
  }
  .pix-result-panel {
    padding: 18px 16px 22px;
  }
  .br-footer-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
