
nav {
  height: 61px; /* Slightly smaller height for mobile */
  padding: 0.5rem 0.5rem; /* Adjust padding to reduce navbar width */
  box-sizing: border-box; /* Include padding and border in the element's total width */
  border-top: none;
  border-bottom: none; /* Remove bottom border */
  background: white; /* Ensure navbar has a white background on mobile */
  width: 100%;
}

.dealer-section {
  position: relative;
  width: 100%;
  height: auto; /* Allows the section to adapt to the content */
}

.dealer-image {
  width: 100%; /* Ensures the image takes the full width of the container */
  height: auto; /* Keeps the aspect ratio of the image */
  display: block; /* Removes any inline padding or margins */
  object-fit: cover; /* Ensures the image covers the entire width/height, cropping if necessary */
}
.fa-instagram {
  font-size: 24px;
  color: #e4405f;
}

.fa-facebook {
  font-size: 24px;
  color: #111cb4;
}

.fa-youtube {
  font-size: 24px;
  color: #e70909;
}

p {
  line-height: 1.5;
}

h1 {
  letter-spacing: 2px;
}

p {
  word-spacing: 5px;
}

/* Navbar styles */
nav {
  background-color: white !important; /* Set the background color to white */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

.form-container {
  background-color: grey; /* White background with 70% opacity */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 400px;
  margin: 20px auto; /* Add some vertical margin */
  backdrop-filter: blur(
    10px
  ); /* Optional: Adds a slight blur to the background behind the form */
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input,
select {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #003366;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #002855;
}

footer {
  background-color: #5f5f5f;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 0.7rem 0; /* Reduced padding */
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem; /* Reduced font size */
  margin: 0; /* Remove any extra margin */
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between icons */
  margin-bottom: 15px; /* Space between icons and "Connect Now" heading */
}

footer .social-icons a {
  font-size: 24px;
  color: white; /* Make icons visible */
  text-decoration: none;
  transition: transform 0.3s;
}

footer .social-icons a:hover {
  transform: scale(1.2); /* Slight zoom effect on hover */
}

footer h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

footer form {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

footer form input {
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

footer form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #000000;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

footer form button:hover {
  background-color: #63676b;
}

footer p {
  text-align: center;
  margin: 5px 0;
  color: black;
}

footer p:last-child {
  margin-bottom: 0;
}

.form-container-with-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

/* Image styles */
.left-image img,
.right-image img {
  max-width: 370px;
  height: auto;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 250px; /* Adjust as needed for images */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content .dropdown-item {
  display: flex;
  align-items: center; /* Align image and text */
  padding: 10px;
  border-bottom: 1px solid #ddd; /* Optional: to separate each item */
}

.dropdown-content .dropdown-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  width: 100%;
}

.dropdown-content .dropdown-item:hover {
  background-color: #f1f1f1; /* Change background on hover */
}

.dropdown-img {
  width: 50px; /* Adjust size for images */
  height: auto;
  margin-right: 10px;
}

.dropdown:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
}
.dropdown-active {
  display: block; /* Show dropdown when active */
}

/* Adjust the footer for mobile screens */
@media (max-width: 768px) {
  /* Drop Down Mobile View */
  .dropdown-content {
    min-width: 100%; /* Full width on mobile */
    font-size: 14px; 
  }

  .dropdown-item {
    flex-direction: column; /* Stack image and text vertically */
    padding: 5px; /* Reduce padding */
  }

  .dropdown-img {
    width: 80%; /* Reduce image size */
    margin-right: 0;
    margin-bottom: 5px;
  }

  .dropdown-item a {
    font-size: 14px; /* Smaller text size */
  }
  
  .form-container-with-images {
    flex-direction: column; /* Stack the form and images vertically */
    gap: 10px; /* Adjust the gap between elements */
  }

  .left-image img,
  .right-image img {
    max-width: 100%; /* Ensure the images take full width on mobile */
    height: auto; /* Maintain aspect ratio */
  }
  .form-container {
    width: 90%; /* Increase width for mobile */
    padding: 15px; /* Adjust padding for smaller screens */
    margin: 20px auto; /* Center with top and bottom margin */
  }

  input,
  select,
  button {
    width: 100%; /* Ensure inputs take full width */
    padding: 12px; /* Increase padding for touch targets */
    box-sizing: border-box; /* Include padding in total width */
  }

  label {
    font-size: 0.9rem; /* Slightly smaller font size for mobile */
  }

  button {
    padding: 12px; /* Adjust button padding for better touch targets */
    font-size: 1rem; /* Ensure button text is readable */
  }
}

body {
  background-size: cover; /* Ensures the image covers the entire screen */
  background-position: center center; /* Centers the image on the screen */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-attachment: fixed; /* Keeps the background fixed during scrolling */
  margin: 0;
  height: 100vh; /* Ensures the body takes the full viewport height */
}
/* Reduce padding in the footer */
footer {
  padding: 15px 10px;
}
footer ul {
  flex-direction: inherit;
  gap: 10px;
  margin-top: 20px;
}
