/* AI Personality Tests - Frontend Styles */

.aipt-test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aipt-test-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
}

.aipt-test-header h2 {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.aipt-test-description {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

.aipt-progress-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aipt-progress-bar {
  background: #e9ecef;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.aipt-progress-fill {
  background: linear-gradient(90deg, #667eea, #764ba2);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.aipt-progress-text {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.aipt-question {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.aipt-question.answered {
  border-left: 5px solid #28a745;
  background: #f8fff8;
}

.aipt-question.error {
  border-left: 5px solid #dc3545;
  background: #fff8f8;
}

.aipt-question-text {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.aipt-likert-scale,
.aipt-boolean-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.aipt-radio-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.aipt-radio-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.aipt-radio-option input[type="radio"] {
  margin: 0 0 8px 0;
  transform: scale(1.2);
}

.aipt-radio-option input[type="radio"]:checked + .aipt-radio-label {
  color: #667eea;
  font-weight: 600;
}

.aipt-radio-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f8f9ff;
}

.aipt-radio-label {
  font-size: 14px;
  color: #495057;
  transition: all 0.3s ease;
}

.aipt-user-info {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aipt-user-info h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0 0 20px 0;
  text-align: center;
}

.aipt-form-row {
  margin-bottom: 20px;
}

.aipt-form-row label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.aipt-form-row input[type="text"],
.aipt-form-row input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.aipt-form-row input[type="text"]:focus,
.aipt-form-row input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.aipt-form-row input.error {
  border-color: #dc3545;
}

.aipt-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
}

.aipt-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

.aipt-submit-section {
  text-align: center;
  margin: 40px 0;
}

.aipt-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

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

.aipt-submit-btn.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.aipt-submit-btn.loading {
  background: #6c757d;
  cursor: wait;
}

.aipt-results {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aipt-result-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 15px;
}

.aipt-result-header h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 700;
}

.aipt-result-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 30px;
}

.aipt-result-description h2 {
  color: #667eea;
  font-size: 1.5rem;
  margin: 30px 0 20px 0;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.aipt-career-recommendation {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid #667eea;
}

.aipt-career-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.aipt-career-title::before {
  content: "💼";
  margin-right: 8px;
}

.aipt-career-description {
  color: #4b5563;
  line-height: 1.6;
}

.aipt-result-score {
  text-align: center;
  background: #e8f5e8;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.aipt-result-score p {
  font-size: 1.3rem;
  color: #2d5a2d;
  margin: 0;
}

.aipt-result-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.aipt-share-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.aipt-share-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.aipt-error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: none;
}

.aipt-error-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aipt-error-icon {
  margin-right: 10px;
}

.aipt-error-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .aipt-test-container {
    padding: 15px;
  }

  .aipt-test-header h2 {
    font-size: 2rem;
  }

  .aipt-test-description {
    font-size: 1rem;
  }

  .aipt-likert-scale,
  .aipt-boolean-options {
    flex-direction: column;
    gap: 10px;
  }

  .aipt-radio-option {
    min-width: auto;
    padding: 12px;
  }

  .aipt-question {
    padding: 20px;
  }

  .aipt-question-text {
    font-size: 1.1rem;
  }

  .aipt-result-header h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .aipt-test-header {
    padding: 20px;
  }

  .aipt-test-header h2 {
    font-size: 1.5rem;
  }

  .aipt-submit-btn {
    width: 100%;
    padding: 15px;
  }

  .aipt-user-info,
  .aipt-question,
  .aipt-results {
    padding: 20px;
  }
}
