/* RideSure - Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins/Poppins-Regular.ttf');
}

a {
    text-decoration: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #242425;
  overflow-x: hidden;
}

/* ===================== FLOATING NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #00253D;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 47px;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-logo img {
  width: 150px;
  height: 36px;
  object-fit: contain;
}

.nav-logo span {
  font-size: 17px;
  font-weight: 700;
  color: #0162BF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  color: #ACB8BF;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;

}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  background: #FEFEFE;
  border: 0px solid #EAECEE;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
  color: #646465;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #0782fe;
  color:#fff;
}

.btn-create {

  background: #0782fe;
  /* border: 1px solid #EAECEE; */
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
  color: #FEFEFE;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}

.btn-create:hover {
  background: #FEFEFE;
  color:#646465;
}




/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 500px;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #f5f9ff;
}

.hero-slide.active { display: block; }

.hero-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 51px 0 0 51px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 480px;
}

.hero-text { max-width: 700px; padding-top: 10px; }

.hero-text .line1 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-text .line1 span:first-child {
  font-size: 56px;
  font-weight: 800;
  color: #242425;
}

.hero-text .line1 span.highlight {
  font-size: 40px;
  font-weight: 800;
  color: #17A0FF;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  color: #232324;
  line-height: 1.1;
  margin-top: 0;
}

.hero-text p {
  font-size: 24px;
  color: #797A7D;
  margin-top: 33px;
  max-width: 679px;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.btn-register {

  border: none;
  width: 113px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
   background: #ffc936;
}

.btn-register span {
  font-size: 13px;
  color: #AFCEF3;
  font-family: 'Poppins', sans-serif;
}

.btn-learn-more {
  background: #FEB800;
  border: 1px solid #FDCA41;
  border-radius: 4px;
  width: 129px;
  height: 43px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-learn-more:hover {
  background: #e5a600;
}

.btn-learn-more span {
  font-size: 10px;
  font-weight: 500;
  color: #5E480E;
  font-family: 'Poppins', sans-serif;
}

.btn-learn-more img {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 51px;
  width: 555px;
  height: 402px;
  object-fit: contain;
}

/* Hero slider dots */
.hero-dots {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px 0 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5d8e8;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.hero-dot.active { background: #0162BF; }

/* ===================== SEARCH BAR ===================== */


.search-title {
  font-size: 24px;
  font-weight: 700;
  color: #DFE3E6;
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  font-size: 11px;
  color: #97A6B0;
  font-family: 'Poppins', sans-serif;
}

.search-select,
.search-date {
  background: #F8F9FA;
  border: 1px solid #D0D6DC;
  border-radius: 3px 0 0 0;
  width: 308px;
  height: 41px;
  padding: 0 14px;
  font-size: 13px;
  color: #6A6D73;
  font-family: 'Poppins', sans-serif;
  appearance: none;
  cursor: pointer;
  /* display: flex; */
  align-items: center;
}

.search-date {
  border: 1px solid #758794;
  border-radius: 3px 0 0 3px;
  color: #C2C7CE;
  font-size: 10px;
}

select.search-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('https://static.codia.ai/s/image_a62c1ca8-c4e9-4d4c-96d1-c25d63d6d3af.png');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 9px;
  cursor: pointer;
}

input[type="date"].search-date {
  appearance: none;
  -webkit-appearance: none;
}

.btn-search {
  /* background-image: url('https://static.codia.ai/s/image_49fdd5cc-14b4-42b3-a39a-1cd60d36334c.png'); */
  /* background-size: contain;
  background-repeat: no-repeat;
  background-position: center; */
  background: #0782fe;
  border: none;
  width: 98px;
  height: 41px;
  cursor: pointer;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  align-self: flex-end;
}

.btn-search span {
  font-size: 11px;
  color: #B0CEF3;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ===================== VEHICLES SECTION ===================== */
.vehicles-section {
  background: #ffffff;
  position: relative;
  padding: 53px 43px 67px;
  background-image: url('https://static.codia.ai/s/image_3f8ac1ea-5cb0-40ef-8816-af33ee0a8713.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.vehicles-section h2 {
  font-size: 48px;
  font-weight: 800;
  color: #1E1E14;
  margin-bottom: 18px;
}

.vehicles-section .vehicles-sub {
  font-size: 24px;
  color: #7B7B7D;
  margin-bottom: 29px;
  line-height: 1.4;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  height: 43px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 0 15px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #EAF5FE;
  border: 1px solid #94D1FE;
  color: #5BAADF;
}

.tab-btn:not(.active) {
  background: #FEFEFE;
  border: 1px solid #D8D3D3;
  color: #A6A6A9;
}

.tab-btn:hover:not(.active) {
  background: #f5f5f5;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
}

/* ===================== CAR CARD ===================== */
.car-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.car-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.car-card-img-wrap img.car-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-open-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-open-badge img {
  height: 36px;
  object-fit: contain;
}

.car-info {
  padding: 10px 8px 12px;
}

.car-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.car-name {
  font-size: 15px;
  font-weight: 700;
  color: #5D5D5E;
}

.badge-available {
  background: #CEF9E0;
  border: 1px solid #AFF5D2;
  border-radius: 9px;
  padding: 3px 9px;
  font-size: 10px;
  color: #4BA488;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.badge-unavailable {
  background: #FEE3E5;
  border: 1px solid #FED8DD;
  border-radius: 9px;
  padding: 3px 9px;
  font-size: 10px;
  color: #D45976;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.car-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.car-price {
  font-size: 13px;
  color: #858586;
  display: flex;
  align-items: center;
  gap: 3px;
}

.car-price img,
.car-type img,
.car-location img {
  width: 10px;
  height: 12px;
  object-fit: contain;
}

.car-type {
  font-size: 11px;
  color: #8B8B8C;
  display: flex;
  align-items: center;
  gap: 3px;
}

.car-location {
  font-size: 11px;
  color: #89898A;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Car Detail Modal */
.car-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.car-modal-overlay.open {
  display: flex;
}

.car-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 90%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.car-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

.car-modal img.modal-car-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.car-modal h3 {
  font-size: 22px;
  font-weight: 700;
  color: #242425;
  margin-bottom: 8px;
}

.car-modal .modal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: #888;
}

.car-modal .modal-price {
  font-size: 18px;
  font-weight: 700;
  color: #0162BF;
  margin-bottom: 20px;
}

.btn-book-now {
  background: #0162BF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}

.btn-book-now:hover {
  background: #0150a0;
}

/* ===================== HOW IT WORKS ===================== */
.how-section {
  text-align: center;
  padding: 51px 141px 48px;
  background: #ffffff;
}

.how-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0F6095;
  margin-bottom: 3px;
}

.how-section .how-sub {
  font-size: 24px;
  color: #6C6C6C;
  margin-bottom: 22px;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 30px 5px;
}

.how-step img.step-icon {
  width: 153px;
  height: 153px;
  object-fit: contain;
  margin-bottom: 29px;
}

.how-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: #5C6172;
  margin-bottom: 7px;
}

.how-step p {
  font-size: 15px;
  color: #9C9FA8;
  line-height: 1.5;
}

.how-arrow {
  width: 99px;
  height: 15px;
  object-fit: contain;
  align-self: center;
  margin-top: -80px;
}

/* ========== TESTIMONIALS SLIDER ========== */
.testimonials-section {
  padding: 50px 0 72px;
  background: #fff;
}

.testimonials-header {
  padding: 0 250px 27px;
}

.testimonials-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: #26261C;
  margin-bottom: 16px;
}

.testimonials-header p {
  font-size: 28px;
  color: #7E7E80;
  max-width: 856px;
  line-height: 1.35;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 0 129px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active { display: block; }

.testimonial-card {
  background: #E3F3FF;
  border-radius: 18px;
  padding: 41px 37px 55px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.testimonial-avatar {
  width: 353px;
  height: 353px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 0;
}

.testimonial-body {
  flex: 1;
  padding-left: 30px;
}

.quote-icon {
  width: 43px;
  height: 35px;
  object-fit: contain;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 18px;
  color: #404447;
  line-height: 1.6;
  max-width: 634px;
  margin-bottom: 30px;
}

.testimonial-author {
  font-size: 24px;
  font-weight: 700;
  color: #2D2F32;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 15px;
  color: #858A90;
  margin-bottom: 20px;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdot {
  width: 40px;
  height: 10px;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  border: none;
  background: none;
  padding: 0;
}

.tdot.active { opacity: 1; }

/* ===================== FOOTER ===================== */
.footer {
  background-image: url('https://static.codia.ai/s/image_d22a29b2-c7e1-4471-a54c-bc46f7a01f8f.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 66px 50px 8px;
}

.footer-top {
  display: flex;
  gap: 0;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 62px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 20px;
  height: 28px;
  object-fit: contain;
}

.footer-brand span {
  font-size: 24px;
  font-weight: 700;
  color: #0175DD;
}

.footer-col h4 {
  font-size: 15px;
  color: #808C94;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #A4B1BA;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col .legal-link {
  font-size: 16px;
  color: #9DABB4;
}

.footer-newsletter h4 {
  font-size: 16px;
  color: #C1CAD0;
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 16px;
  color: #98A7B1;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 365px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border: 1px solid #E1E3E7;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  width: 391px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 19px;
  font-size: 14px;
  color: #BEC3CB;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #BEC3CB;
}

.btn-subscribe {
  background-image: url('https://static.codia.ai/s/image_d5ac6fa0-ef85-4e71-be07-2efb3a12e5ed.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 108px;
  height: 41px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-subscribe span {
  font-size: 10px;
  color: #B4D1F3;
  font-family: 'Poppins', sans-serif;
}

.footer-divider {
  height: 1px;
  background: #EFF9FF;
  margin-bottom: 38px;
}

.footer-bottom {
  font-size: 16px;
  color: #7C8991;
  padding-left: 0;
}
