/* Trainer fee claim page (/trainer-claim). Loaded after styles.css, from views/trainer-claim.ejs. */

.tc-hero,
.tc-body {
  --tc-navy: #003f69;
  --tc-navy-deep: #06294a;
  --tc-gold: #f2b705;
  --tc-ink: #1d2b3a;
  --tc-muted: #5b6b7b;
  --tc-line: #d5dfe9;
  --tc-tint: #f3f7fb;
  --tc-red: #b42318;
  --tc-green: #12805c;
}

.tc-hero { position: relative; overflow: hidden; padding: 34px 0 120px; background: linear-gradient(135deg, var(--tc-navy-deep), var(--tc-navy)); color: #fff; }
.tc-hero::after { content: ""; position: absolute; right: -140px; top: -40px; width: 520px; height: 520px; border: 70px solid rgba(255, 255, 255, 0.05); border-radius: 50%; pointer-events: none; }
.tc-hero .shell { position: relative; z-index: 1; }
.tc-breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.tc-breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.tc-eyebrow { display: flex; align-items: center; gap: 12px; margin: 30px 0 10px; color: var(--tc-gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.tc-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--tc-gold); }
.tc-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; }
.tc-lead { max-width: 640px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }

.tc-body { padding-bottom: 72px; background: var(--tc-tint); }
.tc-card { position: relative; z-index: 2; max-width: 880px; margin: -84px auto 0; padding: 30px 34px; border: 1px solid var(--tc-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -26px rgba(6, 41, 74, 0.5); }

.tc-alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: var(--tc-red); font-weight: 700; }

.tc-step { margin: 0 0 26px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--tc-line); }
.tc-step legend { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0; color: var(--tc-navy); font-size: 1.12rem; font-weight: 800; }
.tc-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-navy); color: var(--tc-gold); font-size: 0.85rem; }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.tc-wide { grid-column: 1 / -1; }

.tc-field { display: grid; gap: 6px; align-content: start; }
.tc-field > span, .tc-field > label, .tc-label { color: var(--tc-ink); font-size: 0.88rem; font-weight: 700; }
.tc-field i { color: var(--tc-red); font-style: normal; }
.tc-field small, .tc-hint { color: var(--tc-muted); font-size: 0.8rem; }
.tc-hint { margin: -6px 0 14px; font-size: 0.9rem; }
.tc-field input, .tc-field select, .tc-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--tc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tc-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tc-field textarea { min-height: 64px; resize: vertical; }
.tc-field input:focus, .tc-field select:focus, .tc-field textarea:focus { outline: none; border-color: var(--tc-navy); box-shadow: 0 0 0 3px rgba(0, 63, 105, 0.14); }
.tc-field [aria-invalid="true"] { border-color: var(--tc-red); }
.tc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: 0.04em; }
.tc-error { margin: 0; color: var(--tc-red); font-size: 0.82rem; font-weight: 600; }

.tc-money { display: flex; }
.tc-money select { width: 92px; flex: none; border-radius: 10px 0 0 10px; border-right: 0; background: var(--tc-tint); font-weight: 700; }
.tc-money input { border-radius: 0 10px 10px 0; font-weight: 700; }

.tc-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--tc-line); border-radius: 12px; background: var(--tc-tint); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.tc-file:hover, .tc-file:focus-within { border-color: var(--tc-navy); }
.tc-file.has-file { border-style: solid; border-color: var(--tc-green); background: #e9f6f0; }
.tc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tc-file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--tc-navy); }
.tc-file-svg { width: 22px; height: 22px; }
.tc-file-text { display: grid; gap: 2px; min-width: 0; }
.tc-file-text strong { overflow: hidden; color: var(--tc-navy); text-overflow: ellipsis; white-space: nowrap; }

.tc-step > .tc-field + .tc-field { margin-top: 16px; }
.tc-sign { position: relative; height: 190px; border: 1px solid var(--tc-line); border-radius: 12px; background: #fff; overflow: hidden; }
.tc-sign.is-invalid { border-color: var(--tc-red); }
.tc-sign canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.tc-sign-line { position: absolute; left: 22px; right: 22px; bottom: 44px; padding-top: 6px; border-top: 1px dashed #b9c6d3; color: #8a99a8; font-size: 0.78rem; pointer-events: none; transition: opacity 0.2s; }
.tc-sign.has-ink .tc-sign-line { opacity: 0.35; }
.tc-clear { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 6px 12px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff; color: var(--tc-navy); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.tc-clear:hover { border-color: var(--tc-navy); }

.tc-declare { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-tint); color: var(--tc-ink); font-size: 0.93rem; line-height: 1.5; cursor: pointer; }
.tc-declare.is-invalid { border-color: var(--tc-red); }
.tc-declare input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tc-navy); }
.tc-declare + .tc-error { margin-top: 6px; }

.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.tc-actions p { margin: 0; color: var(--tc-muted); font-size: 0.85rem; }
.tc-submit { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px 0 26px; border: 0; border-radius: 999px; background: var(--tc-gold); color: #16202b; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(190, 140, 0, 0.9); transition: transform 0.15s, background-color 0.15s; }
.tc-submit:hover { background: #ffc61a; }
.tc-submit:active { transform: scale(0.97); }
.tc-submit:disabled { opacity: 0.7; cursor: progress; }
.tc-submit-arrow { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: #16202b; color: var(--tc-gold); }
.tc-submit:focus-visible, .tc-clear:focus-visible { outline: 3px solid var(--tc-navy); outline-offset: 3px; }

.tc-done { text-align: center; }
.tc-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: #e4f5ee; color: var(--tc-green); }
.tc-done-svg { width: 30px; height: 30px; }
.tc-done h2 { margin: 6px 0 10px; color: var(--tc-navy); }
.tc-done p { max-width: 520px; margin: 0 auto 10px; color: var(--tc-ink); }
.tc-link { display: inline-block; margin-top: 8px; color: var(--tc-navy); font-weight: 700; }

@media (max-width: 700px) {
  .tc-hero { padding: 24px 0 104px; }
  .tc-card { padding: 22px 18px; border-radius: 14px; }
  .tc-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-sign { height: 170px; }
  .tc-submit { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-submit, .tc-file, .tc-field input { transition: none; }
}
