.fbd {
    --fbd-ink: #17251f;
    --fbd-muted: #607069;
    --fbd-green: #176b4c;
    --fbd-gold: #e9aa2f;
    --fbd-paper: #fffdf7;
    box-sizing: border-box;
    max-width: 860px;
    margin: 2rem auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    color: var(--fbd-ink);
    border: 1px solid #dfe5df;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, var(--fbd-paper) 100%);
    box-shadow: 0 18px 45px rgba(23, 37, 31, .09);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fbd *, .fbd *::before, .fbd *::after { box-sizing: inherit; }
.fbd__intro h2 { margin: .15rem 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.05; }
.fbd__intro p:last-child { max-width: 62ch; margin: 0; color: var(--fbd-muted); }
.fbd__eyebrow { margin: 0; color: var(--fbd-green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fbd__form { margin-top: 2rem; }
.fbd__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fbd__field { display: grid; align-content: start; gap: .45rem; font-weight: 700; }
.fbd__field--wide { grid-column: 1 / -1; }
.fbd__field small { color: var(--fbd-muted); font-size: .78rem; font-weight: 400; line-height: 1.35; }
.fbd__input-wrap { display: flex; align-items: center; min-height: 50px; overflow: hidden; border: 1px solid #bdc9c1; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fbd__input-wrap:focus-within { border-color: var(--fbd-green); box-shadow: 0 0 0 3px rgba(23, 107, 76, .13); }
.fbd input, .fbd select { width: 100%; min-width: 0; padding: .75rem .85rem; color: var(--fbd-ink); border: 0; outline: 0; background: transparent; font: inherit; }
.fbd__input-wrap em { padding-right: .85rem; color: var(--fbd-muted); font-style: normal; font-weight: 600; }
.fbd__button { margin-top: 1.25rem; padding: .85rem 1.25rem; color: #fff; border: 0; border-radius: 10px; background: var(--fbd-green); font: inherit; font-weight: 800; cursor: pointer; }
.fbd__button:hover { background: #0f573d; }
.fbd__button:focus-visible { outline: 3px solid rgba(23, 107, 76, .3); outline-offset: 3px; }
.fbd__error { color: #a12727; font-weight: 700; }
.fbd__result { margin-top: 1.75rem; overflow: hidden; border: 1px solid #cad9cf; border-radius: 16px; background: #f4faf6; }
.fbd__result-main { display: grid; place-items: center; padding: 1.6rem; text-align: center; background: var(--fbd-green); color: #fff; }
.fbd__result-main > span { font-weight: 700; }
.fbd__result-main strong { margin: .15rem 0; color: #fff; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1; }
.fbd__result-main small { opacity: .8; }
.fbd__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #cad9cf; }
.fbd__metrics div { display: grid; gap: .15rem; padding: 1rem; background: #fff; text-align: center; }
.fbd__metrics span { color: var(--fbd-muted); font-size: .85rem; }
.fbd__metrics strong { font-size: 1.15rem; }
.fbd__status { margin: 1.1rem; line-height: 1.55; }
.fbd details { margin: 1.1rem; padding-top: 1rem; border-top: 1px solid #d6e1da; }
.fbd summary { color: var(--fbd-green); font-weight: 800; cursor: pointer; }
.fbd details p { color: var(--fbd-muted); line-height: 1.55; }
.fbd__notice { margin-top: 1rem; padding: 1rem 1.1rem; border-left: 4px solid var(--fbd-gold); border-radius: 6px; background: #fff8e8; }
.fbd__notice p { margin: .25rem 0 0; color: #65552d; font-size: .86rem; line-height: 1.5; }
.fbd__credit { margin: 1.15rem 0 0; color: var(--fbd-muted); font-size: .8rem; text-align: center; }
.fbd__credit a { color: var(--fbd-green); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fbd__credit a:hover { color: #0f573d; }
.fbd__credit a:focus-visible { border-radius: 2px; outline: 3px solid rgba(23, 107, 76, .22); outline-offset: 3px; }

@media (max-width: 620px) {
    .fbd__fields, .fbd__metrics { grid-template-columns: 1fr; }
    .fbd__field--wide { grid-column: auto; }
}
