/* Spiritual Growth Assessment - Complete Styles */

:root {
  --navy: #002B3D;
  --teal: #1C7CAD;
  --light-blue: #7AC9E2;
  --gray: #F2F2F0;
  --white: #FFFFFF;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(169deg, #3D4957, #568CBE);
  min-height: 100vh;
}

/* Header Styles */
header {
  background-color: var(--white);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

header img {
  max-height: 60px;
  object-fit: contain;
}

/* Main Container */
main {
  background-color: var(--white);
  max-width: 900px;
  margin: 40px auto 20px auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  min-height: 600px;
}

/* Intro Screen */
#intro-screen {
  text-align: center;
  padding: 40px 20px;
}

#intro-screen h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

#intro-screen p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

/* Question Container */
.question-wrapper {
  animation: fadeIn 0.4s ease-in;
  min-height: 400px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 3px solid var(--light-blue);
}

.section-header h2 {
  font-size: 2rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Question Block */
.question-block {
  margin-bottom: 40px;
}

.question-block h3 {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-text {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 25px;
  line-height: 1.7;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}

.contact-form > p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(28, 124, 173, 0.1);
}

.form-group input:invalid {
  border-color: var(--danger);
}

/* Multiple Choice Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  flex: 1;
}

/* Scale Questions */
.scale-question {
  max-width: 700px;
  margin: 0 auto;
}

.scale-container {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e1e5e9;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.scale-input {
  position: relative;
  margin-bottom: 20px;
}

.scale-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e1e5e9;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scale-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 124, 173, 0.3);
  transition: all 0.3s ease;
}

.scale-slider::-webkit-slider-thumb:hover {
  background: var(--navy);
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(28, 124, 173, 0.5);
}

.scale-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(28, 124, 173, 0.3);
}

.scale-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.current-value {
  text-align: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 15px;
}

.value-display {
  background: var(--teal);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 1rem;
}

/* Buttons */
.button {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  margin: 10px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(28, 124, 173, 0.3);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

/* Navigation */
#navigation {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e1e5e9;
}

#prev-btn {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

#next-btn, #submit-btn {
  background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
}

/* Results Section */
#results {
  background: var(--white);
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.results-container {
  max-width: 800px;
  margin: 0 auto;
}

.gratitude-message {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.gratitude-message h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.gratitude-message p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.results-summary {
  margin-bottom: 40px;
}

.results-summary h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 30px;
  font-weight: 700;
}

.result-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  border-left: 5px solid var(--teal);
  text-align: left;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 15px;
  font-weight: 700;
}

.result-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.result-card.barriers {
  border-left-color: var(--warning);
}

.result-card.barriers ul {
  list-style: none;
  padding: 0;
}

.result-card.barriers li {
  background: rgba(255, 193, 7, 0.1);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--warning);
}

.score-bar {
  width: 100%;
  height: 12px;
  background: #e1e5e9;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--light-blue));
  border-radius: 6px;
  transition: width 1s ease-in-out;
}

.action-plan {
  margin-bottom: 40px;
  text-align: left;
}

.action-plan h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.action-plan > p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.action-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-left: 4px solid var(--success);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.action-item:hover {
  border-color: var(--success);
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}

.action-item h4 {
  color: var(--success);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.action-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.next-steps {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.next-steps h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.next-steps p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}

.next-steps .btn {
  background: white;
  color: #667eea;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.next-steps .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(28, 124, 173, 0.3);
}

/* Additional CSS for new results display - Add to assessment-styles.css */
#results { display: none; }


/* Faith Stage Scores Breakdown */
.faith-stage-scores {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.faith-stage-scores h5 {
  color: var(--navy);
  margin-bottom: 15px;
  font-size: 1rem;
}

.score-breakdown {
  display: grid;
  gap: 8px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #e1e5e9;
}

.score-item.primary {
  border-left-color: var(--teal);
  background: rgba(28, 124, 173, 0.05);
}

.stage-name {
  font-weight: 600;
  color: var(--navy);
  min-width: 80px;
}

.stage-score {
  font-weight: 700;
  color: var(--teal);
  min-width: 30px;
}

.score-bar-mini {
  flex: 1;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--light-blue));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Compass Display */
.compass-primary {
  margin-bottom: 20px;
}

.compass-secondary {
  padding-top: 15px;
  border-top: 1px solid #e1e5e9;
  color: #666;
}

.compass-primary strong,
.compass-secondary strong {
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}

/* 3 Vital Relationships */
.relationships-grid {
  display: grid;
  gap: 20px;
  margin-top: 15px;
}

.relationship-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--light-blue);
}

.relationship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.relationship-header strong {
  color: var(--navy);
  font-size: 1rem;
}

/* Gauges */
.gauge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.gauge-fill {
  height: 12px;
  border-radius: 6px;
  transition: width 1s ease-in-out;
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.gauge-green .gauge-fill {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.gauge-yellow .gauge-fill {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.gauge-red .gauge-fill {
  background: linear-gradient(90deg, #dc3545, #e74c3c);
}

.gauge-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  min-width: 35px;
}

/* Sacred Pathways */
.pathway-primary {
  margin-bottom: 20px;
}

.pathway-secondary {
  padding-top: 15px;
  border-top: 1px solid #e1e5e9;
}

.secondary-pathway {
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.secondary-pathway:last-child {
  margin-bottom: 0;
}

.secondary-pathway strong {
  color: var(--navy);
  display: block;
  margin-bottom: 5px;
}

/* Spiritual Barriers */
.barrier-item {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border-left: 4px solid var(--warning);
}

.barrier-item:last-child {
  margin-bottom: 0;
}

.barrier-item strong {
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}

.barrier-item p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .relationship-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .gauge {
    align-self: flex-start;
  }
  
  .score-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .score-bar-mini {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .faith-stage-scores,
  .relationship-item,
  .secondary-pathway,
  .barrier-item {
    padding: 12px;
  }
  
  .relationships-grid {
    gap: 15px;
  }
}

/* Footer */
footer {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  padding: 40px 20px;
  margin-top: 40px;
}

/* Progress Indicator */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--light-blue));
  width: 0%;
  transition: width 0.3s ease;
}

/* Loading States */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Question Counter */
.question-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(28, 124, 173, 0.1);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    margin: 20px auto;
    padding: 30px 20px;
    border-radius: 12px;
  }

  #intro-screen h1 {
    font-size: 2rem;
  }

  #intro-screen p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .question-block h3 {
    font-size: 1.1rem;
  }

  .question-text {
    font-size: 1rem;
  }

  .option-label {
    padding: 15px;
    gap: 12px;
  }

  .option-text {
    font-size: 0.95rem;
  }

  .scale-container {
    padding: 20px;
  }

  .button {
    padding: 12px 20px;
    font-size: 0.9rem;
    margin: 8px;
    min-width: 100px;
  }

  #navigation {
    margin-top: 30px;
    padding-top: 20px;
  }

  .gratitude-message {
    padding: 30px 20px;
  }

  .gratitude-message h2 {
    font-size: 1.8rem;
  }

  .gratitude-message p {
    font-size: 1.1rem;
  }

  .result-card {
    padding: 20px;
  }

  .result-card h4 {
    font-size: 1.2rem;
  }

  .action-item {
    padding: 20px;
  }

  .action-item h4 {
    font-size: 1.1rem;
  }

  .next-steps {
    padding: 30px 20px;
  }

  .next-steps h3 {
    font-size: 1.5rem;
  }

  .options-container {
    gap: 12px;
  }

  .scale-labels {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .form-group input {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px;
  }

  header img {
    max-height: 50px;
  }

  main {
    margin: 15px auto;
    padding: 25px 15px;
  }

  .section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .question-wrapper {
    min-height: 300px;
  }

  .button {
    padding: 10px 16px;
    font-size: 0.85rem;
    margin: 6px;
  }

  .scale-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }

  .current-value {
    font-size: 1rem;
  }

  .value-display {
    padding: 4px 10px;
    font-size: 0.9rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Focus styles for accessibility */
input:focus,
button:focus,
.option-label:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .option-label {
    border-width: 3px;
  }
  
  .result-card {
    border-left-width: 8px;
  }
  
  .action-item {
    border-left-width: 6px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  main {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .button {
    display: none;
  }
  
  #navigation {
    display: none;
  }
  
  .next-steps .btn {
    color: #333 !important;
    background: #f8f9fa !important;
  }
}label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fafbfc;
  position: relative;
}

.option-label:hover {
  border-color: var(--light-blue);
  background-color: rgba(124, 201, 226, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-label input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.option-label input[type="radio"]:checked + .option-text {
  font-weight: 600;
  color: var(--navy);
}

.option-label:has(input[type="radio"]:checked) {
  border-color: var(--teal);
  background-color: rgba(28, 124, 173, 0.1);
  box-shadow: 0 4px 16px rgba(28, 124, 173, 0.2);
}

.option-