/* Forms styles */
.form-group {
  margin-bottom: var(--space-2);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-color);
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 119, 182, 0.25);
}

.form-control::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-weight: 500;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.invalid-feedback{
  color: indianred;
}

/* Search form specific styles */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.search-form .form-group {
  margin-bottom: 0;
}

.search-form .form-group:first-child {
  flex: 1;
}

.search-form .form-group:nth-child(2) {
  flex: 2;
}

.search-form .btn {
  align-self: flex-end;
}

/* Route planner form */
.route-planner {
  margin-top: var(--space-3);
  padding: var(--space-2);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.route-planner-title {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xl);
}

.route-planner-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Comments form */
.comments-form {
  background-color: white;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.help-block{
  color: indianred;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .route-planner-form {
    flex-direction: row;
    align-items: flex-end;
  }
  
  .route-planner-form .form-group {
    flex: 1;
    margin-bottom: 0;
  }
  
  .route-planner-form .btn {
    margin-left: auto;
  }
}