/* The home page's demo trip form, in its hero (index.html #try; Dadoo, 29 Oct 2026): a flight search card, labelled
   fields in a grid, the trip read back as one sentence above the button. */
.tp .trip-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
                box-shadow: 0 24px 48px -28px rgba(15,23,42,.35); }
.tp .trip-title { font-size: 22px; margin: 0 0 4px; }
.tp .trip-intro { margin: 0; }
.tp .trip { margin-top: 14px; }
/* One question at a time, Typeform's way (Dadoo, 29 Oct 2026): a big question, an underlined answer, OK or Enter. */
.tp .trip { position: relative; margin-top: 16px; }
.tp .tq-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tp .tq-bar { flex: 1; height: 4px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.tp .tq-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.tp .tq { position: relative; z-index: 2; animation: tq-in .35s ease both; min-height: 210px; }
.tp .tq[hidden] { display: none; }
.tp .tq.back { animation-name: tq-back; }
@keyframes tq-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tq-back { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tp .tq { animation: none; } .tp .tq-bar span { transition: none; } }
.tp .tq-q { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0 0 6px; }
.tp .tq-n { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); margin-right: 8px; vertical-align: 3px; }
.tp .tq-hint { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.tp .tq .cs input, .tp .tq-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 22px; line-height: 1.3; padding: 8px 0;
     border: 0; border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0;
     background: transparent; color: var(--accent); margin-top: 6px; }
.tp .tq .cs input:focus, .tp .tq-input:focus { outline: none; border-bottom-color: var(--accent); }
.tp .tq .cs input::placeholder, .tp .tq-input::placeholder { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.tp .tq .cs { display: block; }
.tp .tq-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tp .tq-ok { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit;
             font-size: 16px; font-weight: 700; cursor: pointer; }
.tp .tq-ok:hover, .tp .trip .trip-send:hover { filter: brightness(1.1); }
.tp .tq-key { font-size: 12px; color: var(--muted); }
.tp .tq-key b { font-weight: 700; }
@media (hover: none) { .tp .tq-key { display: none; } }
.tp .seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; margin: 8px 0 4px; }
.tp .seg label { position: relative; cursor: pointer; }
.tp .seg input { position: absolute; opacity: 0; pointer-events: none; }
.tp .seg span { display: block; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tp .seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.18); }
.tp .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.tp .tq .tf { margin-top: 10px; }
.tp .tf > label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.tp .tq .tf + .tf { margin-top: 14px; }
.tp .tq .tf .cs input { margin-top: 0; }
.tp .tq-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.tp .tq-dates .tf, .tp .tq-dates .tf + .tf { margin-top: 0; }
.tp .tq-dates .tf[hidden] { display: none; }
.tp .tq-dates input { width: 100%; box-sizing: border-box; font: inherit; font-size: 19px; padding: 6px 0; border: 0;
     border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0; background: transparent; color: var(--accent); }
.tp .tq-dates input:focus { outline: none; border-bottom-color: var(--accent); }
.tp .tq-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; max-width: 360px; }
.tp .tq-choice { position: relative; cursor: pointer; }
.tp .tq-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tp .tq-choice span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 8px; font-size: 18px; font-weight: 600;
     color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tp .tq-choice input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.tp .tq-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tp .tq-arrows { flex: none; display: flex; gap: 1px; border-radius: 8px; overflow: hidden; }
.tp .tq-arrows[hidden] { display: none; }
.tp .tq-arrows button { width: 34px; height: 30px; border: 0; background: var(--accent); cursor: pointer; display: grid; place-items: center; }
.tp .tq-arrows button:disabled { opacity: .45; cursor: default; }
.tp .tq-arrows svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* A date or airport filled in for the visitor stays grey until they change it (Dadoo, 29 Oct 2026). */
.tp .trip input[data-default]:not(.changed), .tp .trip input.guessed { color: var(--muted); }
.tp .trip-sum { margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); min-height: 1.45em; }
.tp .trip-sum b { font-weight: 600; }
.tp .trip .trip-send { width: auto; padding: 12px 22px; font-size: 16px; border-radius: 8px; }
.tp .trip-msg { margin: 10px 0 0; color: #b42318; }
.tp .trip-msg.ok { color: var(--muted); }
.tp .trip-note { margin: 10px 0 0; }
.tp .trip-done { margin: 14px 0 6px; padding: 14px; background: var(--bg); border-radius: var(--r-sm); }
.tp .trip-done h3 { margin: 0 0 8px; font-size: 17px; }
/* The trip sent, laid out as an itinerary (site.js showDone; Dadoo, 1 Nov 2026), as the app's quote card shows flights. */
.tp .trip-done .it-lead { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.tp .it-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.tp .it-k { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.tp .it-leg { margin-top: 12px; }
.tp .it-leg + .it-leg { padding-top: 12px; border-top: 1px dashed var(--line); }
.tp .it-when { font-size: 13px; color: var(--muted); }
.tp .it-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 4px; }
.tp .it-ap { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.tp .it-city { font-size: 12px; color: var(--muted); }
.tp .it-to { text-align: right; }
.tp .it-plane { font-size: 18px; color: var(--accent); }
.tp .it-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.tp .it-rows dt { color: var(--muted); }
.tp .it-rows dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 720px) { .tp .trip-box { padding: 24px; } }
/* On a phone: bigger tap targets, and the questions sit still as the keyboard comes and goes. */
@media (max-width: 719px) {
  .tp .tq { min-height: 190px; }
  .tp .tq-q { font-size: 20px; }
  .tp .tq-ok, .tp .trip .trip-send { min-height: 48px; padding: 12px 22px; }
  .tp .tq-arrows button { width: 44px; height: 40px; }
  .tp .tq .cs ul { max-height: 40vh; }
  .tp .tq-dates input { font-size: 17px; }
  .tp .tq-choice span { height: 50px; }
}
/* I have my flights, one question at a time too (Dadoo, 31 Oct 2026): its two answers keyed A and B, as Typeform's
   are, the forwarding address and the upload. */
.tp .bk { margin-top: 4px; }
.tp .bk .tq-arrows button { border-radius: 8px; }
.tp .bk-choices { display: grid; gap: 10px; margin-top: 12px; max-width: 420px; }
.tp .bk-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; cursor: pointer; text-align: left;
     font: inherit; font-size: 17px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff);
     border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tp .bk-choice:hover, .tp .bk-choice:focus-visible { background: color-mix(in srgb, var(--accent) 15%, #fff); outline: none; }
.tp .bk-choice kbd { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: #fff;
     border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font: 700 12px var(--font, inherit); }
.tp .bk .addr { margin-top: 12px; }
.tp .bk .howto { margin-top: 10px; }
.tp .bk-drop { border: 2px dashed var(--line); border-radius: var(--r-sm, 10px); padding: 16px 14px; margin-top: 12px; }
.tp .bk-drop:focus-within { border-color: var(--accent); }
.tp .bk-drop input[type=file] { width: 100%; font: inherit; font-size: 15px; color: var(--muted); }
.tp .bk-drop input[type=file]::file-selector-button { margin-right: 12px; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
     padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.tp .bk-link { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
     cursor: pointer; text-decoration: underline; }
.tp .bk .ref { margin-top: 12px; }
@media (max-width: 719px) { .tp .bk-choice { min-height: 50px; } }
