.tbf-calc,
.tbf-form,
.tbf-portal {
  --tbf-ink: #0e1114;
  --tbf-ink-2: #1b2025;
  --tbf-paper: #f4f1eb;
  --tbf-white: #fff;
  --tbf-muted: #62666a;
  --tbf-line: #dcd8d0;
  --tbf-red: #d52b1e;
  --tbf-red-dark: #b82218;
  --tbf-green: #167a52;
  --tbf-warning: #a35a00;
  --tbf-shadow: 0 22px 70px rgba(14, 17, 20, .12);
  color: var(--tbf-ink);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.tbf-calc *, .tbf-calc *::before, .tbf-calc *::after,
.tbf-form *, .tbf-form *::before, .tbf-form *::after,
.tbf-portal *, .tbf-portal *::before, .tbf-portal *::after { box-sizing: border-box; }
.tbf-calc [hidden], .tbf-form [hidden], .tbf-portal [hidden] { display: none !important; }

.tbf-calc {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto;
  border: 1px solid rgba(14, 17, 20, .1);
  border-radius: 24px;
  background: var(--tbf-white);
  box-shadow: var(--tbf-shadow);
  overflow: clip;
}

.tbf-calc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px 26px;
  background: linear-gradient(125deg, #0b0e11 0%, #151b20 70%, #25110f 100%);
  color: #fff;
}
.tbf-calc__head > div { max-width: 720px; }
.tbf-calc__head h2 { color: inherit; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.02; margin: 7px 0 10px; }
.tbf-calc__head p { color: rgba(255,255,255,.72); font-size: 15px; margin: 0; max-width: 64ch; }
.tbf-eyebrow { color: var(--tbf-red); display: inline-block; font-size: 12px; font-weight: 850; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.tbf-calc__head .tbf-eyebrow { color: #ff6c60; }
.tbf-calc__status { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 750; padding: 9px 12px; }
.tbf-calc__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e7a637; }
.tbf-calc__status.is-open::before { background: #36c789; box-shadow: 0 0 0 4px rgba(54,199,137,.15); }

.tbf-calc__progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 28px; border-bottom: 1px solid var(--tbf-line); background: #fbfaf8; }
.tbf-calc__progress span { position: relative; display: flex; align-items: center; gap: 9px; min-height: 58px; color: #8a8d90; font-size: 13px; font-weight: 750; }
.tbf-calc__progress span:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 18px; width: min(45%, 70px); height: 1px; background: var(--tbf-line); }
.tbf-calc__progress b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--tbf-line); border-radius: 50%; background: #fff; font-size: 11px; }
.tbf-calc__progress .is-active { color: var(--tbf-ink); }
.tbf-calc__progress .is-active b { border-color: var(--tbf-red); background: var(--tbf-red); color: #fff; }
.tbf-calc__progress .is-complete b { border-color: var(--tbf-green); background: var(--tbf-green); color: transparent; }
.tbf-calc__progress .is-complete b::after { content: "✓"; color: #fff; position: absolute; }

.tbf-calc__form { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }
.tbf-calc__main { position: relative; min-width: 0; padding: 30px 34px 32px; }
.tbf-step { animation: tbf-step-in .22s ease both; }
@keyframes tbf-step-in { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tbf-step fieldset { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.tbf-step legend { width: 100%; margin: 0 0 12px; color: var(--tbf-ink); font-size: clamp(18px, 2.3vw, 23px); font-weight: 850; letter-spacing: -.025em; }
.tbf-help { margin: -6px 0 13px; color: var(--tbf-muted); font-size: 13px; }

.tbf-choice-grid { display: grid; gap: 10px; }
.tbf-choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbf-choice-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbf-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.tbf-choice > input,
.tbf-tier > input,
.tbf-package > input,
.tbf-addon > input,
.tbf-chip-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tbf-choice > span { display: flex; flex-direction: column; justify-content: center; min-height: 68px; padding: 12px 15px; border: 1px solid var(--tbf-line); border-radius: 13px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.tbf-choice strong, .tbf-addon strong { color: var(--tbf-ink); font-size: 14px; line-height: 1.25; }
.tbf-choice small, .tbf-addon small { color: var(--tbf-muted); display: block; font-size: 12px; line-height: 1.35; margin-top: 3px; }
.tbf-choice:hover > span { border-color: #aaa59c; }
.tbf-choice > input:checked + span { border-color: var(--tbf-red); background: #fff8f7; box-shadow: 0 0 0 3px rgba(213,43,30,.1); }
.tbf-choice > input:focus-visible + span,
.tbf-tier > input:focus-visible ~ span,
.tbf-package > input:focus-visible ~ span,
.tbf-addon > input:focus-visible + span,
.tbf-chip-row input:focus-visible + span { outline: 3px solid rgba(213,43,30,.24); outline-offset: 2px; }

.tbf-tier-list, .tbf-package-list, .tbf-addon-list { display: grid; gap: 9px; }
.tbf-tier { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 72px; padding: 12px 15px; border: 1px solid var(--tbf-line); border-radius: 14px; cursor: pointer; transition: .16s ease; }
.tbf-tier:hover { border-color: #aaa59c; }
.tbf-tier:has(input:checked) { border-color: var(--tbf-red); background: #fff8f7; box-shadow: 0 0 0 3px rgba(213,43,30,.1); }
.tbf-tier__main strong, .tbf-package__copy strong { display: block; color: var(--tbf-ink); font-size: 15px; line-height: 1.2; }
.tbf-tier__main small, .tbf-package__copy small { display: block; color: var(--tbf-muted); font-size: 12px; line-height: 1.4; margin-top: 4px; }
.tbf-tier__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.tbf-tier__meta b { font-size: 13px; }
.tbf-tier__meta em, .tbf-package__copy em { width: fit-content; border-radius: 999px; background: var(--tbf-red); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; padding: 3px 7px; }

.tbf-package { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr); gap: 20px; align-items: center; min-height: 88px; padding: 13px 15px; border: 1px solid var(--tbf-line); border-radius: 14px; cursor: pointer; transition: .16s ease; }
.tbf-package:hover { border-color: #aaa59c; }
.tbf-package:has(input:checked) { border-color: var(--tbf-red); background: #fff8f7; box-shadow: 0 0 0 3px rgba(213,43,30,.1); }
.tbf-package__copy em { display: block; margin: 0 0 5px; }
.tbf-package__content { color: var(--tbf-muted); font-size: 12px; line-height: 1.4; }

.tbf-addon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbf-addon { position: relative; cursor: pointer; }
.tbf-addon > span { position: relative; display: block; min-height: 65px; padding: 12px 13px 12px 42px; border: 1px solid var(--tbf-line); border-radius: 12px; background: #fff; }
.tbf-addon > span::before { content: ""; position: absolute; left: 13px; top: 15px; width: 18px; height: 18px; border: 1px solid #aba79f; border-radius: 5px; background: #fff; }
.tbf-addon > input:checked + span { border-color: var(--tbf-red); background: #fff8f7; }
.tbf-addon > input:checked + span::before { content: "✓"; display: grid; place-items: center; border-color: var(--tbf-red); background: var(--tbf-red); color: #fff; font-size: 12px; font-weight: 900; }
.tbf-addon--warning > span { background: #fffaf2; }

.tbf-fields { display: grid; gap: 12px; margin: 18px 0 26px; }
.tbf-fields__full { grid-column: 1 / -1; margin: 0 0 2px; }
.tbf-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbf-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tbf-fields label, .tbf-contact-panel > label, .tbf-form > label, .tbf-portal label { display: block; color: #3f4347; font-size: 12px; font-weight: 750; }
.tbf-fields input, .tbf-fields select, .tbf-contact-panel textarea, .tbf-form input, .tbf-form select, .tbf-form textarea, .tbf-portal input, .tbf-portal textarea {
  width: 100%; min-height: 48px; margin-top: 5px; padding: 11px 12px; border: 1px solid #c9c5bd; border-radius: 10px; background: #fff; color: var(--tbf-ink); font: inherit; font-size: 15px; outline: 0;
}
.tbf-form textarea, .tbf-portal textarea { resize: vertical; }
.tbf-fields input:focus, .tbf-fields select:focus, .tbf-form input:focus, .tbf-form select:focus, .tbf-form textarea:focus, .tbf-portal input:focus, .tbf-portal textarea:focus { border-color: var(--tbf-red); box-shadow: 0 0 0 3px rgba(213,43,30,.12); }
.tbf-optional { color: var(--tbf-muted); font-size: 11px; font-weight: 500; }

.tbf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tbf-chip-row label { position: relative; cursor: pointer; }
.tbf-chip-row span { display: block; min-height: 40px; padding: 9px 13px; border: 1px solid var(--tbf-line); border-radius: 999px; color: var(--tbf-ink); font-size: 13px; font-weight: 700; }
.tbf-chip-row input:checked + span { border-color: var(--tbf-red); background: var(--tbf-red); color: #fff; }

.tbf-contact-panel { padding: 24px; border: 1px solid var(--tbf-line); border-radius: 18px; background: var(--tbf-paper); }
.tbf-contact-panel h3 { margin: 5px 0 6px; color: var(--tbf-ink); font-size: 25px; letter-spacing: -.03em; }
.tbf-contact-panel p { margin: 0; color: var(--tbf-muted); font-size: 13px; }
.tbf-check { position: relative; display: flex !important; align-items: flex-start; gap: 10px; margin: 12px 0; color: var(--tbf-ink) !important; cursor: pointer; }
.tbf-check input { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--tbf-red); }
.tbf-check span { font-size: 13px; font-weight: 500; }
.tbf-check strong, .tbf-check small { display: block; }
.tbf-check small { color: var(--tbf-muted); font-weight: 500; }
.tbf-check a { color: var(--tbf-red); font-weight: 750; }
.tbf-check--consent { margin-top: 18px; }
.tbf-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.tbf-inline-note, .tbf-legal-note { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--tbf-paper); }
.tbf-inline-note { display: flex; justify-content: space-between; gap: 16px; }
.tbf-inline-note span, .tbf-legal-note p { color: var(--tbf-muted); font-size: 13px; }
.tbf-legal-note { border-left: 3px solid var(--tbf-warning); background: #fffaf2; }
.tbf-legal-note p { margin: 4px 0 0; }

.tbf-calc__summary { position: sticky; top: 90px; min-height: 100%; padding: 30px 24px; border-left: 1px solid var(--tbf-line); background: #fbfaf8; }
.tbf-calc__summary h3 { margin: 5px 0 15px; font-size: 22px; letter-spacing: -.03em; }
.tbf-calc__summary ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tbf-calc__summary li { padding: 9px 0; border-bottom: 1px solid var(--tbf-line); color: #3e4246; font-size: 13px; }
.tbf-calc__summary li::before { content: "✓"; color: var(--tbf-green); font-weight: 900; margin-right: 8px; }
.tbf-calc__summary li.is-empty { color: var(--tbf-muted); }
.tbf-calc__summary li.is-empty::before { content: "—"; color: #aaa; }
.tbf-price-lock { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--tbf-ink); color: #fff; }
.tbf-price-lock span, .tbf-price-lock small { display: block; color: rgba(255,255,255,.62); font-size: 11px; }
.tbf-price-lock strong { display: block; margin: 3px 0; color: #fff; font-size: 18px; line-height: 1.2; }

.tbf-calc__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.tbf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.tbf-btn:hover { transform: translateY(-1px); }
.tbf-btn:focus-visible { outline: 3px solid rgba(213,43,30,.28); outline-offset: 3px; }
.tbf-btn--primary { margin-left: auto; background: var(--tbf-red); color: #fff; box-shadow: 0 8px 22px rgba(213,43,30,.18); }
.tbf-btn--primary:hover { background: var(--tbf-red-dark); color: #fff; }
.tbf-btn--ghost { border: 1px solid var(--tbf-line); background: #fff; color: var(--tbf-ink); }
.tbf-calc__error, .tbf-form__error { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #e5a099; border-radius: 10px; background: #fff3f2; color: #8e1f16; font-size: 13px; font-weight: 700; }
.tbf-form__success { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #8ac8ae; border-radius: 10px; background: #effaf5; color: #0d6843; font-size: 13px; font-weight: 700; }
.tbf-calc__result { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; padding: 22px; border: 1px solid #8ac8ae; border-radius: 16px; background: #effaf5; }
.tbf-result__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tbf-green); color: #fff; font-weight: 900; }
.tbf-calc__result h3 { margin: 5px 0 15px; font-size: 22px; }
.tbf-calc__result ul { margin: 0; padding: 0; list-style: none; }
.tbf-calc__result li { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid rgba(22,122,82,.18); font-size: 13px; }
.tbf-result__total { display: flex; justify-content: space-between; gap: 16px; margin-top: 15px; font-size: 18px; font-weight: 850; }
.tbf-result__total strong { color: var(--tbf-red); }
.tbf-calc__result p { color: var(--tbf-muted); font-size: 12px; }
.tbf-result__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; margin-top: 10px; padding: 11px 16px; border-radius: 10px; background: var(--tbf-red); color: #fff !important; font-size: 13px; font-weight: 850; text-decoration: none !important; }
.tbf-result__call:hover { background: var(--tbf-red-dark); color: #fff; }
.tbf-result__callback { margin-top: 13px; padding: 11px 13px; border-radius: 10px; background: rgba(22,122,82,.09); }
.tbf-result__callback strong, .tbf-result__callback span { display: block; }
.tbf-result__callback span { color: var(--tbf-muted); font-size: 12px; }
.tbf-calc.is-loading::after, .tbf-calc__form.is-loading::after, .tbf-form.is-loading::after, .tbf-portal form.is-loading::after { content: "Küldés…"; position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(255,255,255,.82); color: var(--tbf-ink); font-weight: 850; backdrop-filter: blur(2px); }
.tbf-calc.is-loading, .tbf-calc__form.is-loading, .tbf-form.is-loading, .tbf-portal form.is-loading { position: relative; }

.tbf-mobile-bar { display: none; }
.tbf-opening-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.tbf-opening-status > span[aria-hidden="true"] { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #e7a637; }
.tbf-opening-status.is-open > span[aria-hidden="true"] { background: var(--tbf-green); }

@media (max-width: 880px) {
  .tbf-calc { width: min(100% - 20px, 720px); margin: 24px auto; border-radius: 18px; }
  .tbf-calc__head { padding: 24px 22px; }
  .tbf-calc__status { display: none; }
  .tbf-calc__progress { padding: 0 18px; }
  .tbf-calc__progress span { min-height: 50px; font-size: 0; }
  .tbf-calc__progress span b { font-size: 11px; }
  .tbf-calc__progress span:not(:last-child)::after { right: 10px; width: calc(100% - 48px); }
  .tbf-calc__form { display: block; }
  .tbf-calc__main { padding: 22px 20px 16px; }
  .tbf-calc__summary { position: static; min-height: 0; padding: 18px 20px; border-top: 1px solid var(--tbf-line); border-left: 0; }
  .tbf-calc__summary h3, .tbf-calc__summary > .tbf-eyebrow { display: none; }
  .tbf-calc__summary ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .tbf-price-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; }
  .tbf-price-lock small { display: none; }
  .tbf-price-lock strong { font-size: 15px; text-align: right; }
}

@media (max-width: 620px) {
  .tbf-calc__head h2 { font-size: 29px; }
  .tbf-calc__head p { font-size: 13px; }
  .tbf-choice-grid--2, .tbf-choice-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbf-addon-list, .tbf-fields--2, .tbf-fields--3 { grid-template-columns: 1fr; }
  .tbf-choice > span { min-height: 58px; padding: 10px 11px; }
  .tbf-choice strong { font-size: 12px; }
  .tbf-choice small { font-size: 10px; }
  .tbf-tier { gap: 10px; min-height: 68px; padding: 11px 12px; }
  .tbf-tier__meta em { display: none; }
  .tbf-package { grid-template-columns: 1fr; gap: 5px; min-height: 76px; }
  .tbf-package__content { padding-top: 5px; border-top: 1px solid var(--tbf-line); }
  .tbf-contact-panel { padding: 18px 15px; }
  .tbf-calc__nav { margin-bottom: 0; }
  .tbf-calc__summary { display: none; }
  .tbf-mobile-bar { position: sticky; bottom: 8px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 20px); margin: 0 10px 10px; padding: 9px 10px 9px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(14,17,20,.96); box-shadow: 0 12px 36px rgba(14,17,20,.28); color: #fff; backdrop-filter: blur(12px); }
  .tbf-mobile-bar span { min-width: 0; }
  .tbf-mobile-bar small, .tbf-mobile-bar strong { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbf-mobile-bar small { color: rgba(255,255,255,.58); font-size: 10px; }
  .tbf-mobile-bar strong { font-size: 12px; }
  .tbf-mobile-bar button { flex: 0 0 auto; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--tbf-red); color: #fff; font-weight: 850; }
  .tbf-calc__nav [data-next], .tbf-calc__nav [data-submit] { visibility: hidden; pointer-events: none; }
  .tbf-inline-note { display: block; }
  .tbf-inline-note span { display: block; margin-top: 4px; }
  .tbf-calc__result { grid-template-columns: 1fr; }
  .tbf-calc__result li, .tbf-result__total { display: block; }
  .tbf-calc__result li strong, .tbf-result__total strong { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .tbf-calc *, .tbf-form *, .tbf-portal * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
