* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;   
}

main{
  width: 100%;
}

h1{
  margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  label {
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  
  input,
  textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  button {
    background-color: #0077cc;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
  }
  
  button:hover,
  button:focus {
    background-color: #005fa3;
  }
  
  .error {
    color: #d93025;
    font-size: 0.9rem;
    height: 1rem;
  }
  
  .success {
    color: green;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
  }
  
  .hidden {
    display: none;
  }

  nav {
    width: 100%;
    margin-bottom: 30px;
  }
  
  nav a:hover,
  nav a:focus {
    text-decoration: underline;
    color: #005fa3;
  }
  
  nav ul {
    display: flex;
    justify-content: flex-start; /* Aligns all links to the left */
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
  }
  
  a {
    text-decoration: none;
    color: #0077cc;
    font-weight: 500;
}
  
  a:focus, a:hover {
    text-decoration: underline;
  }
  
  nav a.active {
    color: #000;
    border-bottom: 2px solid #0077cc;
  }
  
  @media (min-width: 768px) {
    body{
     padding:80px 0px;
    }

    nav ul{
      gap: 1.5rem;
    }

    main{
      width: 65%;
    }
  }