body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f4f7f8;
  margin: 0;
  min-height: 100vh;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  font-family: Helvetica Neue, sans-serif;
}

form {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #357ab7;
}

@media only screen and (max-width: 600px) {
  .top-section {
    padding: 20px;
    box-sizing: border-box;
  }

  .firstBit {
    padding: 20px;
    box-sizing: border-box;
  }

  form {
    padding: 1.5rem;
  }

  #contact-form {
    padding: 1.5rem;
  }
}

.vehicle-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.vehicle-section h2 {
  text-align: center;
  color: #1d3557;
  margin-bottom: 10px;
  font-size: 2rem;
}

.vehicle-section h3 {
  text-align: center;
  color: #151515;
  margin-bottom: 20px;
  font-size: 1rem;
  border: 2px solid #b00020;
  padding: 6px 10px;
  margin: 10px auto;
  max-width: 600px;
  text-align: center;
  border-radius: 4px;
  font-family: "Helvetica Neue", sans-serif;
}

.vehicle-section h4 {
  text-align: center;
  color: #5a5a5a;
  margin-bottom: 20px;
  font-size: 1rem;
}

.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.vehicle {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 6px solid #2d327d;
  border-radius: 4px;
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.vehicle-number {
  font-size: 1.1rem;
  font-weight: 500;
  color: #151515;
  align-items: center;
}

.banner {
  background-color: #eb0000;
  color: white;
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  border-bottom: 5px solid #a20013;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.wholeThing {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.firstBit {
  display: flex;
  margin: 0 auto;
  background-color: #e5e5e5;
  padding: 2px 20px;
  border-radius: 0px 0px 12px 12px;
  font-family: "Helvetica Neue", sans-serif;
  border-bottom: 5px solid #a8a8a8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.error-banner {
  background-color: #ffe6e6;
  color: #b00020;
  border: 1px solid #b00020;
  padding: 12px 20px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  font-weight: 500;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

.footer-link {
  color: #e63946;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.recent-list {
  list-style: none;
  padding: 0;
}

.recent-item {
  background: #fff;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flex-container {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.recent-banner {
  background-color: #eb0000;
  color: white;
  text-align: center;
  padding: 2px 20px;
  border-radius: 12px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  border-bottom: 5px solid #a20013;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.backup-formation-details {
  display: none;
  margin-left: 1rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f2f2f2;
  border-left: 3px solid #ccc;
}

.train-toggle {
  cursor: pointer;
  color: #212121;
  text-decoration: underline dotted;
  font-family: inherit;
  font-size: 150%;
}

.train-date-updated {
  color: #212121;
  font-family: inherit;
}

.train-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.navbar {
  background-color: #686868;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0px;
}

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: "Helvetica Neue", sans-serif;
}

.nav-link:hover {
  text-decoration: underline;
}

.about-info, .contact-info {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.3rem;
  text-align: justify;
  text-justify: inter-word;
  padding-left: 0;
}

.about-banner, .contact-banner {
  background-color: #eb0000;
  color: white;
  text-align: center;
  padding: 2px 20px;
  border-radius: 12px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 5px solid #a20013;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.known-errors {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  text-align: center;
}

.changelog {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  text-align: center;
}

.about-list {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 20px;
  list-style-type: square;
}

.top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-direction: column;
}

.recent-card {
  display: block;
  margin-top:10px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-vehicles {
  color:#c00;
  font-size:1.25em;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: normal;
  font-style: italic;
}

.card-footer {
  display:flex;
  justify-content: space-between;
  font-size:0.85em;
  color:#666;
  margin-top:8px;
}

.toggle-formation {
  cursor:pointer;
  background:none;
  border:none;
  font-size:1.5rem;
  color:#555;
  padding:0;
  margin-top:0px;
}

.formation-details {
  display:none;
  margin-top:8px;
}

.formation-details li {
  list-style-type: square;
}

.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hidden {
  display: none;
}

.service-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 6px solid #b7b7b7;
  border-radius: 4px;
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-info {
  font-size: 1.1rem;
  font-weight: 500;
  color: #151515;
  align-items: center;
}

.search-form {
    max-width: 100%;
}

.search-tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 10px;
  min-width: 380px;
  width: 60%;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  cursor: pointer;
  background-color: #f4f7f8;
  border: none;
  border-radius: 6px 6px 0 0;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover {
  background-color: #e63946;
  color: white;
}

.tab-btn.active {
  background-color: #eb0000;
  color: white;
  box-shadow: 0 -2px 0 0 #a20013 inset;
}

.tab-content {
  display: none;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 0 0 6px 6px;
}

.tab-content.active {
  display: block;
}

form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

form button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #eb0000;
  color: white;
  font-weight: 600;
  font-family: "Helvetica Neue", sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

form button[type="submit"]:hover {
  background-color: #a20013;
}

#contact-form {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  margin: 1rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: "Helvetica Neue", sans-serif;
}

#contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#contact-form textarea {
  min-height: 250px;
  resize: none;
}

#contact-form button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#contact-form button[type="submit"]:hover {
  background-color: #357ab7;
}

.notice {
  background-color: #ffe6e6;
  color: #b00020;
  border: 1px solid #b00020;
  padding: 6px 10px;
  margin: 10px auto;
  max-width: 600px;
  text-align: center;
  font-weight: 500;
  border-radius: 4px;
  font-family: "Helvetica Neue", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment {
  color: #333333;
  font-size: 1em;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: bold;
}

.train-edit {
  margin-left: auto;
  padding: 0px 8px;
  text-decoration: none;
}