The legislative process is laid out in Article 1, Section 7 of the US Constitution. The first step in the process comes when a congressional representative introduces an idea for a bill. This idea can originate with the representative themselves, or it could be suggested by the president, or it ciuldcome from any citizen who contacts their representative. If the representative agrees with the idea, they will draft a bill.
Once the bill is drafted, the original representative will usually try to gain support from other representatives to sponsor the bill. This is a good way for them to get an idea of how much support this proposal will have overall.
A bill will be introduced in either the House of Representatives or the Senate. If a bill is successfully introduced, it will be sent to the relevant committee. The committee will then research the topic and revise the bill if they feel it to be necessary. After the committee approves the bill, it will be brought in front of the whole chamber of Congress in which it was introduced. There will then be an open debate on the bill and an opportunity for further revision. After this, the whole chamber votes on the bill. If it passes, the bill will be sent to the other congressional chamber and this process is repeated.
After a bill has passed both chambers of Congress it will then be sent to the president for final approval. If the president signs the bill, it will become a law. If the president vetoes the bill, it will be sent back to Congress and requires two-thirds of Congress to approve it in order to override the president's veto.
This is a very cumbersome and complicated process for a purpose. The legislative process is meant to be deliberative and careful. The framers of the Constitution wanted to make sure that laws were not frivolously passed.