@import '../responsive.css';
/* Request Ride Layout */

.ride-container {
  display: flex;
  flex-direction: column;
  max-width: 1150px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .ride-container {
    flex-direction: row;
    height: auto;
  }
}

/* Ride Form Styles */
.ride-form-wrapper {
  background-color: var(--white);
  padding: 2rem;
  width: 45%;
}

.ride-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.ride-subtitle {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .ride-form-wrapper {
    width: 40%;
    border-right: 1px solid var(--gray-200);
  }
}

#rideRequestForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
  background-color: var(--white);
  color: var(--gray-700);
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
  padding: 0.5rem 1rem; /* Remove left padding for icon since textarea doesn't have icon */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(224, 94, 26, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}


/* Map Container */
.map-container {
  width: 55%;
  background-color: #f0f0f0;
  min-height: 300px;
}

@media (min-width: 768px) {
  .map-container {
    width: 60%;
    min-height: auto;
  }
}

#map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ride Info Displays */
.ride-info-display {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin: 0.25rem 0;
}

.ride-info-display .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ride-info-display .info-item i {
  color: var(--primary);
  font-size: 1rem;
}

.ride-info-display .info-text {
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* Submit Button */
.btn-primary.full-width {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.25rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-primary.full-width:hover:not(:disabled) {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-primary.full-width:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ride-form-wrapper {
    width: 100%;
    padding: 1.5rem;
  }
  
  .map-container {
    width: 100%;
    min-height: 250px;
  }
  
  .ride-title {
    font-size: 1.75rem;
  }
}