.etapas {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 150px;
  }

  .etapas div {
    border: 2px solid #a3471b;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    color: #a3471b;
  }

  .etapas .ativa {
    background-color: #a3471b;
    color: white;
    font-weight: bold;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
  }

  thead {
    text-align: left;
    border-bottom: 2px solid #3b1e0e;
  }

  th, td {
    padding: 15px 10px;
    vertical-align: top;
  }

  .item {
    border-bottom: 1px solid #ccc;
  }

  .item img {
    width: 80px;
    height: auto;
    margin-right: 10px;
    vertical-align: top;
  }

  .item-desc {
    display: flex;
    align-items: center;
  }

  .quantidade,
  .valor {
    text-align: center;
  }

  .counter {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .counter button {
    padding: 4px 10px;
    background-color: #a3461b65;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    border-radius: 100%;
    transition: 0.5s ease;
  }

  .counter button:hover{
    background-color: #a3471b;
  }

  .counter span {
    min-width: 20px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
  }

  a{
    text-decoration: none;
    color: #7f604e;
    transition: 0.5s ease;
  }

  a:hover{
    color: #a3471b;
  }

  .botao {
    background-color: #a3471b;
    color: white;
    border: 2px solid #a3471b;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 0;
  }

  .botao-outline {
    border: 2px solid #a3471b;
    color: #a3471b;
    background: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
  }

  .rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .total {
    text-align: right;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-right: 35px;
  }


  /*ETAPA 2*/

  .texto{
    text-align: center;
    max-width: 100%;
    font-size: 29px;
  }

  .form-input{
    max-width: 600px;
    margin: 0 auto;
    margin-top: 40px;
  }
  
  input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    height: 60px;
    padding: 10px;
    font-size: 20px;
    margin-bottom: 20px;
    border: 3px solid #7f604e;
    border-radius: 5px;
    outline: none;
    color: #7f604e;
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
}


/* ETAPA 3 */

.opcoes-pagamento {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.opcao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 30%;
  padding: 10px 15px;
  border: 3px solid #7f604e;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  background-color: #ffffff;
}

.opcao input[type="radio"] {
  margin-right: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;
  height: 18px;
  border: 2px solid #7f604e;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.opcao input[type="radio"]:checked{
  background-color: #ffffff;
}

.opcao input[type="radio"]::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #7f604e;
  position: absolute;
  top: 3px;
  left: 3px;
  opacity: 0;
}

.opcao input[type="radio"]:checked::after {
  opacity: 1;
}

.icone {
  margin-left: auto;
  font-size: 20px;
}

.temporario{
  color: red;
  text-align: center;
  font-size: 20px;
}


/* ETAPA 4 */

.etapa4{
  text-align: center;
}

.confirmacao{
  font-size: 32px;
  text-align: center;
  text-transform: uppercase;
  margin: 40px 0;
}

.etapa4 p{
  font-size: 25px;
}

.etapa4 h3{
  font-size: 59px;
  font-family: 'Virtual-regular';
  color: #a3471b;
  margin-top: 40px;
  margin-bottom: 20px;
}

.botao-outline-final {
  border: 2px solid #a3471b;
  color: #a3471b;
  background: #ffffff;
  padding: 10px 20px;
  cursor: pointer;
}

.rodape-final {
  display: flex;
  justify-content: center;
  gap: 20%;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}


  /* Ajuste para telas menores */
@media (max-width: 768px) {

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

.etapas div {
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  width: 60%;
}

  table {
    width: 100%;
  }

  thead {
    display: none; /* Esconde cabeçalho em telas pequenas */
  }

  tbody, tr, td {
    display: block;
    width: 100%;
    text-align: center;
  }

  tr.item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .item-desc {
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRALIZA IMG + TEXTO */
  }

  .counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .remove {
    margin-top: 10px;
  }

  .valor {
    margin-top: 10px;
    font-weight: bold;
  }

    .total-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  .total-linha td {
    display: block;
    width: auto;
    text-align: left;
  }

  .total-linha .valor {
    text-align: right;
    flex: 1;
  }

  .total-linha .quantidade {
    display: none; /* Esconde a célula vazia */
  }

.rodape, .rodape-final {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.opcoes-pagamento{
  margin-bottom: 40px;
}

.opcao{
  width: 100%;
}

.confirmacao{
  font-size: 22px;
}

.etapa4 p{
  font-size: 18px;
}

.etapa4 h3{
  font-size: 20px;
}
}

/* Ajuste para telas muito pequenas (celulares) */
@media (max-width: 480px) {
  th, td {
    padding: 10px 5px;
  }

  .etapas div {
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    width: 60%;
  }

  .item-desc div {
    font-size: 14px;
  }
}