/* TrueBit · site layer on top of truebit.css (design system v1).
   Colours come from the CSS variables in truebit.css (:root) — change them there to rebrand. */

.tb-site{background:#fff;min-height:100vh;display:flex;flex-direction:column}
.tb-site>main{flex:1 0 auto}
[x-cloak]{display:none!important}
.tb [hidden]{display:none!important}

/* skip link */
.tb .tb-skip{position:absolute;top:-200px;inset-inline-start:16px;z-index:100;padding:12px 18px;border-radius:6px;background:var(--navy);color:#fff;font-weight:700}
.tb .tb-skip:focus{top:12px}

/* decorative art & corner motifs: mirrored in English (LTR) */
.tb .tb-art{width:100%;height:auto}
.tb .tb-corner{position:absolute;inset-inline-end:0;pointer-events:none}
.tb[dir=ltr] .tb-corner,.tb[dir=ltr] .tb-mirror-ltr{transform:scaleX(-1)}

/* header: dropdown panels & mobile menu are toggled with the [hidden] attribute */
.tb .tb-header .tb-dd{animation:tb-fade .14s ease-out}
.tb .tb-nav-link{white-space:nowrap}
@keyframes tb-fade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tb .tb-header .tb-dd{animation:none}}
.tb .tb-mmenu{height:calc(100dvh - 64px)}
body.tb-menu-open{overflow:hidden}

/* country-code select inside .tb-phone */
.tb select.tb-cc{appearance:none;-webkit-appearance:none;cursor:pointer;padding-inline:12px 30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px 16px;background-position:right 10px center}
.tb select.tb-cc:focus-visible{position:relative;z-index:1}
.tb .tb-phone .tb-input.is-error{position:relative;z-index:1}

/* toasts */
.tb .tb-toasts{position:fixed;inset-inline:16px;bottom:24px;z-index:80;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}
.tb .tb-toasts .tb-toast{pointer-events:auto;max-width:560px;width:100%}
@media (max-width:760px){.tb .tb-toasts.is-lifted{bottom:172px}}

/* reference number box on success screens */
.tb .tb-ref{display:inline-flex;align-items:center;gap:12px;padding:10px 10px 10px 18px;border:1.5px solid var(--line-2);border-radius:8px;background:var(--light)}
.tb[dir=rtl] .tb-ref{padding:10px 18px 10px 10px}
.tb .tb-ref .tb-num{font-size:22px;font-weight:700;letter-spacing:.02em}

/* file input inside the drop zone */
.tb .tb-drop{position:relative}
.tb .tb-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tb .tb-drop:has(input:focus-visible){outline:3px solid var(--cyan-ink);outline-offset:2px}

/* prose for legal pages */
.tb .tb-prose p,.tb .tb-prose li{font-size:18px}

/* form loading state on buttons */
.tb .tb-btn .tb-loader{margin-inline-end:2px}
.tb .tb-btn[disabled]{cursor:progress}

/* honeypot */
.tb .tb-hp{position:absolute!important;inset-inline-start:-9999px!important;width:1px;height:1px;overflow:hidden}

/* 404 + error pages */
.tb .tb-error-page{min-height:100vh;display:flex;flex-direction:column;background:var(--light)}

/* print */
@media print{.tb .tb-header,.tb .tb-footer,.tb .tb-fab,.tb .tb-bottombar{display:none!important}}

/* raise the WhatsApp button above the sticky bottom bar on phones */
@media (max-width:760px){.tb .tb-fab[data-fab-lift]{bottom:172px}}

/* instant selected state for option cards, chips and segmented controls (mirrors .is-selected) */
.tb .tb-opt:has(input:checked){border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);background:var(--light-2)}
.tb .tb-opt:has(input:checked) .tb-tile{background:var(--navy);color:#fff}
.tb .tb-chip:has(input:checked){background:var(--navy);border-color:var(--navy);color:#fff;font-weight:700}
.tb .tb-chip:has(input:checked) .tb-ico{color:var(--cyan)}
.tb .tb-chip:has(input:checked) .tb-cb,.tb .tb-chip:has(input:checked) .tb-rb{background:var(--cyan);border-color:var(--cyan)}
.tb .tb-chip:has(input:checked) .tb-cb::after,.tb .tb-chip:has(input:checked) .tb-rb::after{width:6px;height:6px;background:var(--navy)}
.tb .tb-seg-opt:has(input:checked){background:var(--navy);color:#fff}
.tb .tb-seg-stack .tb-seg-opt:has(input:checked){border-color:var(--navy)!important}
.tb .tb-seg-opt{position:relative}

/* wizard */
.tb .rq-step-title{display:block;font-size:clamp(22px,2vw,28px);font-weight:800;line-height:1.4}
.tb .rq-step-title:focus{outline:none}
.tb .tb-file .tb-bar{margin-top:2px}
body.tb-menu-open .tb-fab{display:none}

/* accessibility: muted text darkened slightly so it meets WCAG AA (4.5:1) on white and light-gray sections */
:root{--muted:#5B6B80}
