/* Quick-start trip bar at the foot of the opening screen.
   Three picks and a button; they carry into the full trip request in #plan. */
.hero { padding-bottom: 170px; overflow-x: clip; } /* the title glow is wider than a phone screen */
.hero .scroll-cue { margin-top: 36px; }

.trip-bar {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: min(900px, calc(100% - 32px));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 6px 14px;
  padding: 16px 16px 16px 24px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 22px 60px rgba(16, 29, 55, 0.24);
}
.tb-field { display: grid; gap: 6px; min-width: 0; }
.tb-field + .tb-field { padding-left: 14px; border-left: 1px solid rgba(25, 33, 49, 0.12); }
.tb-label { font: 600 0.8rem/1 var(--sans); color: var(--ink); letter-spacing: 0.01em; }
.tb-control { position: relative; display: block; }
.tb-control svg {
  position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none;
  fill: none; stroke: var(--sea); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tb-control::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.trip-bar select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 400 0.92rem/1.2 var(--sans); color: var(--ink); text-overflow: ellipsis;
  padding: 11px 32px 11px 38px; border-radius: 12px;
  border: 1px solid rgba(25, 33, 49, 0.14); background: rgba(255, 255, 255, 0.85);
}
.trip-bar select:invalid, .trip-bar select.is-empty { color: var(--muted); }
.trip-bar select:hover { border-color: rgba(25, 33, 49, 0.3); }
.trip-bar select:focus-visible, .tb-go:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.tb-go {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font: 500 0.95rem/1 var(--sans); letter-spacing: 0.02em; white-space: nowrap;
}
.tb-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.tb-go:hover { background: var(--sea); }
.tb-go:hover svg { transform: translateX(3px); }

/* A short flash on the full form so people see where their picks landed. */
.card--form.just-filled { animation: tb-flash 1.6s ease; }
@keyframes tb-flash { 0% { box-shadow: 0 0 0 0 rgba(42, 95, 174, 0.55), var(--shadow); } 100% { box-shadow: 0 0 0 18px rgba(42, 95, 174, 0), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .card--form.just-filled { animation: none; } .tb-go svg { transition: none; } }

/* Short laptop screens: keep the bar clear of the title. */
@media (min-width: 821px) and (max-height: 760px) {
  .hero { padding-top: 96px; padding-bottom: 150px; }
  .hero .scroll-cue { display: none; }
  .trip-bar { bottom: 22px; }
}

/* Tablets and phones: the bar sits in the flow under the intro as a compact card. */
@media (max-width: 820px) {
  .hero { padding-bottom: 110px; }
  .hero .scroll-cue { display: none; }
  .trip-bar {
    position: static; transform: none; margin-top: 26px; width: min(560px, 100%);
    grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px;
  }
  .tb-field + .tb-field { padding-left: 0; border-left: 0; }
  .tb-field:first-child { grid-column: 1 / -1; }
  .tb-go { grid-column: 1 / -1; justify-content: center; height: 48px; }
}
@media (max-width: 380px) {
  .trip-bar { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trip-bar select { padding: 11px 26px 11px 34px; font-size: 0.9rem; }
  .tb-control svg { left: 11px; }
  .tb-control::after { right: 11px; }
}

/* ---------- Full trip request form ---------- */
/* Trip details come first (they arrive pre-filled from the bar), then contact details.
   On wide screens the two sit side by side so the whole form fits on one screen. */
.card--form { scroll-margin-top: 84px; }
.tf-cols { display: grid; gap: 22px; }
.tf-col { display: grid; gap: 14px; align-content: start; }
.tf-step { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 1.15rem/1.2 var(--serif); color: var(--ink); }
.tf-step span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 600 0.78rem/1 var(--sans);
}
.tf-foot { display: grid; gap: 14px; justify-items: center; }
.trip-form .tf-foot button { margin-top: 0; display: inline-flex; align-items: center; gap: 8px; }
.trip-form button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.trip-form button:hover svg { transform: translateX(3px); }

/* Chips: hide the radio dot, the filled pill shows the choice. */
.trip-form .chips label { position: relative; padding: 8px 16px; transition: background 0.15s, border-color 0.15s; }
.trip-form .chips label:hover { border-color: rgba(25, 33, 49, 0.4); }
.trip-form .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.trip-form .chips label:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Select gets the same box and chevron as the text fields. */
.trip-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c5b61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.trip-form select:has(option[value=""]:checked) { color: var(--muted); }

@media (min-width: 900px) {
  .card--form:has(.trip-form:not([hidden])) { width: min(980px, 100%); padding: 30px 48px 22px; }
  .card--form h2 { margin-bottom: 8px; }
  .card--form .form-intro { max-width: 34rem; margin-inline: auto; }
  .tf-cols { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 6px; }
  .tf-col:first-child { padding-right: 34px; border-right: 1px solid rgba(25, 33, 49, 0.12); }
  .tf-col:last-child { padding-left: 34px; }
  .tf-foot {
    grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; gap: 24px;
    margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(25, 33, 49, 0.12);
  }
  .trip-form .tf-foot button { padding: 14px 28px; }
}
