/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
  }
  
  /* Header com logo */
  header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }
  
  header img.logo {
    height: 68px;
  }
  
  /* Container principal */
  main.form-wrapper {
    max-width: 540px;
    width: 100%;
    background: #fff;
    margin: 40px auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
  
  main h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    font-size: 24px;
  }
  
  /* Grupos de campos */
  .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
    outline: none;
  }
  
  /* Input internacional com bandeira */
  .iti {
    width: 100%;
  }
  
  /* Estilo para as etapas do formulário */
  .form-step {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .form-step.active {
    display: flex;
  }
  
  /* Botões */
  button {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .next-btn,
  .back-btn,
  .submit-btn {
    margin-top: 20px;
  }
  
  .next-btn,
  .submit-btn {
    background-color: #0077cc;
    color: #fff;
  }
  
  .back-btn {
    background-color: #ccc;
    color: #333;
    margin-right: 10px;
  }
  
  .next-btn:hover,
  .submit-btn:hover {
    background-color: #005fa3;
  }
  
  .back-btn:hover {
    background-color: #aaa;
  }
  
  /* Botões alinhados lado a lado */
  .step-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  /* Mensagem de erro/sucesso */
  #msg {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: #0077cc;
  }
  
  /* Oculto */
  .hidden {
    display: none !important;
  }
  
  /* Animação entre passos */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsivo */
  @media (max-width: 600px) {
    main.form-wrapper {
      margin: 20px;
      padding: 25px;
    }
  
    .step-buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    button {
      width: 100%;
    }
  
    .back-btn {
      margin-right: 0;
    }
  }
/* Ajustes no estilo do campo de telefone */
#telefone {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s;
    background-color: #fff;
}

.iti {
    width: 100%;
}

.iti input {
    width: calc(100% - 30px); /* Ajuste para o input ficar proporcional ao DDI */
}
