:root {
  --tcr-green: #0f5132;
  --tcr-green-soft: #1b7a4b;
  --tcr-accent: #c8a24a;
  --tcr-card: #ffffff;
  --tcr-muted: #64748b;
  --tcr-radius: 16px;
  --tcr-shadow: 0 10px 40px rgba(15, 81, 50, 0.1);
}

body.tcr-body {
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 45%, #fffbeb 100%);
  min-height: 100vh;
}

.reg-top-panel .title-slot h1 {
  color: var(--tcr-green);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  margin: 0;
}

.tcr-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.tcr-steps {
  display: flex;
  gap: 8px;
  margin: 20px 0 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tcr-step-dot {
  flex: 1;
  min-width: 56px;
  text-align: center;
}

.tcr-step-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--tcr-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.tcr-step-dot small {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--tcr-muted);
  line-height: 1.2;
}

.tcr-step-dot.is-active span,
.tcr-step-dot.is-done span {
  background: var(--tcr-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 81, 50, 0.25);
}

.tcr-step-dot.is-done span {
  background: var(--tcr-accent);
  color: var(--tcr-green);
}

.tcr-card {
  background: var(--tcr-card);
  border-radius: var(--tcr-radius);
  box-shadow: var(--tcr-shadow);
  padding: 24px 20px;
  border: 1px solid rgba(15, 81, 50, 0.07);
}

.tcr-card h2 {
  margin: 0 0 6px;
  color: var(--tcr-green);
  font-size: 1.25rem;
}

.tcr-card .tcr-lead {
  margin: 0 0 20px;
  color: var(--tcr-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tcr-stage {
  display: none;
}

.tcr-stage.is-visible {
  display: block;
}

#stage1.tcr-card {
  position: relative;
}

.tcr-field {
  margin-bottom: 16px;
}

.tcr-field label {
  display: block;
  font-weight: 600;
  color: var(--tcr-green);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.tcr-field input,
.tcr-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tcr-field input:focus,
.tcr-field select:focus {
  outline: none;
  border-color: var(--tcr-green);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}

.tcr-field select:disabled {
  background: #f1f5f9;
  color: var(--tcr-muted);
  cursor: not-allowed;
}

.tcr-field-error {
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
}

.tcr-field-error.hidden {
  display: none;
}

.tcr-field input.tcr-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.tcr-field--mobile {
  margin-bottom: 0;
}

.tcr-mobile-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.tcr-mobile-row input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.tcr-mobile-row .tcr-btn--verify {
  flex: 0 0 auto;
  min-width: 128px;
  max-width: 148px;
  padding: 12px 18px;
  white-space: nowrap;
}

.tcr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  justify-content: flex-end;
}

.tcr-actions--nav {
  justify-content: space-between;
}

.tcr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tcr-btn:active {
  transform: scale(0.98);
}

.tcr-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tcr-btn--primary {
  background: linear-gradient(135deg, var(--tcr-green), var(--tcr-green-soft));
  color: #fff;
  box-shadow: 0 6px 20px rgba(15, 81, 50, 0.25);
}

.tcr-icon-prev,
.tcr-icon-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tcr-icon-next {
  border: none;
  background: var(--tcr-green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 81, 50, 0.3);
}

.tcr-icon-prev {
  border: 2px solid rgba(15, 81, 50, 0.2);
  background: #fff;
  color: var(--tcr-green);
  box-shadow: 0 4px 16px rgba(15, 81, 50, 0.1);
  transition: background 0.15s, border-color 0.15s;
}

.tcr-icon-prev:hover {
  background: #f8fafc;
  border-color: var(--tcr-green);
}

.tcr-btn--verify.is-loading,
.tcr-btn.is-loading {
  pointer-events: none;
}

.tcr-btn--verify .tcr-verify-loading,
.tcr-btn .tcr-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tcr-btn--verify .tcr-verify-loading.hidden,
.tcr-btn--verify.is-loading .tcr-verify-label,
.tcr-btn .tcr-submit-loading.hidden,
.tcr-btn.is-loading .tcr-submit-label {
  display: none;
}

.tcr-btn--verify.is-loading .tcr-verify-loading,
.tcr-btn.is-loading .tcr-submit-loading {
  display: inline-flex;
}

.tcr-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tcr-spin 0.7s linear infinite;
}

.tcr-verify-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--tcr-radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.tcr-verify-overlay.hidden {
  display: none;
}

.tcr-verify-overlay__box {
  text-align: center;
  padding: 24px;
}

.tcr-verify-overlay__box p {
  margin: 14px 0 0;
  color: var(--tcr-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.tcr-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid rgba(15, 81, 50, 0.15);
  border-top-color: var(--tcr-green);
  border-radius: 50%;
  animation: tcr-spin 0.75s linear infinite;
}

@keyframes tcr-spin {
  to {
    transform: rotate(360deg);
  }
}

.tcr-result-modal {
  text-align: center;
  max-width: 380px;
}

.tcr-result-modal__icon {
  display: block;
  font-size: 2.75rem;
  margin-bottom: 12px;
}

.tcr-result-modal__icon--success {
  color: var(--tcr-green-soft);
}

.tcr-result-modal__icon--info {
  color: var(--tcr-accent);
}

.tcr-result-modal__text {
  margin: 0 0 20px;
  color: var(--tcr-green);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .tcr-mobile-row {
    flex-direction: column;
  }

  .tcr-mobile-row .tcr-btn--verify {
    max-width: none;
    width: 100%;
  }

  .tcr-step-dot small {
    font-size: 0.6rem;
  }
}
