.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: hidden;
  padding: 1rem;
}

.modal.oculto {
  display: none;
}

.modal-conteudo {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: aparecer 0.3s ease;
  max-height: 95vh;
  overflow-y: auto;
}

/* mantém o resto do seu estilo igual */
.form-duas-colunas {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.coluna-form {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.coluna-form label {
  font-weight: bold;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.coluna-form textarea {
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.2;
  box-sizing: border-box;
  resize: none;
}

.coluna-form input {
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.2;
  height: 38px;
  box-sizing: border-box;
}

input[type="date"] {
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.2;
  height: 38px;
  box-sizing: border-box;
}

.botoes-form {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-enviar,
.btn-fechar-modal,
.btn-limpar-form {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  font-size: 1rem;
}

.btn-enviar {
  background: #0029c1;
  color: #fff;
}

.btn-enviar:hover {
  background: #001d88;
}

.btn-fechar-modal {
  background: #ccc;
  color: #000;
}

.btn-limpar-form {
  margin-right: auto;
  background: #ccc;
  color: #000;
}

.btn-fechar-modal:hover {
  background: #999;
}

.btn-limpar-form:hover {
  background: #999;
}

.btn-fechar-x {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fechar-x svg {
  width: 25px;
  height: 25px;
  stroke: black;
  stroke-width: 2;
}


@keyframes aparecer {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 📱 Responsividade */
@media (max-width: 800px) {
  .modal-conteudo {
    width: 95%;
    padding: 1.5rem;
  }

  .form-duas-colunas {
    flex-direction: column;
    gap: 1rem;
  }

  .botoes-form {
    justify-content: center;
  }

  .btn-enviar,
  .btn-fechar-modal,
  .btn-limpar-form {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .modal-conteudo {
    padding: 1rem;
    border-radius: 10px;
  }

  .modal-conteudo {
    width: 100%;
    padding: 1.5rem;
  }
}

.coluna-form textarea {
  overflow-y: hidden;
  resize: none;
  border: 1px solid #ccc;
}

.coluna-form input {
  border: 1px solid #ccc;
}

input[type="date"] {
  width: 100%;
  border: 1px solid #ccc;
  background: transparent !important;
}


.coluna-form input:focus, textarea:focus {
  border-color: #0029c1;
  outline: none;
}
