/**
 * Personality Test — full redesign
 * Visibility: one panel at a time via #pt-app[data-pt-step]. No JS needed for initial view.
 */
.pt-page .page-content {
  padding-bottom: var(--app-space-xl);
}

.pt-app {
  max-width: 560px;
  margin: 0 auto;
}

/* Panel visibility: only the active step is visible. Default data-pt-step="exam" in HTML. */
#pt-app[data-pt-step="exam"] #pt-panel-exam-info,
#pt-app[data-pt-step="exam"] #pt-panel-questions,
#pt-app[data-pt-step="exam"] #pt-panel-results {
  display: none !important;
}
#pt-app[data-pt-step="exam-info"] #pt-panel-exam,
#pt-app[data-pt-step="exam-info"] #pt-panel-questions,
#pt-app[data-pt-step="exam-info"] #pt-panel-results {
  display: none !important;
}
#pt-app[data-pt-step="questions"] #pt-panel-exam,
#pt-app[data-pt-step="questions"] #pt-panel-exam-info,
#pt-app[data-pt-step="questions"] #pt-panel-results {
  display: none !important;
}
#pt-app[data-pt-step="results"] #pt-panel-exam,
#pt-app[data-pt-step="results"] #pt-panel-exam-info,
#pt-app[data-pt-step="results"] #pt-panel-questions {
  display: none !important;
}

.pt-panel {
  padding: var(--app-space-lg) 0;
  min-height: 200px;
}

.pt-card {
  background: var(--app-surface);
  padding: var(--app-space-lg);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
}

.pt-step-head {
  display: flex;
  align-items: center;
  gap: var(--app-space-sm);
  margin-bottom: var(--app-space-md);
  padding-bottom: var(--app-space-sm);
  border-bottom: 2px solid var(--app-primary-soft);
}

.pt-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.pt-step-label {
  font-weight: 600;
  color: var(--app-text-secondary);
  font-size: var(--app-text-sm);
}

.pt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.25rem;
}

.pt-desc {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  margin-bottom: var(--app-space-md);
  line-height: 1.5;
}

/* Exam grid */
.pt-exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--app-space-sm);
}

.pt-exam-btn {
  background: var(--app-surface);
  border: 2px solid var(--app-border);
  border-radius: var(--app-radius-md);
  padding: var(--app-space-md);
  font-size: var(--app-text-sm);
  font-weight: 600;
  color: var(--app-text);
  cursor: pointer;
  transition: all var(--app-duration) var(--app-ease);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.pt-exam-btn:hover {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  transform: translateY(-2px);
}

.pt-exam-btn:active {
  transform: translateY(0);
}

/* Questions */
.pt-progress-wrap {
  height: 6px;
  background: var(--app-border-soft);
  border-radius: var(--app-radius-full);
  margin-bottom: var(--app-space-md);
  overflow: hidden;
}

.pt-progress {
  height: 100%;
  background: var(--app-gradient-primary);
  border-radius: var(--app-radius-full);
  transition: width var(--app-duration) var(--app-ease);
}

.pt-question-body {
  min-height: 120px;
  margin-bottom: var(--app-space-md);
}

.pt-question-body .pt-q-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--app-space-md);
  line-height: 1.45;
}

.pt-options {
  display: flex;
  flex-direction: column;
  gap: var(--app-space-sm);
}

.pt-option {
  display: flex;
  align-items: flex-start;
  gap: var(--app-space-sm);
  padding: var(--app-space-md);
  border: 2px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-bg);
  cursor: pointer;
  transition: all var(--app-duration-fast) var(--app-ease);
}

.pt-option:hover {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
}

.pt-option.pt-option-selected {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  box-shadow: 0 0 0 1px var(--app-primary);
}

.pt-option input[type="radio"] {
  margin-top: 0.15rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--app-primary);
}

.pt-option span {
  flex: 1;
  line-height: 1.45;
  color: var(--app-text);
  font-size: var(--app-text-sm);
}

.pt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--app-space-lg);
  padding-top: var(--app-space-md);
  border-top: 1px solid var(--app-border);
  gap: var(--app-space-md);
}

.pt-btn {
  padding: 0.6rem 1.25rem;
  font-size: var(--app-text-sm);
  font-weight: 600;
  border-radius: var(--app-radius-md);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-block;
}

.pt-btn-primary {
  background: var(--app-primary);
  color: #fff;
}

.pt-btn-primary:hover {
  background: var(--app-primary-hover);
  color: #fff;
}

.pt-btn-secondary {
  background: var(--app-surface);
  color: var(--app-text-secondary);
  border: 1px solid var(--app-border);
}

.pt-btn-secondary:hover {
  background: var(--app-border-soft);
  color: var(--app-text);
}

/* Results */
.pt-results-head {
  text-align: center;
  margin-bottom: var(--app-space-lg);
}

.pt-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.35rem;
}

.pt-results-subtitle {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  margin: 0;
}

.pt-results-body {
  margin-bottom: var(--app-space-lg);
}

.pt-results-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--app-space-md);
  margin-bottom: var(--app-space-lg);
}

.pt-result-block {
  padding: var(--app-space-md);
  background: var(--app-bg);
  border-radius: var(--app-radius-md);
  border: 1px solid var(--app-border-soft);
}

.pt-result-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-primary);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pt-result-block p {
  font-size: var(--app-text-base);
  color: var(--app-text);
  margin: 0;
}

.pt-results-summary {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--app-space-lg);
}

.pt-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--app-space-md);
  justify-content: center;
}

/* Exam info step */
.pt-exam-info-body {
  margin-bottom: var(--app-space-lg);
}
.pt-exam-info-body ul {
  margin: 0 0 var(--app-space-md);
  padding-left: 1.25rem;
  color: var(--app-text);
  font-size: var(--app-text-sm);
  line-height: 1.6;
}
.pt-exam-info-body li {
  margin-bottom: 0.35rem;
}
.pt-exam-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--app-space-md);
  justify-content: space-between;
  margin-top: var(--app-space-lg);
  padding-top: var(--app-space-md);
  border-top: 1px solid var(--app-border);
}

/* Results: where you stand */
.pt-where-stand {
  margin-bottom: var(--app-space-lg);
}
.pt-where-stand h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--app-primary);
  margin: 0 0 var(--app-space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pt-stand-item {
  display: flex;
  align-items: flex-start;
  gap: var(--app-space-sm);
  margin-bottom: var(--app-space-sm);
  padding: var(--app-space-sm) 0;
  border-bottom: 1px solid var(--app-border-soft);
}
.pt-stand-item:last-child {
  border-bottom: none;
}
.pt-stand-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--app-radius-sm);
  text-transform: uppercase;
}
.pt-stand-badge-strong {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}
.pt-stand-badge-moderate {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.pt-stand-badge-focus {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.pt-stand-text {
  font-size: var(--app-text-sm);
  color: var(--app-text);
  line-height: 1.5;
  margin: 0;
}
.pt-for-exam {
  background: var(--app-primary-soft);
  border: 1px solid var(--app-primary);
  border-radius: var(--app-radius-md);
  padding: var(--app-space-md);
  margin-bottom: var(--app-space-lg);
}
.pt-for-exam h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--app-primary);
  margin: 0 0 0.5rem;
}
.pt-for-exam p {
  font-size: var(--app-text-sm);
  color: var(--app-text);
  line-height: 1.55;
  margin: 0;
}
.pt-action-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--app-text-sm);
  color: var(--app-text);
  line-height: 1.6;
}
.pt-action-list li {
  margin-bottom: 0.35rem;
}
