@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --accent: #1ad76f;
  --accent-hover: #1fe078;
  --bg-page: #101010;
  --bg-card: #111111;
  --bg-card-transparent: rgba(20, 20, 20, 0.66);
  --border-color: #1f1f1f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent-hover: rgba(74, 222, 128, 0.45);
  --border-accent-selected: rgba(26, 215, 111, 0.4);
  --bg-accent-subtle: rgba(26, 215, 111, 0.08);
  --bg-accent-icon: rgba(20, 83, 45, 0.35);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.25);
  --shadow-accent: 0 4px 20px rgba(26, 215, 111, 0.4);
  --shadow-inset-subtle: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card-transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.app-header img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.label-section {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.progress-segment.active {
  background: var(--accent);
}

.step {
  display: none;
}
.step.active {
  display: block;
}

.form-group {
  margin-top: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
}

.char-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.team-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card-transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-choice-card:hover {
  border-color: var(--border-accent-hover);
  transform: translateY(-2px);
}

.team-choice-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.team-choice-card.disabled:hover {
  transform: none;
  border-color: var(--border-subtle);
}

.team-choice-card.selected {
  background: var(--bg-accent-subtle);
  border-color: var(--border-accent-selected);
  color: var(--accent);
}

.team-choice-card-title {
  font-weight: 600;
}

.team-choice-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.team-choice-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-accent-icon);
  color: var(--accent);
  box-shadow: var(--shadow-inset-subtle);
}

.mcq-group {
  margin-bottom: 24px;
}

.mcq-question {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.mcq-options {
  display: grid;
  gap: 8px;
}

.mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card-transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mcq-option:hover {
  border-color: var(--border-accent-hover);
}

.mcq-option.selected {
  background: var(--bg-accent-subtle);
  border-color: var(--border-accent-selected);
}

.mcq-letter {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-accent-icon);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s ease;
}

.mcq-option.selected .mcq-letter {
  background: var(--accent);
  color: #ffffff;
}

.mcq-label {
  font-size: 14px;
  padding-top: 3px;
  line-height: 1.4;
}

.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0;
}

.star-rating .star {
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
  width: 36px;
  height: 36px;
  color: var(--border-color);
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.star-rating .star.filled {
  color: var(--accent);
}

.btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-accent-subtle);
}

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
}

.success-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-accent-subtle);
  color: var(--accent);
  margin-bottom: 20px;
  box-shadow: var(--shadow-inset-subtle);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}
