:root {
  --primary-green: #a0e32c;
  --dark-green: #8cc320;
  --light-green: #b7fea9;
  --dark-blue: #263150;
  --medium-gray: #4A5568;
  --light-gray: #EDF2F7;
  --green: #7cb518;
  --blue: #1c253d;
  --light-bg: #f7f9fc;
  --gray: #555;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: url('../img/bg.jpg') center center/cover no-repeat;
  background-size: 100%;
  background-position-y: -40px;
}

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.container {
  position: relative;
  max-width: 50%;
  padding-left: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  top: 100px;
  width: 100%;
}

.text-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.text-content h2 {
  color: #a0e32c;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

.text-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.5s forwards, animate-gradient 2.5s linear infinite;
  background: linear-gradient(to right, #046fea, #1c07d8, #01164a, #1c07d8, #046fea);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

.text-content p {
  color: rgb(135, 135, 135);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.7s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.my-car {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  right: 5%;
  transform: translateY(-30px);
}

.my-car img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.compact-search-bar {
  background: rgba(255, 255, 255, 0.553);
  padding: 18px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.301);
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.414);
  margin-top: -180px;
  animation: pulseHighlight 3s ease-in-out 1;
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.177),
      0 0 0 0 rgba(160, 227, 44, 0.7);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.177),
      0 0 0 15px rgba(160, 227, 44, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.177),
      0 0 0 0 rgba(160, 227, 44, 0);
  }
}

.compact-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-search-field {
  flex: 1;
  min-width: 160px;
  position: relative;
}

.compact-search-field label {
  display: block;
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compact-search-field input,
.compact-search-field select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.compact-search-field input:focus,
.compact-search-field select:focus {
  outline: none;
  border-color: #a0e32c;
  box-shadow: 0 0 0 3px rgba(160, 227, 44, 0.15);
  background-color: #ffffff;
}

.compact-search-field select#vehicle-type {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.date-range-input {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.date-range-input input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  background-color: #f8fafc;
}

.calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 14px;
}

.compact-search-btn {
  background: linear-gradient(135deg, #a0e32c 0%, #a0e32c 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(160, 227, 44, 0.3);
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.compact-search-btn i {
  font-size: 15px;
  line-height: 2;
}

.compact-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(160, 227, 44, 0.4);
}

/* How it works section */
.how-it-works {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
  text-align: center;
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--medium-gray);
  font-size: 1.1rem;
  margin-bottom: 60px;
  font-weight: 300;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 80px;
}

.step {
  flex: 1;
  min-width: 250px;
  padding: 40px 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(18, 123, 2, 0.321);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
}

.step-number i {
  font-size: 1.3rem;
}

.step-title {
  font-size: 1.4rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
  position: relative;
}

.step-description {
  color: var(--medium-gray);
  line-height: 1.6;
  font-size: 1rem;
}

.step::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: var(--light-green);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  transition: all 0.5s ease;
}

.step:hover::before {
  transform: scale(1.5);
  opacity: 0.2;
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  padding: 80px 20px;
  background-color: var(--white);
}

.section-content {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  text-align: left;
}

.section-image {
  flex: 1;
  text-align: center;
  max-width: 500px;
}

.section-image img {
  width: 80%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--blue);
}

.section-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray);
}

.learn-more {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.learn-more:hover {
  background-color: #689f15;
  transform: translateY(-2px);
}

.rent-section {
  background-color: var(--light-bg);
}

.host-section {
  background-color: var(--white);
}

.rent-btn {
  background-color: var(--blue);
}

.rent-btn:hover {
  background-color: #0f172b;
}

.host-btn {
  background-color: var(--green);
}

.host-btn:hover {
  background-color: #689f15;
}

/* MEDIA QUERIES */

@media (max-width: 1200px) {
  .container { max-width: 60%; padding-left: 80px; }
}

@media (max-width: 992px) {
  body { 
    background-size: 400%; 
    background-position-y: 0; 
    background-position-x: 35%;
    overflow-x: hidden;
  }
  #hero { 
    height: auto; 
    padding: 100px 0 60px; 
    flex-direction: column; 
    text-align: center; 
    position: relative;
  }
  .container { 
    max-width: 100%; 
    padding: 0 30px; 
    top: 0; 
    align-items: center;
    margin: 0 auto;
  }
  .text-content { 
    max-width: 100%; 
    padding: 0 15px;
  }
  .text-content h1 { font-size: 2.8rem; }
  .my-car { 
    width: 85%;
    margin: 40px auto 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    right: auto;
  }
  .my-car img { 
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
  }
  .compact-search-bar { 
    width: calc(100% - 60px); 
    margin: 30px auto 0;
  }
}

@media (max-width: 768px) {
  .container { 
    padding: 0 20px;
    max-width: 100%;
  }
  .text-content h1 { font-size: 2.2rem; }
  .text-content h2 { font-size: 1.5rem; }
  .my-car { 
    width: 90%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }
  .my-car img { 
    width: 100%;
    max-width: 450px;
  }
  .compact-search-bar { 
    padding: 15px; 
    width: calc(100% - 40px);
    margin: 30px auto 0;
  }
  .compact-search-container { 
    flex-direction: column; 
    gap: 10px; 
  }
  .compact-search-field { width: 100%; }
  .compact-search-field input,
  .compact-search-field select {
    width: 100%;
  }
  .compact-search-btn { 
    width: 100%; 
    margin-top: 15px; 
  }
}

@media (max-width: 576px) {
  .text-content h1 { 
    font-size: 1.8rem; 
    line-height: 1.3; 
  }
  .text-content h2 { font-size: 1.3rem; }
  .text-content p { font-size: 0.95rem; }
  .my-car { 
    width: 95%;
    margin-top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }
  .my-car img { 
    width: 100%;
    max-width: 380px;
  }
  .compact-search-bar { 
    padding: 12px; 
    border-radius: 8px; 
    animation: none; 
    width: calc(100% - 30px);
    margin: 30px auto 0;
  }
  .compact-search-container { 
    flex-direction: column; 
    gap: 10px; 
  }
  .compact-search-field { width: 100%; }
  .compact-search-field input,
  .compact-search-field select {
    padding: 10px 12px;
    width: 100%;
  }
  .compact-search-btn { 
    width: 100%; 
    margin-top: 15px; 
  }
  .section { 
    flex-direction: column; 
    text-align: center; 
    padding: 60px 15px;
  }
  .section-content { 
    text-align: center; 
    padding: 0 15px;
  }
  .section-image img { 
    width: 100%; 
    max-width: 350px; 
  }
}

/* Horizontal layout */
.horizontal-search-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.compact-search-bar {
  /* Keep your existing styles */
  max-width: 1200px; /* Adjust as needed */
}

.compact-search-field {
  flex: 1;
  min-width: 120px; /* More compact */
}

.compact-search-field label {
  font-size: 11px; /* Smaller label */
  margin-bottom: 4px;
}

.compact-search-field input,
.compact-search-field select {
  padding: 10px 12px; /* More compact */
  font-size: 13px;
}

/* Date and time inputs */
input[type="date"],
input[type="time"] {
  height: 38px; /* Match other inputs */
}

/* Search button */
.compact-search-btn {
  margin-top: 0;
  height: 38px; /* Match input heights */
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .horizontal-search-form {
    flex-wrap: wrap;
  }
  
  .compact-search-field {
    min-width: calc(33% - 10px);
  }
}

@media (max-width: 768px) {
  .compact-search-field {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .compact-search-field {
    min-width: 100%;
  }
  
  .compact-search-btn {
    width: 100%;
  }
}