.lw-flow {
  --field-line: #83868b;
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 28px 100px rgb(32 35 39 / 24%);
  font: inherit;
  font-size: 1rem;
  text-align: left;
}
.lw-flow:not([open]), .lw-flow [hidden] { display: none !important; }
.lw-flow::backdrop { background: rgb(32 35 39 / 60%); }
.lw-flow *, .lw-flow *::before, .lw-flow *::after { box-sizing: border-box; }
.lw-flow__shell { display: flex; flex-direction: column; max-height: min(880px, 89vh); max-height: min(880px, 89dvh); }
.lw-flow__head { padding: 24px 28px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.lw-flow__step { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8125rem; font-weight: 650; line-height: 1.4; color: var(--ink); margin: 0 0 5px; }
.lw-flow #inquiry-title { font-size: clamp(1.65rem, 3.3vw, 2.05rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; margin: 0; text-transform: none; }
.lw-flow #inquiry-title:focus { outline: 0; }
.lw-flow__close { display: grid; place-items: center; color: var(--ink); padding: 0; background: transparent; border: 1px solid var(--ink); border-radius: 50%; height: 42px; width: 42px; flex: 0 0 42px; cursor: pointer; }
.lw-flow__close:hover { background: var(--white); color: var(--ink); }
.lw-flow__body { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 22px 26px 24px 28px; }
.lw-flow__group { padding: 0; border: 0; margin: 0 0 25px; min-width: 0; }
.lw-flow__group:last-child { margin-bottom: 0; }
.lw-flow__group legend { padding: 0; margin-bottom: 12px; font-size: 1.125rem; line-height: 1.3; font-weight: 720; color: inherit; }
.lw-flow__grid, .lw-flow__measures { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.lw-flow__cargo { grid-template-columns: minmax(0,2fr) minmax(90px,1fr); }
.lw-flow__measures { grid-template-columns: repeat(4,minmax(0,1fr)); }
.lw-flow__field { display: block; color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.45; }
.lw-flow__optional, .lw-flow__details summary span { color: var(--muted); font-size: .8125rem; font-weight: 450; }
.lw-flow__field input, .lw-flow__field select, .lw-flow__field textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; margin: 5px 0 0;
  color: var(--ink); background: var(--white); border: 1px solid var(--field-line); border-radius: 6px;
  padding: 9px 11px; min-height: 44px; font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.4;
}
.lw-flow__field input::placeholder,.lw-flow__field textarea::placeholder { color: var(--muted); opacity: 1; }
.lw-flow__field textarea { resize: vertical; }
.lw-flow__field select {
  appearance: none; padding-right: 34px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23202327' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.lw-flow__field input:focus-visible, .lw-flow__field select:focus-visible, .lw-flow__field textarea:focus-visible, .lw-flow :is(button,a,summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--brand-yellow); }
.lw-flow__group > .lw-flow__field + .lw-flow__field, .lw-flow__group > .lw-flow__grid + .lw-flow__field, .lw-flow__dates { margin-top: 12px; }
.lw-flow__match { background: var(--brand-wash); padding: 9px 11px; font-size: .875rem; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--brand-yellow); margin: 12px 0 0; }
.lw-flow__match:empty { display: none; }
.lw-flow__details { margin-top: 12px; }
.lw-flow__details summary { cursor: pointer; font-size: .875rem; line-height: 1.5; font-weight: 620; }
.lw-flow__details p, .lw-flow__handoff { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.lw-flow__details p { margin: 8px 0 10px; }
.lw-flow__intro { font-size: 1rem; line-height: 1.5; margin: 0 0 20px; }
.lw-flow__review-list { margin: 0; }
.lw-flow__review-list > div { display: grid; grid-template-columns: minmax(95px,.75fr) minmax(0,2.3fr); gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.lw-flow__review-list dt { color: var(--muted); font-size: .875rem; font-weight: 550; }
.lw-flow__review-list dd { margin: 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.lw-flow__handoff { margin: 18px 0 0; }
.lw-flow__foot { border-top: 1px solid var(--line); padding: 14px 28px; background: var(--paper); border-radius: 0 0 13px 13px; }
.lw-flow__actions, .lw-flow__foot > [data-flow-advance] { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.lw-flow :is(.lw-flow__primary,.lw-flow__secondary,.lw-flow__back) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px;
  padding: 10px 15px; font: inherit; font-size: .9375rem; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.25;
}
.lw-flow .lw-flow__primary { background: var(--brand-yellow); border: 1px solid var(--ink); color: var(--ink); }
.lw-flow .lw-flow__primary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lw-flow .lw-flow__secondary { background: var(--white); color: var(--ink); border: 1px solid var(--field-line); }
.lw-flow .lw-flow__secondary:hover { background: var(--brand-wash); }
.lw-flow .lw-flow__back { margin-right: auto; padding-inline: 0; background: transparent; color: var(--ink); border: 0; text-decoration: underline; text-underline-offset: 3px; }
.lw-flow__sr { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
 .lw-flow { width: calc(100% - 16px); }
 .lw-flow__shell { max-height: 94vh; max-height: 94dvh; }
 .lw-flow__head { padding: 18px 16px 14px; }
 .lw-flow__body { padding: 18px 16px; scrollbar-gutter: auto; }
 .lw-flow__foot { padding: 12px 16px; }
 .lw-flow__measures { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .lw-flow__foot > [data-flow-advance] button { width: 100%; }
}
@media (max-width: 440px) {
 .lw-flow__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .lw-flow .lw-flow__back { grid-column: 1/-1; min-height: 32px; padding: 2px 0; }
}
.lw-flow .lw-swap{display:inline-flex;align-items:center;gap:6px;background:transparent;color:var(--ink);font:600 .875rem Arial,sans-serif;border:0;padding:7px 0;margin:3px 0}
.lw-swap span{font-size:1.2rem}
.lw-swap:hover{text-decoration:underline}

.lw-flow__step { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); }
.lw-flow__step::before { content: ""; display: block; width: 1.8rem; height: .35rem; border-radius: 4px; background: var(--brand-yellow); }
.lw-flow__foot { background: var(--paper); }
.lw-flow__windows { margin-top: 12px; }


/* Mobile-friendly place suggestions; free-text remains usable without the index. */
.fk-place-field { position:relative; min-width:0; }
.fk-place-field > label { width:100%; box-sizing:border-box; }
.fk-route-fields .fk-place-field:first-child .fk-location { padding-right:17px; border-radius:9px 0 0 9px; margin-left:0; }
.fk-route-fields .fk-place-field:last-child .fk-location { margin-left:-1px; border-radius:0 9px 9px 0; padding-left:23px; }
.fk-place-options { position:absolute; z-index:20; top:100%; left:0; width:100%; min-width:0;
  background:#fff; color:#202327; border:1px solid #999; border-radius:8px; box-shadow:0 5px 16px #0002;
  max-height:240px; overflow:auto; overscroll-behavior:contain; }
.fk-place-options[hidden] { display:none; }
.fk-place-options button { display:block; width:100%; min-height:44px; padding:8px; text-align:left;
  color:inherit; background:#fff; border:0; border-top:1px solid #ddd; font:inherit; font-size:.875rem; overflow-wrap:anywhere; cursor:pointer; }
.fk-place-options button:hover,.fk-place-options button:focus-visible { background:#fff2ba; outline:2px solid #202327; outline-offset:-2px; }
.fk-place-source { color:#454545; font-size:.75rem; padding:7px; margin:0; overflow-wrap:anywhere; }
.fk-place-source a { text-decoration:underline; }
@media(max-width:480px) { .fk-place-options { max-height:190px; } .fk-route-fields .fk-place-field:last-child .fk-location { padding-left:13px; } }

.lw-flow__item + .lw-flow__item { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d5d9de; }
.lw-flow__item-head:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.lw-flow__item-base { grid-template-columns:minmax(0, 1fr) minmax(78px, .34fr); align-items:start; }
.lw-flow__item-base textarea { min-height:44px; }
.lw-flow__item-head button[hidden] { display:none; }
.lw-flow__add-item { margin-block:8px 0; min-height:44px; }
.lw-flow__access[hidden] { display:none; }
