/* ---------------------------------------------css for instant quote widget page ---------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Centered Spinner */
.custom-spinner {
  display: block;
  border: 4px solid rgba(0, 0, 0, 0.1); /* Light background border */
  border-radius: 50%; /* Make it circular */
  border-top: 4px solid #3498db; /* Blue top border */
  width: 50px; /* Spinner width */
  height: 50px; /* Spinner height */
  animation: spin 2s linear infinite; /* Animation for spinning */
  border-width: 10px;
  /* Centering the  */
  position: fixed; /* Fixed position to remain in view */
  top: 50%; /* 50% from the top */
  left: 50%; /* 50% from the left */
  transform: translate(-50%, -50%); /* Translate to center */
  z-index: 1000; /* High z-index to appear above content */
}

/* Mobile Responsiveness */
@media only screen and (max-width: 600px) {
  .custom-spinner {
    width: 30px; /* Smaller width for mobile */
    height: 30px; /* Smaller height for mobile */
    border-width: 10px; /* Adjust border thickness for smaller screens */
  }
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#iq_input-page {
  background-color: #dee0e3;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  padding: 3vw;
  width: 100%; /* Default for mobile screens */
}
.via-stop-field {
  position: relative;
}

/* For laptop and larger screens */
@media (min-width: 1024px) {
  #iq_input-page {
    width: 35vw;
  }
}

#iq_input-page :focus {
  outline: none;
}
#iq_heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: "poppins";
}

#iq_input-page input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

#iq_input-page > button {
  width: 100%;
  padding: 12px;
  background-color: #1c6fb1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

#iq_input-page button:hover {
  background-color: #34495e;
}

/* #iq_input-page label {
  font-size: 16px;
  cursor: pointer;
} */

#iq_one-way-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

#iq_one-way-container input[type="checkbox"] {
  margin-right: 10px;
}

#back-button {
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #1c6fb1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

#back-button:hover {
  background-color: #34495e;
}
.via-suggestions {
  font-size: 1vw;
  position: relative;
  background-color: white !important;
  color: black;
  width: 100%;
  max-height: min-content;
  overflow-y: auto;
  border-radius: 4px;
  z-index: 10;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding-left: 0px;
}
element.style {
  margin: 0px !important;
  padding: 0px !important;
}
/* Style for the suggestions container */
.from-suggestions,
.to-suggestions {
  font-size: 1vw;
  position: absolute; /* Position the suggestions container absolutely */
  background-color: white; /* Background color of the suggestions */
  color: black; /* Text color of the suggestions */
  width: 85%; /* Ensure it matches the width of the input field */
  max-height: min-content; /* Maximum height for the dropdown */
  overflow-y: auto; /* Add scroll if suggestions exceed max-height */ /* Light gray border */
  border-radius: 4px; /* Rounded corners */
  z-index: 10; /* Ensure it appears above other elements */
  margin-top: 2px; /* Small margin to separate from the input */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
}

/* Style for individual suggestion items */
.from-suggestions li,
.to-suggestions li,
.via-suggestions li {
  list-style: none; /* Remove default list styling */
  padding: 10px; /* Add padding for better spacing */
  cursor: pointer; /* Change cursor to pointer on hover */
  border-top: 1px solid black;
  font-size: 1rem;
}

/* Hover effect for suggestion items */
.from-suggestions li:hover,
.to-suggestions li:hover,
.via-suggestions li:hover {
  background-color: #f0f0f0; /* Light gray background on hover */
  border-color: #ccc; /* Darker border on hover */
}
.spinner {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #3498db;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px; /* Adjust to center the spinner */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  color: red;
  text-align: center;
  margin-top: 10px;
}

.remove-button {
  position: absolute; /* Position absolute to place it in the top right corner */
  top: 5px; /* Adjust vertical position */
  right: 0px; /* Adjust horizontal position */
  border: none;
  background: transparent;
  color: black; /* Adjust color based on your design */
  background-color: grey;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}
.remove-button:hover {
  color: red; /* Change color on hover for better UX */
  background-color: rgb(123, 4, 4) !important;
  color: white;
}

#pick-up-label {
  font-size: 16px;
  cursor: pointer;
  align-items: flex-start;
  display: flex;
  margin-top: 1vw;
  color: #1c6fb1;
}

#quotation-container {
  display: grid;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "poppins";
}

/* -------------------------------------------Css for Quotaions Display page -------------------------------------------*/
/* Container for quotations and booking details */
#quotation-container {
  display: grid;
  padding: 2vw;
  gap: 2vw;
  flex-wrap: wrap;
  font-family: "Poppins", sans-serif;
}

/* Each individual card design */
.quotation-card {
  background-color: #f7f7f7;
  border: 0.1vw solid #e0e0e0;
  border-radius: 1.2vw;
  box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.05);
  padding: 1.5vw;

  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

@media (max-width: 768px) {
  .quotation-card {
    padding: 2vw;
  }
}

/* Hover effects for cards */
.quotation-card:hover {
  box-shadow: 0 0.8vw 1.6vw rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5vw);
}

/* Image styling within the card */
.quotation-card img {
  height: 10vw;
}

/* Main heading for fleet/vehicle type */
.quotation-card h3 {
  font-size: 1.8vw;
  font-weight: bold;
  color: #333;
  margin-bottom: 1vw;
  line-height: 0;
}

@media (max-width: 768px) {
  .quotation-card h3 {
    font-size: 4vw;
  }
}

/* Styling for the vehicle/fleet details like capacity, luggage, etc. */
.quotation-details p {
  font-size: 1.4vw;
  color: #555;
  margin: 0.5vw 0;
}

@media (max-width: 768px) {
  .quotation-details p {
    font-size: 3vw;
  }
}

/* Price section, noticeable with bold color */
.quotation-price {
  background-color: #1c6fb1;
  color: white;
  padding: 1vw 1.5vw;
  border-radius: 2vw;
  font-size: 1.2vw;
  display: inline-block;
  font-weight: bold;
}

@media (max-width: 768px) {
  .quotation-price {
    font-size: 3.5vw;
    padding: 1.5vw 2vw;
  }
}

/* Booking Details Section */
#booking-details {
  width: 100%;
  background-color: white;
  border: 0.1vw solid #ddd;
  border-radius: 1vw;
  box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 3vw;
}

@media (max-width: 768px) {
  #booking-details {
    padding: 2vw;
  }
}

/* Heading for booking details */
#booking-details h2 {
  font-size: 2.2vw;
  color: #444;
  margin-bottom: 1.5vw;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

@media (max-width: 768px) {
  #booking-details h2 {
    font-size: 4.5vw;
  }
}

/* Paragraphs for booking details */
#booking-details p {
  font-size: 1vw;
  margin-bottom: 1vw;
}

#booking-details p span {
  font-weight: bold;
}

@media (max-width: 768px) {
  #booking-details p {
    font-size: 3vw;
  }
}

#quotation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15vw, 1fr));
  gap: 10vw;
  justify-items: center;
  padding: 2vw;
}

@media (max-width: 1200px) {
  #quotation-cards {
    grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
  }
}

@media (max-width: 768px) {
  #quotation-cards {
    grid-template-columns: 1fr;
    padding: 1vw;
  }
}

/* Style for individual quotation card */
#quotation-card {
  background-color: white;
  border: 0.1vw solid #ddd;
  border-radius: 1vw;
  box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 2vw;
  width: 100%;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  #quotation-card {
    padding: 3vw;
  }
}

#quotation-card:hover {
  box-shadow: 0 0.6vw 1.2vw rgba(0, 0, 0, 0.2);
}

#quotation-card img {
  height: auto;
}

@media (max-width: 768px) {
  #quotation-card img {
    height: 10vw;
  }
}

#quotation-card h3 {
  margin: 1vw 0;
  font-size: 2vw;
  color: #333;
}

@media (max-width: 768px) {
  #quotation-card h3 {
    font-size: 4vw;
  }
}

#quotation-price {
  background-color: #ff8c00;
  color: white;
  padding: 1vw;
  border-radius: 0.5vw;
  font-size: 1.8vw;
  margin-top: 1vw;
  display: inline-block;
}

@media (max-width: 768px) {
  #quotation-price {
    font-size: 4vw;
    padding: 1.5vw;
  }
}

#quotation-details {
  font-size: 1.6vw;
  margin-top: 1vw;
}

@media (max-width: 768px) {
  #quotation-details {
    font-size: 3.5vw;
  }
}

#sub-booking-details {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  justify-content: center;
  align-items: center;
  padding: 2vw;
}

@media (max-width: 768px) {
  #sub-booking-details {
    flex-direction: column;
    margin-left: 0;
    gap: 4vw;
  }
}

/* Style for each detail section */
.detail {
  margin-bottom: 1vw;
  text-align: center;
}

.detail h3 {
  font-size: 1.6vw;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .detail h3 {
    font-size: 3.5vw;
  }
}

.detail p {
  font-size: 1.5vw;
  margin: 0;
  color: #555;
}

@media (max-width: 768px) {
  .detail p {
    font-size: 3vw;
  }
}

.detail > h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1vw;
  font-weight: bold;
}

@media (max-width: 768px) {
  .detail > h3 {
    font-size: 2.5vw;
  }
}

#booking-detail > h2 {
  font-family: "Poppins", sans-serif !important;
}

#title-quotation {
  font-family: "Poppins", sans-serif !important;
  font-weight: bold;
  font-size: 4vw;
  color: #1c6fb1;
}

@media (max-width: 768px) {
  #title-quotation {
    font-size: 8vw;
  }
}

#title2-quotation {
  color: #1c6fb1;
  font-family: "Poppins", sans-serif;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 768px) {
  #title2-quotation {
    font-size: 5vw;
  }
}

#fleet-title-quotation {
  font-weight: bold;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 768px) {
  #fleet-title-quotation {
    font-size: 4vw;
    margin-bottom: 4vw;
  }
}

#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2vw;
  color: #000;
}

@media (max-width: 768px) {
  #spinner {
    font-size: 5vw;
  }
}

.spinner {
  border: 0.8vw solid #f3f3f3;
  border-top: 0.8vw solid #3498db;
  border-radius: 50%;
  width: 4vw;
  height: 4vw;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

@media (max-width: 768px) {
  .spinner {
    border: 1.5vw solid #f3f3f3;
    border-top: 1.5vw solid #3498db;
    width: 8vw;
    height: 8vw;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -----------------------------------------------CSS for booking-details page------------------------------------- */
.booking-form-group > label {
  font-size: 1rem;
}

#booking-container {
  display: flex;
  flex-direction: column;

  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

#booking-left-section {
  width: 100%;
}
#booking-right-section-sub {
  display: flex;
  gap: 2vw;
  width: 100%;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  #booking-right-section-sub {
    flex-direction: column;
  }
}
#booking-right-section-title {
  font-family: "poppins";

  font-size: 1rem;
  font-weight: bold;
  color: #444;
}

#booking-right-section {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;

  text-align: center;
  justify-content: center;
  align-items: center;

  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2vw;
}
#parent-booking-container {
  padding: 2vw;
}

h2 {
  color: #333;
}

.booking-form-group {
  margin-bottom: 15px;
}

.booking-form-group label {
}

.booking-form-group input,
.booking-form-group select,
.booking-form-group textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#booking-submit-btn {
  background-color: #1c6fb1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#booking-submit-btn:hover {
  background-color: #555;
}
#booking-right-details {
  display: flex;
  flex-direction: column;
}
#booking-right-details-title {
  font-family: "poppins";

  font-weight: bold;
  font-weight: 1rem;
}
#booking-heading {
  font-weight: bold;
  font-family: "poppins";
  color: #1c6fb1;
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  line-height: 18px;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 1vw;
}
#booking-form-group-parent {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 2vw;
}
.booking-form-group input {
}
.booking-detail-text-info {
  font-size: 1rem;
}
/* ------------------------------------------------------------CSS for Payment Details Page--------------------------------------------- */

#loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  flex-direction: column;
  font-size: 24px;
}
#loading-spinner {
  display: none;
}

#loading-spinner p {
  margin-top: 10px;
}
#payment_container {
  max-width: 100%;
  height: 100vh;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#payment_heading {
  font-size: 2em;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #1c6fb1;
}

#payment_text {
  color: #7f8c8d;
  margin-bottom: 20px;
}

#payment_price {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 30px;
}

#payment-method {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 5rem;
}
#card-icon,
#cash-icon {
  width: 100px;
  color: red;
}

#card-option,
#cash-option {
  padding: 15px 0;
  text-transform: uppercase;
  font-size: 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: #1c6fb1;
  padding: 2vw 4vw 2vw 4vw;
  color: white;
  border-radius: 1rem;
  border: transparent solid 0.5rem;
  transition: 0.3s;
}

#card-option:hover,
#cash-option:hover {
  background-color: white;
  color: #1c6fb1;
  border: 0.5rem solid #1c6fb1;
  transition: 0.3s;
}

.confirm-btn {
  background-color: #2c3e50;
  color: #fff;
  padding: 15px;
  border: none;
  font-size: 1.2em;
  cursor: pointer;

  text-transform: uppercase;
}

.confirm-btn:hover {
  background-color: #1c6fb1;
}

/*-------------------------------------------- CSS for success page---------------------------------------- */

#success-container {
  max-width: 100%;
  height: 100vh;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

#success-heading {
  font-size: 2em;
  color: #2c3e50;
  font-family: "Poppins", sans-serif;
}

#success-message {
  color: #7f8c8d;
  margin-bottom: 20px;
}

#success-booking-id {
  font-weight: bold;
  color: #27ae60; /* Customize the color for the booking ID */
}

#error-message {
  color: #e74c3c; /* Customize the color for error message */
  font-weight: bold;
}
