body {
  font-family: Arial, sans-serif;
  background: #f4f6fa;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2a4d9b;
  margin-bottom: 25px;
  font-size: 26px;
}

/* Form layout */
.form-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
}

.field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
  white-space: normal; /* ✅ allow wrapping */
}

.field label {
  font-weight: bold;
  font-size: 14px;
}

.field input {
  width: 100px;
  padding: 5px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.button-row button {
  padding: 8px 18px;
  background-color: #2a4d9b;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button-row button:hover {
  background-color: #1f3b7c;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}

thead {
  background-color: #c9daf8;
  font-weight: bold;
}

.byline {
  font-size: 16px;
  font-weight: bold;
  color: #2a4d9b;
  margin-left: 8px;
  position: relative;
  top: -8px;
}

/* NAV */
nav {
  background-color: #2a4d9b;
  padding: 12px;
  margin-bottom: 30px;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* ✅ allow wrapping */
}

nav a {
  font-family: Arial, sans-serif;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav a:hover {
  background-color: #1f3b7c;
}

/* 📱 Mobile fixes */
@media screen and (max-width: 600px) {
  .field {
    flex-direction: column;
    align-items: flex-start;
    min-width: 100%;
  }

  .field label, .field input {
    font-size: 16px;
    width: 100%;
  }

  .field input {
    box-sizing: border-box;
  }

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 20px;
  }

  .button-row button {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto; /* ✅ scroll instead of squish */
    -webkit-overflow-scrolling: touch;
  }

  table th, table td {
    font-size: 12px;
    padding: 8px;
  }

  .nav-container {
    flex-direction: column; /* ✅ stack vertically */
    align-items: center;
    gap: 8px;
  }

  nav a {
    display: block;
    width: 100%; /* ✅ full width buttons */
    text-align: center;
    padding: 10px;
    font-size: 16px;
  }
}
