import "./App.css";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { MainForm } from "./pages/MainForm";
import { SuccessPage } from "./pages/SuccessPage";
import { PageFooter } from "./components/PageFooter";

function App() {
  return (
    <div className="min-h-screen flex flex-col">
      <BrowserRouter>
        <main className="flex-1 flex">
          <Routes>
            <Route path="/" element={<MainForm />} />
            <Route path="/success" element={<SuccessPage />} />
          </Routes>
        </main>
      </BrowserRouter>
      <PageFooter />
    </div>
  );
}

export default App;
