.form-module {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: transparent;
  border: 1px solid #e8dfd3;
  border-left: 4px solid #2d9057;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text-primary);
  font-weight: 700;
}

.form-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 1rem 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background-color: #ffffff;
  color: var(--color-text-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2d9057;
  box-shadow: 0 0 0 4px rgba(45, 144, 87, 0.16);
}

.form-group input::placeholder {
  color: var(--color-text-secondary);
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #f5f0e8;
  cursor: not-allowed;
}

.form-body .alert {
  width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-actions .btn {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2d9057;
  color: var(--color-white);
  box-shadow: 0 15px 30px rgba(45, 144, 87, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2d9057 0%, #52b788 100%);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(45, 144, 87, 0.22);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(199, 76, 62, 0.12);
  color: #a03a2f;
  border-left: 3px solid #c74c3e;
}

.alert-success {
  background: rgba(45, 144, 87, 0.12);
  color: #1f5540;
  border-left: 3px solid #2d9057;
}

/* Mensagens de erro por campo */
.field-error {
  color: #c74c3e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: block;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #c74c3e;
  box-shadow: 0 0 0 4px rgba(199, 76, 62, 0.06);
}
