body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #f8f9fa;
  margin: 0;
  padding: 40px 20px;
}

.container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
  width: 90%;
  max-width: 850px;
  text-align: center;
}

/* Logo Styling */
#header-logo {
  display: block; /* To allow margin auto for left alignment */
  height: 40px; /* Adjust as needed */
  width: auto;
  margin-bottom: 25px;
  margin-right: auto; /* Pushes it left */
  margin-left: 0;
}

h1 {
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.5em;
}

.subtitle {
  color: rgb(89, 47, 150);
  margin-bottom: 30px;
  font-size: 1em;
  line-height: 1.5;
}

.selectors {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 40px;
  gap: 30px;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.select-group label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9em;
  color: rgb(89, 47, 150);
}

.select-group select {
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  min-width: 180px;
  background-color: #fff;
  font-size: 1em;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select-group select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.timeline-container {
  margin-bottom: 40px;
  padding: 15px;
  padding-bottom: 45px;
  background-color: transparent;
  border-radius: 8px;
  overflow-x: auto;
}

.timeline-labels {
  position: relative;
  height: 20px;
  margin-bottom: 5px;
}

.timeline-label-text {
  position: absolute;
  bottom: 0;
  font-size: 0.75em;
  font-weight: 500;
  color: rgb(89, 47, 150);
  white-space: nowrap;
}

.timeline {
  position: relative;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  cursor: default;
  width: 100%;
  border: none;
}

.segment {
  position: absolute;
  height: 100%;
  top: 0;
  opacity: 1;
  border-radius: 0;
  transition: background 0.3s ease;
}

.segment.pickup {
  background: rgb(0, 233, 28);
  z-index: 1;
  border-radius: 4px 0 0 4px;
  transition: background 0.3s ease;
}

.segment.dropoff {
  background: rgb(0, 233, 28);
  z-index: 1;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s ease;
}

.segment.pickup.premium {
  background: linear-gradient(to right, #ffc107, #ffa000);
  z-index: 1;
  border-radius: 4px 0 0 4px;
  transition: background 0.3s ease;
}

.segment.dropoff.premium {
  background: linear-gradient(to right, #ffc107, #ffa000);
  z-index: 1;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s ease;
}

.segment.pickup.super-premium {
  background: linear-gradient(to right, #dc3545, #c82333);
  z-index: 1;
  border-radius: 4px 0 0 4px;
  transition: background 0.3s ease;
}

.segment.dropoff.super-premium {
  background: linear-gradient(to right, #dc3545, #c82333);
  z-index: 1;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s ease;
}

.transit {
  background-color: #dc3545;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 5px,
    rgba(200, 200, 200, 0.4) 5px,
    rgba(200, 200, 200, 0.4) 10px
  );
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 50%;
  cursor: ew-resize;
  z-index: 2;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.1s ease, border-color 0.1s ease, background-color 0.3s ease;
}

.handle:hover {
  border-color: #adb5bd;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.handle:active {
  cursor: grabbing;
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.time-label {
  position: absolute;
  top: calc(50% + 25px);
  transform: translateX(-50%);
  font-size: 12px;
  color: rgb(89, 47, 150);
  background-color: transparent;
  padding: 0;
  white-space: nowrap;
  font-weight: 400;
  text-align: left;
  transition: transform 0.2s ease-out;
}

.price-section {
  margin-top: 20px;
  padding: 25px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  text-align: left;
}

#priceDisplay {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.85);
}

#priceMessages {
  list-style: none;
  padding: 0;
  margin: 0;
}

#priceMessages li {
  font-size: 0.9em;
  color: rgb(89, 47, 150);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

#priceMessages li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background-color: rgb(89, 47, 150);
  border-radius: 50%;
}

@keyframes price-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.05) translateY(-1px); }
  100% { transform: scale(1); }
}

#priceValue.price-flash-animation {
  display: inline-block;
  animation: price-flash 0.3s ease-in-out;
}

@media (max-width: 700px) {
  .container {
    width: 95%;
    padding: 20px;
    border-radius: 12px;
  }

  .selectors {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .select-group select {
    width: 100%;
  }

  h1 {
    font-size: 1.4em;
  }

  .subtitle {
    font-size: 0.95em;
  }

  .timeline-container {
    padding: 10px;
    padding-bottom: 45px;
  }

  .handle {
    width: 16px;
    height: 16px;
  }

  .time-label {
    font-size: 11px;
    top: calc(50% + 22px);
  }

  #priceDisplay {
    font-size: 1.3em;
  }

  #priceMessages li {
    font-size: 0.85em;
    padding-left: 15px;
  }

  #priceMessages li::before {
    top: 6px;
    width: 5px;
    height: 5px;
  }
}
