/* Bitok Foundation Core — form styles. Colours follow the theme via CSS variables. */
.bfc-form, .bfc-track-result, .bfc-success, .bfc-impact { --bfc-accent: var(--red, #c8102e); --bfc-ink: var(--black, #111); --bfc-line: var(--line, #dcdcdc); --bfc-soft: var(--grey, #f4f4f4); --bfc-muted: var(--muted, #555); color: var(--bfc-ink); }
.bfc-form { display: block; }
.bfc-hp { position: absolute; left: -9999px; }
.bfc-progress { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 0; border-top: 3px solid var(--bfc-line); counter-reset: s; }
.bfc-progress li { flex: 1; padding: 12px 8px 0 0; font-size: .82rem; color: var(--bfc-muted); position: relative; display: flex; gap: 8px; align-items: baseline; }
.bfc-progress li::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: transparent; }
.bfc-progress li.is-done::before, .bfc-progress li.is-current::before { background: var(--bfc-accent); }
.bfc-progress li.is-current { color: var(--bfc-ink); font-weight: 500; }
.bfc-progress__n { font-family: var(--head, inherit); font-weight: 700; }
.bfc-stepcount { font-size: .85rem; color: var(--bfc-muted); margin: 8px 0 24px; }
@media (max-width: 760px) { .bfc-progress__t { display: none; } .bfc-progress li { justify-content: center; padding-right: 0; } }
.bfc-step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.bfc-step__title { font-family: var(--head, inherit); font-weight: 700; font-size: 1.5rem; padding: 0; margin: 0 0 8px; }
.bfc-step__intro { color: var(--bfc-muted); margin: 0 0 24px; max-width: 680px; }
.bfc-form:not(.bfc-js) .bfc-step + .bfc-step { border-top: 1px solid var(--bfc-line); padding-top: 32px; }
.bfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.bfc-field { grid-column: 1 / -1; min-width: 0; }
.bfc-field.bfc-half { grid-column: auto; }
.bfc-field[hidden] { display: none; }
@media (max-width: 640px) { .bfc-grid { grid-template-columns: 1fr; } .bfc-field.bfc-half { grid-column: 1 / -1; } }
.bfc-field label, .bfc-choices legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.bfc-req { color: var(--bfc-accent); }
.bfc-field input[type=text], .bfc-field input[type=email], .bfc-field input[type=tel], .bfc-field input[type=date], .bfc-field input[type=number], .bfc-field select, .bfc-field textarea, .bfc-form--plain input[type=text], .bfc-form--plain input[type=tel], .bfc-form--plain textarea { width: 100%; padding: 12px 14px; border: 1px solid #bdbdbd; border-radius: 2px; background: #fff; font: inherit; font-size: 1rem; color: var(--bfc-ink); min-height: 48px; }
.bfc-field textarea { min-height: 120px; resize: vertical; }
.bfc-field input:focus, .bfc-field select:focus, .bfc-field textarea:focus, .bfc-form--plain input:focus { outline: 2px solid var(--bfc-ink); outline-offset: 1px; border-color: var(--bfc-ink); }
.bfc-field input[type=file] { width: 100%; padding: 10px; border: 1px dashed #bdbdbd; background: var(--bfc-soft); font-size: .92rem; }
.bfc-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bfc-choices legend { grid-column: 1 / -1; padding: 0; }
.bfc-choices--inline { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.bfc-choice { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bfc-line); cursor: pointer; font-weight: 400 !important; margin: 0 !important; background: #fff; }
.bfc-choice:hover { border-color: var(--bfc-ink); }
.bfc-choice input { margin-top: 4px; accent-color: var(--bfc-accent); flex-shrink: 0; }
.bfc-choice:has(input:checked) { border-color: var(--bfc-ink); box-shadow: inset 3px 0 0 var(--bfc-accent); }
.bfc-check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; padding: 14px; background: var(--bfc-soft); }
.bfc-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--bfc-accent); flex-shrink: 0; }
.bfc-field--note p { margin: 0; padding: 12px 16px; border-left: 3px solid var(--bfc-ink); background: var(--bfc-soft); font-size: .95rem; }
.bfc-help { font-size: .86rem; color: var(--bfc-muted); margin: 6px 0 0; }
.bfc-error { color: var(--bfc-accent); font-weight: 500; }
.bfc-has-error input, .bfc-has-error select, .bfc-has-error textarea, .bfc-has-error .bfc-choice { border-color: var(--bfc-accent) !important; }
.bfc-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--bfc-line); padding-top: 24px; }
.bfc-nav [data-bfc="next"], .bfc-nav [data-bfc="submit"] { margin-left: auto; }
.bfc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 2px solid var(--bfc-accent); background: var(--bfc-accent); color: #fff !important; font: inherit; font-weight: 600; font-family: var(--head, inherit); letter-spacing: .02em; text-transform: uppercase; font-size: .88rem; border-radius: 2px; cursor: pointer; text-decoration: none; }
.bfc-btn:hover { background: #a30d25; border-color: #a30d25; }
.bfc-btn--ghost { background: #fff; color: var(--bfc-ink) !important; border-color: var(--bfc-ink); }
.bfc-btn--ghost:hover { background: var(--bfc-ink); color: #fff !important; border-color: var(--bfc-ink); }
.bfc-btn[disabled] { opacity: .6; cursor: wait; }
.bfc-btn[hidden] { display: none; }
.bfc-small { font-size: .85rem; color: var(--bfc-muted); margin-top: 16px; }
.bfc-notice { padding: 16px 20px; margin: 0 0 24px; border-left: 4px solid var(--bfc-ink); background: var(--bfc-soft); }
.bfc-notice p { margin: 4px 0 0; }
.bfc-notice--error { border-color: var(--bfc-accent); }
.bfc-notice--ok { border-color: #ffcd11; }
.bfc-draft { padding: 12px 16px; background: var(--bfc-soft); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.bfc-draft[hidden] { display: none; }
.bfc-draft .bfc-btn { min-height: 36px; padding: 6px 14px; font-size: .78rem; }
.bfc-success { padding: 40px; border: 1px solid var(--bfc-line); border-top: 4px solid var(--bfc-accent); outline: none; }
.bfc-success h2 { margin-top: 0; }
.bfc-ref { font-family: var(--head, monospace); font-weight: 700; font-size: 2rem; letter-spacing: .06em; margin: 4px 0 20px; }
.bfc-instructions { background: var(--bfc-soft); padding: 20px 24px; margin: 20px 0; }
.bfc-instructions h3 { margin-top: 0; }
.bfc-form--plain { max-width: 760px; }
.bfc-form--plain .bfc-grid { margin-bottom: 20px; }
.bfc-track-result h2 { font-size: 2rem; margin: 4px 0 8px; }
.bfc-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--bfc-muted); font-weight: 600; margin: 0; }
.bfc-timeline { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--bfc-line); }
.bfc-timeline li { padding: 10px 8px 0 0; font-size: .82rem; color: var(--bfc-muted); position: relative; }
.bfc-timeline li.is-done { color: var(--bfc-ink); font-weight: 500; }
.bfc-timeline li.is-done::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: var(--bfc-accent); }
@media (max-width: 640px) { .bfc-timeline { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--bfc-line); } .bfc-timeline li { padding: 6px 0 6px 14px; } .bfc-timeline li.is-done::before { top: 0; bottom: 0; left: -3px; right: auto; width: 3px; height: auto; } }
.bfc-message { border-left: 3px solid var(--bfc-accent); padding: 4px 0 4px 20px; margin: 24px 0; }
.bfc-message h3 { margin: 0 0 6px; font-size: 1rem; }
/* Impact */
.bfc-impact__filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--bfc-line); }
.bfc-impact__filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bfc-muted); font-weight: 600; }
.bfc-impact__filters select { padding: 10px 12px; border: 1px solid #bdbdbd; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; min-width: 160px; border-radius: 2px; background: #fff; color: var(--bfc-ink); }
.bfc-impact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; border-top: 1px solid var(--bfc-line); border-left: 1px solid var(--bfc-line); }
.bfc-impact__item { padding: 28px 24px; border-right: 1px solid var(--bfc-line); border-bottom: 1px solid var(--bfc-line); display: flex; flex-direction: column-reverse; gap: 8px; }
.bfc-impact__item dd { margin: 0; font-family: var(--head, inherit); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--bfc-ink); }
.bfc-impact__item dt { font-size: .9rem; color: var(--bfc-muted); }
.bfc-impact-empty { padding: 28px; background: var(--bfc-soft); border-left: 3px solid var(--bfc-accent); }
.bfc-impact-empty p { margin: 0; }
/* FAQ, reports, channels */
.bfc-faq details { border-bottom: 1px solid var(--bfc-line, #dcdcdc); }
.bfc-faq summary { padding: 18px 32px 18px 0; cursor: pointer; font-weight: 600; font-family: var(--head, inherit); list-style: none; position: relative; }
.bfc-faq summary::-webkit-details-marker { display: none; }
.bfc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.3rem; font-weight: 400; }
.bfc-faq details[open] summary::after { content: "–"; }
.bfc-faq__a { padding: 0 0 18px; color: var(--muted, #555); }
.bfc-reports { list-style: none; padding: 0; }
.bfc-reports li { padding: 14px 0; border-bottom: 1px solid var(--line, #dcdcdc); display: flex; justify-content: space-between; }
.bfc-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bfc-channel { border: 1px solid var(--line, #dcdcdc); padding: 24px; }
.bfc-channel h3 { margin-top: 0; }
.bfc-window { padding: 12px 16px; background: var(--grey, #f4f4f4); border-left: 3px solid var(--muted, #555); }
.bfc-window--open { border-color: var(--red, #c8102e); }
