/* ==========================================================================
   Vel's Drop Taxi — Cost Estimator
   Depends on the design tokens in css/style.css.
   ========================================================================== */

.est-page { background: var(--color-bg); color: #fff; overflow: hidden; }

/* ---------- Hero ---------- */
.est-hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
  isolation: isolate;
}
.est-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(246, 197, 0, .18), transparent 70%),
    radial-gradient(40% 50% at 90% 60%, rgba(246, 197, 0, .06), transparent 70%);
}
.est-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
}
.est-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid rgba(246, 197, 0, .35);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--fs-caption);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(246, 197, 0, .06);
}
.est-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); }
.est-hero h1 {
  margin: var(--space-3) auto var(--space-2);
  max-width: 24ch;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.025em;
}
.est-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffe27a, var(--color-primary) 45%, #c99a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.est-hero p {
  max-width: 60ch; margin: 0 auto;
  color: rgba(255,255,255,.66);
  font-size: var(--fs-body);
}

/* ---------- Layout ---------- */
.est-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-6);
}

.est-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.est-step { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.est-seg + .est-step, .est-hint + .est-step, .est-days + .est-step { margin-top: var(--space-3); }
#est-days-wrap .est-step { margin-top: var(--space-3); }
.est-shell > * { min-width: 0; }
.est-step b {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-primary-ink);
  font: 800 .62rem var(--font-heading);
}
.est-step h2 {
  font-family: var(--font-heading); font-size: .8rem; font-weight: 700;
  letter-spacing: .02em;
}
.est-hint { color: rgba(255,255,255,.5); font-size: var(--fs-small); }

/* Trip type segmented control */
.est-seg {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-full);
}
.est-seg::before {
  content: "";
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  box-shadow: 0 6px 20px rgba(246,197,0,.35);
  transition: transform .35s cubic-bezier(.65, 0, .25, 1);
}
.est-seg[data-mode="round"]::before { transform: translateX(100%); }
.est-seg button {
  position: relative; z-index: 1;
  padding: 8px;
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.7);
  font: 700 .78rem var(--font-body);
  transition: color .25s ease;
}
.est-seg button[aria-pressed="true"] { color: var(--color-primary-ink); }

/* Route chips */
.est-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.est-chip {
  flex: none; padding: 5px 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.8);
  font: 600 .68rem var(--font-body);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.est-chip:hover { border-color: rgba(246,197,0,.6); color: #fff; }
.est-chip[aria-pressed="true"] { background: rgba(246,197,0,.14); border-color: var(--color-primary); color: var(--color-primary); }

/* Distance */
.est-km {
  display: flex; align-items: baseline; gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-2);
}
.est-km input {
  width: 4.2ch; min-width: 0;
  background: none; border: 0; border-bottom: 2px solid rgba(255,255,255,.18);
  color: #fff; font: 800 1.8rem/1 var(--font-heading);
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color .2s;
}
.est-km input:focus { outline: none; border-color: var(--color-primary); }
.est-km input::-webkit-outer-spin-button, .est-km input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-km span { color: rgba(255,255,255,.55); font-weight: 700; }

.est-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--color-primary) var(--fill, 20%), rgba(255,255,255,.14) var(--fill, 20%));
}
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 5px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.est-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 5px solid var(--color-primary);
}
.est-range:focus-visible { box-shadow: 0 0 0 4px rgba(246,197,0,.25); }
.est-scale { display: flex; justify-content: space-between; margin-top: var(--space-2); color: rgba(255,255,255,.4); font-size: var(--fs-caption); font-weight: 600; }

/* Days stepper */
.est-days { display: flex; align-items: center; gap: var(--space-4); }
.est-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-full);
  background: rgba(0,0,0,.3);
}
.est-stepper button {
  width: 34px; height: 34px; background: none; border: 0; cursor: pointer;
  color: var(--color-primary); font: 700 1.1rem var(--font-body);
}
.est-stepper output { min-width: 3ch; text-align: center; font: 800 1.1rem var(--font-heading); }
[hidden] { display: none !important; }

/* Vehicles */
.est-cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.est-car {
  position: relative;
  padding: var(--space-3);
  text-align: left; cursor: pointer;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  color: #fff; font-family: inherit;
  transition: border-color .25s, transform .25s, background .25s;
}
.est-car:hover { transform: translateY(-3px); border-color: rgba(246,197,0,.5); }
.est-car[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: linear-gradient(160deg, rgba(246,197,0,.16), rgba(0,0,0,.3));
  box-shadow: 0 10px 30px rgba(246,197,0,.12);
}
.est-car svg { width: 40px; height: 20px; margin-bottom: var(--space-2); color: var(--color-primary); }
.est-car strong { display: block; font: 700 .8rem var(--font-heading); }
.est-car small { display: block; margin-top: 2px; color: rgba(255,255,255,.55); font-size: var(--fs-small); }
.est-car .est-seats { margin-top: var(--space-1); font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ---------- Receipt ---------- */
.est-result { position: sticky; top: 96px; }
.est-ticket {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #fff3b8 0%, var(--color-primary) 38%, #d9a900 100%);
  color: var(--color-primary-ink);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 30px 70px rgba(246,197,0,.18), 0 0 0 1px rgba(255,255,255,.2) inset;
  overflow: hidden;
}
.est-ticket::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(255,255,255,.5), transparent 60%);
  pointer-events: none;
}
.est-ticket-label { font-size: var(--fs-caption); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.est-total {
  display: flex; align-items: flex-start; gap: 4px;
  margin: var(--space-2) 0 var(--space-1);
  font: 800 clamp(2rem, 3vw, 2.6rem)/1 var(--font-heading); letter-spacing: -.03em;
}
.est-total sup { margin-top: .45em; font-size: .4em; }
.est-sub { font-size: var(--fs-small); font-weight: 600; opacity: .72; }

.est-tear {
  position: relative; height: 0; margin: var(--space-3) calc(var(--space-5) * -1);
  border-top: 2px dashed rgba(21,22,26,.28);
}
.est-tear::before, .est-tear::after {
  content: ""; position: absolute; top: -13px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--color-bg);
}
.est-tear::before { left: -12px; } .est-tear::after { right: -12px; }

.est-lines { list-style: none; display: grid; gap: var(--space-2); font-size: var(--fs-small); }
.est-lines li { display: flex; justify-content: space-between; gap: var(--space-4); font-weight: 600; }
.est-lines li span:first-child { opacity: .72; }
.est-lines li b { font-family: var(--font-heading); font-weight: 700; white-space: nowrap; }
.est-lines .est-note { display: block; font-size: var(--fs-caption); opacity: .6; font-weight: 600; }

.est-flag {
  margin-top: var(--space-3); padding: 7px 12px;
  background: rgba(21,22,26,.9); color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.5;
}
.est-flag:empty { display: none; }
.est-flag strong { color: var(--color-primary); }

.est-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.est-cta .btn { min-height: 40px; padding: 8px 14px; font-size: var(--fs-small); justify-content: center; }
.est-cta .btn-dark { background: var(--color-primary-ink); color: #fff; }
.est-cta .btn-ghost {
  border: 2px solid var(--color-primary-ink); color: var(--color-primary-ink); background: transparent;
}
.est-cta .btn-ghost:hover { background: rgba(21,22,26,.08); }

/* Compare */
.est-compare { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); }
.est-compare h3 { font: 700 .8rem var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: var(--space-2); font-size: .68rem; }
.est-bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--fs-small); font-weight: 600; }
.est-bar span:first-child { color: rgba(255,255,255,.7); }
.est-bar i { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.est-bar i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: rgba(255,255,255,.4); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.est-bar.is-active i::after { background: var(--color-primary); }
.est-bar.is-active span:first-child { color: var(--color-primary); }
.est-bar b { font-family: var(--font-heading); font-size: .85rem; }

/* ---------- Tariff reference ---------- */
.est-tariff { padding: 0 0 var(--space-9); }
.est-tariff h2 { font: 800 var(--fs-h2) var(--font-heading); margin-bottom: var(--space-2); }
.est-tariff > .container > p { color: rgba(255,255,255,.55); margin-bottom: var(--space-5); }
.est-tariff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.est-tbl { padding: 0; overflow: hidden; }
.est-tbl h3 { padding: var(--space-4) var(--space-5); font: 700 .9rem var(--font-heading); border-bottom: 1px solid rgba(255,255,255,.08); color: var(--color-primary); }
.est-tbl table { width: 100%; border-collapse: collapse; }
.est-tbl th, .est-tbl td { padding: 12px var(--space-5); text-align: left; font-size: var(--fs-small); }
.est-tbl th { color: rgba(255,255,255,.45); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-caption); }
.est-tbl tbody tr { border-top: 1px solid rgba(255,255,255,.06); }
.est-tbl td:first-child { font-weight: 700; }
.est-tbl td.r { color: var(--color-primary); font-weight: 700; }
.est-foot { margin-top: var(--space-5); color: rgba(255,255,255,.45); font-size: var(--fs-small); max-width: 80ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .est-shell { grid-template-columns: 1fr; }
  .est-result { position: static; }
  .est-tariff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .est-hero { padding: var(--space-8) 0 var(--space-6); }
  .est-panel { padding: var(--space-5) var(--space-4); }
  .est-cars { grid-template-columns: 1fr; }
  .est-car { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 0 var(--space-3); }
  .est-car svg { margin: 0; grid-row: span 2; }
  .est-car .est-seats { margin: 0; grid-row: span 2; grid-column: 3; }
  .est-tear { margin-inline: calc(var(--space-5) * -1); }
  .est-ticket { padding: var(--space-5); }
  .est-cta { grid-template-columns: 1fr; }
  .est-tbl th, .est-tbl td { padding-inline: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .est-seg::before, .est-car, .est-bar i::after { transition: none; }
}

/* ---------- Compact desktop fit ---------- */
.est-hero { padding: var(--space-4) 0 var(--space-4); }
.est-hero p { max-width: 80ch; }
.est-step h2, .est-step b { line-height: 1; }
.est-step { align-items: center; }
.est-chips { scrollbar-width: none; }
.est-chips::-webkit-scrollbar { display: none; }
.est-eyebrow { padding: 3px 12px; }
@media (min-width: 981px) {
  .est-car { display: grid; grid-template-columns: 42px 1fr; column-gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); }
  .est-car svg { grid-row: span 3; margin: 0; width: 38px; }
  .est-car .est-seats { margin: 0; }
}

/* ---------- CTA shine ---------- */
.est-cta .btn { position: relative; overflow: hidden; isolation: isolate; font-weight: 800; letter-spacing: .02em; transition: transform .25s ease, box-shadow .25s ease; }
.est-cta .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg);
  animation: est-shine 3.2s ease-in-out infinite;
}
.est-cta .btn-ghost::after { animation-delay: 1.4s; background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); }
.est-cta .btn-dark {
  background: linear-gradient(135deg, #2a2b31, #0b0b0d);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 18px rgba(255,226,122,.35);
}
.est-cta .btn-dark::after { background: linear-gradient(100deg, transparent, rgba(246,197,0,.55), transparent); }
.est-cta .btn:hover { transform: translateY(-2px) scale(1.02); }
.est-cta .btn-dark:hover { box-shadow: 0 12px 28px rgba(0,0,0,.55), 0 0 26px rgba(255,226,122,.6); }
.est-cta .btn-ghost:hover { box-shadow: 0 10px 24px rgba(21,22,26,.3); }
@keyframes est-shine { 0% { left: -80%; } 45%, 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .est-cta .btn::after { animation: none; } }

/* ---------- Centered tariff section ---------- */
.est-tariff { text-align: center; }
.est-tariff > .container > p { margin-inline: auto; }
.est-tbl th, .est-tbl td { text-align: center; }
.est-tbl h3 { text-align: center; }
.est-foot { margin-inline: auto; }

/* ---------- Equal-height columns ---------- */
@media (min-width: 981px) {
  .est-shell { align-items: stretch; }
  .est-result { position: static; display: flex; flex-direction: column; }
  .est-result .est-ticket { flex: 1; display: flex; flex-direction: column; }
  .est-result .est-lines { margin-bottom: auto; }
  .est-shell > .est-panel { display: flex; flex-direction: column; justify-content: space-between; }
}

/* ---------- Location search ---------- */
.est-route { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.est-field { position: relative; }
.est-field label { display: block; margin-bottom: 4px; color: rgba(255,255,255,.5); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.est-field input {
  width: 100%; padding: 10px 12px 10px 34px;
  background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f6c500' stroke-width='2'%3E%3Cpath d='M12 21s7-6.1 7-11.5A7 7 0 0 0 5 9.5C5 14.9 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat 11px center;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md);
  color: #fff; font: 600 .8rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.est-field input::placeholder { color: rgba(255,255,255,.35); }
.est-field input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(246,197,0,.18); }
.est-ac {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; max-height: 220px; overflow-y: auto;
  background: #1c1c20; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.est-ac li { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05); }
.est-ac li:last-child { border: 0; }
.est-ac li:hover, .est-ac li.is-active { background: rgba(246,197,0,.12); }
.est-ac strong { display: block; font-size: var(--fs-small); }
.est-ac span { display: block; color: rgba(255,255,255,.5); font-size: var(--fs-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-status { margin: var(--space-2) 0; padding: 6px 12px; border-radius: var(--radius-md); background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); font-size: var(--fs-small); font-weight: 600; }
.est-status.is-ok { background: rgba(28,138,75,.18); color: #7be3a8; }
.est-status.is-busy { color: var(--color-primary); }
.est-status.is-err { background: rgba(220,60,60,.15); color: #ff9c9c; }
.est-km-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-4); }
.est-km-row .est-km { margin: 0; }
@media (max-width: 560px) { .est-route { grid-template-columns: 1fr; } .est-km-row { grid-template-columns: 1fr; gap: var(--space-2); } }
.est-ac { scrollbar-width: thin; scrollbar-color: rgba(246,197,0,.5) transparent; }

/* ---------- Disclaimer ---------- */
.est-disclaimer {
  display: flex; gap: var(--space-2); align-items: flex-start;
  margin-top: var(--space-3);
  font-size: var(--fs-caption); font-weight: 700; line-height: 1.45;
  color: rgba(21,22,26,.78);
}
.est-disclaimer::before { content: "ⓘ"; font-size: .8rem; line-height: 1.2; }

/* ---------- Wider side margins ---------- */
.est-page .container { padding-inline: clamp(var(--space-5), 7vw, 120px); }
@media (max-width: 560px) { .est-page .container { padding-inline: var(--space-4); } }

/* ---------- Days stepper ---------- */
.est-days { display: block; }
.est-stepper output { min-width: 7ch; text-align: center; font: 800 1.05rem var(--font-heading); }
.est-stepper output small { color: rgba(255,255,255,.55); font: 700 .72rem var(--font-body); }

/* ==========================================================================
   Booking panel
   ========================================================================== */
.est-book-btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; margin-top: var(--space-3);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 13px 18px;
  background: var(--color-primary-ink); color: var(--color-primary);
  border: 0; border-radius: var(--radius-full); cursor: pointer;
  font: 800 .9rem var(--font-heading); letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(0,0,0,.4), 0 0 0 1px rgba(246,197,0,.5) inset;
  transition: transform .25s ease, box-shadow .25s ease;
}
.est-book-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(246,197,0,.5), transparent);
  transform: skewX(-20deg); animation: est-shine 3.2s ease-in-out infinite;
}
.est-book-btn svg { transition: transform .25s ease; }
.est-book-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 0 1px var(--color-primary) inset; }
.est-book-btn:hover svg { transform: translateX(4px); }
.est-book-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.est-ticket .est-cta { margin-top: var(--space-2); }

.bk { position: fixed; inset: 0; z-index: 200; }
.bk[hidden] { display: none; }
.bk-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bk-fade .3s ease both; }
.bk-sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 100%);
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(246,197,0,.14), transparent 70%),
    #111113;
  border-left: 1px solid rgba(246,197,0,.35);
  box-shadow: -30px 0 80px rgba(0,0,0,.6);
  color: #fff;
  animation: bk-slide .4s cubic-bezier(.2,.8,.2,1) both;
}
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-3); }
.bk-eyebrow { display: block; margin-bottom: 4px; color: var(--color-primary); font-size: var(--fs-caption); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bk-head h2 { font: 800 1.6rem/1.1 var(--font-heading); letter-spacing: -.02em; }
.bk-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.bk-x:hover { background: var(--color-primary); color: var(--color-primary-ink); }
.bk-body { flex: 1; overflow-y: auto; padding: 0 var(--space-5) var(--space-5); scrollbar-width: thin; scrollbar-color: rgba(246,197,0,.4) transparent; }

/* Trip stub */
.bk-stub { padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.bk-route { display: grid; grid-template-columns: 14px 1fr; grid-template-rows: auto 16px auto; column-gap: var(--space-3); align-items: center; }
.bk-route .bk-dot { grid-area: 1 / 1; }
.bk-route #bk-from { grid-area: 1 / 2; }
.bk-route .bk-line { grid-area: 2 / 1; }
.bk-route .bk-pin { grid-area: 3 / 1; }
.bk-route #bk-to { grid-area: 3 / 2; }
.bk-dot, .bk-pin { width: 12px; height: 12px; border-radius: 50%; justify-self: center; }
.bk-dot { border: 3px solid var(--color-primary); }
.bk-pin { background: var(--color-primary); box-shadow: 0 0 0 4px rgba(246,197,0,.2); }
.bk-line { grid-column: 1; width: 2px; height: 16px; background: repeating-linear-gradient(var(--color-primary) 0 3px, transparent 3px 6px); justify-self: center; }
.bk-place { font: 700 .88rem var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.bk-chips span { padding: 4px 10px; border-radius: var(--radius-full); background: rgba(246,197,0,.1); border: 1px solid rgba(246,197,0,.3); color: #ffe27a; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .02em; }
.bk-tear { position: relative; margin: var(--space-4) calc(var(--space-4) * -1); border-top: 2px dashed rgba(255,255,255,.14); }
.bk-tear::before, .bk-tear::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #111113; border: 1px solid rgba(255,255,255,.1); }
.bk-tear::before { left: -11px; border-left-color: transparent; }
.bk-tear::after { right: -11px; border-right-color: transparent; }
.bk-fare { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.bk-fare span { font-weight: 700; font-size: var(--fs-small); color: rgba(255,255,255,.7); }
.bk-fare small { display: block; font-size: var(--fs-caption); font-weight: 600; color: rgba(255,255,255,.4); }
.bk-fare b { font: 800 1.9rem/1 var(--font-heading); letter-spacing: -.02em; background: linear-gradient(100deg, #ffe27a, var(--color-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Form */
.bk-form { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bk-row > .bk-field[hidden] { display: none; }
.bk-field { display: block; min-width: 0; }
.bk-field label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.5); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bk-field label em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md);
  color: #fff; font: 600 .88rem var(--font-body); color-scheme: dark;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bk-field textarea { resize: vertical; min-height: 64px; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: rgba(255,255,255,.32); }
.bk-field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f6c500' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(246,197,0,.18); background-color: rgba(0,0,0,.55); }
.bk-field.is-invalid input, .bk-field.is-invalid select, .bk-field.is-invalid .bk-phone { border-color: #ff6b6b; }
.bk-err { display: block; margin-top: 4px; color: #ff9c9c; font-size: var(--fs-caption); font-weight: 600; }
.bk-err:empty { display: none; }
.bk-phone { display: flex; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(0,0,0,.4); transition: border-color .2s, box-shadow .2s; }
.bk-phone:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(246,197,0,.18); }
.bk-phone .bk-cc { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid rgba(255,255,255,.12); color: var(--color-primary); font: 800 .85rem var(--font-heading); }
.bk-phone input { border: 0; background: none; box-shadow: none; }
.bk-phone input:focus { box-shadow: none; background: none; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bk-submit {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-top: var(--space-2); padding: 15px 20px;
  background: linear-gradient(135deg, #ffe27a, var(--color-primary) 45%, #d9a900);
  color: var(--color-primary-ink); border: 0; border-radius: var(--radius-full); cursor: pointer;
  font: 800 .95rem var(--font-heading); letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(246,197,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bk-submit::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: est-shine 3.2s ease-in-out infinite; }
.bk-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(246,197,0,.4); }
.bk-submit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bk-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,.45); font-size: var(--fs-caption); font-weight: 600; }
.bk-status { padding: 10px 14px; border-radius: var(--radius-md); background: rgba(246,197,0,.12); border: 1px solid rgba(246,197,0,.4); color: #ffe27a; font-size: var(--fs-small); font-weight: 600; line-height: 1.5; }
.bk-status[hidden] { display: none; }

body.bk-lock { overflow: hidden; }
@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-slide { from { transform: translateX(100%); } }
@keyframes bk-rise { from { transform: translateY(100%); } }

@media (max-width: 560px) {
  .bk-sheet { width: 100%; border-left: 0; border-top: 1px solid rgba(246,197,0,.35); top: 6vh; border-radius: 22px 22px 0 0; animation-name: bk-rise; }
  .bk-head { padding: var(--space-4) var(--space-4) var(--space-2); }
  .bk-body { padding: 0 var(--space-4) var(--space-5); }
  .bk-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-backdrop, .bk-sheet, .est-book-btn::after, .bk-submit::after { animation: none; }
}
.bk-status.is-error { background: rgba(220,60,60,.14); border-color: rgba(255,107,107,.5); color: #ffb3b3; }
.bk-submit:disabled { opacity: .7; cursor: progress; transform: none; }

/* Missing pickup/drop in the booking summary */
.bk-place.is-missing { color: #ff9c9c; text-decoration: underline dotted; cursor: pointer; }
