/* SITE */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffd8d2;
  color: #910a00;
  display: flex;
  flex-direction: column;
}

/* TOPO DO SITE */
.topo {
  background: #910a00;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 500;
}

.topo-esquerda {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topo-esquerda img {
  width: 80px;
}

.topo-texto h1 {
  margin: 0;
  font-size: 28px;
  color: white;
}

.topo-direita {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topo-direita input {
  padding: 8px;
  border-radius: 50px;
  border: 1px solid #910a00;
}

/* MENU */
.menu {
  background: #700700;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  border-bottom: 3px solid #910a00;
  font-size: 16px;
}

.menu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.menu a:hover {
  background: #910a00;
  transform: scale(1.05);
}

/* MENU MOBILE */
#menu2 {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  z-index: 1000;
}

.hamburger {
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.hamburger div {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: .3s;
}

#menu2:checked+.hamburger div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#menu2:checked+.hamburger div:nth-child(2) {
  opacity: 0;
}

#menu2:checked+.hamburger div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #910a00;
  padding: 15px;
  width: 240px;
  border-radius: 12px;
  position: absolute;
  top: 100px;
  left: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all .35s ease;
}

#menu2:checked~.mobile-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  background: #ffffff;
  color: #910a00;
  padding: 12px;
  margin: 6px 0;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease;
}

.mobile-menu a:hover {
  transform: scale(1.05);
}

/* CONTEÚDO */

.conteudoinicio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 20px;
}

.conteudodoar {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.doar {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  width: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #910a00;
}

.imgsangue {
  width: 38%;
}

.noticias,
.estatisticas {
  width: 100%;
  max-width: 900px;
}

.cards {
  display: flex;
  gap: 15px;
}

.card {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  width: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #910a00;
  transition: 0.5s ease;
  cursor: pointer;
}

.card :hover {
  transform: scale(1.06);
}

.card img {
  width: 100%;
  border-radius: 8px;
}

.card2 {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  width: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #910a00;
  transition: 0.5s ease;
  cursor: pointer;
}

.card2 :hover {
  transform: scale(1.06);
}

.card2 img {
  width: 100%;
  border-radius: 8px;
}

.estatisticas {
  text-align: center;
}

.estatisticas img {
  display: block;
  margin: 0 auto;
}

.box-est {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  color: #910a00;
}

.box-est2 {
  background: #910a00;
  padding: 18px;
  border-radius: 12px;
  color: #ffffff;
  gap: 20px;
}

.box-est2 select {
  width: 40%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
  text-align: center;
}

.grafico {
  width: 100%;
  margin-top: 8px;
}

.conteudo-centro {
  flex: 1;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.conteudo-contato {
  flex: 1;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
  text-align: center;
}

.mapa {
  background: #910a00;
  padding: 18px;
  border-radius: 12px;
  color: #ffffff;
  gap: 20px;
}

.mapa a {
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.form-contato {
  background: #910a00;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: white;
}

.form-contato h1 {
  margin-bottom: 20px;
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
}

.form-contato button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  color: #910a00;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-contato button:hover {
  background: #fff;
  transform: scale(1.02);
}

/* FORMULÁRIOS (LOGIN, CADASTRO, ESQUECI SENHA) */
.tela-login {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-login {
  background: #910a00;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: white;
}

.form-login h1 {
  margin-bottom: 20px;
}

.form-login input,
.form-login select {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
}

.form-login button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  color: #910a00;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-login button:hover {
  background: #700700;
  transform: scale(1.02);
  color: #ffffff;
}

.login-links {
  margin-top: 12px;
  font-size: 0.9rem;
}

.login-links a {
  color: #ffd8d2;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-links a:hover {
  color: #fff;
}

.tela-cadastro {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #ffd8d2; 
}

.form-cadastro {
  background: #910a00;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.form-cadastro h1 {
  margin: 0;
  font-size: 32px;
  color: white;
  text-align: center;
  letter-spacing: 2px;
}

.form-cadastro2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-linha {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.campo-grupo {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.campo-grupo label {
  font-weight: bold;
  font-size: 0.9em;
  color: #ffd8d2;
}

.form-cadastro2 input[type="name"],
.form-cadastro2 input[type="text"],
.form-cadastro2 input[type="tel"],
.form-cadastro2 input[type="email"],
.form-cadastro2 input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: white;
  color: #000000;
  font-size: 1em;
}

.checkbox-doador {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  font-size: 1em;
  color: white;
  gap: 8px;
  cursor: pointer;
}

.checkbox-doador input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #ffd8d2;
}

/* Botão de Confirmação */
.botao-confirmar-cadastro {
  display: block;
  margin: 30px auto 0 auto;
  width: 50%;
  max-width: 300px;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  background: #ffd8d2;
  color: #910a00;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.botao-confirmar-cadastro:hover {
  background: #fff;
  transform: scale(1.02);
}

.link-voltar {
  text-align: center;
  margin-top: 15px;
  font-size: 1em;
  color: white;
}

.link-voltar a {
  color: #ffd8d2;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: bold;
}

.link-voltar a:hover {
  color: #fff;
}

/* RODAPÉ */
.rodape {
  background: #910a00;
  color: #fff;
  padding: 15px 0;
  width: 100%;
}

.rodape-conteudo {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.rodape-bloco {
  max-width: 320px;
}

.logo-rodape {
  width: 60px;
  margin-bottom: 8px;
}

.rodape a {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* RESPONSIVO */
@media (max-width: 930px) {
  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .conteudoinicio {
    flex-direction: column;
    padding: 12px;
  }

  .conteudodoar {
    flex-direction: column;
    padding: 12px;
  }

  .conteudo-contato {
    flex-direction: column;
    padding: 12px;
  }

  .conteudo-contato iframe {
    width: 100%;
  }

  .mapa {
    width: 100%;
  }

  .doar {
    flex-direction: column;
    padding: 12px;
    width: 100%;
  }

  .noticias,
  .estatisticas {
    width: 100%;
  }

  .cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }

  .card2 {
    width: 100%;
  }

  .rodape-conteudo {
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    text-align: center;
    
  }
}


@media (max-width: 420px) {
  .logo {
    width: 40px;
  }

  .logo-rodape {
    width: 54px;
  }

  .nav-links {
    gap: 12px;
  }

  .hamburger {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .form-linha {
    flex-direction: column;
    gap: 15px;
  }

  .campo-grupo {
    width: 100%;
  }

  .botao-confirmar-cadastro {
    width: 80%;
  }

  .form-cadastro {
    padding: 20px;
    width: 95%;
  }

  .form-cadastro h1 {
    font-size: 26px;
  }

  .rodape-conteudo {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .form-cadastro h1 {
    font-size: 22px;
  }

  .checkbox-doador {
    font-size: 0.9em;
  }
}