/* ===================================
   PM Maturity Assessment Styles
   Arcturus Pro Branding
   =================================== */

/* CSS Variables - Arcturus Pro Brand Colors */
:root {
    --primary-blue: #407BFF;
    --primary-purple: #904AFF;
    --gradient-primary: linear-gradient(135deg, #407BFF 0%, #904AFF 100%);
    --gradient-light: linear-gradient(135deg, rgba(64, 123, 255, 0.1) 0%, rgba(144, 74, 255, 0.1) 100%);
    
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #ADB5BD;
    --dark-gray: #495057;
    --text-primary: #212529;
    --text-secondary: #5a6268; /* Improved contrast ratio: 5.1:1 (WCAG AA compliant) */
    
    --success-green: #28A745;
    --warning-orange: #FFC107;
    --danger-red: #DC3545;
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Focus visible for accessibility */
    --focus-ring: 0 0 0 3px rgba(64, 123, 255, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #E9ECEF 0%, #F8F9FA 100%);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    position: relative;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1100px; /* Reduced from 1400px */
    margin: 0 auto;
    border-left: 2px solid rgba(64, 123, 255, 0.15);
    border-right: 2px solid rgba(64, 123, 255, 0.15);
    border-top: 2px solid rgba(64, 123, 255, 0.15);
}

.container {
    max-width: 1000px; /* Reduced from 1200px */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Wide container for results page */
.results-container {
    max-width: 1300px; /* Reduced from 1600px */
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    mix-blend-mode: darken;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-purple);
    gap: 0.75rem;
}

/* Assessment Container with Width Limits and Borders */
.assessment-container {
    min-height: auto;
    padding: 1.5rem 0;
    max-width: 1100px; /* Reduced from 1400px for better proportions */
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 2px solid rgba(64, 123, 255, 0.15);
    border-right: 2px solid rgba(64, 123, 255, 0.15);
}

/* Elegant gradient side borders */
.assessment-container::before,
.assessment-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(64, 123, 255, 0.3) 5%,
        rgba(144, 74, 255, 0.4) 50%,
        rgba(64, 123, 255, 0.3) 95%,
        transparent 100%
    );
    opacity: 0.6;
}

.assessment-container::before {
    left: -3px;
}

.assessment-container::after {
    right: -3px;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

/* Icons */
.icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--white);
}

.icon-large.success {
    background: var(--success-green);
}

/* Typography */
h1 {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Assessment Overview */
.assessment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: var(--border-radius);
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.overview-text {
    display: flex;
    flex-direction: column;
}

.overview-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

.overview-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Assessment Domains */
.assessment-domains {
    margin-bottom: 3rem;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.domain-badge {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.domain-badge:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gradient-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--light-gray);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

#start-btn {
    display: flex;
    margin: 0 auto;
}

/* Focus states for accessibility */
.btn:focus-visible,
.option-item:focus-visible,
.resource-card:focus-visible,
.back-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(64, 123, 255, 0.15);
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Progress Header */
.progress-header {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 2rem;
}

.progress-bar-container {
    background: var(--light-gray);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Question Card */
.question-card {
    animation: slideIn 0.5s ease-in-out;
}

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

.question-header {
    margin-bottom: 1rem;
}

.question-domain {
    display: inline-block;
    padding: 0.4rem 0.875rem; /* Slightly reduced padding */
    background: var(--gradient-light);
    color: var(--primary-blue);
    border-radius: 8px;
    font-size: 0.8125rem; /* Reduced from 0.875rem */
    font-weight: 600;
}

.question-text {
    font-size: 1.125rem; /* Reduced from 1.375rem */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.option-item {
    padding: 1rem; /* Reduced from 1.25rem */
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 60px;
}

.option-item:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
}

.option-item.selected {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
    box-shadow: var(--shadow-sm);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: var(--transition);
}

.option-item.selected .option-radio {
    border-color: var(--primary-blue);
}

.option-item.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.option-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Results */
.results-card {
    max-width: 100%;
    padding: 2rem;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.overall-score {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: var(--border-radius);
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.score-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.maturity-level h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.maturity-level p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Results Sections */
.results-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--light-gray);
}

.results-section:last-of-type {
    border-bottom: none;
}

.results-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.results-section h3 i {
    color: var(--primary-blue);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 900px;
}

/* Area Scores - Detailed Domain Scores with Individual Bar Charts */
.area-scores {
    display: flex;
    flex-direction: column;
    gap: 0; /* Inline styles in JS handle spacing */
}

.area-score-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: default;
}

.area-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.0625rem;
}

.area-percentage {
    font-weight: 700;
    color: var(--primary-blue);
}

.area-status {
    display: inline-block;
}

.area-bar {
    height: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.area-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* Domain Scores Section Styling */
.domain-scores-section {
    background: rgba(59, 130, 246, 0.03);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(59, 130, 246, 0.1);
}

/* Combined Benchmark & Maturity Levels Section */
.combined-benchmark-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(59, 130, 246, 0.15);
}

/* Maturity Levels - Single Row */
.maturity-levels-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.maturity-levels-row .maturity-level-card {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.maturity-levels-row .maturity-level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.maturity-levels-row .level-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.maturity-levels-row h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: #1F2937;
}

.maturity-levels-row .level-range {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3B82F6;
    margin-bottom: 0.75rem;
}

.maturity-levels-row .level-description {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.maturity-levels-row .level-description strong {
    display: block;
    margin-bottom: 0.375rem;
    color: #374151;
}

/* Level-specific colors */
.maturity-levels-row .level-1 .level-number {
    background: linear-gradient(135deg, #4A5568, #2D3748);
}

.maturity-levels-row .level-2 .level-number {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.maturity-levels-row .level-3 .level-number {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.maturity-levels-row .level-4 .level-number {
    background: linear-gradient(135deg, #10B981, #059669);
}

.maturity-levels-row .level-5 .level-number {
    background: linear-gradient(135deg, #407BFF, #904AFF);
}

/* Unified Domains Section */
.unified-domain-section {
    background: rgba(249, 250, 251, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.unified-domains {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unified-domain-card {
    transition: all 0.3s ease;
}

.unified-domain-card:hover {
    transform: translateY(-2px);
}

.domain-details {
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .maturity-levels-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Stack business impact and how to improve vertically on tablets */
    .unified-domain-card .domain-details > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .maturity-levels-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maturity-levels-row h4 {
        font-size: 0.9rem;
    }
    
    .maturity-levels-row .level-range {
        font-size: 0.75rem;
    }
    
    .maturity-levels-row p:last-child {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .maturity-levels-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .maturity-levels-row .maturity-level-card {
        padding: 1rem;
    }
}

/* Waste Areas */
.waste-section {
    background: rgba(220, 53, 69, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(220, 53, 69, 0.2);
}

.waste-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.waste-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--danger-red);
}

.waste-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.waste-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-red);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.waste-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--danger-red);
    margin-bottom: 0.5rem;
}

.waste-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.waste-impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger-red);
}

/* Maturity Level Definitions */
.maturity-definitions {
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.05) 0%, rgba(144, 74, 255, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(64, 123, 255, 0.2);
}

.maturity-levels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.maturity-level-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.maturity-level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.maturity-level-card.level-1 {
    border-left-color: #4A5568;
}

.maturity-level-card.level-2 {
    border-left-color: #F59E0B;
}

.maturity-level-card.level-3 {
    border-left-color: #FBBF24;
}

.maturity-level-card.level-4 {
    border-left-color: #10B981;
}

.maturity-level-card.level-5 {
    border-left-color: #407BFF;
}

.maturity-level-card .level-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maturity-level-card.level-1 .level-number {
    background: #dc3545;
}

.maturity-level-card.level-2 .level-number {
    background: #fd7e14;
}

.maturity-level-card.level-3 .level-number {
    background: #ffc107;
}

.maturity-level-card.level-4 .level-number {
    background: #28a745;
}

.maturity-level-card.level-5 .level-number {
    background: #17a2b8;
}

.maturity-level-card h4 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.maturity-level-card .level-range {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.maturity-level-card p:last-child {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Spider Chart Container */
.spider-chart-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.spider-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Strengths Section */
.strengths-section {
    background: rgba(40, 167, 69, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.strength-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.strength-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-green);
}

.strength-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.strength-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.strength-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-green);
    margin-bottom: 0.5rem;
}

.strength-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.strength-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-green);
}

.strength-score .score-badge {
    background: var(--success-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Resources Grid - 5 Columns */
.resources-grid-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .resources-grid-five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .resources-grid-five {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-card:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.resource-card i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.resource-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
}

.resource-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Lead Capture Form */
.lead-capture-section {
    background: var(--gradient-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(64, 123, 255, 0.1);
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 2rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: var(--border-radius);
    border: 2px solid var(--success-green);
}

.form-success i {
    font-size: 3rem;
    color: var(--success-green);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    color: var(--success-green);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

/* Industry Benchmark Comparison */
.benchmark-comparison {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

.benchmark-header {
    text-align: center;
    margin-bottom: 2rem;
}

.benchmark-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.benchmark-status.status-excellent {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: var(--success-green);
}

.benchmark-status.status-good {
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.1) 0%, rgba(144, 74, 255, 0.05) 100%);
    color: var(--primary-blue);
}

.benchmark-status.status-improvement {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    color: #ff9800;
}

.benchmark-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.benchmark-chart {
    margin: 2rem 0;
}

.benchmark-bar-container {
    margin-bottom: 1.5rem;
}

.benchmark-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.benchmark-bar {
    background: var(--light-gray);
    height: 48px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.benchmark-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.benchmark-bar-fill.your-score {
    background: var(--gradient-primary);
}

.benchmark-bar-fill.industry-avg {
    background: linear-gradient(135deg, #6C757D 0%, #495057 100%);
}

.benchmark-bar-fill.top-performers {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.benchmark-value {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.benchmark-insights {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.insight-item.positive {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
}

.insight-item.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.insight-item.opportunity {
    background: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

/* Solution Recommendations */
.solution-recommendation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.03) 0%, rgba(144, 74, 255, 0.03) 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.solution-header i {
    font-size: 1.25rem;
}

.solution-content h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.solution-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.solution-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.solution-features li i {
    color: var(--success-green);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.solution-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.solution-benefit i {
    color: var(--success-green);
    font-size: 1.25rem;
}

.solution-benefit strong {
    color: var(--success-green);
    font-size: 0.9375rem;
}

/* Next Steps Section */
.next-steps-content {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

.next-steps-timeline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.05) 0%, rgba(144, 74, 255, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.next-steps-timeline i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.next-steps-timeline h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.next-steps-timeline p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.next-steps-actions {
    margin-bottom: 2rem;
}

.next-steps-actions h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.next-steps-actions ul {
    list-style: none;
    padding: 0;
}

.next-steps-actions li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.next-steps-actions li i {
    color: var(--primary-blue);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.next-steps-cta {
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.next-steps-cta h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.next-steps-cta > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.benefit-item i {
    color: var(--success-green);
}

.follow-up-promise {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid var(--success-green);
    border-radius: 8px;
}

.follow-up-promise i {
    font-size: 2rem;
    color: var(--success-green);
    flex-shrink: 0;
}

.follow-up-promise h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.follow-up-promise ol {
    padding-left: 1.5rem;
    color: var(--text-primary);
}

.follow-up-promise li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.follow-up-promise strong {
    color: var(--success-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-container {
        max-width: 100%;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .assessment-container::before,
    .assessment-container::after {
        display: none;
    }

    .navbar {
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .container {
        padding: 0 1.25rem;
    }

    .content-card {
        padding: 2.5rem 1.75rem;
    }

    h1 {
        font-size: 2.125rem;
        line-height: 1.25;
    }

    .assessment-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .overall-score {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .score-circle {
        margin: 0 auto;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1.25rem;
    }

    .navigation-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        font-size: 1.0625rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
        gap: 1.25rem;
    }

    .results-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
    }

    .maturity-levels-grid {
        grid-template-columns: 1fr;
    }

    .spider-chart-container {
        height: 400px;
        padding: 1rem;
    }

    .area-scores {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .strength-areas {
        grid-template-columns: 1fr;
    }

    .waste-areas {
        grid-template-columns: 1fr;
    }

    .results-container {
        padding: 0 1rem;
    }

    .benchmark-insights {
        flex-direction: column;
        align-items: stretch;
    }

    .insight-item {
        justify-content: center;
    }

    .next-steps-timeline {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .follow-up-promise {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-card {
        padding: 2rem 1.5rem;
    }

    .option-item {
        padding: 1.5rem;
        min-height: 72px;
    }

    .btn {
        min-height: 52px;
        padding: 1.125rem 2rem;
    }

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

    .results-section h3 {
        font-size: 1.5rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .maturity-levels-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spider-chart-container {
        max-width: 800px;
        height: 600px;
    }
}

@media (max-width: 992px) {
    .maturity-levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spider-chart-container {
        max-width: 700px;
        height: 550px;
    }

    .results-container {
        max-width: 1200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1.0625rem;
    }

    .question-text {
        font-size: 1.25rem;
        line-height: 1.45;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 2rem 1.25rem;
    }

    .option-item {
        padding: 1.25rem;
    }

    .maturity-level-card {
        padding: 1.5rem;
    }

    .results-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .results-section h3 {
        font-size: 1.375rem;
    }
}

/* Print Styles for Results Page */
@media print {
    body {
        background: white;
    }

    .navbar,
    .back-link,
    .results-actions,
    .lead-capture-section {
        display: none;
    }

    .results-card {
        box-shadow: none;
        padding: 1rem;
    }

    .results-section {
        page-break-inside: avoid;
    }

    .maturity-levels-grid,
    .area-scores,
    .strength-areas,
    .waste-areas {
        grid-template-columns: 1fr;
    }

    .spider-chart-container {
        page-break-inside: avoid;
    }
}

/* ===== Simple Assessment Footer ===== */
.assessment-footer {
    background: var(--off-white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(64, 123, 255, 0.2);
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 123, 255, 0.3);
}

.back-to-home-btn i {
    font-size: 1rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .assessment-footer {
        padding: 2rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .back-to-home-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
}

/* ===== Keyboard Navigation Focus Indicators (WCAG 2.1 Level AA Compliance) ===== */

/* Assessment-specific focus indicators */
.question-option:focus-visible,
.start-btn:focus-visible,
.submit-btn:focus-visible,
.back-to-home-btn:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.question-option input[type="radio"]:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Ensure all interactive elements have visible focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}