/* ===== Reset e fonte ===== */
*{
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== HEADER ===== */
.hero-step {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f0 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #003c1c;
  border-bottom: 4px solid #008037;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 10px 40px;
}

/* Topo */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 55px;
}

.org-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #004d26;
  letter-spacing: 0.5px;
}

.gov-bar {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  background-color: #f7f7f7;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
}

/* Navegação */
.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 1px solid #cce3d4;
  padding-top: 10px;
}

.nav a {
  text-decoration: none;
  color: #005e2c;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.nav a:hover {
  color: #008037;
  border-bottom: 2px solid #008037;
}

/* Responsivo Header */
@media (max-width: 768px) {
  .hero-step {
    padding: 15px 20px;
  }

  .nav {
    gap: 15px;
  }

  .org-name {
    font-size: 1.2rem;
  }

  .gov-bar {
    font-size: 0.8rem;
    margin-top: 8px;
  }
}

/* ===== CONTEÚDO ===== */
.container {
  text-align: center;
  width: 100%;
  overflow-x: hidden;
}

.container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 20px auto;
  border-radius: 20px;
  max-width: 600px;
}

.container h2 {
  font-size: 2.4em;
  border-top: solid 3px yellow;
  border-bottom: solid 3px yellow;
  padding: 10px;
  color: #333;
  border-image: linear-gradient(to right, #f0e002 50%, transparent 50%) 100% 1;
}

.containerp{
  color: #333;
  text-align: center;
  margin: 15px 10px;
  font-size: 1.3em;
}

/* ===== BOTÕES ===== */
.buttoncall{
  padding: 10px;
  text-align: center;
  margin-bottom: 30px;
}

button{
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  color: white;
  background-color: #00693e;
  font-size: 25px;
  transition: 0.3s;
}

button:hover {
  cursor: pointer;
  background-color: #008037;
}

/* ===== FOOTER ===== */
.gov-footer {
  background: #f4f6f5;
  color: #003c1c;
  font-family: "Segoe UI", Arial, sans-serif;
  border-top: 4px solid #008037;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 25px 40px;
  border-bottom: 1px solid #dce3df;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 45px;
}

.footer-logo h3 {
  font-size: 1.2rem;
  color: #004d26;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #004d26;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #008037;
  text-decoration: underline;
}

.footer-middle {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  padding: 20px 10px;
}

.footer-bottom {
  background: #008037;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-middle {
    font-size: 0.9rem;
  }
}

/* ===== MODAL EDITAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-content h2 {
  color: #0c3b73;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 20px;
}

.download-btn {
  background-color: #0c3b73;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

.download-btn:hover {
  background-color: #0055a5;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* ===== MODAL LOADING ===== */
.modal-loading {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}

.modal-loading.active {
  display: flex;
}

.loading-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #cfd9e0;
  border-top: 6px solid #0c3b73;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loadingText {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}
