*,
html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.main {
    width: 60%;
}

.header {
    display: flex;
    padding-top: 20px;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.header-logo {
    width: 350px;
}

.steppers {
    display: flex;
    margin-bottom: 1rem;
}

.steppers p {
    padding: 1rem;
    border: 0.1px solid rgb(208, 203, 203);
    font-size: 1.4rem;
}

.steppers-1 {
    border-radius: 5px 0px 0px 5px;
}

.steppers-3 {
    border-radius: 0px 5px 5px 0px;
}

.active-stepper {
    background-color: #00223e;
    color: #fff;
}

.form {
    display: flex;
    flex-direction: column;
    background-color: #fbfbfb;
    padding: 2rem;
    display: none;
}

.form p {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.form label::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

.form input[type="text"] {
    margin-bottom: 1rem;
    padding: 0.6rem;
}



.payment {
    display: flex;
    flex-direction: column;
    background-color: #fbfbfb;
    padding: 2rem;
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px 12px;
}

th {
    /* background-color: #f5f5f5; */
    text-align: left;
    font-weight: 600;
}

/* opcional: destacar a linha de total */
tr:last-child td {
    font-weight: 600;
}

.pix-header {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    margin-bottom: 10px;
}

.pix-card {
    display: flex;
    flex-direction: column;
    background-color: #efefef;
    padding: 2rem;
}

.pix-card-instructions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 2rem;
    gap: 1rem;
}

.pix-card-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 20%;
    border-radius: 5px;
}

.pix-card-instruction-number {
    background-color: #3aff6c;
    border-radius: 100%;
    padding: 10px 15px;
    font-weight: bold;
}

.pix-card-instruction-text {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
}

.policy {
    margin: 2rem 0rem;
}

.end-button {
    border: none;
    background-color: #00223e;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 10px;
}

.steppers-buttons {
    width: 100%;
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-bottom: 3rem;
}

.steppers-buttons button {
    border: none;
    font-size: 1.6rem;
    padding: 0.5rem 2rem;
    border-radius: 5px;
    background-color: #00223e;
    color: #fff;
}

.active {
    display: flex;
}

@media (max-width: 768px) {
  .main {
    width: 90%;
    padding: 0 1rem;
  }

  .header-logo {
    width: 200px;
  }

  /* Empilha os steppers em vez de manter em linha */
  .steppers {
    flex-direction: column;
    align-items: stretch;
  }
  .steppers p {
    font-size: 1.2rem;
    padding: 0.8rem;
    text-align: center;
  }
  .steppers-1,
  .steppers-2,
  .steppers-3 {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .active-stepper {
    border-radius: 5px;
  }

  /* Formulários e payment com paddings menores */
  .form,
  .payment {
    padding: 1rem;
  }

  .form input[type="text"],
  .payment input[type="text"] {
    width: 100%;
  }

  /* Tabela rolável horizontalmente */
  .payment table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  /* Pix card mais compacto */
  .pix-card {
    padding: 1rem;
  }
  .pix-card-instructions {
    flex-direction: column;
    gap: 1rem;
  }
  .pix-card-instruction {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  /* Botões em coluna */
  /* .steppers-buttons {
    flex-direction: column-reverse;
    gap: 0.5rem;
  } */
  /* .steppers-buttons button {
    width: 100%;
    padding: 0.8rem;
  } */
}

/* Ajustes extras para celulares pequenos */
@media (max-width: 480px) {
  .header-logo {
    width: 150px;
  }
  .steppers p {
    font-size: 1rem;
  }
  .form p {
    font-size: 1.4rem;
  }
  .form label {
    font-size: 0.85rem;
  }
  .end-button,
  .steppers-buttons button {
    font-size: 1rem;
    padding: 0.6rem;
  }
}