/* Bott & Co - car finance journey (/motorfinance): the parts the flight delay journey doesn't have.
   Built from the same tokens (tokens.css) and components; js/mf-journey.js, js/signature-pad.js. */

/* Landing */
.bc-hero--mf .bc-btn { margin-top: 8px; }
.bc-mf-how { margin: 0; padding-left: 1.4em; display: grid; gap: var(--bc-s2); color: var(--bc-navy); }
.bc-mf-how b { font-weight: var(--bc-fw-bold); }

[data-group="title"] .bc-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Sign */
.bc-mf-who .bc-summary__row { grid-template-columns: minmax(80px, 28%) 1fr; }
.bc-mf-who .bc-summary__v { font-weight: var(--bc-fw-semibold); overflow-wrap: anywhere; }
.bc-mf-who .bc-link { margin-left: 6px; font-weight: var(--bc-fw-regular); }
.bc-mf-fees { display: grid; gap: var(--bc-s2); padding: var(--bc-s4); border-radius: var(--bc-radius); background: var(--bc-white); border: 1px solid var(--bc-line-soft); }
.bc-mf-fees p { margin: 0; color: var(--bc-navy); }
.bc-mf-table { width: 100%; border-collapse: collapse; font-size: var(--bc-fs-sm); font-variant-numeric: tabular-nums; }
.bc-mf-table th { text-align: left; font-weight: var(--bc-fw-semibold); color: var(--bc-muted-ink); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--bc-line); }
.bc-mf-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--bc-line-soft); color: var(--bc-navy); }

/* Signature box */
.bc-sign { display: grid; gap: var(--bc-s2); }
.bc-sign__pad { position: relative; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); background: var(--bc-white); overflow: hidden; }
.bc-sign__canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.bc-sign__line { position: absolute; left: 6%; right: 6%; bottom: 24%; border-bottom: 1px dashed var(--bc-line); pointer-events: none; }
.bc-sign__hint { position: absolute; left: 6%; bottom: calc(24% + 6px); font-size: var(--bc-fs-sm); color: var(--bc-muted-ink); pointer-events: none; }
.bc-sign__hint[hidden] { display: none; }
.bc-sign__tools { display: flex; justify-content: flex-end; }
.bc-sign__pad:has(.bc-sign__canvas:focus-visible) { outline: 3px solid var(--bc-focus); outline-offset: 2px; }
[data-group="signature"]:has(.bc-error:not([hidden])) .bc-sign__pad { border-color: var(--bc-error); box-shadow: 0 0 0 1px var(--bc-error); }

/* Valid8: its wordmark is white, so it sits on navy */
.bc-valid8 { display: inline-flex; align-items: center; gap: var(--bc-s2); padding: 4px 6px 4px 12px; border-radius: var(--bc-radius); background: var(--bc-navy); color: var(--bc-white); font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semibold); }
.bc-valid8 img { display: block; width: 76px; height: auto; }
.bc-mf-powered { display: flex; justify-content: flex-end; }

/* Searching: the year counts up from 2007 to 2024 while the credit file is searched */
.bc-mf-search { display: grid; gap: var(--bc-s4); justify-items: center; text-align: center; padding-block: var(--bc-s8); }
.bc-mf-search .bc-checks { justify-self: stretch; max-width: 26rem; margin-inline: auto; text-align: left; }
.bc-mf-search__title { margin: 0; font-size: var(--bc-fs-xl); line-height: 1.3; color: var(--bc-navy); }
.bc-mf-search__year { display: inline-block; min-width: 4ch; color: var(--bc-teal); font-variant-numeric: tabular-nums; }
.bc-mf-search__spinner { position: relative; width: 72px; height: 72px; }
.bc-mf-search__spinner::before, .bc-mf-search__spinner span { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.bc-mf-search__spinner::before { border: 6px solid var(--bc-teal-050); }
.bc-mf-search__spinner span { border: 6px solid transparent; border-top-color: var(--bc-teal); border-right-color: var(--bc-coral); animation: bc-spin 1.1s linear infinite; }
.bc-mf-years { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; width: 100%; max-width: 26rem; }
.bc-mf-years span { height: 8px; border-radius: 4px; background: var(--bc-line-soft); transition: background .3s; }
.bc-mf-years span.is-done { background: var(--bc-teal); }
.bc-mf-search__foot { display: grid; gap: var(--bc-s2); justify-items: center; }
.bc-mf-search__foot .bc-card__hint { margin: 0; }
@media (prefers-reduced-motion: reduce) { .bc-mf-search__spinner span { animation: none; } .bc-mf-years span { transition: none; } }

/* Result */
.bc-mf-done b { white-space: nowrap; }
.bc-mf-agreements { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bc-s2); }
.bc-mf-agreements li { display: flex; gap: var(--bc-s3); align-items: flex-start; padding: var(--bc-s3) var(--bc-s4); border: 1px solid var(--bc-line-soft); border-radius: var(--bc-radius-sm); background: var(--bc-white); }
.bc-mf-agreements b { display: block; color: var(--bc-navy); overflow-wrap: anywhere; }
.bc-mf-agreements small { display: block; margin-top: 2px; font-size: var(--bc-fs-sm); color: var(--bc-muted-ink); }
.bc-mf-agreements__icon { flex: none; display: inline-flex; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #e6f3ee; color: var(--bc-green); align-items: center; justify-content: center; }
.bc-mf-agreements__icon svg { width: 12px; height: 12px; }
.bc-mf-next { margin: 0; padding-left: 1.4em; display: grid; gap: var(--bc-s2); color: var(--bc-navy); }
.bc-mf-help { margin: 0; color: var(--bc-navy); }
.bc-mf-help a { color: var(--bc-teal); font-weight: var(--bc-fw-semibold); white-space: nowrap; }
.bc-mf-lead { margin: 0; font-size: var(--bc-fs-lg); line-height: 1.45; color: var(--bc-navy); font-weight: var(--bc-fw-medium); }
.bc-mf-lead a { color: var(--bc-teal); font-weight: var(--bc-fw-semibold); white-space: nowrap; }
.bc-mf-consents { display: grid; gap: var(--bc-s3); }
.bc-mf-consents > .bc-error { margin: 0; }
.bc-mf-search__note { margin: 0; color: var(--bc-navy); font-size: var(--bc-fs-md); }
.bc-mf-result { display: grid; gap: var(--bc-s4); }
.bc-envbar__test { display: inline-flex; align-items: center; gap: 6px; }
.bc-envbar__test select { font: inherit; font-weight: 400; padding: 2px 4px; border: 1px solid #f3d7ae; border-radius: 4px; background: #fff; color: #6b3a00; max-width: 100%; }
