/* ==========================================================================
   Teściu — formularz kwalifikacji TRT
   ========================================================================== */
.tk-wrap {
  --tk-navy: #0D274A;
  --tk-navy-light: #153560;
  --tk-accent: #FCC000;
  --tk-accent-hover: #e5ad00;
  --tk-light: #F5F7FA;
  --tk-text: #313131;
  --tk-muted: #6B7B8D;
  --tk-line: rgba(13, 39, 74, 0.12);
  --tk-radius: 14px;
  --tk-radius-sm: 10px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tk-text);
  max-width: 760px;
  margin: 0 auto;
}

.tk-form { background: #fff; }

/* ---------- pasek postępu ---------- */
.tk-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.tk-progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tk-muted);
  padding: 10px 14px;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-light);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.tk-progress-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--tk-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tk-progress-step.is-active {
  color: var(--tk-navy);
  border-color: var(--tk-accent);
  background: rgba(252, 192, 0, 0.1);
}
.tk-progress-step.is-active span {
  background: var(--tk-accent);
  border-color: var(--tk-accent);
  color: var(--tk-navy);
}
.tk-progress-step.is-done span {
  background: var(--tk-navy);
  border-color: var(--tk-navy);
  color: #fff;
}

/* ---------- kroki ---------- */
.tk-step { display: none; animation: tkFade 0.35s ease; }
.tk-step.is-active { display: block; }
@keyframes tkFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tk-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tk-navy);
  margin: 0 0 6px;
}
.tk-step-desc {
  color: var(--tk-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ---------- ADAM ---------- */
.tk-adam { display: flex; flex-direction: column; gap: 10px; }
.tk-adam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--tk-light);
  border: 1px solid transparent;
  border-radius: var(--tk-radius-sm);
}
.tk-adam-q { font-size: 0.97rem; line-height: 1.4; }

.tk-toggle { display: flex; gap: 6px; flex-shrink: 0; }
.tk-toggle-opt { position: relative; cursor: pointer; }
.tk-toggle-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tk-toggle-opt span {
  display: block;
  min-width: 56px;
  text-align: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tk-muted);
  background: #fff;
  border: 2px solid var(--tk-line);
  transition: all 0.2s ease;
}
.tk-toggle-opt input:checked + span {
  background: var(--tk-navy);
  border-color: var(--tk-navy);
  color: #fff;
}
.tk-toggle-opt:hover span { border-color: var(--tk-navy); }

/* ---------- pola ---------- */
.tk-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tk-field { display: flex; flex-direction: column; gap: 6px; }
.tk-field-full { grid-column: 1 / -1; }
.tk-label { font-size: 0.85rem; font-weight: 600; color: var(--tk-navy); }
.tk-label em { color: var(--tk-accent-hover); font-style: normal; }
.tk-opt { font-weight: 400; color: var(--tk-muted); font-size: 0.8rem; }

.tk-field input,
.tk-field select,
.tk-input-unit input,
.tk-input-unit select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius-sm);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--tk-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tk-field input:focus,
.tk-field select:focus,
.tk-input-unit input:focus,
.tk-input-unit select:focus {
  outline: none;
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px rgba(252, 192, 0, 0.18);
}
.tk-input-unit { display: flex; gap: 8px; }
.tk-input-unit input { flex: 1; }
.tk-input-unit select { width: auto; flex-shrink: 0; }

/* ---------- kalkulator ---------- */
.tk-btn-calc {
  margin-top: 22px;
  background: var(--tk-navy);
  color: #fff;
}
.tk-btn-calc:hover { background: var(--tk-navy-light); }
.tk-btn-calc i { color: var(--tk-accent); }

.tk-calc-result {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--tk-radius);
  background: linear-gradient(160deg, var(--tk-navy) 0%, var(--tk-navy-light) 100%);
  color: #fff;
}
.tk-calc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tk-calc-cell { display: flex; flex-direction: column; gap: 4px; }
.tk-calc-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); font-weight: 700; }
.tk-calc-val { font-size: 1.05rem; font-weight: 700; }
.tk-interp-low { color: #ff8a8a; }
.tk-interp-ok { color: var(--tk-accent); }
.tk-interp-high { color: #ffd166; }
.tk-calc-note { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 14px 0 0; line-height: 1.5; }

/* ---------- box natychmiastowej kwalifikacji ---------- */
.tk-qualify {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--tk-radius);
  background: rgba(220, 53, 69, 0.07);
  border: 1px solid rgba(220, 53, 69, 0.35);
}
.tk-qualify-icon { font-size: 1.8rem; color: #dc3545; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.tk-qualify-body strong { display: block; font-size: 1.05rem; color: var(--tk-navy); margin-bottom: 6px; }
.tk-qualify-body p { margin: 0 0 16px; font-size: 0.92rem; color: var(--tk-text); line-height: 1.6; }
.tk-qualify-body .tk-btn { margin-top: 0; }

/* ---------- zgody ---------- */
.tk-consents { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.tk-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tk-text);
  cursor: pointer;
}
.tk-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--tk-navy); }
.tk-consent em { color: var(--tk-accent-hover); font-style: normal; font-weight: 700; }

/* ---------- honeypot ---------- */
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- disclaimer / error / nav ---------- */
.tk-disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--tk-muted);
  line-height: 1.5;
  padding: 14px 16px;
  background: var(--tk-light);
  border-radius: var(--tk-radius-sm);
}
.tk-error {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--tk-radius-sm);
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #b02a37;
  font-size: 0.9rem;
  font-weight: 600;
}

.tk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.tk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tk-btn-next,
.tk-btn-submit {
  background: var(--tk-accent);
  border-color: var(--tk-accent);
  color: var(--tk-navy);
}
.tk-btn-next:hover,
.tk-btn-submit:hover {
  background: var(--tk-accent-hover);
  border-color: var(--tk-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 192, 0, 0.35);
}
.tk-btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.tk-btn-ghost {
  background: transparent;
  border-color: var(--tk-line);
  color: var(--tk-navy);
}
.tk-btn-ghost:hover { border-color: var(--tk-navy); }

/* ---------- sukces ---------- */
.tk-success { text-align: center; padding: 48px 24px; }
.tk-success-icon { font-size: 3.5rem; color: #2ec27e; margin-bottom: 18px; }
.tk-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--tk-navy); margin: 0 0 12px; }
.tk-success p { color: var(--tk-muted); line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ---------- responsywność ---------- */
@media (max-width: 600px) {
  .tk-fields { grid-template-columns: 1fr; }
  .tk-calc-grid { grid-template-columns: 1fr; gap: 12px; }
  .tk-adam-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tk-toggle { width: 100%; }
  .tk-toggle-opt { flex: 1; }
  .tk-toggle-opt span { width: 100%; }
  .tk-progress-step { font-size: 0; gap: 0; padding: 10px; justify-content: center; }
  .tk-progress-step span { font-size: 0.8rem; }
  .tk-nav { flex-direction: column-reverse; }
  .tk-btn { width: 100%; justify-content: center; }
}
