/* =================== VARIÁVEIS =================== */
:root {
  /* Cores principais */
  --azul-principal: #2A5C82;
  --vermelho-destaque: #C3423F;
  --branco: #FFFFFF;
  --cinza-claro: #F5F5F5;
  --azul-escuro: #1A3A4D;

  /* Cores alternativas (neutras e tons escuros) */
  --clr-neutral-100: hsl(0, 0%, 100%);
  --clr-primary-100: hsl(205, 15%, 58%);
  --clr-primary-400: hsl(215, 25%, 27%);
  --clr-primary-800: hsl(217, 33%, 17%);
  --clr-primary-900: hsl(218, 33%, 9%);

  /* Estilo e transições */
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.1);
  --borda: 2px solid rgba(42, 92, 130, 0.1);
  --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET GERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('/assets/img/verdinho.avif') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
}

/* NAVBAR */
.navbar {
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-right {
  margin-left: auto;
}

.navbar-right a {
  text-decoration: none;
  font-size: 14px;
  color: #1A3A4D;
  font-weight: bold;
  transition: 0.2s ease;
}

.navbar-right a:hover {
  color: #2793ff;
}

.logo {
  width: 120px;
}

.linkLogo {
  text-decoration: none;
}

/* BOTÃO DOAR */
.button-doar {
  width: 135px;
  height: 47px;
  background: #2793FF;
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.button-doar:hover {
  background-color: #1A6ED8;
}

/* =================== HEADER =================== */

.header {
  background-color: var(--clr-neutral-100);
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: var(--clr-primary-400);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--azul-principal);
}

.menu-mobile {
  display: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--clr-primary-400);
  position: relative;
  transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--clr-primary-400);
  transition: transform 0.3s;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.menu-mobile.is-active .hamburger {
  background-color: transparent;
}

.menu-mobile.is-active .hamburger::before {
  transform: rotate(45deg);
}

.menu-mobile.is-active .hamburger::after {
  transform: rotate(-45deg);
}


/* =================== FORMULÁRIOS =================== */

.container {
  width: 70%;
  display: flex;
  flex-direction: column;
  margin: 60px auto;
}

.section-title {
  font-size: 30px;
  color: var(--azul-escuro);
  text-align: start;
  margin-bottom: 5px;
}

.form-section {
  background-color: var(--branco);
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  padding: 20px 0;
  border-radius: 10px;
  box-shadow: var(--sombra);
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.pix-image {
  width: 15.625vw;
  height: 300px;
}

.img-doacao {
  width: 20.833vw;
  height: 300px;
  border-radius: 8px;
}

.form-card {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.form-label {
  font-size: 16px;
  align-self: start;
  color: var(--azul-escuro);
}

.form-input {
  width: 100%;
  height: 35px;
  font-size: 14px;
  padding: 0 10px;
  border-radius: 20px;
  outline: none;
  box-shadow: 2px 2px 2px #ccc;
  border: 1px solid #ccc;
}

.btn-gerar {
  width: 100%;
  height: 50px;
  background: #32BCAD;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 2px 2px 2px #ccc;
  margin-top: 10px;
}

.btn-gerar:hover {
  background: #2DAF9A;
}

.btn-gerar:active {
  transform: scale(0.95);
}

#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px #000;
  z-index: 1000;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.imgQrcode {
  width: 100%;
  height: 100%;
}
.popup-class{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.iconClose{
  font-size: 1.5rem;
  background-color: #32BCAD;
  color: #fff;
  box-shadow: 2px 2px 2px #ccc;
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
  border: none;
  text-align: center; 
  font-weight: bold;
}

.form-section-outras-doacoes {
  width: 100%;
  background-color: var(--branco);
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--sombra);
}

.form-input-outras-doacoes {
  width: 100%;
  height: 40px;
  font-size: 14px;
  padding: 0 10px;
  margin-top: 5px;
  border-radius: 18px;
  outline: none;
  box-shadow: 2px 2px 2px #ccc;
  border: 1px solid #ccc;
}

.form-textarea {
  width: 100%;
  height: 140px;
  padding: 0.75rem;
  border-radius: 20px;
  border: 1px solid #A3A3A3;
  font-size: 1rem;
  resize: vertical;
  margin-top: 5px;
}

.btn-enviar-red {
  width: 40%;
  background: #d93025;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 18px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 2px 2px 2px #ccc;
  display: flex;
  align-self: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-enviar-red:hover {
  background: #c62828;
}

.btn-enviar-red:active {
  transform: scale(0.95);
}

.input-row {
  display: flex;
  gap: 20px;
}

#formulario-outras-doacoes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-name {
  width: 70%;

}

.form-group-wpp {
  width: 30%;
}

/* =================== FOOTER =================== */
.footer {
  background-color: var(--azul-principal);
  display: flex;
  color: var(--cinza-claro);
  justify-content: center;
  font-size: .7em;
  padding: 4em 1em 1em 1em;
}

.footer-container {
  min-width: 100%;
}

.footer a {
  color: #F5F5F5;
  text-decoration: none;
}

.footer h4 {
  font-weight: 800;
}

.footer-logo {
  width: 120px;
  border-radius: .48em;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 5em;

}

.footer-bottom {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-top: 1px solid #4190a3;
  margin: 5em auto 1em auto;
  padding: 1em;
  width: 50%;
}

.div-footer-information p {
  color: #E4F1FF;
  font-size: 1.45em;
}

.content-information-footer {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.return-button-class {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.return-button {
  width: 90%;
  height: 50px;
  background: #32BCAD;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 2px 2px 2px #ccc;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.return-button:hover {
  background: #2DAF9A;
}

.return-button:active {
  transform: scale(0.95);
}

/* =================== RESPONSIVIDADE =================== */

@media (max-width: 1200px) {
    .container {
        width: 85%;
    }
}

@media (max-width: 999px) {
    .footer {
        display: none;
    }

    .nav-links-wrapper {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--clr-neutral-100);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links-wrapper.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .menu-mobile {
        display: block;
    }

    .container {
        width: 90%;
        margin: 30px auto;
    }

    .form-section {
        flex-direction: column;
    }

    .pix-image,
    .img-doacao {
        display: none;
    }

    .form-card {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 10px;
    }

    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group-name,
    .form-group-wpp {
        width: 100%;
    }

    .btn-enviar-red {
        width: 100%;
    }

    .form-note {
        font-size: 12px;
        text-align: center;
    }

    .return-button-class {
        display: flex;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

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

    .form-input,
    .form-input-outras-doacoes,
    .form-textarea {
        font-size: 14px;
    }

    .btn-gerar,
    .btn-enviar-red {
        font-size: 16px;
        padding: 15px;
    }

    #popup {
        width: 90%;
    }
}