* {
  margin: 0;
  padding: 0;
  font-family: "Urbanist", sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
  letter-spacing: 0.05rem;
}

.body {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.info-section {
  background: var(--white);
  padding: 1rem 0rem;
  border-bottom: 1px solid #eee;
}

.info-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info-left {
  flex: 1 1 60%;
}

.info-left h3 {
  color: var(--green);
  font-size: 3rem;
  margin-bottom: 3rem;
  margin-left: 1rem;
}

.toggle-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 3rem;
  margin-left: 1rem;
}

.toggle-buttons .btn {
  padding: 0.8rem 2rem;
  border-radius: 3px;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}

.btn.driver.active {
  background: var(--light-gray);
  border-color: var(--orange);
  color: var(--orange);
}

.btn.passenger.active {
  background: var(--light-gray);
  border-color: var(--blue);
  color: var(--blue);
}

.btn.passenger {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.info-tabs {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  overflow-x: hidden; /* Change from scroll to hidden */
}

.info-tabs a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  margin-right: 2rem;
}

.info-tabs a.active {
  color: var(--orange);
  font-weight: 600;
}

.info-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--orange);
}

.passenger-info-tabs a.active {
  color: var(--blue);
  /* background: var(--blue); */
}
.passenger-info-tabs a.active::after {
  background: var(--blue);
  /* background: var(--blue); */
}

.info-right {
  flex: 1 1 30%;
  text-align: right;
}

.info-right img {
  max-width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .info-right {
    text-align: center;
    width: 100%;
  }

  .info-tabs {
    flex-direction: row;
    overflow: scroll;
  }
  .info-left h3 {
    padding-left: 1rem;
    margin-left: 0rem;
  }
  .toggle-buttons {
    margin-left: 0rem;
  }

  .toggle-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 3px;
    /* border: 1px solid var(--orange); */
    border-color: transparent;
    background: var(--light-gray);
    color: var(--orange);
    font-weight: 300;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
  }

  .btn.driver.active {
    background: var(--light-gray);
    border-color: transparent;
    color: var(--orange);
    border-right: 3px solid var(--orange);
    font-weight: 600;
  }

  .btn.passenger.active {
    background: var(--light-gray);
    border-color: transparent;
    color: var(--blue);
    border-left: 3px solid var(--blue);
    font-weight: 600;
  }

  .btn.passenger {
    background: var(--light-gray);
    color: var(--blue);
    border-color: transparent;
  }

  .toggle-buttons {
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0;
  }
}

.getting-started-section,
.payments-section,
.safety-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.managing-rides-section {
  background: var(--light-gray);
  padding: 3rem 1rem;
  font-family: sans-serif;
}

.managing-container {
  max-width: 1100px;
  margin: auto;
}

.section-title2 {
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title2 .checkmark {
  color: var(--green);
}

.ride-faq {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.faq-left,
.faq-right {
  flex: 1 1 45%;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #111;
}

ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.05rem;
}

.cta-btn {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.8rem 3rem;
  font-size: 0.9rem;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--orange);
}

@media (max-width: 768px) {
  .ride-faq {
    flex-direction: row;
  }

  .cta-btn {
    margin-top: 1rem;
  }
  .ride-faq {
    display: flex;
    gap: 0rem;
    flex-wrap: wrap;
  }
  .ride-faq .faq-left {
    margin-bottom: 0rem;
  }
}

.driver-guidelines-section {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background: var(--white);
}

.driver-guidelines-box {
  border: 1.5px solid #ffcc80;
  padding: 2rem 2rem;
  width: 600px;
  max-width: 100%;
  color: var(--orange);
  font-family: sans-serif;
  border-radius: 3px;
  background-color: var(--white);
}

.driver-guidelines-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.driver-guidelines-box .subheading {
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.driver-guidelines-box ul {
  padding-left: 0rem;
}

.driver-guidelines-box li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--orange);
  list-style: none;
}

/* passenger guidelines  */

.passenger-guidelines-section {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background: var(--white);
}

.passenger-guidelines-box {
  border: 1.5px solid var(--blue);
  padding: 2rem 2rem;
  width: 600px;
  max-width: 100%;
  color: var(--blue);
  font-family: sans-serif;
  border-radius: 3px;
  background-color: var(--white);
}

.passenger-guidelines-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.passenger-guidelines-box .subheading {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.passenger-guidelines-box ul {
  padding-left: 0rem;
}

.passenger-guidelines-box li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--blue);
  list-style: none;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-left h2 {
  font-size: 3rem;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--green);
}

.contact-left p {
  color: var(--text);
  font-size: 1.3rem;
  letter-spacing: 0.05rem;
  line-height: 1.6;
  margin-right: 3rem;
  width: 400px;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--text);
}

.grid-grp {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 6rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  /* font-weight: 500; */
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 2px;
  font-size: 15px;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.captcha-box {
  display: flex;
  align-items: center;
  height: 30px;
}

.captcha-box input {
  width: auto;
  margin-right: 8px;
}

/* Helper classes */
.hidden {
  display: none;
}

.active {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .contact-left h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-right: 0.1rem;
  }

  .contact-left p {
    font-size: 1rem;
    margin-right: 0.1rem;
    max-width: 300px;
  }

  .ride-faq,
  .contact-section {
    flex-direction: column;
  }
  .info-container {
    flex-direction: column-reverse;
  }

  .info-right {
    margin-top: 20px;
  }
  .contact-left {
    flex: 1;
    min-width: 300px;
  }
  .grid-grp {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0rem;
  }

  .faq-left,
  .faq-right,
  .contact-left,
  .contact-right {
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
}

.captcha-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
}

.contact-form button {
  padding: 0.8rem 2rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
}

.blue {
  color: var(--blue);
}
.blue-bg {
  background-color: var(--blue);
}
.grid-grp {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem; /* reduced from 6rem */
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  width: 100%; /* ensure form groups take full width */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  box-sizing: border-box; /* critical for proper sizing */
}

@media (max-width: 768px) {
  .grid-grp {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    width: 100%;
  }
}

/* Fix the padding on mobile for containers */
@media (max-width: 768px) {
  .contact-section,
  .info-container,
  .managing-container {
    /* padding: 0 10px; */
    width: 100%;
    box-sizing: border-box;
  }

  .info-right img {
    max-width: 100%;
  }
}

/* Keep the tabs in a single row with horizontal scroll on all screen sizes */
.info-tabs {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  margin-top: 0.5rem;
  flex-wrap: nowrap; /* Prevent wrapping to ensure single row */
  overflow-x: auto; /* Enable horizontal scrolling */
  white-space: nowrap; /* Prevent text wrapping within tabs */
  scrollbar-width: thin; /* For Firefox */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding-bottom: 10px; /* Add some space for the scrollbar */
  margin-left: 1rem;
}

/* Hide scrollbar but maintain functionality for Chrome, Safari, and Opera */
.info-tabs::-webkit-scrollbar {
  height: 4px;
}

.info-tabs::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Make the tabs maintain proper spacing and position */
.info-tabs a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  margin-right: 1rem;
  flex-shrink: 0; /* Prevent tabs from shrinking */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Update media query to ensure tabs remain in a row on small screens */
@media (max-width: 768px) {
  .info-tabs {
    flex-direction: row; /* Ensure it stays as row */
    overflow-x: auto; /* Allow horizontal scrolling */
    flex-wrap: nowrap; /* Prevent wrapping */
    width: 100%; /* Take full width */
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE and Edge */
  }

  /* Add padding to container to avoid content being cut off */
  .info-left {
    width: 100%;
    /* padding-right: 10px; */
    /* padding-left: 10px; */
  }
}

.info-right,
.info-hero-text,
.toggle-buttons {
  opacity: 0;
  animation: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.info-right {
  animation-name: info-hero-image;
}
.info-hero-text {
  animation-name: info-hero-heading;
}
.toggle-buttons {
  animation-name: info-toggle-buttons;
}

@keyframes info-hero-image {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}

@keyframes info-hero-heading {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes info-toggle-buttons {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}

.passenger-guidelines-section,
.driver-guidelines-section,
.contact-left,
.contact-right,
.section-title2,
.faq-left,
.faq-right,
.cta-btn {
  opacity: 0;
  transform: translateY(200px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.passenger-info-tabs,
.info-tabs,
.user-content {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-btn {
  transform: translateY(50px);
}

.animate {
  opacity: 1;
  transform: translateY(0);
}
/* Mobile Tab Dropdown - Fixed Styles */
.mobile-tab-dropdown {
  display: none; /* Hide on desktop by default */
  width: 100%;
  position: relative;
  /* margin-bottom: 2rem; */
  z-index: 999; /* Higher z-index to ensure it appears above other elements */
}

.dropdown-select {
  background-color: var(--white);
  border-bottom: 3px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 15px;
  margin: 0rem 0rem;
  cursor: pointer;
  display: flex;
  color: var(--text);
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.dropdown-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  list-style-type: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown-options.show {
  display: block;
  max-height: 300px; /* Adjust as needed */
}

.dropdown-options li {
  margin: 0;
  padding: 0;
}

.dropdown-options a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-options li:last-child a {
  border-bottom: none;
}

.dropdown-options a:hover {
  background-color: var(--light-gray);
}

.dropdown-options a.active {
  font-weight: 600;
  background-color: var(--light-gray);
}

/* Color variations based on user type */
/* .info-section[data-user-type="driver"] .dropdown-select {
  border-color: var(--orange);
}

.info-section[data-user-type="driver"] .dropdown-options a.active {
  color: var(--orange);
}

.info-section[data-user-type="passenger"] .dropdown-select {
  border-color: var(--blue);
}

.info-section[data-user-type="passenger"] .dropdown-options a.active {
  color: var(--blue);
} */

/* Show dropdown and hide tabs on mobile */
@media (max-width: 768px) {
  .mobile-tab-dropdown {
    display: block;
  }

  .info-tabs {
    display: none;
  }

  .selected-tab {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
  }
}
