/* Systango Assessment UI - Production Ready Styles */

:root {
    /* DARK MODE - DEFAULT - SYSTANGO BRAND */
    --primary-purple: #FF5C38;
    --accent-green: #FF5C38;
    --accent-blue: #FF5C38;
    --accent-blue-hover: #ff4520;
    --dark-blue: #000000;
    --white: #ffffff;
    --light-gray: #F7F8F3;
    --medium-gray: #666666;
    --border-color: #262626;
    --error-color: #dc2626;
    --success-color: #059669;
    
    /* Assessment Dashboard Complementary Colors - Orange Base */
    --assessment-cyan: #FF5C38;
    --assessment-cyan-light: #ff8566;
    --assessment-indigo: #FF5C38;
    --assessment-indigo-light: #ff8566;
    --assessment-teal: #FF5C38;
    --assessment-teal-light: #ff8566;
    --assessment-purple: #FF5C38;
    --assessment-purple-light: #ff8566;
    --assessment-emerald: #FF5C38;
    --assessment-emerald-light: #ff8566;
    
    /* DARK MODE BACKGROUNDS */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: #1a1a1a;
    --color-bg-hover: #252525;
    --color-bg-accent: #FF5C38;
    --color-bg-accent-hover: #ff4520;
    
    /* DARK MODE TEXT */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #737373;
    --color-text-accent: #FF5C38;
    --color-text-on-accent: #ffffff;
    
    /* DARK MODE BORDERS */
    --color-border: #262626;
    --color-border-hover: #404040;
    --color-border-accent: #FF5C38;
    
    /* DARK MODE SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-brand: 0 8px 25px rgba(255, 92, 56, 0.25);
    --shadow-brand: 0 8px 25px rgba(255, 92, 56, 0.25);
    
    /* LEGACY VARIABLES - DARK MODE VALUES */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border-alpha: #262626;
}

/* Dark Theme (Default) - SYSTANGO BRAND */
[data-theme="dark"] {
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: #1a1a1a;
    --color-bg-hover: #252525;
    --color-bg-accent: #FF5C38;
    --color-bg-accent-hover: #ff4520;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #737373;
    --color-text-accent: #FF5C38;
    --color-text-on-accent: #ffffff;
    
    --color-border: #262626;
    --color-border-hover: #404040;
    --color-border-accent: #FF5C38;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-brand: 0 8px 25px rgba(255, 92, 56, 0.25);
    
    /* Legacy compatibility - Dark theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border-alpha: #262626;
}

/* LIGHT MODE - COMPLETE OVERRIDE - SYSTANGO BRAND */
:root[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
    /* LIGHT MODE ACCENT COLORS */
    --primary-purple: #FF5C38;
    --accent-green: #FF5C38;
    --accent-blue: #FF5C38;
    --accent-blue-hover: #ff4520;
    --dark-blue: #000000;
    --light-gray: #F7F8F3;
    --medium-gray: #666666;
    --border-color: #e2e8f0;
    
    /* LIGHT MODE BACKGROUNDS */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #F7F8F3;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: #ffffff;
    --color-bg-hover: #F7F8F3;
    --color-bg-accent: #FF5C38;
    --color-bg-accent-hover: #ff4520;
    
    /* LIGHT MODE TEXT */
    --color-text-primary: #000000;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-accent: #FF5C38;
    --color-text-on-accent: #ffffff;
    
    /* LIGHT MODE BORDERS */
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-border-accent: #FF5C38;
    
    /* LIGHT MODE SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-brand: 0 8px 25px rgba(255, 92, 56, 0.2);
    
    /* CRITICAL: LEGACY VARIABLES - LIGHT MODE VALUES */
    --bg-primary: #F7F8F3;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #475569;
    --border-alpha: #e2e8f0;
}

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

html {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

body {
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Back to Assessment Button */
.back-to-assessment {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border-alpha);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-assessment:hover {
    transform: translateX(-2px);
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
}

.back-to-assessment svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-to-assessment:hover svg {
    transform: translateX(-2px);
}

/* Sidebar Navigation Buttons */
.sidebar-navigation-buttons {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-alpha);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-alpha);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.sidebar-nav-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(3px);
}

.sidebar-nav-btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav-btn.back-btn:hover {
    background: var(--accent-green);
    color: var(--dark-blue);
}

[data-theme="light"] .sidebar-nav-btn {
    background: rgba(255, 92, 56, 0.05);
    border-color: rgba(255, 92, 56, 0.2);
}

[data-theme="light"] .sidebar-nav-btn:hover {
    background: var(--primary-purple);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1.5px solid var(--border-alpha);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.08) rotate(15deg);
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-brand);
}

.theme-toggle:active {
    transform: scale(1.05) rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

/* Dark theme - show sun icon (switch to light) */
[data-theme="dark"] .sun-icon {
    opacity: 1;
    color: #fbbf24;
}

[data-theme="dark"] .moon-icon {
    opacity: 0;
    position: absolute;
}

/* Light theme - show moon icon (switch to dark) */
[data-theme="light"] .sun-icon {
    opacity: 0;
    position: absolute;
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    color: #FF5C38;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

@media screen and (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }
    
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-alpha);
    backdrop-filter: blur(10px);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-alpha);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

.sidebar-content {
    padding: 24px;
}

.sidebar-logo {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-image {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.logo-image:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.sidebar h3 {
    color: var(--accent-green);
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Overall Progress */
.overall-progress {
    margin-bottom: 32px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: var(--border-alpha);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
    border-radius: 10px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 92, 56, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Section Navigation */
.section-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--border-alpha);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-purple);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: rgba(255, 92, 56, 0.1);
    border-color: rgba(255, 92, 56, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.nav-item.active {
    background: rgba(255, 92, 56, 0.15);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item.completed {
    background: rgba(195, 240, 14, 0.1);
    border-color: var(--accent-green);
}

.nav-icon {
    font-size: 1.25rem;
    min-width: 32px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 92, 56, 0.05);
    flex-shrink: 0;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    color: var(--primary-purple);
    background: rgba(255, 92, 56, 0.1);
}

.nav-content {
    flex: 1;
}

.nav-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.nav-progress {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mini-progress {
    height: 4px;
    background: var(--border-alpha);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.nav-status {
    font-size: 1.5rem;
    margin-left: 8px;
    color: var(--text-secondary);
}

.nav-status.completed {
    color: var(--accent-green);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-top: 16px;
}

.sidebar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.container {
    flex: 1;
    margin-left: 320px;
    padding: 32px 40px;
    max-width: 1400px;
    margin-left: 320px;
    margin-right: auto;
    transition: margin-left 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 0 40px;
}

.header-icon {
    font-size: 3.5rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-alpha);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-border-hover);
}

[data-theme="light"] .card {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

[data-theme="light"] .card:hover {
    box-shadow: var(--shadow-lg);
}

.api-setup {
    max-width: 500px;
    margin: 0 auto;
}

.api-setup .card {
    text-align: center;
}

.api-setup h2 {
    color: var(--accent-green);
    margin-bottom: 16px;
}

.api-setup input {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    border: 2px solid var(--border-alpha);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Satoshi', sans-serif;
}

.api-setup input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(255, 92, 56, 0.2);
}

.api-setup small {
    color: var(--text-secondary);
    display: block;
    margin-top: 12px;
}

.api-setup small a {
    color: var(--accent-green);
    text-decoration: none;
}

.api-setup small a:hover {
    text-decoration: underline;
}

.env-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(195, 240, 14, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--accent-green);
}

.env-note small {
    color: var(--accent-green);
    font-weight: 500;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Satoshi', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn:hover i.fa-arrow-right {
    transform: translateX(3px);
}

.btn:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), #ff4520);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff4520, var(--primary-purple));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 92, 56, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--border-alpha);
    color: var(--text-primary);
    border: 1px solid var(--border-alpha);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 92, 56, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--primary-purple);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    margin: 32px 0;
}

/* Company Profile Form Styles */
.company-profile-form {
    margin: 32px 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-purple);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.required-indicator {
    color: var(--primary-purple);
    font-weight: 700;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-alpha);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Satoshi', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(255, 92, 56, 0.1), var(--shadow-md);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Discovery Call Section */
.discovery-call-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discovery-call-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.discovery-call-toggle:hover {
    transform: translateY(-1px);
}

.discovery-call-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--border-alpha);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.discovery-call-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-color: var(--primary-purple);
    box-shadow: 0 4px 16px rgba(255, 92, 56, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discovery-call-toggle input[type="checkbox"]:checked + .toggle-switch .toggle-slider {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    user-select: none;
    transition: color 0.3s ease;
}

.discovery-call-toggle input[type="checkbox"]:checked + .toggle-switch + .toggle-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legacy Checkbox Styles (keeping for backward compatibility) */
.checkbox-group {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-alpha);
    border-radius: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-container:hover {
    background-color: rgba(255, 92, 56, 0.02);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-container input[type="checkbox"]:focus-visible + .checkmark {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    border-color: var(--primary-purple);
}

.checkmark {
    min-width: 24px;
    height: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-alpha);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.checkmark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 92, 56, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-purple);
    background: rgba(255, 92, 56, 0.05);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.checkbox-container:hover .checkmark::before {
    width: 40px;
    height: 40px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
    transform: scale(1.08);
    animation: checkmarkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::before {
    width: 0;
    height: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    line-height: 1;
    animation: checkmarkDraw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.08);
    }
}

@keyframes checkmarkDraw {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.checkbox-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Assessment Sections */
.assessment-container {
    position: relative;
}

.section {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.section-header {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.section-icon {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-top: 4px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 92, 56, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-header:hover .section-icon {
    background: rgba(255, 92, 56, 0.15);
    transform: scale(1.05);
}

.section-header h2 {
    color: var(--accent-green);
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-alpha);
}

.question {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-alpha);
    transition: all 0.2s ease;
}

.question:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.question h4 {
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--border-alpha);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    gap: 16px;
    min-height: 60px;
}

.option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
    z-index: 0;
}

.option:hover {
    background: rgba(255, 92, 56, 0.08);
    border-color: rgba(255, 92, 56, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.option:hover::before {
    transform: scaleX(1);
}

.option:has(input[type="radio"]:checked) {
    background: rgba(255, 92, 56, 0.15);
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(255, 92, 56, 0.1), var(--shadow-md);
    transform: translateX(4px);
}

.option:has(input[type="radio"]:checked)::before {
    transform: scaleX(1);
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Custom Radio Button Circle */
.option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-alpha);
    border-radius: 50%;
    background: var(--bg-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    z-index: 1;
}

.option:hover label::before {
    border-color: var(--primary-purple);
    background: rgba(255, 92, 56, 0.05);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1);
}

.option input[type="radio"]:checked + label::before {
    border-color: var(--primary-purple);
    background: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
    animation: radioPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Check icon inside radio button */
.option input[type="radio"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: white;
    font-size: 12px;
    line-height: 1;
    z-index: 2;
    animation: radioCheckDraw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes radioCheckDraw {
    0% {
        transform: translateY(-50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.option label {
    cursor: pointer;
    flex: 1;
    pointer-events: none;
    user-select: none;
    padding-left: 48px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: color 0.25s ease, font-weight 0.25s ease;
    position: relative;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.option:hover label {
    color: var(--text-primary);
}

.option:has(input[type="radio"]:checked) label {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Focus state for accessibility */
.option input[type="radio"]:focus-visible + label::before {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    border-color: var(--primary-purple);
}

@keyframes radioPop {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.submit-section {
    text-align: center;
    margin: 48px 0;
}

/* Results Container */
.results-container {
    max-width: 1400px;
    margin: 0 auto;
}

.results-card {
    position: relative;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Question Review Section */
.question-review-container {
    max-width: 1200px;
    margin: 0 auto;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.review-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.review-tabs {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.review-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-tab:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
}

.review-tab.active {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
}

.review-section {
    margin-bottom: 40px;
}

.review-section h3 {
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-question {
    background: var(--border-alpha);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-purple);
}

[data-theme="light"] .review-question {
    background: rgba(255, 92, 56, 0.05);
    border: 1px solid var(--border-alpha);
}

.review-question h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.review-answer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    font-weight: 600;
}

.review-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    color: var(--dark-blue);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 8px;
}

/* Company Profile Display */
.company-profile-display {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-alpha);
    border-radius: 8px;
}

.profile-item strong {
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-item span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.profile-item span.interested {
    color: var(--accent-green);
    font-weight: 600;
}

.profile-item span.not-interested {
    color: var(--text-secondary);
}

.overall-score {
    text-align: center;
    margin: 32px 0;
}

.score-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
    border: 3px solid var(--primary-purple);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    box-shadow: var(--shadow-brand);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 92, 56, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.score-display:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 92, 56, 0.3);
    border-color: var(--primary-purple);
}

.score-display:hover::before {
    opacity: 1;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Review Navigation */
.quick-review-nav {
    text-align: center;
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-alpha);
    border-radius: 16px;
}

.quick-review-nav h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.review-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.review-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-alpha);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.review-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 92, 56, 0.3);
    border-color: var(--primary-purple);
}

/* Compact Review Navigation */
.compact-review-nav {
    margin-top: 32px;
    padding: 20px;
    background: var(--border-alpha);
    border-radius: 12px;
    text-align: center;
}

.review-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.compact-review-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-review-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-alpha);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-review-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
    border-color: var(--primary-purple);
}

.chart-container {
    margin: 32px 0;
    height: 400px;
    display: flex;
    justify-content: center;
}

.analysis-sections {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.analysis-card {
    background: var(--border-alpha);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--primary-purple);
}

[data-theme="light"] .analysis-card {
    background: rgba(255, 92, 56, 0.05);
    border: 1px solid var(--border-alpha);
}

.analysis-card h3 {
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

[data-theme="light"] .analysis-card h3 {
    color: var(--primary-purple);
}

.analysis-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.insights-section,
.actions-section,
.journey-section {
    margin: 32px 0;
}

.insights-section h3,
.actions-section h3,
.journey-section h3 {
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

[data-theme="light"] .insights-section h3,
[data-theme="light"] .actions-section h3,
[data-theme="light"] .journey-section h3 {
    color: var(--primary-purple);
}

.journey-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-style: italic;
}

.journey-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: rgba(255, 92, 56, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.journey-step:hover {
    background: rgba(255, 92, 56, 0.1);
    transform: translateX(5px);
}

[data-theme="light"] .journey-step {
    background: rgba(255, 92, 56, 0.03);
    border: 1px solid rgba(255, 92, 56, 0.2);
}

[data-theme="light"] .journey-step:hover {
    background: rgba(255, 92, 56, 0.08);
}

.journey-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.journey-content h4 {
    color: var(--primary-purple);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

[data-theme="light"] .journey-content h4 {
    color: var(--primary-purple);
}

.journey-content p {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.journey-duration {
    display: inline-block;
    background: rgba(195, 240, 14, 0.15);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-theme="light"] .journey-duration {
    background: rgba(195, 240, 14, 0.2);
}

.insight-item,
.action-item {
    background: rgba(255, 92, 56, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-purple);
    color: var(--text-primary);
}

[data-theme="light"] .insight-item,
[data-theme="light"] .action-item {
    background: rgba(255, 92, 56, 0.08);
    border: 1px solid rgba(255, 92, 56, 0.2);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 29, 36, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.loading-content p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 16px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-content p i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-subtext {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 8px;
    font-weight: 400;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Results header styling */
.results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-alpha);
}

.results-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 92, 56, 0.1);
    border-radius: 16px;
    flex-shrink: 0;
}

.results-header h2 {
    margin: 0;
    flex: 1;
}

/* Toggle text icon */
.toggle-text i {
    margin-right: 8px;
    color: var(--primary-purple);
    font-size: 1rem;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 92, 56, 0.2);
    border-top: 4px solid var(--primary-purple);
    border-right: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(255, 92, 56, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .container {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--bg-card);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-alpha);
    }
    
    .theme-toggle {
        right: 20px;
    }
    
    /* Hide back button on mobile when sidebar toggle is shown */
    .back-to-assessment {
        display: none;
    }
}

/* Mobile specific adjustments for privacy/data-rights pages */
@media (max-width: 768px) {
    /* For privacy policy and data rights pages */
    .back-to-assessment {
        top: 16px;
        left: 16px;
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .back-to-assessment svg {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px; /* Tighter padding for mobile */
        max-width: 100%; /* Ensure full width usage */
    }
    
    .header {
        padding: 20px 0; /* Reduce header padding */
    }
    
    .header h1 {
        font-size: 1.8rem; /* Smaller on mobile */
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .card {
        padding: 24px; /* Smaller card padding */
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .question-options {
        gap: 8px; /* Better spacing */
    }
    
    .option {
        padding: 12px; /* Better touch targets */
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .score-display {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .section-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions .btn {
        width: 100%;
    }
    
    .review-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 24px;
    }
    
    .review-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .review-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .review-tab {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .review-header .btn {
        align-self: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .logo-image {
        max-width: 160px;
    }
    
    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
        top: 16px;
        right: 16px;
    }
    
    .sidebar-toggle {
        top: 16px;
        left: 16px;
    }
}

.mobile-only {
    display: none;
}

/* iPad specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .analysis-sections {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-container {
        height: 350px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .analysis-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* GDPR Consent Section Styles */
.gdpr-consent-section {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-alpha);
    border-radius: 12px;
}

.gdpr-consent-section h3 {
    color: var(--accent-green);
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.consent-checkbox-container {
    margin-bottom: 16px;
}
.consent-checkbox-container input[type="checkbox"]
{
    visibility: hidden;
    position: absolute;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    padding: 12px 0;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.consent-label:hover {
    background-color: rgba(255, 92, 56, 0.02);
}

.consent-label .checkmark {
    min-width: 24px;
    height: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-alpha);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.consent-label .checkmark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 92, 56, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-label:hover .checkmark {
    border-color: var(--primary-purple);
    background: rgba(255, 92, 56, 0.05);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.consent-label:hover .checkmark::before {
    width: 40px;
    height: 40px;
}

.consent-checkbox-container input[type="checkbox"]:checked + .consent-label .checkmark {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
    transform: scale(1.08);
    animation: checkmarkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-checkbox-container input[type="checkbox"]:checked + .consent-label .checkmark::before {
    width: 0;
    height: 0;
}

.consent-checkbox-container input[type="checkbox"]:checked + .consent-label .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    line-height: 1;
    animation: checkmarkDraw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.consent-checkbox-container input[type="checkbox"]:focus-visible + .consent-label .checkmark {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    border-color: var(--primary-purple);
}

.consent-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.gdpr-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.gdpr-consent-checkbox:hover {
    background-color: rgba(255, 92, 56, 0.02);
}

.gdpr-consent-checkbox input[type="checkbox"] {
    display: none;
}

.gdpr-consent-checkbox input[type="checkbox"]:focus-visible + .gdpr-checkmark {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    border-color: var(--primary-purple);
}

.gdpr-checkmark {
    min-width: 24px;
    height: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-alpha);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.gdpr-checkmark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 92, 56, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-consent-checkbox:hover .gdpr-checkmark {
    border-color: var(--primary-purple);
    background: rgba(255, 92, 56, 0.05);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.gdpr-consent-checkbox:hover .gdpr-checkmark::before {
    width: 40px;
    height: 40px;
}

.gdpr-consent-checkbox input[type="checkbox"]:checked + .gdpr-checkmark {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
    transform: scale(1.08);
    animation: checkmarkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-consent-checkbox input[type="checkbox"]:checked + .gdpr-checkmark::before {
    width: 0;
    height: 0;
}

.gdpr-consent-checkbox input[type="checkbox"]:checked + .gdpr-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    line-height: 1;
    animation: checkmarkDraw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gdpr-consent-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.gdpr-consent-text a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gdpr-consent-text a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Data Rights Portal - Theme-specific colors for better visibility */
/* Dark mode - keep original green for all green elements */
[data-theme="dark"] .data-rights-title,
[data-theme="dark"] .request-data-title,
[data-theme="dark"] .rights-access-title {
    color: var(--accent-green) !important;
}

[data-theme="dark"] .rights-access {
    border-left-color: var(--accent-green) !important;
}

/* Light mode - use blue (primary-purple) for better visibility instead of green */
[data-theme="light"] .data-rights-title,
[data-theme="light"] .request-data-title,
[data-theme="light"] .rights-access-title {
    color: var(--primary-purple) !important; /* Use Systango orange brand color */
}

[data-theme="light"] .rights-access {
    border-left-color: var(--primary-purple) !important;
}

/* Request My Data Button - Theme-specific colors */
.request-data-btn {
    transition: all 0.3s ease;
}

/* Dark mode - green button */
[data-theme="dark"] .request-data-btn {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: var(--dark-blue) !important;
}

[data-theme="dark"] .request-data-btn:hover {
    background: #c8e815 !important; /* Slightly lighter green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 240, 14, 0.3);
}

/* Light mode - purple button */
[data-theme="light"] .request-data-btn {
    background: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
    color: white !important;
}

[data-theme="light"] .request-data-btn:hover {
    background: #ff4520 !important; /* Slightly darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 56, 0.3);
}

/* Privacy Links Styling */
.privacy-link {
    color: var(--primary-purple) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.privacy-link:hover {
    color: var(--accent-green) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-green);
}

[data-theme="light"] .privacy-link {
    color: var(--primary-purple) !important;
}

[data-theme="light"] .privacy-link:hover {
    color: var(--accent-green) !important;
}

.gdpr-privacy-links {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-alpha);
}

.gdpr-privacy-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.gdpr-privacy-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    margin-right: 16px;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.gdpr-privacy-links a:hover {
    color: var(--accent-green);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-green);
}

/* Iframe-specific optimizations for Systango */
@media (max-width: 1200px) {
    /* When embedded in smaller iframes */
    body {
        margin: 0;
        padding: 0;
    }
    
    .container {
        min-height: auto;
        padding: 16px;
    }
    
    .header {
        padding: 16px 0;
    }
}

/* Extra responsive optimizations for iframe embedding */
@media (max-width: 900px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 18px;
    }
    
    .question-container {
        padding: 0;
    }
    
    /* Ensure buttons don't get too cramped */
    .section-navigation .btn {
        min-height: 44px; /* Better touch targets */
    }
}

/* When iframe is in mobile-like dimensions */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .card {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .option {
        padding: 10px;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .question-text {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    
    /* Compact sidebar for iframe */
    .sidebar {
        width: 280px;
    }
    
    /* Better spacing for mobile iframe */
    .btn {
        min-height: 48px; /* Larger touch targets */
        font-size: 0.9rem;
    }
}

/* Very small iframe dimensions */
@media (max-width: 400px) {
    .container {
        padding: 8px;
    }
    
    .card {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    /* Stack navigation buttons vertically on very small screens */
    .section-navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .section-navigation .btn {
        width: 100%;
    }
}

/* Auto-hide sidebar for results page */
.sidebar.hidden-for-results {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.container.sidebar-hidden-for-results {
    margin-left: auto;
    margin-right: auto;
    transition: margin-left 0.3s ease;
}

/* When sidebar is shown again, ensure proper responsive behavior */
.sidebar:not(.hidden-for-results) {
    transform: translateX(0);
}

.container:not(.sidebar-hidden-for-results) {
    margin-left: 320px;
}

/* Show Sidebar Button */
.show-sidebar-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: var(--color-bg-accent);
    color: var(--color-text-on-accent);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
}

.show-sidebar-btn:hover {
    background: var(--color-bg-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.show-sidebar-btn svg {
    width: 16px;
    height: 16px;
}

/* Close Sidebar Button (shown when sidebar is reopened in results) */
.close-sidebar-btn {
    background: var(--color-bg-accent);
    color: var(--color-text-on-accent);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.close-sidebar-btn:hover {
    background: var(--color-bg-accent-hover);
    transform: translateY(-1px);
}

.close-sidebar-btn svg {
    width: 16px;
    height: 16px;
}

/* Sidebar Collapse Button (inside sidebar) */
.sidebar-collapse-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    z-index: 1000;
}

/* Sidebar Expand Button (sticky, scrolls with page) - Systango Orange */
.sidebar-expand-btn {
    position: sticky;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    float: left;
    margin: 10px;
}

.sidebar-collapse-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.sidebar-expand-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-collapse-btn svg,
.sidebar-expand-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-collapse-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar.collapsed .sidebar-collapse-btn .hide-icon {
    display: none;
}

.sidebar.collapsed .sidebar-collapse-btn .show-icon {
    display: block;
}

.sidebar-collapse-btn .show-icon {
    display: none;
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.container.sidebar-collapsed {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Anytime sidebar hide classes */
.sidebar.hidden-anytime {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.container.sidebar-hidden-anytime {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Mobile and tablet responsive behavior */
@media (max-width: 1024px) {
    .show-sidebar-btn {
        display: none !important;
    }
    
    .close-sidebar-btn {
        display: none !important;
    }
    
    /* Keep collapse/expand buttons visible on mobile */
    .sidebar-collapse-btn {
        display: flex !important;
    }
    
    .sidebar-expand-btn {
        display: flex !important;
        position: sticky;
        top: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
        margin: 15px;
    }
    
    .sidebar.hidden-for-results {
        transform: translateX(-100%);
    }
}

/* For very small screens (phones) */
@media (max-width: 768px) {
    .sidebar-expand-btn {
        position: sticky;
        top: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        margin: 20px;
    }
    
    .sidebar-collapse-btn {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .option,
    .spinner {
        transition: none;
        animation: none;
    }
}
