/* ==============================================
   CONTAINER PRINCIPAL - SEÇÃO DE CONVITE
   ============================================== */
.invite {
  background-color: #212427;
  border-radius: 14px;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  flex: 2;

  /* ---------- TÍTULO ---------- */
  & h2 {
    color: #f9f9f9;
    width: 560px;
    font-family: "Baloo 2", sans-serif;
    font-size: 28px;
    font-weight: bold;
    font-style: normal;
    line-height: auto;
    padding-bottom: 40px;
  }

  /* ---------- FORM PRINCIPAL ---------- */
  & .form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    color: #f9f9f9;

    /* Texto/Label acima dos campos */
    & p {
      gap: 12px;
      display: flex;
      align-items: center;
      font-size: 18px;
      font-weight: 20;
      font-family: "Baloo 2", sans-serif;
      line-height: 20px;
    }

    /* Formulário interno */
    & form {
      display: flex;
      flex-direction: column;
      gap: 16px;

      color: #f9f9f9;

      /* Campos de input padrão */
      & input {
        height: 40px;
        padding: 0 12px;
        border-radius: 6px;
        border: none;
        background-color: #1c1f21;
        color: #869198;
        font-size: 16px;
        border: 1px solid #363b40;
        gap: 16px;
        margin-top: 12px;
      }

      /* Linha de inputs de data */
      & .data {
        display: flex;
        gap: 12px;

        & .data-item {
          flex: 1;
          display: flex;
          flex-direction: column;
          gap: 4px;

          /* Texto sempre em maiúsculo */
          & input {
            text-transform: uppercase;
          }

          /* Remove o ícone do seletor de data/hora */
          & input[type="datetime-local"]::-webkit-calendar-picker-indicator {
            display: none;
          }
        }
      }
    }

    /* Linha tipo de evento/local */
    .tipo-local-row {
      display: flex;
      gap: 16px;
      width: 100%;
    }

    /* Campos presencial/online/local */
    .presencial-online-box,
    .local {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;

      & input {
        height: 48px;
      }
    }

    /* Caixa de opções */
    & .container-inputs {
      background-color: #1c1f21;
      border-radius: 6px;
      border: 1px solid #363b40;
      display: flex;
      flex-direction: row;
      width: 272px;
      align-items: center;
      margin-top: 12px;
      height: 48px;

      /* Opção individual */
      & .container-option {
        width: 100%;
        height: 48px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;

        &:hover {
          background-color: #2d3136;
          border: 1px solid #363b40;
          border-radius: 6px;
        }

        & input {
          display: none;
        }
      }
    }

    /* Labels do formulário */
    & label {
      font-size: 14px;
      font-weight: 500;
      font-family: "Baloo 2", sans-serif;
      line-height: 20px;
    }

    /* Caixa de descrição/textarea */
    & .container-descricao {
      display: flex;
      flex-direction: column;
      gap: 8px;

      & textarea {
        height: 120px;
        padding: 12px;
        border-radius: 6px;
        border: none;
        background-color: #1c1f21;
        color: #869198;
        font-size: 16px;
        border: 1px solid #363b40;
      }
    }
  }
}

/* ---------- Estado selecionado para opções ---------- */
.container-option:has(input:checked) {
  background-color: #2d3136;
  border: 1px solid #363b40;
  border-radius: 6px;
}

/* ==============================================
   CAIXA DE TÍTULO + ÍCONE DE PERSONALIZAÇÃO
   ============================================== */
.box-personalizacao {
  display: flex;
  gap: 12px;
  font-family: "Baloo 2", sans-serif;
  padding-bottom: 24px;
}

/* ==============================================
   CAIXA DE CORES - "COLOR PICKER"
   ============================================== */
.form .colors {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex: auto;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;

  /* Esconde os inputs de cor */
  & input {
    display: none;
    width: 35px;
    height: 35px;
    background-color: rgb(0, 0, 0);
  }

  /* Estilo das bolinhas de cor */
  & label {
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 5px solid #2d3136;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgb(121, 34, 94);
  }

  /* Hover da bolinha */
  & label:hover {
    border: 3px solid #59b2ff;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
  }

  /* Estado selecionado */
  & input:checked + label {
    border: 3px solid #59b2ff;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(89, 178, 255, 0.5);
  }
}

/* Container principal */
.container {
  max-width: 100%;

  color: #fff;
  background-color: #212427;
  border-radius: 14px;
}

/* Títulos das seções */
h2 {
  margin-bottom: 15px;
}

/* Seção de temas */
.temas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Cada tema */
.tema {
  background-color: #2a2d31;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, border 0.2s;
  border: 2px solid transparent;
}

.tema img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.tema span {
  display: block;
  padding: 5px;
}

/* Tema selecionado */
.tema.ativo {
  border: 2px solid #4e90ff;
  transform: scale(1.05);
}

/* Seção botão escuro / claro */

.estilo p {
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #fff; /* cor do texto */
  margin-right: 10px;
  padding-bottom: 8px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #fff; /* cor do texto */
}

.switch input {
  display: none;
}

.switch label {
  display: flex;
  align-items: center;
  position: relative;
  background-color: #1c1f21;
  border: 2px solid #363b40;
  width: 63px;
  height: 32px;
  border-radius: 30px;
  padding: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.switch label:after {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #363b40;
  border-radius: 50%;
  transition: left 0.2s;
}

.switch input:checked + label {
  background-color: #4e90ff;
}

.switch input:checked + label::after {
  left: calc(100% - 29px);
  background-color: #fff;
}

.switch .texto::before {
  content: "Escuro";
  margin-left: 10px;
  font-weight: bold;
  color: #fff; 
}

.switch input:checked ~ .texto::before {
  content: "Claro";
  color: #fff; 
}

/*  ------------------------------------ */

/* Estilo da foto de capa */
.estilo-foto {
  display: flex;
  gap: 20px;
  margin: 20px 0;

  justify-content: space-between;
  align-items: center;
}

.foto-de-capa-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.foto-capa input[type="file"] {
  position: absolute;
  opacity: 0;
}
.foto-capa button {
  gap: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  width: 119px;
  height: 40px;
  background-color: #2d3136;
  color: #f9f9f9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.Nenhum-arquivo-selecionado::before {
  content: "Nenhum arquivo selecionado";
  color: #f9f9f9;
  font-size: 16px;
  font-family: "Baloo 2", sans-serif;
}

.foto-de-capa-container input::content ~ .Nenhum-arquivo-selecionado {
  content: "dddddddo";
  color: #f9f9f9;
  font-size: 16px;
  font-family: "Baloo 2", sans-serif;
}

/*  ------------------------------------ */

/* Contato */

.contato h2 {
  display: flex;
  gap: 12px;
}
.email-box,
.telefone-box {
  width: 100%;
}
.container-form-e-mail-telefone {
  display: flex;
  flex-direction: row;
  width: 100%;

  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

#nome-completo,
#email,
#telefone {
  width: 100%;
}

.contato input[type="text"]:invalid {
  border: 1px solid red;
}

.contato label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.contato a {
  color: #4e90ff;
  text-decoration: none;
}

.contato a:hover {
  text-decoration: underline;
}

/* Botão */
button {
  margin-top: 10px;
  padding: 12px;
  background-color: #4e90ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #3a6fd8;
}
.botao-gerar-convite {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: end;
  width: 100%;
}


/* DADOS DO FOOTER*/

footer {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  font-family: "Baloo 2", sans-serif;
  justify-content: center;
  font-size: 14px;
  text-align: left;
  gap: 4px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #1c1f21;
  border: 2px solid #363b40;
  border-radius: 4px;
  transition: all 0.2s;
}
.checkbox-container input:checked ~ .checkmark {
  background: #1C1F21;
  border-color: #363B40;
}

.checkmark img {
  opacity: 0;
  transition: opacity 0.2s;
}

.checkbox-container input:checked ~ .checkmark img {
  opacity: 5;
}
/* Botão */
.gerar-convite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  width: 160px;
  height: 40px;
  background-color: #4e90ff;
  color: #f9f9f9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}
/* Botão */
button {
  margin-top: 10px;
  padding: 12px;
  background-color: #4e90ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}
/* Botão */
button:hover {
  background-color: #3a6fd8;
}
.botao-gerar-convite {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: end;
  width: 100%;
  padding-top: 48px;
}
/* Botão */