/* CREP-D² Assessment page styles extracted from inline */
:root {
  /* Phoenix Foundation Brand Palette */
  --phoenix-indigo: #512DA8;
  --phoenix-lavender: #EDE7F6;
  --phoenix-slate: #4A4A4A;
  --phoenix-silver: #C0C0C0;
  --phoenix-gold: #D4AF37;
  --phoenix-white: #FFFFFF;
  
  /* CREP-D² Therapeutic Colors */
  --healing-sage: #87A96B;
  --recovery-teal: #5AC4B5;
  --wisdom-purple: #6B46C1;
  --hope-amber: #F59E0B;
  
  /* Design System */
  --radius: 18px;
  --radius-lg: 25px;
  --shadow: 0 10px 40px rgba(81, 45, 168, 0.15);
  --shadow-hover: 0 20px 50px rgba(81, 45, 168, 0.25);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.6);
  
  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  background: var(--phoenix-indigo);
  color: var(--phoenix-lavender);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--phoenix-gold);
  color: var(--phoenix-indigo);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus { top: 6px; }

*:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.assessment-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(81, 45, 168, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo-section { display: flex; align-items: center; gap: 1rem; }

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--phoenix-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--phoenix-indigo);
  font-weight: 900;
}

.logo-text { font-size: var(--text-lg); font-weight: 900; color: var(--phoenix-lavender); }

.progress-indicator { display: flex; align-items: center; gap: 1rem; }

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--phoenix-gold), var(--hope-amber));
  transition: width 0.5s ease;
}
/* Step-based widths to avoid inline styles */
.progress-s-1 { width: calc(100% * 1 / 7); }
.progress-s-2 { width: calc(100% * 2 / 7); }
.progress-s-3 { width: calc(100% * 3 / 7); }
.progress-s-4 { width: calc(100% * 4 / 7); }
.progress-s-5 { width: calc(100% * 5 / 7); }
.progress-s-6 { width: calc(100% * 6 / 7); }
.progress-s-7 { width: calc(100% * 7 / 7); }

.progress-text { font-size: var(--text-sm); color: var(--phoenix-gold); font-weight: 600; }

/* Main Assessment Container */
.assessment-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 2rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Step Cards */
.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
  display: none;
}

.step.active { display: block; opacity: 1; transform: translateY(0); }

.step-header { text-align: center; margin-bottom: 2.5rem; }

.step-badge {
  display: inline-block;
  background: var(--phoenix-gold);
  color: var(--phoenix-indigo);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.step-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--phoenix-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.step-subtitle { font-size: var(--text-lg); opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Barry's Story Integration */
.story-section {
  background: rgba(135, 169, 107, 0.1);
  border: 1px solid rgba(135, 169, 107, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.story-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--healing-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--phoenix-white);
  font-weight: 900;
}

.story-intro { flex: 1; }
.story-name { font-size: var(--text-xl); font-weight: 800; color: var(--healing-sage); margin-bottom: 0.25rem; }
.story-role { font-size: var(--text-sm); opacity: 0.8; }
.story-content { font-size: var(--text-lg); font-style: italic; line-height: 1.8; opacity: 0.95; }

.audio-player { margin: 1.5rem 0; padding: 1rem; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius); }
.audio-player audio { width: 100%; }
.audio-placeholder { text-align: center; padding: 2rem; background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: var(--radius); color: var(--phoenix-gold); font-weight: 600; }

/* Form Elements */
.form-group { margin-bottom: 2rem; }
.form-label { display: block; font-size: var(--text-lg); font-weight: 700; color: var(--phoenix-gold); margin-bottom: 0.75rem; }
.form-input {
  width: 100%; padding: 1rem 1.5rem; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); color: var(--phoenix-white); font-size: var(--text-lg); transition: var(--transition);
}
.form-input:focus { border-color: var(--phoenix-gold); background: rgba(255, 255, 255, 0.1); }
.form-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-select {
  width: 100%; padding: 1rem 1.5rem; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); color: var(--phoenix-white); font-size: var(--text-lg); cursor: pointer;
}
.form-select:focus { border-color: var(--phoenix-gold); }

.form-textarea {
  width: 100%; min-height: 120px; padding: 1rem 1.5rem; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); color: var(--phoenix-white); font-size: var(--text-base); resize: vertical; font-family: inherit;
}
.form-textarea:focus { border-color: var(--phoenix-gold); background: rgba(255, 255, 255, 0.1); }

/* Choice Grid */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.choice-option {
  background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  padding: 1.5rem; cursor: pointer; transition: var(--transition); text-align: center; position: relative;
}
.choice-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.choice-option.selected { border-color: var(--phoenix-gold); background: rgba(212, 175, 55, 0.1); }
.choice-icon { font-size: 2rem; margin-bottom: 1rem; }
.choice-title { font-size: var(--text-lg); font-weight: 700; color: var(--phoenix-gold); margin-bottom: 0.5rem; }
.choice-description { font-size: var(--text-sm); opacity: 0.9; }

/* Cultural Preferences */
.cultural-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cultural-option { background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 1rem; cursor: pointer; transition: var(--transition); text-align: center; }
.cultural-option:hover { background: rgba(255, 255, 255, 0.1); }
.cultural-option.selected { border-color: var(--healing-sage); background: rgba(135, 169, 107, 0.1); }

/* Wellness Scale */
.wellness-scale { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0; padding: 0 1rem; }
.scale-option { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 1rem; border-radius: var(--radius); transition: var(--transition); min-width: 80px; }
.scale-option:hover { background: rgba(255, 255, 255, 0.05); }
.scale-option.selected { background: rgba(212, 175, 55, 0.1); color: var(--phoenix-gold); }
.scale-number { font-size: var(--text-2xl); font-weight: 900; margin-bottom: 0.5rem; }
.scale-label { font-size: var(--text-xs); text-align: center; opacity: 0.8; }

/* Action Buttons */
.step-actions { display: flex; gap: 1.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; border-radius: var(--radius-lg); text-decoration: none; font-weight: 700; font-size: var(--text-lg); transition: var(--transition); cursor: pointer; border: none; min-width: 160px; justify-content: center;
}
.btn-primary { background: linear-gradient(135deg, var(--phoenix-gold), var(--hope-amber)); color: var(--phoenix-indigo); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--phoenix-lavender); border: 2px solid rgba(255, 255, 255, 0.3); }
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); transform: translateY(-3px) scale(1.02); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Privacy & Security */
.security-notice { background: rgba(90, 196, 181, 0.1); border: 1px solid rgba(90, 196, 181, 0.3); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; text-align: center; }
.security-icon { font-size: 2rem; margin-bottom: 1rem; }
.security-text { font-size: var(--text-sm); opacity: 0.9; }

/* Completion Celebration */
.celebration { text-align: center; padding: 2rem; background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(90, 196, 181, 0.1)); border-radius: var(--radius-lg); margin: 2rem 0; }
.celebration-icon { font-size: 4rem; margin-bottom: 1rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.celebration-title { font-size: var(--text-2xl); font-weight: 900; color: var(--phoenix-gold); margin-bottom: 1rem; }
.celebration-text { font-size: var(--text-lg); opacity: 0.9; max-width: 500px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
  .assessment-container { padding: 100px 1rem 2rem; }
  .step { padding: 2rem 1.5rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .wellness-scale { flex-wrap: wrap; gap: 0.5rem; }
  .step-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .progress-indicator { flex-direction: column; gap: 0.5rem; }
  .progress-bar { width: 150px; }
}

/* Loading States */
.loading { opacity: 0.6; pointer-events: none; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--phoenix-gold); animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Navigation */
.crep-nav { background: white; border-bottom: 1px solid rgba(81, 45, 168, 0.1); padding: 1rem 2rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); position: relative; z-index: 100; }
.crep-nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.crep-nav-logo { font-size: 1.125rem; font-weight: 700; color: var(--phoenix-indigo); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.crep-nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.crep-nav-link { color: var(--phoenix-slate); text-decoration: none; font-weight: 600; font-size: 0.9375rem; transition: var(--transition); padding: 0.5rem 0.75rem; border-radius: var(--radius); }
.crep-nav-link:hover { color: var(--phoenix-indigo); background: rgba(81, 45, 168, 0.05); }
.crep-nav-link.active { color: var(--phoenix-indigo); background: rgba(81, 45, 168, 0.1); }
@media (max-width: 768px) { .crep-nav-container { flex-direction: column; gap: 1rem; } .crep-nav-links { justify-content: center; font-size: 0.875rem; } }

/* Utilities and new classes to replace inline styles */
.story-section-accent { background: rgba(135, 169, 107, 0.15); border-left: 4px solid var(--healing-sage); }
.text-healing { color: var(--healing-sage); }
.color-gold { color: var(--phoenix-gold); }
.color-indigo { color: var(--phoenix-indigo); }
.text-center { text-align: center; }
.fs-lg { font-size: var(--text-lg); }
.fs-1_25 { font-size: 1.25rem; }
.fs-1_125 { font-size: 1.125rem; }
 .italic { font-style: italic; }
 .not-italic { font-style: normal; }
 .op-95 { opacity: 0.95; }
.op-90 { opacity: 0.9; }
.op-85 { opacity: 0.85; }
.fw-600 { font-weight: 600; }
.mb-0_75 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1_5 { margin-bottom: 1.5rem; }
.mt-1_5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.center-mb-2 { text-align: center; margin-bottom: 2rem; }
.helper-text { margin-top: 0.5rem; font-size: var(--text-sm); opacity: 0.8; }
.emoji-lg { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.choice-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.check-item { padding: 0.5rem 0; padding-left: 1.75rem; position: relative; }
.checkmark { position: absolute; left: 0; color: var(--phoenix-gold); }

/* Dynamic personalized content helpers */
.border-healing-sage { border-color: var(--healing-sage) !important; }
.border-recovery-teal { border-color: var(--recovery-teal) !important; }
.border-wisdom-purple { border-color: var(--wisdom-purple) !important; }
.border-gold { border-color: var(--phoenix-gold) !important; }
.next-steps-box { margin-top: 2rem; padding: 1.5rem; background: rgba(90, 196, 181, 0.1); border-radius: var(--radius); text-align: center; }
.centered-list { text-align: left; max-width: 400px; margin: 0 auto; padding-left: 1.5rem; }
.centered-list li { margin-bottom: 0.5rem; }

/* Executive Support Add‑ons */
.addons-section { max-width: 1200px; margin: 3rem auto; padding: 1.5rem; background: var(--phoenix-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.addons-flex { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.addons-col-left { flex: 1 1 360px; min-width: 320px; }
.addons-col-right { flex: 1 1 420px; min-width: 340px; }
.unstyled-list { list-style: none; padding: 0; margin: 0; }
.grid-gap-0_5 { display: grid; gap: .5rem; }
.pillar-card { padding: .5rem .75rem; border-radius: 8px; }
.pc-gold { border-left: 4px solid var(--phoenix-gold); background: rgba(212,175,55,.06); }
.pc-teal { border-left: 4px solid var(--recovery-teal); background: rgba(90,196,181,.08); }
.pc-purple { border-left: 4px solid var(--wisdom-purple); background: rgba(107,70,193,.08); }
.pc-indigo { border-left: 4px solid var(--phoenix-indigo); background: rgba(81,45,168,.08); }
.pc-sage { border-left: 4px solid var(--healing-sage); background: rgba(135,169,107,.10); }
.pc-brown { border-left: 4px solid #8B7355; background: rgba(139,115,85,.08); }

.ubuntu-reminder { background: linear-gradient(135deg, var(--healing-sage), var(--recovery-teal)); color:white; border-radius: var(--radius); padding: 1rem 1.25rem; }
.mt-1 { margin-top: 1rem; }
.grid-gap-1 { display: grid; gap: 1rem; }

.details-card { border-radius: 10px; padding: .75rem 1rem; }
.details-indigo { background: rgba(81,45,168,.05); }
.details-wisdom { background: rgba(107,70,193,.06); }
.details-sage { background: rgba(135,169,107,.10); }
.details-gold { background: rgba(212,175,55,.10); }
.details-summary { cursor: pointer; font-weight: 700; color: var(--phoenix-indigo); }
.details-body { margin-top: .75rem; display: grid; gap: .5rem; }

.plain-input, .plain-select { width:100%; padding:.6rem; border:1px solid #e0e0e0; border-radius:8px; background: white; color: #111; }
.checkbox-row { display:flex; gap:.5rem; align-items:center; }
.op-75 { opacity:.75; }

/* Buttons row utility */
.btn-row { display:flex; gap: 0.75rem; }
