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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #464646 0%, #212121 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #ffe936 0%, #141414 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
}

header a {
  color: white;
  text-decoration: underline;
}

.hidden {
  display: none;
}

.name-panel,
.survey-container,
.success {
  padding: 30px 20px;
}

.name-panel h2,
.success h2 {
  font-size: 1.5rem;
  color: #212529;
  margin-bottom: 10px;
}

.name-panel p {
  color: #495057;
  margin-bottom: 20px;
}

#mentor-name {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #f8f9fa;
}

#mentor-name:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.start-btn,
.submit-btn,
.restart-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #eba500 0%, #806d21 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.start-btn:hover,
.submit-btn:hover,
.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn {
  margin-top: 20px;
}

.name-error,
.submit-error {
  margin-top: 15px;
  padding: 12px;
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  color: #721c24;
}

.loading {
  padding: 60px 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

.error p {
  margin-bottom: 15px;
}

.scale-legend {
  padding: 15px;
  margin-bottom: 25px;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  color: #495057;
  font-size: 0.95rem;
}

.section {
  padding: 25px 0;
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.3rem;
  color: #212529;
  margin-bottom: 15px;
}

.survey-item {
  padding: 18px;
  margin-bottom: 15px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
}

.item-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 12px;
  line-height: 1.5;
}

.rating-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.rating-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-option:has(input:checked) {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.rating-option:hover {
  border-color: #667eea;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
}

.option-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.other-input {
  flex: 1;
  padding: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
}

.other-input:focus {
  outline: none;
  border-color: #667eea;
}

.statement-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
}

.statement-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.training-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
  margin-top: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #495057;
}

.training-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.success {
  text-align: center;
}

.success p {
  color: #495057;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .rating-row {
    gap: 6px;
  }

  .rating-option {
    font-size: 0.9rem;
    padding: 8px 0;
  }
}