/* CSS Variables */
:root {
  --primary-color: linear-gradient(145deg, #004080, #0073e6);
  --secondary-color: #0066cc;
  --third-color: #004080;
  --text-color: #333;
  --background-color: #f4f4f4;
  --white: #fff;
  --max-width: 1200px;
  --padding: 20px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding);
}

.text-center {
  text-align: center;
}

/* Header */
.header {
  background: var(--primary-color);    /*url("media/xxxx.png") no-repeat center center/cover*/
  color: var(--white);
  text-align: center;
  padding: 15px var(--padding);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/* Navigation */
.nav {
  background: var(--third-color);
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--secondary-color);
}

/* Banner */
.banner {
  background-color: #fff; /*background: url('media/banner.jpg') no-repeat center/cover*/
  padding: 30px;
  color: black;
  text-align: center;
}

/* Hero Section */
.hero {
  background: var(--white);
  padding: var(--padding);
  text-align: center;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.search-bar select, .search-bar button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-bar button {
  background: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: var(--secondary-color);
}

/* Featured Section */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  gap: 20px;
  padding: var(--padding);
  justify-content: center; /* Centers items horizontally */
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
}

.product-card h3 {
  margin: 15px 0;
  color: var(--primary-color);
}

.product-card p {
  padding: 0 15px 15px;
}

.product-card button {
  padding: 10px;
  margin-bottom: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-card button:hover {
  background: var(--secondary-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: var(--padding);
  font-size: 0.9em;
}

/* Contact Section */
.contact-section {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: var(--padding);
  margin: 20px auto;
  max-width: 800px;
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-section p {
  margin-bottom: 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form label {
  font-weight: bold;
}

.form input,
.form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .search-bar select, .search-bar button {
    flex: 1 1 calc(50% - 10px);
  }

  .search-bar button {
    flex-basis: 100%;
  }
}
/* lookup section */
.container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lookup-search h1 {
  text-align: center;
  color: #333;
}

/* Vehicle Form Layout */
.vehicle-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Evenly distribute items */
  align-items: center; /* Center all items (labels, dropdowns, and button) vertically */
  gap: 20px; /* Add spacing between fields */
}

.form-group {
  flex: 1 1 calc(25% - 20px); /* Four items per row with gaps */
  min-width: 150px;
  max-width: 200px;
  display: flex;
  flex-direction: column; /* Keep label above dropdown */
}

label {
  font-size: 14px;
  margin-bottom: 5px;
  text-align: left;
}

.dropdown {
  width: 100%; /* Fill container */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.btn {
  flex: 1 1 calc(25% - 20px); /* Matches dropdown size */
  max-width: 200px;
  height: calc(100% - 5px); /* Align with dropdown and label height */
  margin-top: 22px; /* Align with dropdown labels */
  text-align: center;
  align-self: flex-start; /* Ensure alignment at the top */
}

.btn:hover {
  background-color: #0056b3;
}

/* Results Section */
.results {
  margin-top: 20px;
}

.result-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fafafa;
  text-align: center; /* Centers the text and image */
}

.result-item img {
  max-width: 200px;
  margin: 10px auto 0; /* Adds spacing and centers the image */
  display: block; /* Ensures the image behaves like a block element */
}

.result-item img {
  max-width: 100px;
  margin-top: 10px;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .vehicle-form {
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    flex: 1 1 100%;
    max-width: 300px;
    text-align: center;
  }

  .dropdown {
    width: 100%; /* Ensure the dropdown fills its container */
  }

  .btn {
    max-width: 300px;
    align-self: center; /* Center the button on mobile */
  }
}
