/* Best Transfers: public booking form. Mobile first.
   Restyle from your template with the --bt-* variables, for example:
   .bt { --bt-accent: #e2574c; } */
.bt {
  --bt-accent: #0b6e7f;
  --bt-accent-dark: #08525f;
  --bt-tint: #e8f3f6;
  --bt-ink: #1d2a33;
  --bt-quiet: #5b6b76;
  --bt-edge: #cfdae1;
  --bt-bg: #fff;
  --bt-error: #a3261b;
  --bt-error-bg: #fdecea;
  --bt-wa: #1f8f4e;
  --bt-radius: 10px;
  color: var(--bt-ink);
  font-size: 18px;
  line-height: 1.5;
}

.bt-book {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 20px;
}

.bt-book__title {
  font-size: 1.5em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.bt-book__title:focus {
  outline: none;
}

.bt-visually-hidden,
.bt-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Arriving · Departing · Both */
.bt-tabs {
  position: relative;
  display: flex;
  border: 1px solid var(--bt-edge);
  border-radius: var(--bt-radius);
  overflow: hidden;
  margin: 0 0 16px;
  padding: 0;
}

.bt-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.bt-tabs__tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--bt-quiet);
  font-weight: 600;
  margin: 0;
}

.bt-tabs__input + .bt-tabs__tab ~ .bt-tabs__tab {
  border-left: 1px solid var(--bt-edge);
}

.bt-tabs__input:checked + .bt-tabs__tab {
  background: var(--bt-tint);
  color: var(--bt-ink);
}

.bt-tabs__input:focus-visible + .bt-tabs__tab {
  outline: 3px solid var(--bt-accent);
  outline-offset: -3px;
}

/* Fields */
.bt-field {
  margin: 0 0 12px;
  min-width: 0;
  flex: 1;
}

.bt-field label,
.bt-field legend {
  display: block;
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin-bottom: 4px;
}

.bt input[type="text"],
.bt input[type="email"],
.bt input[type="tel"],
.bt input[type="number"],
.bt input[type="date"],
.bt input[type="time"],
.bt select,
.bt textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--bt-edge);
  border-radius: 8px;
  background: var(--bt-bg);
  color: var(--bt-ink);
  font: inherit;
}

.bt input:focus-visible,
.bt select:focus-visible,
.bt textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bt-accent) 40%, transparent);
  border-color: var(--bt-accent);
}

.bt-row {
  display: flex;
  gap: 10px;
}

.bt-row[hidden],
.bt-field[hidden] {
  display: none;
}

.bt-hint {
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin: 4px 0 0;
}

.bt-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  cursor: pointer;
}

.bt-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--bt-accent);
}

.bt-seats {
  border: 0;
  padding: 0;
}

.bt-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bt-seat label {
  margin: 0;
  color: var(--bt-ink);
  font-size: 1em;
}

.bt-seat input[type="number"] {
  width: 80px;
  flex: none;
}

/* The price box */
.bt-price {
  border: 2px solid var(--bt-accent);
  background: var(--bt-tint);
  border-radius: 14px;
  padding: 14px;
  margin: 6px 0 10px;
  transition: opacity 0.15s;
}

.bt-price.is-loading {
  opacity: 0.55;
}

.bt-price__hint {
  margin: 0;
  color: var(--bt-quiet);
}

.bt-price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.bt-price__row span {
  color: var(--bt-quiet);
}

.bt-price__big {
  font-size: 1.75em;
  font-weight: 700;
}

.bt-price__mid {
  font-size: 1.2em;
  font-weight: 600;
}

.bt-price__note {
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin: 2px 0 0;
}

.bt-price__incl {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--bt-edge);
  font-size: 0.9em;
}

.bt-price__incl li::before {
  content: "✓ ";
  color: var(--bt-accent);
  font-weight: 700;
}

.bt-price__cancel {
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin: 6px 0 0;
}

.bt-currency {
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin: 0 0 14px;
}

/* Message us */
.bt-panel {
  border: 1px solid var(--bt-edge);
  border-radius: 14px;
  padding: 16px;
  margin: 6px 0 14px;
  background: var(--bt-bg);
}

.bt-panel__heading {
  font-size: 1.2em;
  margin: 0 0 6px;
}

.bt-panel__buttons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

/* Buttons and links */
.bt-btn {
  display: inline-block;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 48px;
  background: var(--bt-accent);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.bt-btn:hover,
.bt-btn:focus-visible {
  background: var(--bt-accent-dark);
}

.bt-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.bt-btn--wide {
  width: 100%;
  font-size: 1.05em;
}

.bt-btn--wa {
  background: var(--bt-wa);
}

.bt-btn--ghost {
  background: transparent;
  color: var(--bt-accent) !important;
  border: 1px solid var(--bt-accent);
}

.bt-btn--ghost:hover,
.bt-btn--ghost:focus-visible {
  background: var(--bt-tint);
}

.bt-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bt-accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Screen 2 */
.bt-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85em;
  color: var(--bt-quiet);
  margin: 0 0 12px;
}

.bt-errors {
  background: var(--bt-error-bg);
  color: var(--bt-error);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px;
}

.bt-errors ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.bt-errors__title {
  font-weight: 700;
  margin: 0;
}

.bt-sticky {
  position: sticky;
  bottom: 0;
  margin: 16px -16px 0;
  padding: 12px 16px 16px;
  background: var(--bt-tint);
  border-top: 1px solid var(--bt-edge);
}

.bt-sticky__split {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.bt-quiet {
  color: var(--bt-quiet);
}

@media (min-width: 600px) {
  .bt-sticky {
    margin: 16px 0 0;
    border-radius: 12px;
    border: 1px solid var(--bt-edge);
  }
}

/* Flight check under the flight number */
.bt-flight {
  font-size: 0.9em;
  margin: 6px 0 0;
  color: var(--bt-quiet);
}

.bt-flight--ok {
  color: var(--bt-ok, #1f7a45);
}

.bt-flight--warn {
  color: var(--bt-warn, #8a5300);
  background: var(--bt-warn-bg, #fff6e0);
  border-radius: 8px;
  padding: 8px 10px;
}

.bt-price__notice {
  font-size: 0.85em;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bt-bg);
}

/* Logo at the top of the customer pages */
.bt-brand {
  display: flex;
  justify-content: center;
  padding: 0 0 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--bt-edge, #cfdae1);
}

.bt-brand img {
  display: block;
  max-width: 180px;
  max-height: 64px;
  height: auto;
}

/* Customer booking page */
.bt-manage__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bt-manage__head .bt-book__title {
  margin-bottom: 2px;
}

.bt-manage__ref {
  font-size: 0.9em;
  margin: 0;
}

.bt-status {
  flex: none;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--bt-quiet);
}

.bt-status--confirmed {
  color: var(--bt-ok, #1f7a45);
}

.bt-status--pending {
  color: var(--bt-warn, #8a5300);
}

.bt-status--cancelled {
  color: var(--bt-error);
}

.bt-manage__money {
  margin-bottom: 18px;
}

.bt-manage__h2 {
  font-size: 1.1em;
  margin: 0 0 8px;
}

.bt-manage__trip,
.bt-manage .bt-panel {
  padding: 12px 14px;
  margin: 0 0 12px;
}

.bt-manage__trip--add {
  border-style: dashed;
}

.bt-manage .bt-panel p {
  margin: 0 0 4px;
}

.bt-manage__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.bt-manage__tag {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bt-quiet);
}

.bt-manage__linked {
  font-size: 0.9em;
  margin: 0 0 12px;
}

.bt-ok {
  color: var(--bt-ok, #1f7a45);
  font-weight: 600;
}

.bt-manage__edit {
  margin-top: 8px;
}

.bt-manage__edit > summary {
  cursor: pointer;
  color: var(--bt-accent);
  font-weight: 600;
  padding: 6px 0;
  list-style-position: inside;
}

.bt-manage__edit[open] > summary {
  margin-bottom: 8px;
}

.bt-manage__edit form {
  border-top: 1px solid var(--bt-edge);
  padding-top: 12px;
}

.bt-notice {
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  background: var(--bt-tint);
}

.bt-notice--ok {
  background: var(--bt-ok-bg, #e7f5ec);
  color: var(--bt-ok, #1f7a45);
}

.bt-notice--error {
  background: var(--bt-error-bg);
  color: var(--bt-error);
}

.bt-notice__title {
  font-weight: 700;
  margin: 0;
}

.bt-notice ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* Round trip or one way: two big buttons, "to the airport" as a smaller link */
.bt-trip {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}

.bt-trip__q {
  display: block;
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0 8px;
  padding: 0;
}

.bt-trip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.bt-trip__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bt-trip__btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px 8px;
  margin: 0;
  border: 2px solid var(--bt-edge);
  border-radius: 14px;
  background: var(--bt-bg);
  color: var(--bt-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bt-trip__btn:hover {
  border-color: var(--bt-accent);
}

.bt-trip__name {
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.2;
}

.bt-trip__sub {
  font-size: 0.8em;
  color: var(--bt-quiet);
  line-height: 1.3;
}

/* One way shows "from the airport" unless "to the airport" is chosen. */
.bt-trip__btn--to,
#bt-trip-depart:checked ~ .bt-trip__buttons .bt-trip__btn--from {
  display: none;
}

#bt-trip-depart:checked ~ .bt-trip__buttons .bt-trip__btn--to {
  display: flex;
}

#bt-trip-both:checked ~ .bt-trip__buttons .bt-trip__btn--round,
#bt-trip-arrive:checked ~ .bt-trip__buttons .bt-trip__btn--from,
#bt-trip-depart:checked ~ .bt-trip__buttons .bt-trip__btn--to {
  border-color: var(--bt-accent);
  background: var(--bt-accent);
  color: #fff;
}

#bt-trip-both:checked ~ .bt-trip__buttons .bt-trip__btn--round .bt-trip__sub,
#bt-trip-arrive:checked ~ .bt-trip__buttons .bt-trip__btn--from .bt-trip__sub,
#bt-trip-depart:checked ~ .bt-trip__buttons .bt-trip__btn--to .bt-trip__sub {
  color: rgba(255, 255, 255, 0.85);
}

#bt-trip-both:focus-visible ~ .bt-trip__buttons .bt-trip__btn--round,
#bt-trip-arrive:focus-visible ~ .bt-trip__buttons .bt-trip__btn--from,
#bt-trip-depart:focus-visible ~ .bt-trip__buttons .bt-trip__btn--to {
  outline: 3px solid color-mix(in srgb, var(--bt-accent) 40%, transparent);
  outline-offset: 2px;
}

.bt-trip__other {
  font-size: 0.9em;
  color: var(--bt-quiet);
  margin: 8px 0 0;
}

.bt-trip__other--from,
#bt-trip-depart:checked ~ .bt-trip__other--to {
  display: none;
}

#bt-trip-depart:checked ~ .bt-trip__other--from {
  display: block;
}

.bt-trip__link {
  display: inline;
  margin: 0;
  color: var(--bt-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Cloudflare Turnstile ("are you human?") above the pay button */
.bt-human {
  margin: 12px 0 0;
  min-height: 65px;
}

/* Total, nothing hidden */
.bt-price__row--total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bt-edge);
}

.bt-price__row--total span {
  color: var(--bt-ink);
  font-weight: 700;
}
