/* Theatre & Orchestra Tax Relief data tool.
   UI styled to the Baker Richards "Uplift" brand, mirroring the Across the
   Board plugin: warm off-white, indigo + coral, Poppins, no build step. */

.trdt {
  --bg: #f5f2ee;
  --surface: #ffffff;
  --card: #ffffff;
  --card-alt: #faf8f4;
  --brand: #46538a;
  --brand-soft: rgba(70, 83, 138, 0.10);
  --accent: #f85e82;
  --accent-ink: #e23f67;
  --accent-soft: rgba(248, 94, 130, 0.12);
  --good: #2f9e6f;
  --good-soft: rgba(47, 158, 111, 0.12);
  --bad: #b1543a;
  --bad-soft: rgba(177, 84, 58, 0.10);
  --warn: #a0763f;
  --muted: #6b6256;
  --line: #e6ded3;
  --text: #141004;
  --shadow: 0 8px 24px rgba(20, 16, 4, 0.08);
  --shadow-sm: 0 3px 10px rgba(20, 16, 4, 0.06);
  --radius: 14px;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 70vh;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 30%);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  border-radius: var(--radius);
  overflow: hidden auto;
}
.trdt *, .trdt *::before, .trdt *::after { box-sizing: border-box; }
.trdt h1, .trdt h2, .trdt h3, .trdt p, .trdt li, .trdt label {
  color: var(--text); margin: 0; -webkit-text-fill-color: currentColor;
}
.trdt-accent { color: var(--accent); }

/* ── Stepper ─────────────────────────────────────────────────────────────── */
.trdt-session {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 20px;
  background: var(--brand-soft); border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.trdt-session__who { color: var(--muted); min-width: 0; }
.trdt-session__label { color: var(--muted); }
.trdt-session__name { color: var(--brand); font-weight: 600; word-break: break-word; }
.trdt-session__logout {
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--accent-ink); background: transparent;
  border: 1px solid var(--accent); border-radius: 999px; padding: 6px 16px;
  transition: background 0.15s, color 0.15s;
}
.trdt-session__logout:hover { background: var(--accent); color: #fff; }

.trdt-steps {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 18px 20px 0;
}
.trdt-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.trdt-step__dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.trdt-step.is-active .trdt-step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.trdt-step.is-done .trdt-step__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.trdt-step.is-active { color: var(--accent-ink); }
.trdt-step__sep { width: 16px; height: 1px; background: var(--line); }

/* ── Screens ─────────────────────────────────────────────────────────────── */
.trdt-screen {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px 26px 44px; text-align: center;
}
/* Only animate when arriving at a new step, not on every in-screen re-render
   (e.g. ticking a survey option), which otherwise causes a distracting flash. */
.trdt-screen.is-enter { animation: trdt-fade 0.4s ease both; }
@keyframes trdt-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trdt-screen--center { justify-content: center; min-height: 320px; }
.trdt-verify__icon { font-size: 44px; line-height: 1; }
.trdt-verify__spin { display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 600; }

.trdt-kicker {
  text-transform: uppercase; letter-spacing: 3px;
  font-size: clamp(11px, 1.3vw, 14px); color: var(--accent-ink); font-weight: 600;
}
.trdt-title {
  font-weight: 700; font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.01em; color: var(--brand);
}
.trdt-h2 { font-weight: 600; font-size: clamp(22px, 3vw, 34px); color: var(--brand); max-width: 22ch; }
.trdt-lede { font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.55; max-width: 60ch; }
.trdt-muted { color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.trdt-btn {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.02rem;
  padding: 13px 30px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.trdt-btn:hover { transform: translateY(-2px); background: var(--accent-ink); box-shadow: 0 10px 24px rgba(248, 94, 130, 0.32); }
.trdt-btn:active { transform: none; }
.trdt-btn--lg { font-size: 1.2rem; padding: 16px 40px; }
.trdt-btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.trdt-btn--ghost:hover { background: var(--brand-soft); box-shadow: none; }
.trdt-btn.is-disabled, .trdt-btn:disabled { opacity: 0.5; pointer-events: none; }

.trdt-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.trdt-form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.trdt-field { display: flex; flex-direction: column; gap: 6px; }
.trdt-field label { font-weight: 600; font-size: 0.92rem; color: var(--brand); }
.trdt-field input {
  font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--text);
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.trdt-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trdt-field input::placeholder { color: var(--muted); opacity: 0.7; }
.trdt-field__hint { font-size: 0.78rem; color: var(--muted); }

/* ── Choice cards (scheme selection / file picker) ───────────────────────── */
.trdt-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; }
.trdt-choice {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.trdt-choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.trdt-choice.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.trdt-choice__radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center;
}
.trdt-choice.is-selected .trdt-choice__radio { border-color: var(--accent); }
.trdt-choice.is-selected .trdt-choice__radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.trdt-choice__title { font-weight: 600; font-size: 1.08rem; color: var(--brand); }
.trdt-choice__desc { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ── Download cards ──────────────────────────────────────────────────────── */
.trdt-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; width: 100%; max-width: 760px; }
.trdt-dl {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.trdt-dl--primary { border-top: 4px solid var(--accent); }
.trdt-dl--guide { border-top: 4px solid var(--brand); }
.trdt-dl__icon { font-size: 1.6rem; }
.trdt-dl__title { font-weight: 600; font-size: 1.16rem; color: var(--brand); }
.trdt-dl__desc { font-size: 0.9rem; color: var(--muted); line-height: 1.45; flex: 1 1 auto; }
.trdt-dl .trdt-btn { align-self: flex-start; }
.trdt-dl__deflink { align-self: flex-start; font-size: 0.82rem; color: var(--accent-ink); text-decoration: underline; margin-top: -2px; }
.trdt-dl__deflink:hover { color: var(--accent); }
.trdt-dl--guide .trdt-btn { background: var(--brand); border-color: var(--brand); }
.trdt-dl--guide .trdt-btn:hover { background: #3a456f; box-shadow: 0 8px 20px rgba(70, 83, 138, 0.3); }

/* ── "Filled in your spreadsheet?" upload prompt ─────────────────────────── */
.trdt-uploadcta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  width: 100%; max-width: 760px; margin: 0 auto; text-align: left;
  padding: 22px 24px; border: 1px solid var(--accent);
  border-left: 5px solid var(--accent); border-radius: var(--radius);
  background: var(--accent-soft); box-shadow: var(--shadow-sm);
}
.trdt-uploadcta__title { font-weight: 700; font-size: 1.3rem; color: var(--accent-ink); margin: 0; }
.trdt-uploadcta__desc { font-size: 0.95rem; color: var(--muted); line-height: 1.45; margin: 0; }
.trdt-uploadcta .trdt-btn { align-self: flex-start; margin-top: 2px; }

/* ── Notes / callouts ────────────────────────────────────────────────────── */
.trdt-note {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 14px 18px; border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 0 10px 10px 0; text-align: left;
  box-shadow: var(--shadow-sm); font-size: 0.95rem; line-height: 1.5;
}
.trdt-note--error { border-color: var(--bad); background: var(--bad-soft); }
.trdt-note--ok { border-color: var(--good); background: var(--good-soft); }
.trdt-note--info { border-color: var(--brand); background: var(--brand-soft); }
.trdt-note a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.trdt-note a:hover { color: var(--accent-ink); }

/* ── File input ──────────────────────────────────────────────────────────── */
.trdt-file {
  width: 100%; max-width: 560px; padding: 26px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--card-alt); cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease;
}
.trdt-file:hover, .trdt-file.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.trdt-file input[type=file] { display: none; }
.trdt-file__label { font-weight: 600; color: var(--brand); }
.trdt-file__name { margin-top: 8px; font-size: 0.9rem; color: var(--accent-ink); font-weight: 600; }

.trdt-file__hint2 { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

/* ── Chosen file list (multi-upload) ─────────────────────────────────────── */
.trdt-filelist { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.trdt-filelist__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-sm);
}
.trdt-filelist__name { font-size: 0.9rem; color: var(--brand); font-weight: 600; word-break: break-all; }
.trdt-filelist__remove {
  flex: 0 0 auto; font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--bad); border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.trdt-filelist__remove:hover { border-color: var(--bad); background: var(--bad-soft); }

/* ── Previously uploaded files (view / delete) ───────────────────────────── */
.trdt-uploads {
  width: 100%; max-width: 760px; margin: 0 0 8px;
  padding: 16px 18px; background: var(--card-alt);
  border: 1px solid var(--line); border-radius: 12px;
}
.trdt-uploads__title { font-size: 1rem; color: var(--brand); font-weight: 700; margin: 0 0 2px; }
.trdt-upload {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.trdt-upload:first-of-type { margin-top: 8px; }
.trdt-upload__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trdt-upload__badge {
  flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.trdt-upload__badge.is-ok { background: var(--good-soft); color: var(--good); }
.trdt-upload__badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.trdt-upload__meta { min-width: 0; }
.trdt-upload__name { font-size: 0.9rem; color: var(--brand); font-weight: 600; word-break: break-all; }
.trdt-upload__sub { font-size: 0.78rem; color: var(--muted); }
.trdt-upload__del {
  flex: 0 0 auto; font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--bad); border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.trdt-upload__del:hover { border-color: var(--bad); background: var(--bad-soft); }
.trdt-upload__del[disabled] { opacity: 0.6; cursor: default; }

/* ── Per-file upload results ─────────────────────────────────────────────── */
.trdt-results { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.trdt-result {
  padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: left;
}
.trdt-result__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trdt-result__badge {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.trdt-result__badge.is-ok { background: var(--good-soft); color: var(--good); }
.trdt-result__badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.trdt-result__badge.is-warn { background: rgba(160, 118, 63, 0.14); color: var(--warn); }
.trdt-result__file { font-weight: 600; color: var(--brand); word-break: break-all; }
.trdt-result__count { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.trdt-result .trdt-errors { margin-top: 10px; }
.trdt-zeroblanks__intro { margin: 10px 0 4px; font-size: 0.9rem; color: var(--warn); }

/* ── Error list ──────────────────────────────────────────────────────────── */
.trdt-errors { width: 100%; max-width: 760px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.trdt-error-row {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
}
.trdt-error-row__where {
  font-weight: 600; color: var(--bad);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.trdt-error-row__msg { font-size: 0.9rem; line-height: 1.45; }

/* ── Receipt / summary ───────────────────────────────────────────────────── */
.trdt-receipt {
  width: 100%; max-width: 520px; text-align: left;
  padding: 22px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.trdt-receipt dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.trdt-receipt dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.trdt-receipt dd { margin: 0; font-weight: 600; color: var(--brand); word-break: break-word; }

/* ── Privacy + consent ───────────────────────────────────────────────────── */
.trdt-privacy {
  width: 100%; max-width: 520px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 6px 14px; box-shadow: var(--shadow-sm);
}
.trdt-privacy__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; padding: 12px 14px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-ink);
}
.trdt-privacy__chev { font-size: 1.1rem; line-height: 1; }
.trdt-privacy__body { padding: 0 14px 6px; }
.trdt-privacy__body p { font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin-bottom: 8px; }
.trdt-privacy__body a { color: var(--accent-ink); font-weight: 600; }
.trdt-consent {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 4px; cursor: pointer;
  font-size: 0.86rem; line-height: 1.45; color: var(--text);
}
.trdt-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.trdt-footer {
  padding: 16px 24px 22px; text-align: center; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--line); line-height: 1.5;
}
.trdt-footer a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.trdt-footer a:hover { text-decoration: underline; }
.trdt-footer__help { margin-bottom: 6px; font-weight: 500; color: var(--text); }
.trdt-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.trdt-link:hover { text-decoration: underline; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.trdt-spinner { display: inline-flex; gap: 6px; }
.trdt-spinner i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; animation: trdt-bounce 1.1s ease-in-out infinite; }
.trdt-spinner i:nth-child(2) { animation-delay: 0.15s; }
.trdt-spinner i:nth-child(3) { animation-delay: 0.3s; }
@keyframes trdt-bounce { 0%,80%,100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-7px); opacity: 1; } }

/* ── Start menu (task list) ──────────────────────────────────────────────── */
.trdt-tasks { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; }
.trdt-task {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.trdt-task:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.trdt-task.is-done { border-color: var(--good); background: var(--good-soft); }
.trdt-task.is-done:hover { border-color: var(--good); }
.trdt-task.is-locked { cursor: default; opacity: 0.7; background: var(--card-alt); }
.trdt-task.is-locked:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-sm); }
.trdt-task__status {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--brand);
}
.trdt-task.is-done .trdt-task__status { background: var(--good); }
.trdt-task.is-locked .trdt-task__status { background: var(--muted); font-size: 1rem; }
.trdt-task__body { flex: 1 1 auto; }
.trdt-task__title { font-weight: 600; font-size: 1.12rem; color: var(--brand); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trdt-task__desc { font-size: 0.9rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.trdt-task__tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}
.trdt-task__tag.is-done { background: var(--good-soft); color: var(--good); }
.trdt-task__chev { flex-shrink: 0; font-size: 1.3rem; color: var(--accent); }

.trdt-secondary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  width: 100%; max-width: 620px; margin-top: 4px;
}
.trdt-secondary__label { font-size: 0.85rem; color: var(--muted); }
.trdt-linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: var(--brand);
  text-decoration: underline; font-weight: 500;
}
.trdt-linkbtn:hover { color: var(--accent-ink); }

.trdt-survey__count {
  text-transform: none; letter-spacing: normal;
  font-size: clamp(13px, 1.4vw, 15px); color: var(--accent-ink); font-weight: 600;
}

/* ── Survey progress indicator ───────────────────────────────────────────── */
.trdt-pp { width: 100%; max-width: 560px; margin: 2px auto 0; display: flex; flex-direction: column; gap: 10px; }
.trdt-pp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.trdt-pp__count { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.trdt-pp__now { font-size: 0.85rem; color: var(--brand); font-weight: 600; text-align: right; }
.trdt-pp__track { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.trdt-pp__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.35s ease; }
.trdt-pp__steps { display: flex; justify-content: space-between; gap: 6px; }
.trdt-pp__step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1 1 0; min-width: 0; text-align: center; }
.trdt-pp__dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.trdt-pp__step.is-current .trdt-pp__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.trdt-pp__step.is-done .trdt-pp__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.trdt-pp__lbl { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.trdt-pp__step.is-current .trdt-pp__lbl { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 520px) {
  .trdt-pp__lbl { display: none; }
  .trdt-pp__now { display: none; }
}

/* ── Survey ──────────────────────────────────────────────────────────────── */
.trdt-survey { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 680px; text-align: left; }
.trdt-survey__section { border-top: 1px solid var(--line); padding-top: 16px; }
.trdt-survey__sectiontitle { font-weight: 700; font-size: 1.2rem; color: var(--brand); }
.trdt-survey__q { display: flex; flex-direction: column; gap: 8px; }
.trdt-survey__q.has-error { border-left: 3px solid var(--bad); padding-left: 14px; }
.trdt-survey__label { font-weight: 600; font-size: 1.02rem; color: var(--text); }
.trdt-req { color: var(--accent-ink); }
.trdt-optional { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.trdt-survey__help { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.trdt-survey__controls { display: flex; flex-direction: column; gap: 8px; }
.trdt-survey__err { font-size: 0.85rem; color: var(--bad); font-weight: 600; }

.trdt-opt {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: 0.95rem; transition: border-color 0.15s ease, background 0.15s ease;
}
.trdt-opt:hover { border-color: var(--accent); }
.trdt-opt.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.trdt-opt.is-disabled { opacity: 0.45; cursor: not-allowed; }
.trdt-opt.is-disabled:hover { border-color: var(--line); }
.trdt-opt input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.trdt-opt__other {
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; color: var(--text);
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  outline: none; margin-left: 28px;
}
.trdt-opt__other:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.trdt-survey__q input[type="text"],
.trdt-survey__q textarea {
  font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--text);
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; outline: none; width: 100%; resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.trdt-survey__q input[type="text"]:focus,
.trdt-survey__q textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.trdt-grid { border-collapse: collapse; width: 100%; }
.trdt-grid th, .trdt-grid td { border: 1px solid var(--line); padding: 8px; text-align: center; font-size: 0.88rem; }
.trdt-grid thead th { background: var(--card-alt); color: var(--brand); font-weight: 600; vertical-align: bottom; }
.trdt-grid__rowlabel { text-align: left; background: var(--card-alt); color: var(--text); font-weight: 600; }
.trdt-grid input {
  width: 100%; max-width: 90px; font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  padding: 8px; border: 1px solid var(--line); border-radius: 8px; outline: none; text-align: center;
}
.trdt-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

@media (max-width: 560px) {
  .trdt-step__label { display: none; }
  .trdt-receipt dl { grid-template-columns: 1fr; }
  .trdt-grid, .trdt-grid thead, .trdt-grid tbody, .trdt-grid th, .trdt-grid td, .trdt-grid tr { display: block; }
  .trdt-grid thead { display: none; }
  .trdt-grid__rowlabel { border-bottom: none; }
  .trdt-grid td { display: flex; justify-content: space-between; align-items: center; }
  .trdt-grid td::before { content: attr(data-label); font-size: 0.8rem; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .trdt-screen, .trdt-spinner i { animation: none; }
}
