/* Substituindo todo o conteúdo com o CSS oficial do gov.br */
/* Adicionando @font-face para as fontes Rawline */
@font-face {
  font-family: "Rawline";
  src: url("fontes/rawline-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("fontes/rawline-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("fontes/rawline-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Reset e variáveis atualizadas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

:root {
  --govbr-blue: #1351b4;
  --govbr-blue-dark: #071d41;
  --govbr-green: #168821;
  --govbr-gray: #f8f8f8;
  --govbr-gray-light: #e5e5e5;
  --govbr-text: #333;
  --govbr-white: #ffffff;
  --govbr-gold: #f7a800;
}

body {
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--govbr-text);
  line-height: 1.6;
  background: #f8f8f8;
  font-weight: 400;
}

/* Logo colorido gov.br */
.govbr-logo-color {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.logo-gov {
  color: #1351b4;
}

.logo-br {
  color: #f7a800;
}

.govbr-logo-footer {
  font-size: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Barra superior responsiva */
.barra-govbr {
  background: var(--govbr-white);
  border-bottom: 1px solid var(--govbr-gray-light);
  padding: 12px 0;
  font-size: 12px;
}

.barra-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.barra-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-selector {
  background: transparent;
  border: 1px solid var(--govbr-gray-light);
  color: var(--govbr-text);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--govbr-blue);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-entrar {
  background: var(--govbr-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
}

.btn-entrar:hover {
  background: #0c3c8c;
}

/* Header mobile-first */
.main-header {
  background: white;
  border-bottom: 1px solid var(--govbr-gray-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--govbr-blue);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.site-title {
  font-size: 14px;
  color: var(--govbr-text);
  font-weight: 600;
  flex: 1;
}

/* Search container separado para mobile */
.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--govbr-gray);
  border-radius: 24px;
  padding: 10px 16px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--govbr-text);
}

.search-input::placeholder {
  color: #999;
  font-style: italic;
}

.search-voice,
.search-btn {
  background: none;
  border: none;
  color: var(--govbr-blue);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navegação Principal - oculta no mobile */
.main-nav {
  background: var(--govbr-blue-dark);
  padding: 0;
  display: none;
}

/* Breadcrumb mobile */
.breadcrumb-container {
  background: white;
  border-bottom: 1px solid var(--govbr-gray-light);
  padding: 12px 0;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 400;
}

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

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

.breadcrumb i {
  font-size: 16px;
}

.separator {
  margin: 0 8px;
  color: #999;
}

/* Conteúdo Principal */
.main-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-column {
  background: white;
  padding: 20px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho do serviço mobile */
.service-header {
  margin-bottom: 12px;
}

.service-category {
  font-size: 20px;
  color: var(--govbr-blue);
  font-weight: 600;
  line-height: 1.3;
}

.service-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
}

.service-breadcrumb a {
  color: var(--govbr-blue);
  text-decoration: none;
}

.service-breadcrumb .current {
  font-weight: 600;
  color: var(--govbr-text);
}

/* Título mobile */
.page-title-section {
  margin-bottom: 16px;
}

.page-title {
  font-size: 22px;
  color: var(--govbr-blue-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.service-tags {
  margin-bottom: 16px;
  font-size: 15px;
  color: #666;
  font-weight: 400;
}

.tag {
  font-style: italic;
}

/* Botão iniciar mobile full-width */
.btn-iniciar-container {
  margin: 20px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-iniciar {
  background: var(--govbr-green);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  text-decoration: none;
  text-align: center;
  line-height: 1;
}

.btn-iniciar:hover {
  background: #0f6618;
}

/* Adicionando estilo para botão edital gov.br */
.btn-edital-gov {
  background: transparent;
  color: var(--govbr-blue);
  border: 2px solid var(--govbr-blue);
  padding: 14px 40px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  display: inline-block;
  margin-left: 12px;
}

.btn-edital-gov:hover {
  background: var(--govbr-blue);
  color: white;
}

/* Meta e compartilhamento */
.service-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--govbr-gray-light);
  border-bottom: 1px solid var(--govbr-gray-light);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 400;
}

.meta-item {
  color: #666;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--govbr-gray-light);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 400;
}

.btn-print,
.btn-share {
  background: none;
  border: 1px solid var(--govbr-gray-light);
  color: var(--govbr-blue);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-print:hover,
.btn-share:hover {
  background: var(--govbr-blue);
  color: white;
  border-color: var(--govbr-blue);
}

/* Accordion mobile */
.accordion {
  margin-bottom: 30px;
}

.accordion-item {
  border-bottom: 1px solid var(--govbr-gray-light);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--govbr-blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}

.accordion-header:hover {
  color: var(--govbr-blue);
}

.accordion-header i {
  color: var(--govbr-blue);
  transition: transform 0.3s;
  font-size: 14px;
  min-width: 16px;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0 0 28px;
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
  padding: 0 0 20px 28px;
}

.accordion-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 500;
}

.accordion-content h4 {
  margin: 16px 0 8px;
  color: var(--govbr-blue-dark);
  font-size: 15px;
  font-weight: 600;
}

.accordion-content ul,
.accordion-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 500;
}

.accordion-content a {
  color: var(--govbr-blue);
  text-decoration: none;
}

.accordion-content a:hover {
  text-decoration: underline;
}

/* Tags Section */
.tags-section {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--govbr-gray-light);
}

.tags-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--govbr-blue-dark);
  font-weight: 600;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  display: inline-block;
  padding: 6px 12px;
  background: var(--govbr-gray);
  color: var(--govbr-blue);
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s;
}

.tag-link:hover {
  background: var(--govbr-gray-light);
}

/* Feedback Section */
.feedback-section {
  margin: 30px 0;
  padding: 24px;
  background: var(--govbr-gray);
  border-radius: 8px;
  text-align: center;
}

.feedback-section h3 {
  font-size: 16px;
  color: var(--govbr-blue-dark);
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.feedback-btn {
  background: white;
  border: 2px solid var(--govbr-gray-light);
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feedback-btn i {
  font-size: 28px;
}

.feedback-positive {
  color: var(--govbr-blue);
}

.feedback-negative {
  color: #c8161d;
}

.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feedback-percentage {
  font-size: 18px;
  font-weight: 600;
}

.feedback-note {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* Histórico de Serviços */
.services-history {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--govbr-gray-light);
}

.services-history h3 {
  font-size: 16px;
  color: var(--govbr-blue-dark);
  margin-bottom: 16px;
  font-weight: 600;
}

.history-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.history-date {
  background: var(--govbr-blue-dark);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-item a {
  color: var(--govbr-blue);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.history-item a:hover {
  text-decoration: underline;
}

/* Ouvidoria */
.ouvidoria-section {
  margin: 40px 0;
}

.ouvidoria-section h2 {
  font-size: 20px;
  color: var(--govbr-blue-dark);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.ouvidoria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ouvidoria-card {
  background: var(--govbr-gray);
  padding: 24px 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
}

.ouvidoria-card:hover {
  background: var(--govbr-gray-light);
  transform: translateY(-2px);
}

.ouvidoria-card i {
  font-size: 40px;
  color: var(--govbr-blue-dark);
  margin-bottom: 12px;
}

.ouvidoria-card h4 {
  font-size: 15px;
  color: var(--govbr-blue-dark);
  font-weight: 600;
}

.info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--govbr-blue);
  font-size: 16px;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Login Box */
.login-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.govbr-logo {
  height: 40px;
}

.login-badge {
  background: var(--govbr-blue-dark);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.login-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.login-link {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.login-link a {
  color: var(--govbr-blue);
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Account Levels */
.account-levels {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.level-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-bronze {
  background: #cd7f32;
  color: white;
}

.badge-prata {
  background: #c0c0c0;
  color: #333;
}

.badge-ouro {
  background: #ffd700;
  color: #333;
}

.level-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.level-question {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.level-question a {
  color: var(--govbr-blue);
  text-decoration: none;
}

.level-question a:hover {
  text-decoration: underline;
}

/* Serviços Recomendados */
.recommended-services {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recommended-services h3 {
  font-size: 14px;
  color: var(--govbr-blue-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.recommended-services h3 i {
  color: var(--govbr-blue);
}

.services-list {
  list-style: none;
}

.services-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--govbr-gray-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.services-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.services-list i {
  color: var(--govbr-blue);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.services-list a {
  color: var(--govbr-blue);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.services-list a:hover {
  text-decoration: underline;
}

/* Footer branco */
.main-footer {
  background: var(--govbr-white);
  color: var(--govbr-text);
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--govbr-gray-light);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--govbr-blue-dark);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--govbr-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--govbr-gray-light);
  text-align: center;
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* Botões Flutuantes */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--govbr-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--govbr-blue-dark);
  transform: translateY(-2px);
}

.accessibility-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--govbr-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 1000;
}

.accessibility-btn:hover {
  background: var(--govbr-blue-dark);
  transform: translateY(-2px);
}

/* Aplicando fontes em todos os botões */
button,
.btn-iniciar,
.btn-print,
.btn-share,
.btn-entrar,
.language-selector,
.icon-btn,
.menu-toggle,
.search-btn,
.search-voice,
.accordion-header,
.feedback-btn,
.info-btn,
.back-to-top,
.accessibility-btn {
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Aplicando fontes em todos os inputs */
input,
textarea,
select {
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Aplicando fontes em todos os links */
a {
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Media queries para responsividade mobile */
@media (max-width: 768px) {
  .main-column {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .accordion-header {
    font-size: 15px;
    padding: 16px 0;
  }

  .accordion-content {
    font-size: 14px;
  }

  .feedback-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .feedback-btn {
    width: 100%;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .barra-container {
    padding: 0 12px;
  }

  .barra-right {
    gap: 8px;
  }

  .language-selector {
    padding: 4px 8px;
    font-size: 11px;
  }

  .btn-entrar {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn-entrar i {
    display: none;
  }

  .page-title {
    font-size: 20px;
  }

  .btn-iniciar {
    width: 100%;
    padding: 12px 20px;
  }

  .share-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .accordion-content p,
  .accordion-content li {
    font-size: 13px;
  }
}

/* Media queries para desktop */
@media (min-width: 768px) {
  .barra-right .icon-btn:nth-child(2),
  .barra-right .icon-btn:nth-child(3),
  .barra-right .icon-btn:nth-child(4) {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .header-container {
    padding: 16px 20px;
  }

  .search-container {
    display: none;
  }

  .site-title {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .site-title::before {
    content: "\f0c9";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--govbr-blue);
  }

  .header-container .search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin-left: auto;
  }

  .main-nav {
    display: block;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 30px;
  }

  .nav-link {
    color: white;
    text-decoration: none;
    padding: 16px 0;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
  }

  .nav-link:hover,
  .nav-link.active {
    border-bottom-color: var(--govbr-green);
  }

  .content-wrapper {
    flex-direction: row;
    gap: 30px;
  }

  .main-column {
    flex: 1;
    padding: 30px;
  }

  .sidebar {
    width: 350px;
    flex-shrink: 0;
  }

  .page-title {
    font-size: 28px;
  }

  .service-category {
    font-size: 24px;
  }

  .btn-iniciar {
    width: auto;
    min-width: 200px;
  }

  .service-meta {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .share-buttons {
    margin-left: auto;
    border-bottom: none;
    padding: 0;
  }

  .ouvidoria-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1024px) {
  .ouvidoria-section h2 {
    font-size: 24px;
  }
}

/* Adicionando estilos do modal de doação estilo gov.br */
/* Modal de Doação */
.modal-doacao {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content-doacao {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header-doacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 4px solid var(--govbr-green);
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.modal-header-doacao h2 {
  font-size: 1.5rem;
  color: var(--govbr-blue);
  margin: 0;
  font-weight: 600;
}

.btn-fechar-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-fechar-modal:hover {
  background-color: var(--govbr-gray);
  color: #333;
}

.modal-body-doacao {
  padding: 24px;
  background-color: var(--govbr-gray);
}

.form-progress {
  margin-bottom: 24px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--govbr-blue);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--govbr-blue);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.form-doacao {
  display: block;
}

.form-section {
  margin-bottom: 24px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--govbr-gray-light);
}

.form-section h3 {
  font-size: 1.125rem;
  color: var(--govbr-blue-dark);
  margin-bottom: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--govbr-gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--govbr-text);
  margin-bottom: 8px;
}

.form-group input {
  padding: 12px;
  border: 2px solid var(--govbr-gray-light);
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--govbr-blue);
  box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.1);
}

.valor-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.btn-valor {
  padding: 16px;
  border: 2px solid var(--govbr-gray-light);
  background: white;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--govbr-text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-valor:hover {
  border-color: var(--govbr-blue);
  background-color: #f0f5ff;
}

.btn-valor.selected {
  border-color: var(--govbr-blue);
  background-color: var(--govbr-blue);
  color: white;
}

.btn-continuar-doacao {
  width: 100%;
  padding: 16px;
  background: var(--govbr-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-continuar-doacao:hover {
  background: #0f6618;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 136, 33, 0.3);
}

/* Checkout PIX */
.checkout-pix {
  text-align: center;
}

.checkout-header {
  margin-bottom: 24px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--govbr-gray-light);
}

.checkout-header i {
  font-size: 3rem;
  color: var(--govbr-green);
  margin-bottom: 8px;
}

.checkout-header h3 {
  font-size: 1.5rem;
  color: var(--govbr-blue-dark);
  margin: 0;
  font-weight: 600;
}

.dados-doacao {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
  border: 2px solid var(--govbr-blue);
}

.dados-doacao h4 {
  font-size: 1rem;
  color: var(--govbr-blue);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.dados-doacao p {
  margin: 8px 0;
  font-size: 0.875rem;
  color: var(--govbr-text);
}

.pix-qrcode {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--govbr-gray-light);
}

.pix-qrcode img {
  max-width: 100%;
  height: auto;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--govbr-blue);
}

.loading-spinner i {
  font-size: 2rem;
}

.error-message {
  color: #c8161d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-message i {
  font-size: 2rem;
}

.pix-copiacola {
  margin-bottom: 24px;
  text-align: left;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--govbr-gray-light);
}

.pix-copiacola label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--govbr-text);
  display: block;
  margin-bottom: 8px;
}

.input-copy-group {
  display: flex;
  gap: 8px;
}

.input-copy-group input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--govbr-gray-light);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
  background-color: var(--govbr-gray);
}

.btn-copiar {
  padding: 12px 20px;
  background-color: var(--govbr-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-copiar:hover {
  background-color: #0c3c8a;
}

.instrucoes-pix {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
  border-left: 4px solid var(--govbr-blue);
}

.instrucoes-pix h4 {
  font-size: 1rem;
  color: var(--govbr-blue-dark);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.instrucoes-pix ol {
  margin: 12px 0;
  padding-left: 20px;
}

.instrucoes-pix li {
  margin: 8px 0;
  font-size: 0.875rem;
  color: var(--govbr-text);
}

.aviso-confirmacao {
  margin: 12px 0 0 0;
  font-size: 0.875rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--govbr-gray);
  border-radius: 4px;
}

.btn-nova-doacao {
  width: 100%;
  padding: 14px;
  background-color: white;
  color: var(--govbr-blue);
  border: 2px solid var(--govbr-blue);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Rawline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-nova-doacao:hover {
  background-color: var(--govbr-blue);
  color: white;
}

/* Responsivo para modal */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .valor-buttons {
    grid-template-columns: 1fr;
  }

  .modal-content-doacao {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Added styles for donation impact cards */
.impact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.impact-card {
  background: white;
  border: 2px solid var(--govbr-gray-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.impact-card:hover {
  border-color: var(--govbr-blue);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.impact-card.selected {
  border-color: var(--govbr-blue);
  background: linear-gradient(to bottom, #f0f5ff 0%, white 100%);
  box-shadow: 0 4px 12px rgba(19, 81, 180, 0.2);
}

.impact-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--govbr-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-content {
  padding: 16px;
  text-align: center;
}

.impact-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--govbr-blue);
  margin-bottom: 8px;
}

.impact-description {
  font-size: 0.875rem;
  color: var(--govbr-text);
  line-height: 1.4;
  font-weight: 500;
}

.impact-card.selected .impact-value {
  color: var(--govbr-green);
}

@media (max-width: 768px) {
  .impact-options {
    grid-template-columns: 1fr;
  }

  .impact-image {
    height: 120px;
  }
}

/* Added styles for compact donation impact cards */
.impact-options-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.impact-card-small {
  background: white;
  border: 2px solid var(--govbr-gray-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  padding: 12px;
}

.impact-card-small:hover {
  border-color: var(--govbr-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.impact-card-small.selected {
  border-color: var(--govbr-blue);
  background: linear-gradient(to bottom, #f0f5ff 0%, white 100%);
  box-shadow: 0 4px 12px rgba(19, 81, 180, 0.2);
}

.impact-image-small {
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: var(--govbr-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 8px;
}

.impact-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-value-small {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--govbr-blue);
  margin-bottom: 4px;
}

.impact-description-small {
  font-size: 0.75rem;
  color: var(--govbr-text);
  line-height: 1.3;
  font-weight: 500;
}

.impact-card-small.selected .impact-value-small {
  color: var(--govbr-green);
}

@media (max-width: 768px) {
  .impact-options-compact {
    grid-template-columns: 1fr;
  }

  .impact-image-small {
    height: 120px;
  }
}
