.tfg-decoder {
  --tfg-ink: #162335;
  --tfg-accent: #155e75;
  --tfg-border: #c8d6df;
  max-width: 920px;
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--tfg-ink);
  background: #f8fbfd;
  border: 1px solid var(--tfg-border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(17 46 65 / 7%);
}
.tfg-decoder * { box-sizing: border-box; }
.tfg-decoder h2 { margin: 0 0 .5rem; line-height: 1.25; }
.tfg-decoder h3 { margin: .25rem 0 .75rem; line-height: 1.3; }
.tfg-decoder p, .tfg-decoder li { line-height: 1.6; }
.tfg-decoder__intro { margin: 0 0 1rem; }
.tfg-decoder__privacy, .tfg-decoder__caution {
  padding: .8rem 1rem;
  border-left: 4px solid #a35c13;
  background: #fff7e9;
  border-radius: 6px;
}
.tfg-decoder__privacy { margin: 0 0 1.25rem; }
.tfg-decoder__fields { display: grid; gap: 1rem; }
.tfg-decoder label { display: block; margin: 0 0 .35rem; font-weight: 650; }
.tfg-decoder input, .tfg-decoder select, .tfg-decoder textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .6rem .75rem;
  color: var(--tfg-ink);
  background: #fff;
  border: 1px solid #7b92a2;
  border-radius: 8px;
  font: inherit;
}
.tfg-decoder textarea { min-height: 6.5rem; resize: vertical; }
.tfg-decoder button[type=submit] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--tfg-accent);
  border: 2px solid var(--tfg-accent);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tfg-decoder button:hover { filter: brightness(.9); }
.tfg-decoder :focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
.tfg-decoder__status { margin-top: .8rem; font-weight: 600; }
.tfg-decoder__status:empty { display: none; }
.tfg-decoder__result {
  margin-top: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--tfg-border);
  border-radius: 10px;
}
.tfg-decoder__result[hidden] { display: none; }
.tfg-decoder__eyebrow { margin: 0; color: var(--tfg-accent); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tfg-decoder__result ol { padding-left: 1.35rem; }
.tfg-decoder__result li + li { margin-top: .45rem; }
.tfg-decoder__links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0; }
.tfg-decoder__link { color: #075679; font-weight: 650; text-decoration: underline; text-underline-offset: .15em; }
.tfg-decoder__note { font-size: .9rem; color: #465669; }
.tfg-decoder__feedback { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.tfg-decoder__feedback-button { min-height: 38px; padding: .3rem .8rem; color: var(--tfg-ink); background: #fff; border: 1px solid var(--tfg-border); border-radius: 7px; cursor: pointer; font: inherit; }
@media (min-width: 640px) {
  .tfg-decoder__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfg-decoder__wide { grid-column: 1 / -1; }
  .tfg-decoder button[type=submit] { width: auto; min-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .tfg-decoder *, .tfg-decoder *::before, .tfg-decoder *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
