/* Estilo Base - Desenrola
 * Versao: 2026-07-23 (reestruturado)
 */

:root {
  --primary-blue: #1550b0;
  --deep-blue: #0c326f;
  --bottom-blue: #0a2542;
  --bottom-dark: #06182e;
  --surface-gray: #f0f2f5;
  --text-gray: #333;
  --field-border: #ccc;
  --info-surface: #e3eeff;
  --info-stroke: #2f65bd;
  --benefit-bg: #e7f0fd;
  --alert-yellow-bg: #fff9db;
  --alert-yellow-ring: #ffe066;
  --success-surface: #d4edda;
  --success-ink: #155724;
  --nav-icon: #1451b4;
}

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bottom-dark);
}

body {
  font-family: "Rawline", "Open Sans", system-ui, sans-serif;
  background: var(--surface-gray);
  color: #1a1a1a;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Modo escuro */
html.theme-dark { background: #0a0a0a; }
html.theme-dark body { background: #1b1b1b; color: #e8e8e8; }
html.theme-dark .top-navigation { background: #252525; border-bottom-color: #333; }
html.theme-dark .gov-emblem { filter: brightness(1.15); }
html.theme-dark .nav-icon-button { color: #c8d8f0; }
html.theme-dark .breadcrumb-bar { background: #0a1f40; }
html.theme-dark .info-block { background: #2a2a2a; box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
html.theme-dark .primary-message { color: #7eb8ff; }
html.theme-dark .secondary-message, html.theme-dark .instrucao { color: #bbb; }
html.theme-dark .page-footer { background: #080f1a; }
html.theme-dark .legal-block { background: #040a14; }
html.theme-dark .attendant-card { background: #333; border-color: #444; }
html.theme-dark .attendant-card .nome { color: #f0f0f0; }
html.theme-dark .attendant-card .cargo { color: #aaa; }
html.theme-dark input.input-cpf { background: #3a3a3a; border-color: #555; color: #eee; }
html.theme-dark .info-block.cpf-wrap .info-box { background: #2a3f56; border-color: #4a7ab8; }
html.theme-dark .info-block.cpf-wrap .info-box p { color: #e8e8e8; }
html.theme-dark .trust-badges, html.theme-dark .trust-sub { color: #bbb; }
html.theme-dark .trust-ico { color: #ccc; }

.site-container {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Top bar */
.top-navigation {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 12px 8px 14px;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-href {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.gov-emblem {
  height: 36px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
#hdrMenu { margin-left: -10px; }
.nav-actions .nav-divider { margin-left: -4px; margin-right: 2px; }
#hdrContrast { margin-left: -2px; }
.nav-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  padding: 0; border: none;
  background: transparent;
  color: var(--nav-icon);
  cursor: pointer;
  border-radius: 6px;
}
.nav-icon-button:hover { background: rgba(20,81,180,0.1); }
.nav-icon-button svg { display: block; width: 18px; height: 18px; }
.nav-icon-button--contrast svg, .nav-icon-button--ear svg { width: 22px; height: 22px; }
.nav-icon-button--ear i.fas.fa-deaf {
  font-size: 1.15rem; line-height: 1; display: block; color: var(--nav-icon);
}
html.theme-dark .nav-ico-split-contrast circle { stroke: #9ec5ff; }
html.theme-dark .nav-ico-split-contrast path:nth-of-type(1) { fill: #9ec5ff; }
html.theme-dark .nav-ico-split-contrast path:nth-of-type(2) { fill: #2a2a2a; }
.nav-divider {
  width: 1px; height: 18px;
  background: rgba(20,81,180,0.25);
  flex-shrink: 0;
}
.login-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 10px;
}

/* Breadcrumb */
.breadcrumb-bar {
  display: none;
  width: 100%;
  background: var(--deep-blue);
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.breadcrumb-bar a { color: inherit; text-decoration: none; }

/* Hero strip */
.showcase-strip {
  width: 100%;
  background: #dde5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showcase-photo {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center center;
  display: block;
}
@media (min-width: 480px) { .showcase-photo { max-height: 310px; } }

/* Info card */
.info-block {
  background: #fff;
  margin: -20px 16px 24px;
  padding: 28px 22px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  text-align: center;
}
.info-block.entry-point {
  margin-top: 12px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 16px;
  padding-top: 26px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 48px;
}

/* Brand cluster */
.brand-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.brand-cluster .shield-icon {
  max-height: 64px;
  width: auto;
  height: auto;
  display: block;
}
.brand-cluster .program-title {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
  object-fit: contain;
}
.brand-cluster-solo .program-title { margin-top: 2px; }
.brand-cluster-solo .shield-icon { margin-bottom: 0; }

/* Text */
.primary-message {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.42;
  margin-top: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.secondary-message {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-gray);
  margin-top: 20px;
  line-height: 1.45;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.action-cta {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 15px 20px;
  background: var(--primary-blue);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.action-cta.action-pill {
  width: auto;
  min-width: 204px;
  max-width: min(90vw, 292px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 4px;
  padding: 15px 40px;
  border-radius: 999px;
  font-size: 15px;
}
.action-cta:hover { filter: brightness(1.06); }
.link-legal {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--primary-blue);
  text-decoration: underline;
}

/* CPF page shared */
.cpf-wrap { padding: 20px 18px 36px; }
.info-block.cpf-wrap {
  margin-top: 12px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 16px;
}
.top-navigation--cpf .nav-actions--icons-only { margin-left: auto; }
.top-navigation--cpf #hdrContrast { margin-left: 0; }
.top-navigation--cpf .nav-actions .nav-divider { margin-left: 0; margin-right: 0; }
.info-block.cpf-wrap .limpe-logo {
  max-width: 200px;
  max-height: 96px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}
.instrucao {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 20px;
}
.info-block.cpf-wrap .instrucao { color: #333; }
.field-label { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px; text-align: left; }
input.input-cpf {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 20px;
}
.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--info-surface);
  border: 1px solid var(--info-stroke);
  border-radius: 8px;
  margin-top: 20px;
  text-align: left;
}
.info-box .ico-i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-box p { font-size: 13px; color: var(--deep-blue); line-height: 1.45; }
.info-block.cpf-wrap .info-box { background: #bdd4ef; border-color: #2467b8; }
.info-block.cpf-wrap .info-box p { color: #0a0a0a; font-size: 13px; }
.action-cta.btn-cpf-submit {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Trust */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-ico { flex-shrink: 0; color: #4a4a4a; }
.trust-sub {
  margin-top: 10px;
  font-size: 11px;
  color: #555;
  text-align: center;
  line-height: 1.55;
}
.trust-line {
  margin-top: 24px;
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.6;
}

/* Footer */
.page-footer {
  background: var(--bottom-blue);
  color: #d1d1d1;
  text-align: left;
  font-size: 13px;
  margin-top: 0;
  overflow-x: hidden;
}
.footer-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 0;
}
.footer-emblem {
  display: block;
  height: 48px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}
.legal-block {
  background: var(--bottom-dark);
  padding: 12px 14px 16px;
  margin: 10px -14px 0;
  width: calc(100% + 28px);
  max-width: none;
  box-sizing: border-box;
  text-align: left;
}
.legal-block p {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.45;
  padding-left: 0;
  padding-right: 12px;
  max-width: 100%;
}
.legal-block strong {
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  padding-left: 0;
  padding-right: 12px;
  max-width: 100%;
}

/* Attendant */
.attendant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.attendant-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.attendant-card .nome { font-weight: 700; font-size: 16px; }
.attendant-card .cargo { font-size: 13px; color: #666; margin-top: 2px; }
.typebot-shell { flex: 1; width: 100%; min-height: 50vh; padding: 8px 12px 24px; }
typebot-standard { display: block; width: 100%; min-height: min(560px,63vh); }

/* Chat */
.page-wrap.page-chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.nav-actions--chat-user { margin-left: auto; display: flex; align-items: center; }
.btn-chat-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 0;
}
.btn-chat-user svg { flex-shrink: 0; opacity: 0.95; }
.page-chat .chat-card.info-block.cpf-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  overflow: hidden;
}
.page-chat .chat-card .attendant-card--in-chat {
  margin: 0; max-width: none; border-radius: 0; border: none;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none; background: transparent;
  flex-shrink: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px 12px 10px;
}
.page-chat .chat-card .attendant-card--in-chat > div { text-align: left; }
.page-chat .chat-typebot-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 6px;
}
.page-chat .chat-typebot-wrap typebot-standard.chat-typebot-el {
  display: block;
  width: 100%;
  flex: 0 1 auto;
  min-height: min(560px,63vh);
}
html.theme-dark .btn-chat-user { background: #2467b8; color: #fff; }
html.theme-dark .page-chat .chat-card .attendant-card--in-chat {
  background: transparent;
  border-bottom-color: #555;
}

/* Proposta */
.proposta-box { border: 2px solid var(--primary-blue); border-radius: 10px; padding: 16px; margin: 20px 0; text-align: left; }
.proposta-box h3 { color: var(--primary-blue); font-size: 16px; margin-bottom: 12px; }
.proposta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; line-height: 1.5; }
.proposta-grid .strike { text-decoration: line-through; color: #888; }
.destaque-preco { color: var(--primary-blue); font-weight: 700; }
.banner-sucesso { margin-top: 12px; padding: 10px 12px; background: var(--success-surface); color: var(--success-ink); border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cta-text { font-size: 14px; margin: 16px 0; line-height: 1.5; }

/* Responsive */
@media (max-width: 480px) {
  .gov-emblem { height: 32px; max-width: 118px; }
  .login-button { padding: 9px 14px; font-size: 13px; }
  .nav-actions { gap: 2px; }
  .nav-icon-button { width: 30px; height: 30px; }
  .nav-icon-button svg { width: 16px; height: 16px; }
  .nav-icon-button--contrast svg, .nav-icon-button--ear svg { width: 20px; height: 20px; }
  .nav-icon-button--ear i.fas.fa-deaf { font-size: 1.05rem; }
}

/* Typebot iframe */
.page-chat .chat-typebot-wrap { width: 100%; height: 650px; padding: 0 6px; overflow: hidden; }
.page-chat .chat-typebot-wrap iframe.chat-typebot-el { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 480px) { .page-chat .chat-typebot-wrap { height: 580px; } }
