.tzv-reg-wrap {
  --tzv-navy: #15203a;
  --tzv-green: #0f8f7a;
  --tzv-green-dark: #087562;
  --tzv-gold: #f3b743;
  --tzv-soft: #f5f7fb;
  --tzv-border: rgba(21, 32, 58, 0.12);
  max-width: 1180px;
  margin: 34px auto;
  font-family: inherit;
  color: var(--tzv-navy);
}

.tzv-reg-hero {
  background: #fff;
  border: 1px solid var(--tzv-border);
  border-radius: 24px;
  padding: 34px 38px;
  box-shadow: 0 14px 34px rgba(16,24,40,0.06);
  margin-bottom: 22px;
}

.tzv-reg-eyebrow {
  margin: 0 0 10px;
  color: var(--tzv-green);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 13px;
}

.tzv-reg-hero h1,
.tzv-reg-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tzv-reg-hero p:last-child {
  margin: 0;
  max-width: 850px;
  color: #667085;
  font-size: 18px;
  line-height: 1.7;
}

.tzv-reg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 22px;
  align-items: start;
}

.tzv-reg-form,
.tzv-reg-result {
  background: #fff;
  border: 1px solid var(--tzv-border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(16,24,40,0.06);
}

.tzv-reg-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tzv-reg-field {
  min-width: 0;
}

.tzv-reg-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.tzv-reg-field input,
.tzv-reg-field select {
  width: 100%;
  min-height: 52px;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid var(--tzv-border);
  border-radius: 14px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 52px;
  background-color: #fff;
  color: var(--tzv-navy);
  vertical-align: middle;
  box-shadow: none;
}

.tzv-reg-field select {
  padding-right: 42px;
  line-height: 1.25;
}

.tzv-reg-field input:focus,
.tzv-reg-field select:focus {
  outline: 0;
  border-color: rgba(15, 143, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 143, 122, 0.10);
}

.tzv-reg-field small {
  display: block;
  margin-top: 6px;
  color: #667085;
  line-height: 1.45;
}

.tzv-reg-checks {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  background: var(--tzv-soft);
  border: 1px solid var(--tzv-border);
  border-radius: 18px;
  padding: 16px;
}

.tzv-reg-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  line-height: 1.35;
}

.tzv-reg-checks input {
  width: 18px;
  height: 18px;
}

.tzv-reg-button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--tzv-green);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.tzv-reg-button:hover {
  background: var(--tzv-green-dark);
  transform: translateY(-1px);
}

.tzv-reg-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.tzv-reg-actions .tzv-reg-button {
  grid-column: auto;
}

.tzv-reg-button-primary {
  background: var(--tzv-green);
}

.tzv-reg-button-secondary {
  background: #ffffff;
  color: var(--tzv-navy);
  border: 1px solid var(--tzv-border);
  min-width: 130px;
}

.tzv-reg-button-secondary:hover {
  background: var(--tzv-soft);
  color: var(--tzv-navy);
}

.tzv-reg-result-empty {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #667085;
  gap: 8px;
}

.tzv-reg-result-empty strong {
  color: var(--tzv-navy);
  font-size: 22px;
}

.tzv-reg-result-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: var(--tzv-green);
  font-size: 13px;
}

.tzv-reg-total {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  color: var(--tzv-navy);
  margin-bottom: 12px;
}

.tzv-reg-summary {
  margin: 0 0 18px;
  color: #667085;
  line-height: 1.6;
}

.tzv-reg-breakdown {
  display: grid;
  gap: 10px;
}

.tzv-reg-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--tzv-border);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
}

.tzv-reg-row small {
  display: block;
  color: #667085;
  margin-top: 3px;
}

.tzv-reg-row span {
  white-space: nowrap;
  font-weight: 900;
  color: var(--tzv-navy);
}

.tzv-reg-meta {
  margin-top: 16px;
  color: #667085;
  font-size: 14px;
}

.tzv-reg-warning,
.tzv-reg-disclaimer {
  margin-top: 16px;
  background: #fff8e8;
  border: 1px solid rgba(243, 183, 67, .45);
  border-radius: 16px;
  padding: 14px 16px;
  color: #6b4a00;
  line-height: 1.6;
}

.tzv-reg-disclaimer {
  margin-top: 22px;
}

.tzv-reg-error {
  background: #fff1f1;
  border: 1px solid rgba(204, 0, 0, .2);
  border-radius: 16px;
  padding: 18px;
  color: #9b1c1c;
  font-weight: 800;
}

@media (max-width: 921px) {
  .tzv-reg-grid,
  .tzv-reg-form {
    grid-template-columns: 1fr;
  }

  .tzv-reg-wrap {
    margin: 22px auto;
  }

  .tzv-reg-hero,
  .tzv-reg-form,
  .tzv-reg-result {
    padding: 22px;
    border-radius: 20px;
  }

  .tzv-reg-row {
    align-items: flex-start;
  }
}

/* v0.1.1: stabilniji prikaz polja u Astra/Gutenberg okruženju */
.tzv-reg-wrap *,
.tzv-reg-wrap *::before,
.tzv-reg-wrap *::after {
  box-sizing: border-box;
}

.tzv-reg-form select option {
  color: var(--tzv-navy);
  background: #fff;
}

.tzv-reg-form input[type=number]::-webkit-inner-spin-button,
.tzv-reg-form input[type=number]::-webkit-outer-spin-button {
  opacity: 1;
}

@media (max-width: 480px) {
  .tzv-reg-field input,
  .tzv-reg-field select {
    min-height: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
  }

  .tzv-reg-hero h1,
.tzv-reg-hero h2 {
    font-size: 34px;
  }
}


@media (max-width: 600px) {
  .tzv-reg-actions {
    grid-template-columns: 1fr;
  }

  .tzv-reg-button-secondary {
    min-width: 0;
  }
}


/* v0.2.0: status podataka i bolji prikaz rezultata */
.tzv-reg-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: #1f2a44;
  font-size: 14px;
  line-height: 1.45;
}

.tzv-reg-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.tzv-reg-status-badge.is-confirmed {
  background: rgba(15, 143, 122, 0.12);
  color: #087562;
}

.tzv-reg-status-badge.is-estimated {
  background: rgba(243, 183, 67, 0.18);
  color: #7a4f00;
}

.tzv-reg-status-badge.is-fallback {
  background: rgba(102, 112, 133, 0.12);
  color: #475467;
}

.tzv-reg-data-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.tzv-reg-meta {
  font-weight: 700;
}
