/* Booking widget. Every rule is scoped under .tgt so it cannot clash with the host website. */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap');

.tgt {
  --ink: #18212c;
  --steel: #5a6573;
  --rule: #d8dde4;
  --surface: #ffffff;
  --page: #f6f7f9;
  --go: #0e6b5c;
  --go-soft: #e3f1ee;
  --error: #b3261e;
  --radius: 10px;
  all: initial;
  display: block;
  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--page);
  border-radius: 14px;
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.tgt *, .tgt *::before, .tgt *::after { box-sizing: border-box; font-family: inherit; }
.tgt h2 { margin: 0 0 4px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.tgt p { margin: 0 0 12px; }
.tgt .tgt-sub { color: var(--steel); font-size: 0.9375rem; margin-bottom: 20px; }

/* Step header: a real sequence, so it is numbered */
.tgt-steps { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.tgt-steps li { flex: 1; font-size: 0.8125rem; color: var(--steel); padding-top: 8px; border-top: 3px solid var(--rule); }
.tgt-steps li.is-current { color: var(--ink); font-weight: 600; border-top-color: var(--go); }
.tgt-steps li.is-done { border-top-color: var(--ink); }

/* Fields */
.tgt-field { margin-bottom: 14px; position: relative; }
.tgt label, .tgt .tgt-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.tgt input[type=text], .tgt input[type=email], .tgt input[type=tel], .tgt input[type=date],
.tgt input[type=time], .tgt input[type=number], .tgt select, .tgt textarea {
  width: 100%; padding: 11px 12px; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; margin: 0;
}
.tgt select { background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.tgt textarea { min-height: 72px; resize: vertical; }
.tgt input:focus, .tgt select:focus, .tgt textarea:focus { outline: 2px solid var(--go); outline-offset: 1px; border-color: var(--go); }
.tgt .tgt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tgt .tgt-hint { font-size: 0.8125rem; color: var(--steel); margin-top: 6px; }

/* Service choice */
.tgt-services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border: 0; padding: 0; }
.tgt-services legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.tgt-chip { position: relative; }
.tgt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tgt-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font-size: 0.9375rem; cursor: pointer; }
.tgt-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tgt-chip input:focus-visible + span { outline: 2px solid var(--go); outline-offset: 2px; }

/* Address suggestions */
.tgt-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24, 33, 44, 0.12); }
.tgt-suggest li { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 0.9375rem; }
.tgt-suggest li[aria-selected=true], .tgt-suggest li:hover { background: var(--go-soft); }
.tgt-suggest small { display: block; color: var(--steel); font-size: 0.8125rem; }
.tgt-quickpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tgt-quickpick button { font-size: 0.8125rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.tgt-quickpick button:hover { border-color: var(--go); }

/* Route strip: the boarding-pass moment */
.tgt-route { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; border: 1px solid var(--rule); }
.tgt-route + .tgt-route { margin-top: -8px; }
.tgt-route-head { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--steel); margin-bottom: 10px; }
.tgt-route-line { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; }
.tgt-route-line .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-top: 6px; }
.tgt-route-line .ring { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--go); margin-top: 6px; }
.tgt-route-line .track { width: 2px; background: var(--rule); margin: 2px auto; min-height: 18px; }
.tgt-route-line .place { font-weight: 600; line-height: 1.35; }
.tgt-route-line .code { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--go); margin-left: 6px; }

/* Vehicle options */
.tgt-options { display: grid; gap: 10px; margin-bottom: 14px; }
.tgt-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; width: 100%; text-align: left;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; color: var(--ink); font-size: 1rem; }
.tgt-option:hover { border-color: var(--steel); }
.tgt-option[aria-pressed=true] { border-color: var(--go); box-shadow: inset 0 0 0 1px var(--go); }
.tgt-option:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
.tgt-option .name { font-weight: 700; }
.tgt-option .meta { grid-column: 1; font-size: 0.875rem; color: var(--steel); }
.tgt-option .price { grid-row: 1 / span 2; grid-column: 2; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Price breakdown */
.tgt-lines { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.tgt-lines td { padding: 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tgt-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.tgt-lines tr.total td { font-weight: 700; font-size: 1.125rem; border-bottom: 0; padding-top: 10px; }
.tgt-note { font-size: 0.875rem; color: var(--steel); background: var(--surface); border-left: 3px solid var(--go); padding: 10px 12px; border-radius: 0 6px 6px 0; margin: 0 0 16px; }

/* Gratuity picker */
.tgt-tips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; border: 0; padding: 0; }
.tgt-tips legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }

/* Card */
.tgt-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.tgt label.tgt-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.875rem; color: var(--ink); margin-bottom: 16px; font-weight: 400; }
.tgt-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--go); }
.tgt-check a { color: var(--go); }

/* Buttons */
.tgt-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.tgt-btn { appearance: none; border: 0; border-radius: var(--radius); padding: 13px 20px; font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--go); color: #fff; }
.tgt-btn:hover { background: #0b5a4d; }
.tgt-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tgt-btn[disabled] { opacity: 0.6; cursor: progress; }
.tgt-btn.is-full { width: 100%; }
.tgt-link { appearance: none; border: 0; background: none; color: var(--steel); text-decoration: underline; font-size: 0.9375rem; cursor: pointer; padding: 8px 4px; }

.tgt-error { color: var(--error); background: #fbeceb; border-radius: 8px; padding: 10px 12px; font-size: 0.9375rem; margin-bottom: 14px; }
.tgt-done { text-align: left; }
.tgt-done .ticket { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tgt details summary { cursor: pointer; font-size: 0.875rem; color: var(--steel); }

@media (max-width: 480px) {
  .tgt { padding: 16px; border-radius: 0; }
  .tgt .tgt-row { grid-template-columns: 1fr; gap: 0; }
  .tgt-option .price { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .tgt-step-enter { animation: tgt-in 180ms ease-out; }
  @keyframes tgt-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
