:root {
  --verde: #219150;
  --verde-escuro: #17663a;
  --verde-claro: #34c66e;
  --verde-suave: #eaf9f0;
  --fundo: #f6fcf8;
  --branco: #fff;
  --card-bg: #fdfefc;
  --borda-card: #d2ecd7;
  --shadow: 0 4px 24px rgba(33,145,80,0.08);
  --erro-bg: #ffeaea;
  --erro-borda: #c62828;
  --erro-texto: #c62828;
  --rodape-bg: #17663a;
  --contraste: #fff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--fundo);
  color: #274a36;
  line-height: 1.7;
}

header {
  background: var(--verde);
  color: var(--contraste);
  padding: 0.7em 0;
  box-shadow: 0 2px 4px rgba(33,145,80,0.08);
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.3em;
}
nav li {
  margin: 0;
}
nav a {
  color: var(--contraste);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45em 1.2em;
  border-radius: 25px;
  transition: background 0.16s;
  font-size: 1.07em;
}
nav a[aria-current="page"], nav a:hover, nav a:focus {
  background: var(--verde-escuro);
  outline: none;
}

main {
  padding: 1em;
  min-height: 70vh;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 2.5em auto;
  padding: 2em 2.2em;
  border: 1px solid var(--borda-card);
  position: relative;
}

footer {
  background: var(--rodape-bg);
  color: var(--contraste);
  text-align: center;
  padding: 1.2em 0 1em 0;
  font-size: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 4em;
}

footer a {
  color: var(--contraste);
  text-decoration: underline dotted;
  font-weight: 500;
}

h1, h2, legend {
  color: var(--verde-escuro);
  font-weight: 800;
  letter-spacing: 0.01em;
}

label,
legend {
  display: block;
  margin-top: 1.3em;
  margin-bottom: 0.18em;
  font-weight: 500;
}

input,
textarea,
select {
  font: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #bfe6c9;
  border-radius: 7px;
  padding: 0.9em;
  margin-bottom: 0.8em;
  background: #f5fcf7;
  transition: border-color 0.18s;
  font-size: 1em;
}

input[type="radio"], input[type="checkbox"] {
  width: auto;
  margin-right: 0.5em;
  vertical-align: middle;
  accent-color: var(--verde);
}

button {
  background: var(--verde);
  color: var(--contraste);
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 1.2em;
  padding: 1em 0;
  border-radius: 30px;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(33,145,80,0.07);
  transition: background 0.15s, box-shadow 0.18s;
}
button:hover, .btn-voltar:hover {
  background: var(--verde-escuro);
  box-shadow: 0 4px 12px rgba(33,145,80,0.12);
}

.btn-voltar {
  display: inline-block;
  background: var(--verde);
  color: var(--contraste);
  padding: 0.8em 2em;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 2em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(33,145,80,0.05);
  transition: background 0.16s;
}

input:focus,
textarea:focus {
  border-color: var(--verde-claro);
  outline: none;
  background: var(--verde-suave);
}

.aviso {
  background: var(--verde-suave);
  color: var(--verde-escuro);
  border-radius: 7px;
  padding: 0.9em 1.1em;
  margin-bottom: 2em;
  font-size: 1em;
  border: 1px solid var(--borda-card);
}

.lgpd {
  font-size: 0.97em;
  margin-top: 1em;
}

a[target="_blank"] {
  text-decoration: underline dotted;
}

.erro {
  display: block;
  color: var(--erro-texto);
  background: var(--erro-bg);
  border-radius: 6px;
  font-size: 0.97em;
  margin-top: -0.5em;
  margin-bottom: 0.5em;
  padding: 0.3em 0.8em;
  min-height: 1.1em;
}

input.erro,
textarea.erro {
  border-color: var(--erro-borda);
  background: var(--erro-bg);
}

.faq-list details {
  margin-bottom: 1em;
}

.faq-list summary {
  font-weight: bold;
  cursor: pointer;
  color: var(--verde);
  border-left: 3px solid var(--verde);
  padding-left: 0.5em;
}

fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.2em;
}
label {
  margin-top: 1em;
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
  }
  .card {
    margin: 1em;
    padding: 1.1em;
    max-width: 99vw;
  }
  legend, h1, h2 {
    font-size: 1.1em;
  }
}