/* Responsividade para a etapa do contribuinte */
@media (max-width: 768px) {
  .form-step:nth-of-type(2) {
    padding: 10px 8px 24px 8px;
  }
  .form-step:nth-of-type(2) .grid-2col {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    /* gap: 0 !important; */
  }
  .form-step:nth-of-type(2) .grid-2col > div,
  .form-step:nth-of-type(2) .grid-2col > label {
    width: 100% !important;
  }
  .form-step:nth-of-type(2) label,
  .form-step:nth-of-type(2) input,
  .form-step:nth-of-type(2) select,
  .form-step:nth-of-type(2) textarea {
    width: 100% !important;
    font-size: 1rem !important;
    display: block !important;
  }
  
  textarea {
    margin: 0;
    height: 150px;
  }

  .form-step {
    padding: 20px !important;
  }
  
  .container-anexoTaxa {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-step#step-tax ul.passo-tax-ul {
    /* border: 1px solid red; */
    padding: 0;
    text-align: left;
  }

  .form-step:nth-of-type(2) .next-btn {
    width: 100% !important;
    display: block !important;
    margin-top: 18px !important;
    font-size: 1.1rem !important;
    padding: 14px 0 !important;
    box-sizing: border-box;
  }

  .form-step h2 {
    /* border: 1px solid red; */
    margin: 0;
    font-size: 22px;
  }

  .grid-2col {
    display: flex;
    flex-direction: column;
  }

  .docs-procurador-anexos {
    display: flex;
    border: 1px solid #c4d8f5;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px; /* Remove o padding inferior */
    min-height: auto;
    border-radius: 8px;
    /* border: 1px solid #ccc; */
    margin-bottom: 10px; /* Afasta os botões e mostra a borda inferior */
  }

  .docs-procurador-anexos .linha-anexo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
  }
  .docs-procurador-anexos .anexo-campo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px; /* Espaço entre os itens, se necessário */
  }
  .docs-procurador-anexos label.titulo-anexo {
    font-size: 1rem;
    font-weight: 400;
    /* color: #2B2862; */
    margin-bottom: 0;
    text-align: left;
    /* flex: 1; */
  }

  .docs-procurador-anexos .erro-campo {
    width: 100%;
    font-size: 0.95rem;
    color: #e74c3c;
    text-align: left;
    display: block;
  }

  .sucesso-campo {
    color: #22c55e;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    min-height: 18px;
    /* text-align: left; */
    
  }

  .anexo-mensagem {
    margin: 0;
  }

  .container-botoes {
    display: flex;
    width: 100%;
    gap: 10px;
  }

  button,
  .next-btn,
  .prev-btn,
  .submit-btn {
    font-size: 1.1rem;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #2B2862;
    font-weight: 500;
  }

  /* #btnObservacaoEnviar {
    margin: 0;
  } */

  .docs-procurador-anexos input[type="file"] {
    position: relative;
    overflow: visible;
  }

  .docs-procurador-anexos label.upload-label.has-attachment::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    background-color: #22c55e;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1.2s ease-out;
    pointer-events: none;
  }

  /* APENAS para os campos do procurador - quadrados pequenos com só ícone */
  .docs-procurador-anexos .upload-btn,
  .docs-procurador-anexos .upload-btn-doc,
  .docs-procurador-anexos .upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    background: #2B2862 !important;
    border-radius: 8px !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .docs-procurador-anexos .upload-btn:hover,
  .docs-procurador-anexos .upload-btn-doc:hover {
    background: #003d82 !important;
  }

  /* Esconder COMPLETAMENTE o texto nos botões do procurador */
  .docs-procurador-anexos .upload-btn p,
  .docs-procurador-anexos .upload-btn-doc span,
  .docs-procurador-anexos .upload-btn span {
    display: none !important;
  }

  /* Mostrar apenas o ícone nos campos do procurador */
  .docs-procurador-anexos .upload-btn i,
  .docs-procurador-anexos .upload-btn-doc i,
  .docs-procurador-anexos .upload-label i,
  .docs-procurador-anexos .upload-btn svg,
  .docs-procurador-anexos .upload-label svg {
    margin: 0;
    display: block;
    font-size: 1.2rem !important;
    color: #fff !important;
  }

  /* Indicador de arquivo anexado APENAS para campos do procurador */
  .docs-procurador-anexos label.upload-btn.has-attachment::after,
  .docs-procurador-anexos label.upload-btn-doc.has-attachment::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background-color: #22c55e;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1.2s ease-out;
    pointer-events: none;
  }

  /* Garantir que os botões do procurador tenham position relative para o indicador */
  .docs-procurador-anexos .upload-btn,
  .docs-procurador-anexos .upload-btn-doc {
    position: relative !important;
  }

  /* Campos de documentação e outros - estilo NORMAL no mobile */
  .docs-grid .upload-btn-doc {
    width: 100% !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    background: #2B2862 !important;
    padding: 12px 18px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08) !important;
  }

  .docs-grid .upload-btn-doc:hover {
    background: #003d82 !important;
  }

  /* Manter o texto nos campos de documentação */
  .docs-grid .upload-btn-doc span,
  .docs-grid .upload-btn-doc p {
    display: block !important;
  }

  .docs-grid .upload-btn-doc i {
    font-size: 1rem !important;
    color: #fff !important;
    margin: 0 !important;
  }

  /* Campo individual de planta/croqui - estilo NORMAL no mobile */
  .upload-btn-doc {
    width: 100% !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    background: #2B2862 !important;
    padding: 12px 18px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08) !important;
  }

  .upload-btn-doc:hover {
    background: #003d82 !important;
  }

  /* Manter texto em todos os outros campos */
  .upload-btn-doc span,
  .upload-btn-doc p {
    display: block !important;
  }

  .upload-btn-doc i {
    font-size: 1rem !important;
    color: #fff !important;
    margin: 0 !important;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .doc-card {
    padding: 10px 5px;
  }

  .docs-procurador-anexos .upload-btn-doc span,
  .docs-procurador-anexos .upload-btn-doc p,
  .docs-procurador-anexos .upload-btn-doc::after,
  .docs-procurador-anexos .upload-btn-doc::before {
    display: none !important;
  }

  .anexo-duplo  {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .anexo-item {
    width: 100%;
  }

.form-step#step-tax ul.passo-tax-ul {
  padding: 10px 0;
}

  /* Responsividade para grid-inscricao-checkbox */
  .grid-inscricao-checkbox {
    flex-direction: column;
    gap: 15px;
  }

  .grid-inscricao-checkbox label,
  .checkbox-outras-inscricoes {
    width: 100%;
  }


}
