/* V1 Classic Test Styles - Mobile First */

:root {
  --primary-color: #E85A3C;
  --primary-hover: #d64a2c;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--primary-hover);
}

.main-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 16px;
  color: #666;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 30px;
}

.progress-bar {
  height: 8px;
  background-color: var(--medium-gray);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* Start Screen */
.start-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
}

.intro-card h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 24px;
}

.intro-card p {
  margin-bottom: 30px;
  color: #666;
}

.test-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.info-icon {
  font-size: 24px;
}

.start-button {
  width: 100%;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Question Screen */
.question-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 600px;
}

.question-text {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.answer-option {
  padding: 15px 20px;
  background-color: var(--light-gray);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.answer-option:hover {
  background-color: var(--medium-gray);
  transform: translateX(5px);
}

.answer-option.selected {
  background-color: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.nav-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.prev-button {
  background-color: var(--medium-gray);
  color: var(--text-color);
}

.prev-button:hover {
  background-color: #d4d7da;
}

.next-button {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
}

.next-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.next-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Results Screen */
.results-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 600px;
}

.results-card h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 28px;
}

.score-display {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--primary-color);
}

.score-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
}

.score-label {
  font-size: 14px;
  color: #666;
}

.result-category {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.result-category h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 24px;
}

.result-category p {
  color: #666;
}

.result-details {
  margin-bottom: 30px;
}

.result-details h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-button {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.action-button.primary {
  background-color: var(--primary-color);
  color: white;
}

.action-button.primary:hover {
  background-color: var(--primary-hover);
}

.action-button.secondary {
  background-color: var(--medium-gray);
  color: var(--text-color);
}

.action-button.secondary:hover {
  background-color: #d4d7da;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-color);
}

.modal h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

.modal p {
  margin-bottom: 20px;
  color: #666;
}

.email-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.privacy-checkbox input {
  margin-right: 8px;
  margin-top: 4px;
}

.privacy-checkbox a {
  color: var(--primary-color);
  text-decoration: none;
}

.privacy-checkbox a:hover {
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--primary-hover);
}

.modal-note {
  margin-top: 15px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
  .container {
    padding: 40px;
  }

  .main-title {
    font-size: 36px;
  }

  .intro-card {
    padding: 40px;
  }

  .question-text {
    font-size: 24px;
  }

  .result-actions {
    flex-direction: row;
    justify-content: center;
  }

  .action-button {
    width: auto;
    min-width: 200px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-card,
.results-card,
.intro-card {
  animation: fadeIn 0.5s ease;
}

/* Success/Error States */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}