* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4fcff;
  color: #003366;

  border-radius: 25px 25px 25px 25px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background-color: transparent;
  padding: 1.5rem 0.5rem 0 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  outline: none;
}

.logo span {
  color: #40a0ff;
}

.container a {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #0073e6;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.van {
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.6),rgba(0, 0, 0, 0.55),rgba(0, 0, 0, 0.45),rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.6),rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6),rgba(0, 0, 0, 0.6)),
    url("../images/car3.webp");
  background-size: cover; /* Ensures the image covers the entire element */
  background-position: center; /* Centers the image */
  height: 70vh; /* Full height */
  justify-content: center;
  align-items: center;
  color: white; /* Text color for better readability */
  text-align: center;
  margin-bottom: 5rem;
}

h1 {
    color: rgb(255, 255, 255);
    font-size: 3.3rem;
    font-stretch: extra-expanded;
    font-weight: 500;
    position: relative;
    top: 38%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }

.one_with_two_divs {
    width: 70rem;
    min-width: 70rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

hr {
    color: #0073e6;
}

.white_bg {
    width: 100%;
    background-color: white;
    padding-bottom: 5px;
    border: 1px solid #0073e6;
    border-radius: 15px;
    padding: 20px 15px;
    height: 25.7rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.white_bg h2 {
    color: #0073e6;
    text-align: center;
}

.contact_info {
    border-radius: 8px 8px 8px 8px;
    background-color: #f2f4f8;
    padding: 12px 7px;
    border: none;
    width: 100%;
    margin: 7px 5px;
}

#contact_details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #0073e6;
    background-color: white;
    border-radius: 15px;
    padding: 20px 15px;
    height: 25.7rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

h2{
    color: #0073e6;
    margin-bottom: 0;
}

hr{
    color: #0073e6;
    width: 100%;
}

#contact_details svg{
    color: black;
}

.contact_info_large {
    border-radius: 8px 8px 8px 8px;
    background-color: #f2f4f8;
    padding: 12px 7px;
    border: none;
    width: 98%;
    height: 7rem;
    margin: 7px 5px;
}

#contact_row_1 {
    display: flex; gap: 0.5rem;
}

#contact_row_2 {
    display: flex; gap: 0.9rem;
}

#contactFormButton {
    border-radius: 17px;
    width: fit-content;
}

#map {
    height: 400px;
    width: 70rem;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

#checkout_loading {
  padding: 0.75rem 4.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

button { cursor: pointer; }

.modal__dialog h2 {
    margin: 0;
    width: fit-content;
    font-size: 24px;
}

/* Modal hidden by default */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* when .open is added, show it */
.modal.open { display: flex; }

/* backdrop */
.modal__backdrop {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.3);
}

/* dialog card */
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 10;
  background-color: white;
}

/* close “×” button */
.modal__close {
  border: none;
  font-size: 24px;
  background-color: rgb(245, 245, 245);
  border-radius: 100px;
  padding: 0px 9px;
  color: #2a78ff;
  font-weight: 100;
}

.modal__close:hover {
    background-color: lightgray;
}

/* primary button style */
.btn--primary {
  background: #006aff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  width: 100%;
  font-weight: 600;
}

input[type="tel"] {
    width: 100%;
    border-radius: 8px;
}


.iti {
    width: 102.5%;
    margin: auto 0;
    margin-left: 4px;
}

.iti__flag-container {
    border-right: 1px solid #ccc;
    background-color: #f5f5f5;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.full_left_right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 7px;
}

.full_left_right p {
    margin: auto 0;
}

.cta-button {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  background-color: #0073e6;
  color: white;
  border: none;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #005bb5;
}




.footer {
  background-color: white;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 0px 0px 25px 25px;
}

.test {
  display: flex;
  gap: 1rem;
  align-items: left;
}

#FAQ {
  color: black;
  width: fit-content;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 7rem;
}

#FAQ .question {
  width: 35rem;
  background-color: white;
  border-radius: 10px 10px 10px 10px;
  border: none;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

#FAQ .question:hover {
  outline: 0.8px solid #0073e6;
}

.question #question_div {
  display: none;
}

.footer {
  color: black;
  margin: 0 auto;
  padding-top: 6rem;
  padding-bottom: 0;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.checkout-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* απόσταση ανάμεσα στα div */
  margin-top: 20px;
  color: black;
}

.checkout_div {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 0.5rem;
  width: 50%;
}

#FAQ p {
  font-weight: 200;
  margin-top: 7px;
  margin-bottom: 5px;
  font-size: small;
}

.footer p {
  font-size: small;
}

.footer a {
  font-size: small;
  text-decoration: none;
  color: black;
  font-weight: 400;
  transition: color 0.3s;
}

.footer #copyright_p {
  height: min-content;
  margin: 0;
  padding: 0;
  font-size: smaller;
  color: black;
  font-weight: 500;
  margin-top: 5rem;
  margin-bottom: 10px;
}

#popular_routes_div {
  margin-top: 5px; margin-left: -20px; margin-right: 30px
}

#return_svg {
  display: none;
}

/* Ratings */
#ratings_section {
  color: black;
  padding-top: 4rem;
}

#ratings_header {
  width: 70rem;
  margin: 0 auto;
  margin-bottom: 2rem;
}

#ratings_header h3{
  font-size: 30px;
}

.ratings_div {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 20px;
  scroll-behavior: smooth;
}

#ratings_section .rating {
  flex-shrink: 0;
  scroll-snap-align: start;
  background-color: white;
  padding: 2rem;
  width: 25rem;
  height: fit-content;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ratings_section .rating:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.rating p {
  font-size: 13px;
  font-weight: 450;
  margin-bottom: 0;
}

.rating #profile_img {
  width: 40px;
  height: 40px;
  background-size: cover; /* Ensures the image covers the entire element */
  background-position: center; /* Centers the image */
  border-radius: 50%;
}

.rating h4 {
  margin-top: 1rem;
  font-size: large;
  font-weight: 550;
}

.rating h5 {
  margin-bottom: 0;
}

.rating span {
  color: rgb(147, 147, 147);
  font-weight: 550;
  font-size: 12px;
}

/* ======================
   RESPONSIVE FOR MOBILE
   ====================== */

/* Κοινός κανόνας για όλες τις small οθόνες */
@media (max-width: 767px) {
    #map {
        height: 25rem;
        width: 98%;
        margin: 0 auto;
        margin-top: 4rem;
        margin-bottom: 10rem;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

  .container {
    width: 100%;
    margin: 0 auto;
  }

    .white_bg {
        width: 100%;
        background-color: white;
        padding-bottom: 5px;
        border: 1px solid #0073e6;
        padding: 20px 15px;
        height: fit-content;
    }
  
    #contact_row_1 {
        display: flex; gap: 0.5rem;
        flex-direction: column;
        margin-bottom: 0.5rem;
        width: 99%;
    }

    #phone {
        width: 95.5%;
        margin: 7px 5px;
    }

    #contact_row_2 {
        display: flex; gap: 0.5rem;
        flex-direction: column;
        margin-bottom: 0.5rem;
    }
  
  .logo {
    font-size: large;
  }
  
  .nav {
    gap: 0.5rem;
  }
  
  .nav a {
    font-weight: 400;
    font-size: 11px;
  }

  .van {
    height: 50vh;
  }
  
  .hero {
    padding: 12px;
  }
  
  h1 {
    font-size: 1.8rem;
    margin-top: 1rem;
  }


  .test {
    display: flex;
    align-items: left;
  }

  .div_under_inputs {
    display: none;
    justify-content: unset;
    margin: 0 auto;
    margin-top: 20px;
  }

  .div_under_inputs p{
    width: min-content;
  }

  .inputs {
    justify-content: space-evenly;
    place-items: left;
    text-align: left;
    border-radius: 20px;
  }

  .testing,
  .inputs {
    flex-wrap: wrap;
    margin: 0 auto;
  }
  .inputs {
    justify-content: left;
    height: auto;
    padding: 0.5rem;
  }
  .inputs .larger,
  .inputs .large,
  .inputs select{
    width: 90% !important;
    border-right: none;
    margin: 0.35rem auto;
    height: 30px;
    border-bottom: 1px solid lightgray;
  }

  #group_for_mobile {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
  }




  .checkout-wrapper {
    flex-direction: unset !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap;
    gap: 0rem;
  }
  
  .checkout_div {
    justify-content: space-around;
    width: 100%;
    margin: 0 auto;
  }

  #FAQ {
    margin: 0 auto;
    text-align: left;
    padding: 3rem 25px;
  }
  
  #FAQ .question {
    width: 100% !important;
    margin: 0 auto;
  }

  #FAQ h3, #FAQ p {
    width: fit-content;
  }

  .footer {
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 0;
  }

  .footer .test {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  #popular_routes_div {
    margin-top: 0px; margin-left: 0px; margin-right: 0px; height: auto;
  }

  #popular_routes_br {
    display: none;
  }
  
  .footer #copyright_p {
    margin-top: 3rem;
  }

  /* Ratings */
  #ratings_header {
    width: fit-content;
  }

  #hidden {
    display: none;
  }

  #ratings_header h3 {
    font-size: 24px;
    font-weight: 550;
    padding-top: 4px;
  }

  .ratings_div {
    gap: 16px;
    padding: 20px;
  }

  #ratings_section .rating {
    padding: 2rem;
    width: fit-content;
    height: fit-content;
  }

  .one_with_two_divs {
      width: 100%;
      min-width: unset;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2.5rem;
  }

  #contact_details, .white_bg {
      width: 95%;
  }
}
