/* Taxi Transfer Belgium – booking UI. Blue + white. Logical properties = works in RTL (Arabic). */
:root {
  --ttb-blue: #0b3d91; --ttb-blue-2: #1557c0; --ttb-blue-3: #e8f0fc; --ttb-sky: #3d8bfd;
  --ttb-ink: #0f1b2d; --ttb-mute: #5b6b82; --ttb-line: #d7e1f0; --ttb-bg: #f5f8fd;
  --ttb-ok: #137a3f; --ttb-err: #b42318; --ttb-r: 14px; --ttb-sh: 0 8px 28px rgba(11, 61, 145, .10);
}
.ttb-app, .ttb-quick, .ttb-contact, .ttb-fleet, .ttb-table-wrap { color: var(--ttb-ink); font-size: 16px; line-height: 1.5; }
.ttb-app *, .ttb-quick *, .ttb-contact * { box-sizing: border-box; }
.ttb-loading { padding: 2rem; text-align: center; color: var(--ttb-mute); }
.ttb-card { background: #fff; border: 1px solid var(--ttb-line); border-radius: var(--ttb-r); box-shadow: var(--ttb-sh); padding: clamp(1rem, 2.5vw, 1.6rem); margin-block-end: 1rem; }
.ttb-card h2 { font-size: 1.25rem; margin: 0 0 .8rem; color: var(--ttb-blue); }
.ttb-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .ttb-grid2 { grid-template-columns: 1fr; } }

/* Fields */
.ttb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.ttb-f { display: flex; flex-direction: column; gap: .3rem; margin-block-end: .8rem; position: relative; }
.ttb-f label { font-weight: 600; font-size: .9rem; }
.ttb-f small, .ttb-hint { color: var(--ttb-mute); font-size: .85rem; margin: .2rem 0 .6rem; }
.ttb-f input, .ttb-f select, .ttb-f textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; color: var(--ttb-ink);
  background: #fff; border: 1.5px solid var(--ttb-line); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.ttb-f textarea { min-height: 90px; resize: vertical; }
.ttb-f input:focus, .ttb-f select:focus, .ttb-f textarea:focus { outline: none; border-color: var(--ttb-blue-2); box-shadow: 0 0 0 3px rgba(21, 87, 192, .18); }
.ttb-f input:user-invalid { border-color: #e7a4a0; }
.ttb-check, .ttb-radio { display: flex; gap: .55rem; align-items: flex-start; margin: .5rem 0; cursor: pointer; }
.ttb-check input, .ttb-radio input { width: 20px; height: 20px; margin-block-start: 2px; accent-color: var(--ttb-blue); flex: none; }
.ttb-check a { color: var(--ttb-blue-2); }
.ttb-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.ttb-trip { display: flex; gap: .5rem; margin-block-end: 1rem; background: var(--ttb-blue-3); padding: .3rem; border-radius: 999px; width: fit-content; }
.ttb-trip label { display: flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.ttb-trip label:has(input:checked) { background: var(--ttb-blue); color: #fff; }
.ttb-trip input { accent-color: #fff; }
.ttb-stop { padding-inline-end: 2.6rem; }
.ttb-x { position: absolute; inset-inline-end: 0; bottom: 0; width: 44px; height: 48px; border: 0; background: none; font-size: 1.5rem; color: var(--ttb-mute); cursor: pointer; }
.ttb-x:hover { color: var(--ttb-err); }
.ttb-link { background: none; border: 0; padding: .3rem 0; color: var(--ttb-blue-2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ttb-more { margin: .6rem 0 1rem; }
.ttb-more summary { cursor: pointer; font-weight: 600; color: var(--ttb-blue-2); padding: .3rem 0; }
.ttb-pay { border: 1px solid var(--ttb-line); border-radius: 10px; padding: .6rem 1rem; margin: .8rem 0; }
.ttb-pay legend { font-weight: 700; padding: 0 .3rem; }
.ttb-coupon { align-items: end; grid-template-columns: 1fr auto; }
.ttb-coupon .ttb-btn { margin-block-end: .8rem; }
.ttb-cp-msg { margin: -.4rem 0 .6rem; font-size: .9rem; color: var(--ttb-ok); }

/* Autocomplete */
.ttb-sug { position: absolute; inset-inline: 0; top: 100%; z-index: 1000; margin: 4px 0 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--ttb-line); border-radius: 10px; box-shadow: var(--ttb-sh); max-height: 300px; overflow: auto; }
.ttb-sug li { display: flex; gap: .55rem; align-items: center; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; }
.ttb-sug li.is-active, .ttb-sug li[aria-selected="true"], .ttb-sug li:hover { background: var(--ttb-blue-3); }
.ttb-sug-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ttb-blue-3); color: var(--ttb-blue); font-size: .8rem; }
.ttb-sug-empty { color: var(--ttb-mute); cursor: default !important; }

/* Buttons */
.ttb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.ttb-btn:active { transform: translateY(1px); }
.ttb-btn:disabled { opacity: .55; cursor: not-allowed; }
.ttb-btn-primary { background: var(--ttb-blue); color: #fff; }
.ttb-btn-primary:hover:not(:disabled) { background: var(--ttb-blue-2); color: #fff; }
.ttb-btn-outline { background: #fff; color: var(--ttb-blue); border-color: var(--ttb-blue); }
.ttb-btn-outline:hover:not(:disabled) { background: var(--ttb-blue-3); }
.ttb-btn-ghost { background: transparent; color: var(--ttb-blue); }
.ttb-btn-ghost:hover { background: var(--ttb-blue-3); }
.ttb-btn-danger { background: #fff; color: var(--ttb-err); border-color: var(--ttb-err); }
.ttb-btn-block { width: 100%; }
.ttb-btn:focus-visible, .ttb-link:focus-visible { outline: 3px solid var(--ttb-sky); outline-offset: 2px; }
.ttb-nav, .ttb-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; margin-block-start: 1rem; }
.ttb-actions { justify-content: flex-start; }

/* Messages */
.ttb-err { color: var(--ttb-err); background: #fdecea; border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0; font-size: .92rem; }
.ttb-err[hidden] { display: none; }
.ttb-ok, .ttb-msg-ok { color: var(--ttb-ok); background: #e7f6ec; border-radius: 8px; padding: .6rem .8rem; }
.ttb-msg { margin-block-start: .6rem; }
.ttb-note { color: var(--ttb-mute); font-size: .88rem; margin-block-start: .6rem; }

/* Steps */
.ttb-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; counter-reset: s; }
.ttb-steps li { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .55rem .6rem; border-radius: 10px; background: #fff; border: 1px solid var(--ttb-line); color: var(--ttb-mute); font-size: .88rem; font-weight: 600; }
.ttb-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ttb-blue-3); color: var(--ttb-blue); font-size: .85rem; }
.ttb-steps li.is-on { border-color: var(--ttb-blue); color: var(--ttb-blue); }
.ttb-steps li.is-on span { background: var(--ttb-blue); color: #fff; }
.ttb-steps li.is-done span { background: var(--ttb-ok); color: #fff; }
@media (max-width: 600px) { .ttb-steps li { font-size: 0; justify-content: center; } .ttb-steps li span { font-size: .85rem; } }

/* Map */
.ttb-mapcard { padding: .5rem; }
.ttb-map { height: 380px; border-radius: 10px; background: var(--ttb-blue-3); z-index: 0; }
@media (max-width: 900px) { .ttb-map { height: 260px; } }
.ttb-pin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ttb-blue); color: #fff; font-weight: 700; font-size: .8rem; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ttb-pin-b span { background: var(--ttb-sky); }
.ttb-pin-s span { background: #fff; color: var(--ttb-blue); border-color: var(--ttb-blue); }
.ttb-pin span { line-height: 1; }
.ttb-route { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; background: var(--ttb-blue-3); border-radius: 10px; padding: .6rem .9rem; margin-block-end: 1rem; }

/* Vehicles */
.ttb-vehs { display: grid; gap: .8rem; }
.ttb-veh { display: grid; grid-template-columns: 130px 1fr auto; gap: 1rem; align-items: center; padding: .8rem; border: 1.5px solid var(--ttb-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ttb-veh:hover { border-color: var(--ttb-blue-2); }
.ttb-veh.is-sel { border-color: var(--ttb-blue); box-shadow: 0 0 0 3px rgba(11, 61, 145, .15); }
.ttb-veh.is-off { opacity: .6; }
.ttb-veh h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ttb-veh-img img { width: 130px; height: 80px; object-fit: contain; }
.ttb-veh-ic { display: block; width: 130px; height: 80px; border-radius: 8px; background: var(--ttb-blue-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b3d91'%3E%3Cpath d='M5 11l1.5-4.5A2 2 0 018.4 5h7.2a2 2 0 011.9 1.5L19 11v6a1 1 0 01-1 1h-1a1 1 0 01-1-1v-1H8v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-6zm2.2-1h9.6l-1-3H8.2l-1 3zM7.5 14a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm9 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z'/%3E%3C/svg%3E") center/42px no-repeat; }
.ttb-cap { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; color: var(--ttb-mute); font-size: .9rem; }
.ttb-ex { margin: .2rem 0 0; font-size: .85rem; color: var(--ttb-mute); }
.ttb-veh-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; text-align: end; }
.ttb-price { font-size: 1.45rem; font-weight: 800; color: var(--ttb-blue); }
.ttb-price-req { font-size: .95rem; font-weight: 700; color: var(--ttb-blue-2); }
.ttb-tag { font-size: .75rem; font-weight: 700; background: var(--ttb-blue-3); color: var(--ttb-blue); padding: .15rem .5rem; border-radius: 999px; }
@media (max-width: 600px) {
  .ttb-veh { grid-template-columns: 90px 1fr; }
  .ttb-veh-img img, .ttb-veh-ic { width: 90px; height: 60px; }
  .ttb-veh-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Summary */
.ttb-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0 0 .8rem; font-size: .93rem; }
.ttb-dl dt { color: var(--ttb-mute); }
.ttb-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ttb-lines { width: 100%; border-collapse: collapse; font-size: .93rem; margin: .5rem 0; }
.ttb-lines td { padding: .35rem 0; border-block-end: 1px dashed var(--ttb-line); }
.ttb-lines td:last-child { text-align: end; white-space: nowrap; }
.ttb-lines .ttb-total td { font-weight: 800; font-size: 1.1rem; color: var(--ttb-blue); border: 0; padding-block-start: .6rem; }
.ttb-sum { position: sticky; top: 90px; }
@media (max-width: 900px) { .ttb-sum { position: static; } }

/* Done */
.ttb-done { text-align: center; padding-block: 2rem; }
.ttb-done-ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ttb-ok); color: #fff; font-size: 2rem; }
.ttb-ref strong { font-size: 1.3rem; letter-spacing: .04em; color: var(--ttb-blue); }
.ttb-done .ttb-actions { justify-content: center; }

/* Quick form (hero) */
.ttb-quick { background: #fff; border-radius: var(--ttb-r); box-shadow: 0 14px 40px rgba(11, 61, 145, .18); padding: 1.2rem; }
.ttb-quick .ttb-trip { margin-block-end: .8rem; }
.ttb-quick .ttb-f { margin-block-end: .6rem; }
.ttb-f-s { max-width: 110px; }

/* Fleet + tables */
.ttb-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.ttb-car { background: #fff; border: 1px solid var(--ttb-line); border-radius: var(--ttb-r); padding: 1rem; display: flex; flex-direction: column; gap: .4rem; box-shadow: var(--ttb-sh); }
.ttb-car img, .ttb-car-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--ttb-blue-3); }
.ttb-car h3 { margin: .3rem 0 0; color: var(--ttb-blue); }
.ttb-feat { margin: .2rem 0; padding-inline-start: 1.1rem; font-size: .9rem; color: var(--ttb-mute); }
.ttb-car .ttb-btn { margin-block-start: auto; }
.ttb-table-wrap { overflow-x: auto; margin: 1rem 0; }
.ttb-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--ttb-sh); }
.ttb-table th, .ttb-table td { padding: .7rem .9rem; text-align: start; border-block-end: 1px solid var(--ttb-line); }
.ttb-table thead th { background: var(--ttb-blue); color: #fff; font-weight: 700; }
.ttb-table tbody tr:nth-child(even) { background: var(--ttb-bg); }

/* Contact + manage + accounts */
.ttb-contact { max-width: 720px; }
.ttb-lookup { max-width: 560px; }
.ttb-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: 1rem; border-block-end: 2px solid var(--ttb-line); }
.ttb-tabs a, .ttb-tabs button { padding: .6rem 1rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ttb-mute); text-decoration: none; cursor: pointer; border-block-end: 3px solid transparent; margin-block-end: -2px; }
.ttb-tabs .is-on { color: var(--ttb-blue); border-color: var(--ttb-blue); }
.ttb-list { display: grid; gap: .7rem; }
.ttb-item { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--ttb-line); border-radius: 12px; background: #fff; }
.ttb-item h3 { margin: 0; font-size: 1rem; }
.ttb-item p { margin: .15rem 0 0; color: var(--ttb-mute); font-size: .9rem; }
.ttb-item .ttb-actions { margin: 0; grid-column: 1 / -1; }
.ttb-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--ttb-blue-3); color: var(--ttb-blue); }
.ttb-badge-completed, .ttb-badge-paid { background: #e7f6ec; color: var(--ttb-ok); }
.ttb-badge-cancelled, .ttb-badge-no_show, .ttb-badge-failed { background: #fdecea; color: var(--ttb-err); }
.ttb-badge-pending, .ttb-badge-unpaid { background: #fff4e0; color: #8a5300; }
.ttb-empty { color: var(--ttb-mute); padding: 1rem 0; }

/* RTL fine-tuning */
[dir="rtl"] .ttb-pin span { transform: rotate(-45deg); }
[dir="rtl"] .ttb-f input[type="tel"], [dir="rtl"] .ttb-f input[type="email"] { direction: ltr; text-align: right; }
@media (prefers-reduced-motion: reduce) { .ttb-btn, .ttb-f input { transition: none; } }
/* WordPress login form inside the account / driver pages */
.ttb-lookup form p { margin: 0 0 12px; }
.ttb-lookup form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ttb-lookup form input[type=text], .ttb-lookup form input[type=password], .ttb-lookup form input[type=email] { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #d6deea; border-radius: 10px; font: inherit; background: #fff; }
.ttb-lookup form input[type=text]:focus, .ttb-lookup form input[type=password]:focus { outline: none; border-color: var(--ttb-blue-2); box-shadow: 0 0 0 3px rgba(21,87,192,.15); }
.ttb-lookup form .login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.ttb-lookup form input[type=submit] { background: var(--ttb-blue-2); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.ttb-lookup form input[type=submit]:hover { background: var(--ttb-blue); }
