.parallax {
  height: 100vh;
  background: url(../images/only_bg.webp) center / cover no-repeat fixed;
  will-change: transform;
  position: fixed;
  transform: translateZ(0);
  width: 100%;
  z-index: -1;
  top: 0;
}

.contribuicao-container .intro-texto {
  text-align: center;
  max-width: 35rem;
  margin: auto;
  font-size: 1.5rem;
  color: #f3f3f3;
  margin: 1.5rem 0;
  font-family: var(--secondary-font-bkp);
  line-height: 2.5rem;
}

.container {
  max-width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opcoes-pagamento {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  position: absolute; /* Para não ocupar espaço na página */
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out,
    height 0.6s ease-in-out;
}

/* Classe para mostrar o formulário ativo com transição suave */
.opcoes-pagamento.mostrar {
  opacity: 1;
  visibility: visible;
  height: auto;
  position: relative; /* Torna visível novamente */
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out,
    height 0.6s ease-in-out;
}

/* Container Principal da Contribuição */
.contribuicao-container {
  padding: 1rem 0;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-top: 7rem;
}

/* Botões de Escolha */
.botoes-contribuicoes {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  z-index: 10;
}

.botoes-contribuicoes button {
  background-color: #ef6a01;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.botoes-contribuicoes button:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.05);
}

/* Card do Formulário */
.card-formulario {
  width: 100%;
  max-width: 48rem;
  background-color: #f3f3f3;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin-top: 1rem;
  overflow: hidden;
  color: darkorange;
}

/* Títulos dos Formulários */
.card-formulario h3 {
  font-size: 1.5rem;
  color: #ef6a01;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Container do Cartão e Formulário */
.cartao-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* Cartão de Exemplo */
.cartao-preview {
  width: 45%;
}

.cartao {
  width: 100%;
  max-width: 300px;
  height: 180px;
  background: linear-gradient(135deg, #1e90ff, #007bff);
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cartao .chip {
  width: 50px;
  height: 35px;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.cartao p {
  margin: 0;
  font-size: 1rem;
}

.cartao p span {
  font-weight: bold;
}

/* Container do Boleto e Formulário */
.boleto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* Boleto de Exemplo */
.boleto-preview {
  width: 45%;
}

.boleto {
  width: 100%;
  max-width: 25rem;
  padding: 20px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boleto p {
  margin: 0;
  font-size: 14px;
}

.boleto p span {
  font-weight: bold;
}

/* Formulário */
#formBoleto,
#formPix {
  width: 50%;
  font-family: var(--secondary-font-bkp);
  display: flex;
  flex-direction: column;
}

#formCartao {
  font-family: var(--secondary-font-bkp);
}

.form-container .text-center {
  font-family: var(--secondary-font-bkp);
}

.form-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

#formBoleto h3,
#formPix h3,
#formCartao h3 {
  margin-bottom: 1.5rem;
}

#verParcelas {
  width: 15rem;
}

.dados .dados-cartao,
.dados .dados-contribuinte,
.dados .dados-cobranca {
  width: 30%;
}

.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 220px;
  border-radius: 15px;
  background: var(--card-color, #cacaca);
  color: #fff;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card .chip {
  width: 40px;
  height: 30px;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.card_number {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.fullname {
  font-size: 1.2rem;
  font-weight: bold;
}

.date {
  font-size: 1rem;
}

.type img {
  width: 50px;
  height: auto;
  float: right;
}

.card-formulario .formCartao1,
.card-formulario .formPix1,
.card-formulario .formBoleto1 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  padding: 1rem 0;
  align-items: center;
}

.card-formulario .form-control:focus {
  border-color: #c35d00;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(253 112 13 / 25%);
}

.contribuicao-container .wrapper {
  display: flex;
  justify-content: space-evenly;
  min-height: auto;
  overflow: hidden;
  width: 100%;
  align-items: center;
  flex-direction: column;
}

.form-container .form-label {
  font-weight: 600;
  color: #ef6a01;
}

#formCartao {
  width: 100%;
  margin: 1.5rem 0;
}

.dados {
  display: flex;
  gap: 1rem;
  justify-content: space-evenly;
}

.form-container {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-select:focus {
  border-color: #ef6a01;
  box-shadow: 0 0 0 0.2rem rgba(239, 106, 1, 0.25);
}

/* Placeholder do select */
.form-select option {
  background-color: #fff; /* Fundo branco para as opções */
  color: #000; /* Texto preto */
}

.img-abs img {
  width: 20rem;
  position: absolute;
  top: -2rem;
  right: -1rem;
  transform: rotate(70deg);
  z-index: 1;
  opacity: 0.7;
}

.form-title {
  font-size: 1.5rem;
  color: #333333;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-container .form-title {
  font-family: var(--secondary-font);
}

.form-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: #ef6a01;
}

.form-control {
  background-color: #333;
  color: #f3f3f3;
  border: 1px solid #ef6a01;
  border-radius: 5px;
  font-size: 1rem;
}

.form-control:focus {
  border-color: #d05c00;
  box-shadow: 0 0 5px rgba(239, 106, 1, 0.3);
}

.form-title {
  font-size: 1.5rem;
  color: #333333;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Estilo dos campos */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 2px solid #cccccc;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  border-bottom: 2px solid #ef6a01;
}

.form-label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #cccccc;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-select:focus + .form-label,
.form-select:not([value=""]) + .form-label {
  top: -0.5rem;
  font-size: 0.85rem;
  color: #ef6a01;
}

.form-group {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cartao-form {
    width: 100%;
  }

  .contribuicao-container .intro-texto {
    font-size: 1.3rem;
  }

  .contribuicao-container .form-container {
    width: 100% !important;
  }

  .contribuicao-container .wrapper {
    display: flex;
    justify-content: space-evenly;
    min-height: auto;
    overflow: hidden;
    width: 100%;
    align-items: center;
  }

  .dados {
    flex-direction: column;
    gap: 1rem;
  }

  #formBoleto,
  #formPix,
  .dados .dados-cartao,
  .dados .dados-contribuinte,
  .dados .dados-cobranca {
    width: 100%;
  }
  .img-abs img {
    width: 8rem;
    position: absolute;
    top: -1rem;
    right: -1rem;
    transform: rotate(35deg);
    z-index: 1;
  }
}
