.tpo-checker {
  --tpo-primary: var(--primary, #6f52ed);
  --tpo-secondary: var(--secondary, #19b6a8);
  --tpo-text: var(--white, #ffffff);
  --tpo-text-muted: rgba(255, 255, 255, 0.72);
  --tpo-surface: hsla(0, 0%, 0%, 0.2);
  --tpo-surface-strong: hsla(0, 0%, 0%, 0.38);
  --tpo-border: rgba(255, 255, 255, 0.16);
  --tpo-radius: var(--borders, 12px);
  --tpo-space-2xs: var(--space-2xs, 8px);
  --tpo-space-xs: var(--space-xs, 12px);
  --tpo-space-s: var(--space-s, 16px);
  --tpo-space-m: var(--space-m, 24px);
  --tpo-space-l: var(--space-l, 36px);
  --tpo-text-m: var(--text-m, 16px);
  color: var(--tpo-text);
  font-size: var(--tpo-text-m);
}

.tpo-checker *,
.tpo-checker *::before,
.tpo-checker *::after {
  box-sizing: border-box;
}

.tpo-checker h2,
.tpo-checker h3,
.tpo-checker h4,
.tpo-checker p {
  margin-top: 0;
}

.tpo-checker__eyebrow,
.tpo-result__eyebrow {
  display: inline-block;
  margin-bottom: var(--tpo-space-2xs);
  color: white;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpo-checker__form {
  position: relative;
}

.tpo-step {
  animation: tpoFadeIn .25s ease both;
}

.tpo-step__heading {
  display: none !important;
}

.tpo-step[hidden],
.tpo-modal[hidden],
.tpo-navigation [hidden],
.tpo-form-error[hidden] {
  display: none !important;
}

.tpo-options {
  display: grid;
  gap: var(--tpo-space-2xs);
}

.tpo-options--two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpo-options--three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpo-options--one-col {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.tpo-option {
  display: flex;
  align-items: center;
  gap: var(--tpo-space-s);
  min-width: 0;
  margin: 0;
  padding: var(--tpo-space-m);
  border: 1px solid transparent;
  border-radius: var(--tpo-radius);
  background-color: var(--tpo-surface);
  color: var(--tpo-text);
  cursor: pointer;
  line-height: 1.35;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.tpo-option span {
  color: var(--tpo-text);
}

.tpo-option:hover {
  transform: translateY(-2px);
  background-color: hsla(0, 0%, 100%, 0.09);
}

.tpo-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--tpo-secondary) 72%, white);
  background-color: var(--tpo-secondary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tpo-secondary) 55%, white);
}

.tpo-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tpo-primary);
}

.tpo-condition-progress {
  flex: 1 1 320px;
  max-width: 520px;
  margin: 0;
}

.tpo-condition-progress__message {
  margin-bottom: var(--tpo-space-xs);
  color: var(--tpo-text);
  font-size: var(--tpo-text-m);
  font-weight: 700;
}

.tpo-condition-progress__track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background-color: hsla(0, 0%, 100%, 0.15);
}

.tpo-condition-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--tpo-primary);
  transition: width .25s ease;
}

.tpo-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tpo-space-s);
  margin-top: var(--tpo-space-l);
}

.tpo-navigation__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tpo-space-s);
  flex: 0 0 auto;
}

.tpo-button,
.cta-ultimate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--tpo-radius, var(--borders, 12px));
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.tpo-button:hover,
.cta-ultimate:hover {
  transform: translateY(-2px);
}

.cta-ultimate {
  background: var(--tpo-primary, var(--primary, #6f52ed));
  color: #000;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--tpo-primary, var(--primary, #6f52ed)) 35%, transparent);
}

.cta-ultimate:hover {
  background: color-mix(in srgb, var(--tpo-primary, var(--primary, #6f52ed)) 85%, white);
}

.cta-ultimate:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.tpo-button--ghost {
  border-color: var(--tpo-border);
  background: transparent;
  color: var(--tpo-text);
}

.tpo-button--ghost:hover {
  border-color: var(--tpo-secondary);
  background: var(--tpo-surface);
}

.tpo-form-error {
  margin-top: var(--tpo-space-m);
  padding: var(--tpo-space-s);
  border-left: 3px solid #ff6b6b;
  border-radius: var(--tpo-radius);
  background: rgba(255, 107, 107, .12);
  color: #fff;
}

.tpo-result__summary,
.tpo-result__delivery,
.tpo-result__help {
  padding: var(--tpo-space-m);
  border: 1px solid var(--tpo-border);
  border-radius: var(--tpo-radius);
  background: var(--tpo-surface);
}

.tpo-result__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tpo-space-m);
  align-items: start;
  margin-bottom: var(--tpo-space-m);
}

.tpo-result__summary.is-uncertain {
  grid-template-columns: 1fr;
}

.tpo-result__summary-col {
  display: grid;
  gap: var(--tpo-space-2xs);
}

.tpo-result__summary h3 {
  margin-bottom: 0;
  color: var(--tpo-text);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.tpo-result__summary p {
  margin-bottom: 0;
  color: var(--tpo-text-muted);
  line-height: 1.45;
}

.tpo-result__document-name {
  color: var(--tpo-text);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.25;
}

.tpo-result__price {
  color: var(--tpo-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.tpo-result__delivery h4,
.tpo-result__help h4 {
  margin-bottom: 0;
  color: var(--tpo-text);
  font-size: 1.35rem;
}

.tpo-result__delivery p,
.tpo-result__help p {
  margin-bottom: 0;
  color: var(--tpo-text-muted);
}

.tpo-result__delivery {
  display: grid;
  grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr);
  gap: var(--tpo-space-m);
  margin-bottom: var(--tpo-space-m);
}

.tpo-result__delivery ul {
  display: grid;
  gap: var(--tpo-space-2xs);
  margin: var(--tpo-space-xs) 0 var(--tpo-space-s);
  padding: 0;
  list-style: none;
}

.tpo-result__delivery li {
  color: var(--tpo-text);
}

.tpo-result__actions {
  margin-bottom: var(--tpo-space-m);
}

.tpo-result__actions .cta-ultimate {
  width: 100%;
}

.tpo-result__help {
  margin-bottom: 0;
}

.tpo-result__help h4 {
  margin-bottom: var(--tpo-space-xs);
}

.tpo-result__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tpo-space-s);
  margin-top: var(--tpo-space-s);
}

.tpo-result__contact-links a {
  color: var(--tpo-text);
  font-weight: 700;
  text-decoration: none;
}

.tpo-result__contact-links a:hover {
  text-decoration: underline;
}

.tpo-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--tpo-space-m);
}

.tpo-modal__backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}

.tpo-modal__dialog {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: min(100%, 640px);
  margin: auto;
  padding: var(--tpo-space-l);
  border: 1px solid var(--tpo-border);
  border-radius: var(--tpo-radius);
  background: #171717;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.tpo-modal__dialog h3 {
  margin-bottom: var(--tpo-space-xs);
  color: var(--tpo-text);
  font-size: 1.7rem;
}

.tpo-modal__dialog > p {
  color: var(--tpo-text-muted);
}

.tpo-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.tpo-lead-form {
  display: grid;
  gap: var(--tpo-space-s);
  margin-top: var(--tpo-space-m);
}

.tpo-lead-form label {
  display: grid;
  gap: var(--tpo-space-2xs);
  color: var(--tpo-text);
  font-size: .95em;
  font-weight: 700;
}

.tpo-lead-form input:not([type="checkbox"]),
.tpo-lead-form textarea {
  width: 100%;
  border: 1px solid var(--tpo-border);
  border-radius: calc(var(--tpo-radius) * .8);
  background: hsla(0, 0%, 100%, .07);
  color: #fff;
  font: inherit;
}

.tpo-lead-form input:not([type="checkbox"]) {
  min-height: 46px;
  padding: .7rem .85rem;
}

.tpo-lead-form textarea {
  padding: .7rem .85rem;
  resize: vertical;
}

.tpo-lead-form input:focus,
.tpo-lead-form textarea:focus {
  outline: 2px solid var(--tpo-secondary);
  outline-offset: 2px;
}

.tpo-consent {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: auto 1fr;
  gap: var(--tpo-space-2xs) !important;
  color: var(--tpo-text-muted) !important;
  font-weight: 400 !important;
}

.tpo-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--tpo-primary);
}

.tpo-consent a {
  color: var(--tpo-secondary);
}

.tpo-lead-form__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--tpo-text-muted);
}

.tpo-lead-form__status.is-success {
  color: #71e6ae;
}

.tpo-lead-form__status.is-error {
  color: #ff9c9c;
}

.tpo-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes tpoFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tpo-options--three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpo-result__summary,
  .tpo-result__delivery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tpo-options--two-cols,
  .tpo-options--three-cols {
    grid-template-columns: 1fr;
  }

  .tpo-option {
    padding: var(--tpo-space-s);
  }

  .tpo-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .tpo-condition-progress {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
  }

  .tpo-navigation__buttons {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .tpo-navigation .tpo-button,
  .tpo-navigation .cta-ultimate {
    width: 100%;
  }

  .tpo-modal {
    padding: var(--tpo-space-s);
  }

  .tpo-modal__dialog {
    padding: var(--tpo-space-l) var(--tpo-space-s) var(--tpo-space-s);
  }
}

/* Kalkulačky — VSTUPY / VÝSTUP (svetlý podklad) */
.tpo-calculator {
  --tpo-calc-navy: #1b2a4a;
  --tpo-calc-muted: #5a6a85;
  --tpo-calc-accent: #e8923a;
  --tpo-calc-border: #d9dee8;
  --tpo-calc-bg: #ffffff;
  --tpo-calc-input-bg: #ffffff;
  --tpo-space-m: var(--space-m, 24px);
  --tpo-text-m: var(--text-m, 16px);
  width: 100%;
  max-width: none;
  color: var(--tpo-calc-navy);
  font-size: var(--tpo-text-m);
  background: transparent;
}

.tpo-calculator *,
.tpo-calculator *::before,
.tpo-calculator *::after {
  box-sizing: border-box;
}

.tpo-calc-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
}

.tpo-calc-panel {
  padding: 28px 28px 20px;
  border: 1px solid var(--tpo-calc-border);
  border-radius: 14px;
  background: var(--tpo-calc-bg);
  box-shadow: 0 8px 28px rgba(27, 42, 74, 0.08);
  color: var(--tpo-calc-navy);
}

.tpo-calc-panel__title {
  margin: 0 0 22px;
  color: var(--tpo-calc-navy);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpo-calc-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 18px;
}

.tpo-calc-row:last-child {
  margin-bottom: 8px;
}

.tpo-calc-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--tpo-calc-navy);
}

.tpo-calc-row__icon svg {
  width: 22px;
  height: 22px;
}

.tpo-calc-row__label {
  color: var(--tpo-calc-navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.tpo-calc-control {
  display: inline-flex;
  align-items: stretch;
  min-width: 148px;
  max-width: 100%;
  border: 1px solid var(--tpo-calc-border);
  border-radius: 8px;
  background: var(--tpo-calc-input-bg);
  overflow: hidden;
}

.tpo-calc-control--narrow {
  min-width: 96px;
  width: 96px;
}

.tpo-calc-control--period {
  min-width: 148px;
  width: 148px;
}

.tpo-calc-control input,
.tpo-calc-control select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--tpo-calc-navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.tpo-calc-control input {
  min-width: 0;
  text-align: right;
}

.tpo-calc-control__suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 4px;
  color: var(--tpo-calc-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.tpo-calc-control--period input {
  width: 48px;
  flex: 0 0 48px;
  text-align: center;
  border-right: 1px solid var(--tpo-calc-border);
}

.tpo-calc-control--period select {
  flex: 1 1 auto;
  padding-right: 28px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b2a4a' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.tpo-calc-control:focus-within {
  border-color: color-mix(in srgb, var(--tpo-calc-navy) 35%, #d9dee8);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.tpo-calc-row--output {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.tpo-calc-row__value {
  color: var(--tpo-calc-navy);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
  transition: transform 0.25s ease;
}

.tpo-calc-row__value--accent {
  color: var(--tpo-calc-accent);
}

.tpo-calc-row__value.is-updated {
  animation: tpoCalcPulse 0.45s ease;
}

.tpo-calc-row--total {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--tpo-calc-border);
}

@keyframes tpoCalcPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (max-width: 820px) {
  .tpo-calc-board {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .tpo-calc-panel {
    padding: 20px 16px 12px;
  }

  .tpo-calc-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .tpo-calc-control,
  .tpo-calc-control--narrow,
  .tpo-calc-control--period,
  .tpo-calc-row__value {
    grid-column: 2;
    justify-self: start;
    width: 100%;
    max-width: 220px;
  }

  .tpo-calc-row__value {
    text-align: left;
  }
}
