/**
 * PalmSeth SARL - GoFast Taxi Page Styles
 * Custom styles for the GoFast Taxi reservation page
 */

/* Taxi Hero Section */
.taxi-hero .hero-background {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  position: relative;
}

.taxi-hero .hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/taxi-pattern.png');
  background-size: 200px;
  opacity: 0.1;
  z-index: 1;
}

/* Taxi Booking Section */
.taxi-booking-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.taxi-booking-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

/* Booking Form */
.booking-form-wrapper {
  width: 100%;
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 3rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.form-row.two-columns {
  flex-direction: column;
}

.form-group {
  flex: 1;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group label i {
  margin-right: 0.8rem;
  color: var(--color-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 119, 73, 0.2);
}

/* Estimated Price */
.price-display {
  position: relative;
}

.price-display input {
  padding-right: 5rem;
  font-weight: 700;
  font-size: 1.8rem;
  background-color: var(--color-background-light);
  color: var(--color-primary);
}

.currency {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 1.4rem;
}

/* Form Actions */
.form-actions {
  margin-top: 1rem;
}

.taxi-btn {
  background-color: var(--color-secondary);
  color: var(--color-text);
  font-weight: 600;
  width: 100%;
  padding: 1.5rem;
}

.taxi-btn:hover {
  background-color: var(--color-secondary);
  filter: brightness(1.1);
}

/* Map Container */
.map-preview {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#map-container {
  width: 100%;
  height: 350px;
  background-color: var(--color-background-light);
  position: relative;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-text-light);
}

.map-placeholder i {
  font-size: 5rem;
  margin-bottom: 2rem;
  opacity: 0.5;
}

.map-placeholder p {
  font-size: 1.6rem;
  margin: 0;
}

/* Route Info */
.route-info {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-gray-light);
}

.route-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.route-detail i {
  color: var(--color-primary);
}

.route-detail strong {
  color: var(--color-text);
}

.hidden {
  display: none;
}

/* Taxi Features */
.taxi-features {
  background-color: var(--color-background-light);
}

.taxi-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.taxi-feature {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.taxi-feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.taxi-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  background-color: rgba(255, 204, 0, 0.1);
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.taxi-feature-icon i {
  font-size: 3.5rem;
  color: #ffcc00; /* Taxi yellow */
}

.taxi-feature h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.taxi-feature p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Vehicle Types */
.vehicle-types-slider {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 3rem;
}

.vehicle-types-slider::-webkit-scrollbar {
  display: none;
}

.vehicle-card {
  min-width: 300px;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-snap-align: start;
  transition: all var(--transition-normal);
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.vehicle-image {
  height: 180px;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-details {
  padding: 2rem;
}

.vehicle-details h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.vehicle-details p {
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.vehicle-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.vehicle-features li {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: var(--color-text);
}

.vehicle-features li i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.slider-arrow {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 1.5rem;
}

.slider-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--color-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

/* Taxi CTA */
.taxi-cta {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
}

.taxi-cta .cta-title,
.taxi-cta .cta-text {
  color: var(--color-text);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Responsive */
@media (min-width: 768px) {
  .form-row.two-columns {
    flex-direction: row;
  }
  
  .vehicle-types-slider {
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .vehicle-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: auto;
  }
}

@media (min-width: 992px) {
  .taxi-booking-container {
    flex-direction: row;
  }
  
  .booking-form-wrapper {
    width: 55%;
  }
  
  .map-preview {
    width: 45%;
  }
  
  .vehicle-card {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
}