/*CONFIGURAÇÕES BASICAS*/
body {
  background-color: #f4f5f7;
  margin-top: 120px;
  overflow-x: hidden;
}

h2 {
  color: #002471;
}

.enquadrar {
  margin: 0 10% 0 10%;
  margin-top: 120px;
  box-sizing: border-box; 
  overflow-x: hidden;
}

/*----------CABEÇALHO--------*/
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to right, #2ed5c2, #1ba89d);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 9999;
  box-sizing: border-box; 
}

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

header .cabecalho {
  font-size: 30px;
  color: #040f8e;
  font-weight: bold;
}

/* --------Link do Instagram--------*/
.redesocial {
  padding: 2px;
}


.redesocial p {
  margin: 0;
  padding: 0;
}

.redesocial img {
  height: 30px;
  width: 50px;
}

.redesocial a {
  color: #030833;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  margin-right: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
}

.redesocial a:hover {
  color: #0056b3;
}

/*-----------MENÇÃO----------*/
#mensao {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  text-align: justify;
  font-size: 25px;
  padding: 5px;
  color: #030833;
  overflow-x: hidden; 
  box-sizing: border-box;
}

#louise {
  border-radius: 40px;
  width: 300px;
  height: 300px;
  object-fit: cover;
  max-width: 100%; 
  height: auto; 
}

/*---Esconder link--*/
.redesocial_mobile a {
  display: none;
}

/*----FORMULARIO----*/
#form-voluntario {
  max-width: 700px;
  margin: 20px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden; 
}

/*---Titulos----*/

#form-voluntario h2 {
  text-align: center;
  color: #002471;
  margin-bottom: 30px;
  font-size: 2em;
}

#form-voluntario h3 {
  margin-top: 30px;
  color: #002471;
  font-size: 1.4em;
  border-bottom: 2px solid #eef7f6;
  padding-bottom: 10px;
  margin-bottom: 20px;
}


.form-voluntario label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #002471;
  font-size: 1.05em;
}

.form-group {
  margin-bottom: 20px;
  overflow-x: hidden; 
}

.form-voluntario input[type="text"],
.form-voluntario input[type="email"],
.form-voluntario input[type="tel"],
.form-voluntario select,
.form-voluntario textarea {
  margin-bottom: 5px;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box; 
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-voluntario input:focus,
.form-voluntario select:focus,
.form-voluntario textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-voluntario button[type="submit"] {
  padding: 15px 20px;
  background-color: #2ed5c2;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 25px;
  box-sizing: border-box; 
  width: 100%;
}

.form-voluntario button[type="submit"]:hover {
  background-color: #1ba89d;
  transform: translateY(-2px);
}

/*----Para preenchimento com erros---*/
.error-message {
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 5px;
  display: block;
}

.optional-field {
  color: #6c757d;
  font-size: 0.85em;
  margin-top: -10px;
  display: block;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  padding-right: 10px; 
  box-sizing: border-box;
}

.radio-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
  color: #333;
  word-break: break-word;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
  width: auto;
  height: auto;
  transform: scale(1.2);
  flex-shrink: 0;
}

/* --- Estilos para as Cláusulas (Modo Lupa para Mobile) --- */
.clausula {
  background-color: #eef7f6;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  text-align: justify;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  box-sizing: border-box; 
  overflow-x: hidden;
}

/*-----Lupa-----*/
.clausula::after {
  content: "🔍";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #002471;
  flex-shrink: 0;
}

.clausula:hover {
  background-color: #e0f0ef;
}

/*------Botões de decições dos voluntarios----*/
.horarios-disponibilidade {
  margin-top: 20px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background-color: #fcfcfc;
  box-sizing: border-box;
  overflow-x: hidden; 
}

.horarios-disponibilidade h4 {
  color: #002471;
  margin-bottom: 20px;
  font-size: 1.2em;
  text-align: center;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 10px;
}

.dia-disponibilidade {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.dia-disponibilidade:last-child {
  border-bottom: none;
}

.dia-disponibilidade label:first-child {
  font-weight: bold;
  color: #002471;
  margin-bottom: 10px;
  font-size: 1.05em;
  width: 100%;
  text-align: left;
}

.opcoes-turno {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.opcoes-turno input[type="checkbox"] {
  display: none;
}

.btn-turno {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #002471;
  border-radius: 25px;
  background-color: #ffffff;
  color: #002471;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  box-sizing: border-box;
}

.opcoes-turno input[type="checkbox"]:checked+.btn-turno {
  background-color: #2ed5c2;
  color: white;
  border-color: #1ba89d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-turno:hover {
  background-color: #f0f7f6;
  border-color: #001a5a;
  transform: translateY(-1px);
}

/*--Lei--*/
.lei-link {
  color: #0077cc;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.lei-link:hover {
  color: #005599;
}

/* --- Estilos do Modal de Cláusulas para Mobile --- */
.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.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.modal-title {
  color: #002471;
  font-size: 1.6em;
  margin-bottom: 15px;
  text-align: center;
}

.modal-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

/*---Botão flutuante-----*/
.btn-voltar-principal {
  background-color: #002471;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-voltar-principal:hover {
  background-color: #001a5a;
}

.btn-flutuante-principal {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #2ed5c2;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 2px 2px 5px black;
  z-index: 999;
  transition: background 0.3s;
}

.btn-flutuante-principal:hover {
  background-color: #1ba89d;
}

/*----------FOOTER-------------*/
footer {
  background-image: linear-gradient(to top, #0f7a6e, #1d998a, #28c4b1);
  padding: 30px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/*--Formação dos títulos--*/
.div1footer h2 {
  margin-top: 0;
  color: #ffffff;
}

.T1footer {
  padding: 50px 30px 0 30px;
  text-align: center;
}

.T2footer {
  text-align: center;
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 0;

}

/*---------imagens carrossel-----------*/
.carrosselPai {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  overflow: hidden;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

.carrosselFilho {
  width: 200px;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  border-radius: 10%;
  box-sizing: border-box;
}

.track {
  display: flex;
  height: 100%;
  width: 600px;
  animation: slide 10s infinite alternate linear;
}

.track img {
  width: 200px;
  min-width: 200px;
  height: 200px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }

}

/*-------Listas-------*/

.liFooter {
  text-align: center;
  list-style: disc;
  padding-left: 0;
  display: inline-block;
  width: 100%;
  color: white;
  margin-bottom: 40px;
  margin-top: 0;
  box-sizing: border-box;
}

.liFooter li {
  display: inline-block;
  margin: 0 10px;
  text-align: left;
}

.liFooter a {
  color: white;
}



/*------------ MODO MOBILE ----------- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden; 
    width: 100%; 
    margin: 0; 
    padding: 0;
    margin-top: 0; 
  }

  header {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    justify-content: center;
    box-sizing: border-box;
  }

  header img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
  }

  header .cabecalho {
    font-size: 22px;
    text-align: center;
    word-break: break-word;
    margin: 0 10px 10px 10px;
  }

  .redesocial a {
    display: none;
  }

  #form-voluntario {
    padding: 20px 15px;
    margin: 20px 10px; 
    border-radius: 10px;
    max-width: 100%; 
    box-sizing: border-box;
  }

  #form-voluntario h2 {
    font-size: 1.6em; 
    margin-bottom: 15px;
  }

  #form-voluntario h3 {
    font-size: 1.2em; 
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .form-voluntario label {
    font-size: 1em;
  }

  .form-voluntario input,
  .form-voluntario select,
  .form-voluntario textarea {
    padding: 10px;
    font-size: 0.95em;
  }

  .form-voluntario button[type="submit"] {
    padding: 12px 15px;
    font-size: 1em;
    margin-top: 20px;
  }

  .opcoes-turno {
    flex-direction: column;
    align-items: center; 
    gap: 10px;
  }

  .btn-turno {
    width: 90%; 
    padding: 10px;
    font-size: 0.9em;
    min-width: unset; 
  }

  .horarios-disponibilidade {
    padding: 15px;
  }

  .horarios-disponibilidade h4 {
    font-size: 1.1em;
  }

  .dia-disponibilidade {
    align-items: center;
  }

  .clausula {
    font-size: 13px;
    padding-right: 30px;
    padding: 12px;
  }

  .clausula::after {
    right: 10px;
    font-size: 1em;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal-title {
    font-size: 1.4em;
  }

  .modal-text {
    font-size: 1em; 
  }

  /* Botão flutuante */
  .btn-flutuante-principal {
    bottom: 15px;
    right: 15px;
    padding: 10px 12px;
    font-size: 18px;
  }

  /* Carrossel de apoiadores */
  .carrosselPai {
      min-height: 250px;
  }
  
  .carrosselFilho {
      width: 150px;
      height: 150px;
  }
  
  .track {
      width: auto; 
      animation: slideMobile 10s infinite alternate linear; 
  }
  
  .track img {
      width: 150px;
      min-width: 150px; 
      height: 150px;
  }
  
  @keyframes slideMobile {
      0% {
          transform: translateX(0);
      }
      
      100% {
          transform: translateX(calc(-150px * (4 - 1))); 
      }
  }

  /* Listas do rodapé */
  .liFooter {
    font-size: 14px;
    padding: 0 10px; 
  }

  .liFooter li {
    display: block;
    margin: 5px 0;
    text-align: center;
  }
}