:root {
  --ink: #18202a;
  --muted: #667080;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f3f5f8;
  --yellow: #f5c84b;
  --yellow-dark: #d99d18;
  --blue: #173b68;
  --red: #c33e31;
  --shadow: 0 24px 70px rgba(24, 32, 42, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 22px 20px;
}

.brand,
.status-pill {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--yellow);
  border-radius: 8px;
  color: #111820;
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.status-pill span {
  background: #33d17a;
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.shell {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  margin: 0 auto;
  max-width: 1160px;
  padding: 8px 20px 110px;
}

.request-panel,
.summary-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.request-panel {
  padding: 24px;
}

.panel-heading p,
.eyebrow {
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 1.55rem;
}

.trip-mode {
  background: #edf1f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 0;
  padding: 8px;
}

.mode-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  min-height: 68px;
  padding: 12px;
  text-align: left;
}

.mode-button span,
.mode-button small {
  display: block;
}

.mode-button span {
  color: var(--ink);
  font-weight: 900;
}

.mode-button small {
  font-size: 13px;
  margin-top: 4px;
}

.mode-button.active {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.mode-button.active span {
  color: #fff;
}

.trip-form {
  display: grid;
  gap: 16px;
}

.field-grid,
.schedule-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  background: #f9fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 50px;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 4px rgba(245, 200, 75, 0.22);
}

.quick-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 14px;
}

.quick-options legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  padding: 0 6px;
}

.quick-options label {
  align-items: center;
  display: flex;
  font-weight: 700;
}

.quick-options input {
  accent-color: var(--yellow-dark);
  min-height: auto;
  width: auto;
}

.primary-button {
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  color: #111820;
  cursor: pointer;
  font-weight: 950;
  min-height: 56px;
  padding: 15px 18px;
}

.primary-button:hover {
  background: #ffd96a;
}

.summary-card {
  align-self: start;
  display: grid;
  gap: 22px;
  padding: 24px;
  position: sticky;
  top: 16px;
}

.route-preview {
  border-left: 3px solid var(--line);
  display: grid;
  gap: 18px;
  margin-left: 8px;
  padding-left: 18px;
}

.route-preview div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.route-preview p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.dot {
  border-radius: 50%;
  flex: 0 0 12px;
  height: 12px;
  margin-left: -25px;
  outline: 5px solid #fff;
  width: 12px;
}

.dot.start {
  background: var(--blue);
}

.dot.end {
  background: var(--red);
}

.driver-card {
  align-items: center;
  background: #f1f5fb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.driver-avatar {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 950;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.driver-card strong,
.driver-card span {
  display: block;
}

.driver-card span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.fare-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fare-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.fare-list dt {
  color: var(--muted);
}

.fare-list dd {
  font-weight: 950;
  margin: 0;
  text-align: right;
}

.support-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.support-strip a, .location-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.feedback { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 3px; }
input { min-width: 0; }
.fare-list div { gap: 16px; }

.bottom-nav {
  background: #111820;
  bottom: 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
  display: none;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  padding: 8px;
  position: fixed;
  right: 0;
  z-index: 5;
}

.bottom-nav a {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 820px) {
  .topbar {
    padding: 16px;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 0 14px 92px;
  }

  .request-panel,
  .summary-card {
    padding: 18px;
  }

  .summary-card {
    position: static;
  }

  .field-grid,
  .schedule-fields,
  .quick-options {
    grid-template-columns: 1fr;
  }

  .trip-mode {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand small,
  .status-pill {
    display: none;
  }

  h1 {
    font-size: 2.45rem;
  }
}
