/* Assessment Styles - Matches Trailhead Design Language */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --charcoal: #1a1a1a;
  --warm-stone: #f5f0eb;
  --terracotta: #c4654a;
  --terracotta-light: #d4785f;
  --sand: #e8ddd0;
  --sage: #7a8c6e;
  --warm-gray: #6b6560;
  --cream: #faf7f4;
  --amber: #d4943a;
  --white: #ffffff;
  --error: #c44a4a;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

/* Nav */
.assess-nav {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

/* Progress Bar */
.progress-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--sand);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--warm-gray);
  text-align: right;
}

/* Assessment Container */
.assessment-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

/* Intro Screen */
.intro-screen {
  text-align: center;
  padding: 60px 0;
}

.intro-screen h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.intro-screen h1 .highlight {
  color: var(--terracotta);
}

.intro-screen p {
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.intro-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.intro-detail {
  text-align: center;
}

.intro-detail-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--terracotta);
}

.intro-detail-label {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 4px;
}

/* Dimension Header */
.dimension-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--sand);
}

.dimension-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.dimension-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.dimension-header p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Arena Icon */
.dimension-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.dimension-icon.purpose { background: #fceae6; color: var(--terracotta); }
.dimension-icon.identity { background: #e8efe5; color: var(--sage); }
.dimension-icon.relationships { background: #fef3e2; color: var(--amber); }
.dimension-icon.health { background: #fceae6; color: var(--terracotta-light); }
.dimension-icon.structure { background: #eae8e5; color: var(--warm-gray); }
.dimension-icon.legacy { background: #e8efe5; color: var(--sage); }

/* Question Card */
.question-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.question-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.question-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Likert Scale */
.likert-scale {
  display: flex;
  gap: 8px;
}

.likert-option {
  flex: 1;
  position: relative;
}

.likert-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid var(--sand);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--cream);
}

.likert-option label:hover {
  border-color: var(--terracotta-light);
  background: #fceae6;
}

.likert-option input:checked + label {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: white;
}

.likert-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.likert-label {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--charcoal);
  color: white;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--warm-gray);
  border: 2px solid var(--sand);
}

.btn-secondary:hover {
  border-color: var(--warm-gray);
  color: var(--charcoal);
}

.btn-terracotta {
  background: var(--terracotta);
  color: white;
  font-size: 1.1rem;
  padding: 18px 48px;
}

.btn-terracotta:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 101, 74, 0.3);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

/* Email Capture */
.email-capture {
  text-align: center;
  padding: 40px 0;
}

.email-capture h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.email-capture p {
  color: var(--warm-gray);
  margin-bottom: 28px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--sand);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.email-form input:focus {
  border-color: var(--terracotta);
}

.email-form input::placeholder {
  color: #bbb;
}

.skip-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--warm-gray);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link:hover {
  color: var(--charcoal);
}

/* Loading Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 247, 244, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--sand);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--warm-gray);
}

.loading-sub {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 6px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

.slide-in-right {
  animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
  animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .assess-nav { padding: 20px 24px; }
  .progress-container { padding: 0 24px; }
  .assessment-container { padding: 32px 24px 80px; }

  .intro-screen { padding: 32px 0; }
  .intro-details { gap: 24px; }

  .question-card { padding: 24px; }

  .likert-scale { gap: 4px; }
  .likert-option label { padding: 10px 4px; }
  .likert-label { font-size: 0.6rem; }

  .email-form {
    flex-direction: column;
  }

  .nav-buttons {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .nav-buttons .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .likert-label { display: none; }
  .likert-option label { padding: 12px 6px; }
  .likert-value { font-size: 1rem; }
}
