body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fff;
}

header {
  background-color: #003366;
  color: white;
  padding: 20px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-title img {
  height: 80px;
  background-color: white;
  padding: 8px;
  border-radius: 8px;
}

.text-group h1 {
  margin: 0;
  font-size: 22px;
}

.text-group p {
  margin: 5px 0 0;
  font-size: 14px;
}

.main {
  display: flex;
  gap: 20px;
  flex-grow: 1;
}

#sidebar nav {
  background-color: #f2f2f2;
  padding: 20px;
  width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

#content {
  flex-grow: 1;
  padding: 10px;
}

nav button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #006699;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

nav button:hover {
  background-color: #004466;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto; /* Ensures footer sticks to bottom */
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contact Section Specific Styles */
.contact-section {
  margin-bottom: 30px;
}

.contact-info p {
  margin: 5px 0;
}

.contact-info .label {
  font-weight: bold;
  color: #003366;
}

/* Form Specific Styles */
form {
  max-width: 450px;
  width: 100%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 0;
  margin-right: auto;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 20px;
  align-items: center;
}

form label {
  font-weight: bold;
  text-align: left;
  padding-right: 10px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  grid-column: 1 / span 2;
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

form button[type="submit"] {
  grid-column: 1 / span 2;
  width: auto;
  margin-top: 15px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background-color: #006699;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  justify-self: center;
}

form button[type="submit"]:hover {
  background-color: #004466;
}

/* Responsive Form */
@media (max-width: 600px) {
  form {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: 0;
    margin-right: auto;
  }

  form label {
    text-align: left;
    padding-right: 0;
  }

  form button[type="submit"] {
    grid-column: 1;
    width: 100%;
  }
}

/* General Responsive Adjustments */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  #sidebar nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 10px;
  }

  nav button {
    width: 48%;
    margin-bottom: 10px;
    font-size: 15px;
  }

  .logo-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-group h1 {
    font-size: 18px;
  }

  .text-group p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  nav button {
    width: 100%;
  }
}
