.avcar {
  width: 100%;
  text-align: center;
  margin: 2vh auto;
}

.c-name p, .p-name p{
  text-align: center;
}


.cars-div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.car-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.car-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* or 'contain' */
  display: block;
}

footer {
  width: 100%;
  background-color: rgb(172, 161, 161);
  min-height: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.end {
  width: 100%;
  text-align: center;
  color: black;
  margin: 1vh auto;
}


.popup-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  max-width: 80%;
  background-color: #fff;
  color: #333;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  animation: fadeInOut 4s ease-in-out forwards;
}

.popup-message.success {
  border: 2px solid #28a745;
  color: #28a745;
}

.popup-message.error {
  border: 2px solid #dc3545;
  color: #dc3545;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.testimonial-section {
  padding: 40px 10px;
  background: #f9f9f9;
  text-align: center;
}

.testimonial-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.testimonial-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.testimonial-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  margin: 0 40px;
}

.testimonial-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-rating .stars {
  color: #ffc107;
  font-size: 18px;
}

.testimonial-message {
  font-size: 16px;
  margin: 10px 0;
}

.testimonial-name {
  font-weight: bold;
  margin-top: 10px;
}

.testimonial-date {
  font-size: 12px;
  color: #888;
}

.scroll-btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  z-index: 2;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.scroll-btn:hover {
  background-color: #0056b3;
}

img {
  border-radius: 15px;
}

.plsx {
  width: 100%;
  text-align: center;
}

.plsx .h2 {
  font-size: 2.5vw;
  padding-top: 3vh;
  padding-bottom: 3vh;
}


@media screen and (max-width: 1000px) {

  .avcar h1 {
    font-size: 8vw;
    margin-bottom: 2vh;
  }

  .closebtn{
    background: none;
    border: none;
    color: white;
  }

  .plsx .h2 {
    font-size: 7vw;
  }

  .car-card {
    width: 48%;
    margin-bottom: 1.5vh;
  }

  a h3 {
    text-decoration: none;
    color: black;
    font-size: 5vw;
  }

  .c-btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    min-height: 10px;
    margin: 5vh auto;

  }

  .c-btn a {
    font-size: 5vw;
    color: rgb(255, 255, 255);
    background-color: green;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 700;
    width: 25%;
    text-align: center;
  }

  .fxd {
    width: 95%;
    margin-bottom: 4vh;
  }

  .fxd h1 {
    text-align: left;
    font-size: 6vw;
  }

  .cxfs {
    width: 90%;
    margin: auto;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    flex-wrap: wrap;

  }

  .cxfs a {
    font-size: 4.5vw;
    margin-bottom: 15px;
    color: rgb(41, 13, 13);
    font-weight: 500;
    word-break: break-all;
  }

  .cxfs a .x {
    width: 8%;
    color: rgb(41, 13, 13);
  }

  .fxd p {
    width: 95%;
    margin: auto;
    text-align: justify;
    margin-top: 1.5vh;
    line-height: 1.5;
    font-size: 4vw;
  }

  .fxd .cdfg {
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
  }

  input[type="text"] {
    min-height: 50px;
    border-radius: 40px;
    text-align: center;
    min-width: 100%;
    background-color: rgba(214, 217, 220, 0.652);
    border: 0;
  }

  textarea[name="message"] {
    min-height: 150px;
    border-radius: 40px;
    text-align: center;
    min-width: 100%;
    background-color: rgba(214, 217, 220, 0.652);
  }

  input[placeholder] {
    font-size: 4vw;
  }

  textarea[placeholder] {
    font-size: 4vw;
    padding-top: 30%;
  }

  #th1 {
    text-align: center;
    margin-top: 5vh;
  }

  button[type="submit"] {
    width: fit-content;
    padding: 10px 17px;
    border-radius: 40px;
    margin: auto;
    background-color: #090952;
    border: 0;
    font-size: 4.5vw;
    color: wheat;
    text-align: center;
    align-items: center;
    margin-top: 1.5vh;
  }

  .stttrx {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .star-rating {
    direction: rtl;
    display: inline-block;
    font-size: 9vw;
    unicode-bidi: bidi-override;
  }

  .star-rating input[type="radio"] {
    display: none;
  }

  .star-rating label {
    color: #ccc;
    cursor: pointer;
  }

  .star-rating input[type="radio"]:checked~label,
  .star-rating label:hover,
  .star-rating label:hover~label {
    color: gold;
  }

  #vbv {
    font-size: 4vw;
  }

  .c-name p,
  .p-name p {
    margin-top: 1vh;
    font-size: 4.5vw;
    font-weight: 600;
    color: black;
  }

}



@media screen and (min-width: 1000px) {

  .avcar h1 {
    font-size: 3vw;
    margin-bottom: 2vh;
  }

  .car-card {
    width: 31%;
    margin-bottom: 2vh;
  }

  a h3 {
    text-decoration: none;
    color: black;
    font-size: 2vw;

  }


  .c-btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    min-height: 10px;
    margin: 10vh auto;

  }

  .c-btn a {
    font-size: 1.5vw;
    color: rgb(255, 255, 255);
    background-color: green;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 700;
    width: 12%;
    text-align: center;
  }

  .fxd {
    width: 24%;
    text-align: center;
    margin-top: 1.5vh;
  }

  .cxfs {
    font-size: 1.5vw;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: left;
    width: 90%;
    margin: auto;
    margin-top: 15px;
  }

  .cxfs a {
    margin-bottom: 10px;
    text-decoration: none;
    color: black;
    font-weight: 600;
  }

  .cx {
    margin-left: 30%;

  }

  .cxfs a .x {
    display: none;
  }

  #th1 {
    margin-bottom: 2vh;
  }

  .te {
    width: 90%;
    text-align: justify;
    line-height: 1.4;
    margin: auto;
    font-size: 1.2vw;
  }

  .cdfg {
    margin-top: 4vh;
  }

  .c-name p,
  .p-name p {
    margin-top: 1.5vh;
    font-size: 2.3vw;
    font-weight: 600;
    color: black;
  }


  .stttrx {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .star-rating {
    direction: rtl;
    display: inline-block;
    font-size: 2.2vw;
    unicode-bidi: bidi-override;
  }

  .star-rating input[type="radio"] {
    display: none;
  }

  .star-rating label {
    color: #ffffff;
    cursor: pointer;
  }

  .star-rating input[type="radio"]:checked~label,
  .star-rating label:hover,
  .star-rating label:hover~label {
    color: gold;
  }


  button[type="submit"] {
    font-size: 1vw;
    background-color: royalblue;
    color: white;
    padding: 10px 15px;
    border-radius: 40px;
    border: 0;
  }

  input[type="text"] {
    text-align: center;
    min-height: 30px;
    border-radius: 40px;
    width: 60%;
  }

  textarea[name="message"] {
    min-width: 60%;
    max-width: 80%;
    min-height: 100px;
    max-height: 100px;
    border-radius: 10px;
    text-align: center;
  }

  #vbv {
    display: none;
  }


}