/* Formulários abertos, sem login. No celular o campo inteiro fica dentro da tela. */
@media (max-width: 767.98px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  .topo, .pub-topo, .pub-topo-inner {
    padding: 10px 12px;
    gap: 10px;
    align-items: center;
  }
  .topo img, .pub-topo img { height: 32px; flex: 0 0 auto; }
  .topo-titulo, .pub-topo-titulo { min-width: 0; flex: 1 1 auto; }
  .topo-titulo strong, .topo-titulo small,
  .pub-topo-titulo strong, .pub-topo-titulo small {
    overflow-wrap: anywhere;
  }
  .topo-titulo strong { font-size: .92rem; }

  .form-card {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .form-card-header, .form-body { padding: 14px 12px; }

  .form-body .row { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; }
  .form-body .row > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .form-control, .form-select, textarea,
  .ts-wrapper, .input-group,
  input[type="date"], input[type="datetime-local"], input[type="time"],
  input[type="email"], input[type="tel"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .form-control, .form-select, .ts-control, .ts-control input, .ts-dropdown .option {
    font-size: 16px !important;
  }
  .ts-wrapper, .ts-wrapper.single, .ts-wrapper.multi { width: 100% !important; }
  .ts-control { min-height: 44px; }
  .ts-control > input { min-width: 0 !important; }
  .ts-dropdown { max-width: 100%; }
  .ts-dropdown .ts-dropdown-content { max-height: 40vh; }
  .input-group { flex-wrap: nowrap; }
  .input-group > .form-control,
  .input-group > .form-select { flex: 1 1 auto; min-width: 0; width: 1%; }

  .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 8px;
    padding-left: 0 !important;
  }
  .form-check .form-check-input {
    position: static !important;
    float: none !important;
    margin: 2px 0 0 !important;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
  }
  .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    padding-top: 1px;
  }
  .lp-pessoa-opcoes,
  .form-body .d-flex.gap-3 {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .lp-filha { margin-left: 0; }
  .secao-titulo { letter-spacing: .04em; overflow-wrap: anywhere; }

  .sp-wrap, .sp-card, .sp-campo, .sp-grid { max-width: 100%; min-width: 0; }
  .sp-card { padding: 14px 12px; }
  .sp .sp-grid { grid-template-columns: 1fr; }
  .sp .sp-input, .sp .form-control, .sp .form-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .pub-main { padding-left: 0; padding-right: 0; }
}
