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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #64748b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* Main content */
main {
    margin-top: 70px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 50px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
    font-size: 1.15rem;
    border: 2px solid #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,0.15), 0 1.5px 4px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-weight: 700;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,99,235,0.22), 0 2px 8px rgba(0,0,0,0.12);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* Assessment section */
.assessment-section {
    padding: 40px 0 20px 0;
    background: white;
    min-height: calc(100vh - 70px);
}

.assessment-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1e293b;
}

/* Tools Matrix section */
.tools-matrix-section {
    padding: 40px 0 20px 0;
    background: white;
    min-height: calc(100vh - 70px);
}

.tools-matrix-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.tools-matrix-content {
    max-width: 100%;
    overflow-x: auto;
}

.tools-matrix-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #64748b;
}

.filter-label select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #374151;
    min-width: 150px;
}

.filter-label select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}



.stats-badge {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tools-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.tools-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
}

.tools-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    min-width: 120px;
}

.tools-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background: #f8fafc;
    min-width: 200px;
    border-right: 2px solid #e2e8f0;
}

.tools-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.tools-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background: white;
    font-weight: 600;
    color: #1e293b;
    border-right: 2px solid #e2e8f0;
}

.tools-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tools-table tbody tr:nth-child(even) td:first-child {
    background: #f8fafc;
}

.tools-table tbody tr:hover {
    background: #f1f5f9;
}

.tools-table tbody tr:hover td:first-child {
    background: #f1f5f9;
}

.tools-table .tool-check {
    color: #059669;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .tools-matrix-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-label select {
        min-width: 200px;
    }
    
    .tools-table th,
    .tools-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .tools-table th:first-child,
    .tools-table td:first-child {
        min-width: 150px;
    }
}

/* About section */
.about-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.about-card h3 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Team section */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.member-photo {
    margin-bottom: 20px;
}

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.team-member:hover .member-photo img {
    border-color: #2563eb;
}

.member-info h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.member-title {
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.member-company {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Form styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .team-member {
        padding: 25px;
    }
    
    /* Mobile fixes for question analysis cards */
    .question-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .question-breakdown-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .breakdown-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-score {
        width: 100%;
        justify-content: space-between;
    }
    
    .performance-indicator {
        font-size: 0.75rem;
        padding: 2px 4px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
    
    .breakdown-bars {
        display: block !important;
    }
    
    .breakdown-bar {
        display: block !important;
        margin-bottom: 16px;
        width: 100%;
        overflow: hidden;
    }
    
    .breakdown-bar-top {
        display: block !important;
        margin-bottom: 6px;
    }
    
    .breakdown-label {
        display: block;
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 4px;
    }
    
    .breakdown-bar-container {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .breakdown-value {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.1;
        color: #64748b;
        text-align: left;
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    /* Mobile playbook options */
    .playbook-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-left: -22px !important;
    }
    
    .playbook-option {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .option-header {
        text-align: center;
    }
    
    .option-score {
        justify-content: center;
    }
    
    .btn-guidance {
        width: 50%;
        align-self: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Small screens - fully responsive cards */
@media (max-width: 400px) {
    .container {
        padding: 0;
    }
    
    .detailed-breakdown {
        padding: 0;
        margin: 16px 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .detailed-breakdown h4 {
        font-size: clamp(14px, 3.6vw, 18px);
        margin: 0 0 16px 0;
        text-align: center;
    }
    
    .question-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-left: -22px !important;
    }
    
    .question-breakdown-item {
        padding: 12px 12px 12px 1px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Title row - allow wrapping */
    .breakdown-header {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .breakdown-header h5 {
        font-size: clamp(14px, 3.6vw, 18px);
        margin: 0;
        text-align: left;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        line-height: 1.2;
        word-spacing: 999px;
    }
    
    /* Chips row - flexible wrapping */
    .breakdown-score {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        margin: 8px 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .user-score-badge,
    .maturity-level-badge {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .performance-indicator {
        flex: 0 0 auto;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
    }
    
    /* Score blocks - complete vertical stack */
    .breakdown-bars {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .breakdown-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .breakdown-label {
        font-size: clamp(11px, 2.8vw, 14px) !important;
        color: #64748b !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 500 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .breakdown-bar-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 8px !important;
        background: #e5e7eb !important;
        border-radius: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .breakdown-bar-fill {
        height: 8px !important;
        border-radius: 4px !important;
        max-width: 100% !important;
    }
    
    .breakdown-value {
        font-size: clamp(11px, 2.8vw, 14px) !important;
        color: #64748b !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    /* Playbook options extra small */
    .playbook-option {
        padding: 12px 12px 12px 1px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .option-header h5 {
        font-size: clamp(11px, 2.8vw, 14px);
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
    }
    
    .btn-guidance {
        width: 60%;
        max-width: 60%;
        padding: 8px 12px;
        font-size: clamp(10px, 2.5vw, 12px);
        box-sizing: border-box;
    }
}

/* Survey specific styles */
.survey-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px 60px 40px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-height: none;
    overflow: visible;
}

.survey-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.survey-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Question styles */
.question-header {
    margin-bottom: 25px;
    text-align: center;
}

.question-number {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.question-content {
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.3;
}

.radio-group {
    margin-bottom: 30px;
    display: grid;
    gap: 12px;
}

.radio-option {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.radio-option:hover {
    border-color: #2563eb;
    background-color: #f8fafc;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: auto;
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: #2563eb;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.radio-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #374151;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.form-actions .btn {
    min-width: 180px;
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Results styles */
.results-content {
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.score-details {
    text-align: left;
}

.score-details h4 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.benchmark-info {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.benchmark-info h4 {
    color: #1e293b;
    margin-bottom: 15px;
}

.benchmark-info ul {
    margin-left: 20px;
    color: #64748b;
}

.benchmark-info li {
    margin-bottom: 5px;
}

/* Loading and error states */
.loading-content, .error-content {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.error-details-section {
    margin: 20px 0;
    text-align: left;
}

.error-details-section details {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    background: #f9fafb;
}

.error-details-section summary {
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    padding: 5px;
}

.error-details {
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #ef4444;
    background: #fef2f2;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
}

.error-details p {
    margin: 5px 0;
    word-break: break-word;
}

.benchmark-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.benchmark-section h5 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.score-raw {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Validation error styles */
.validation-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: none;
}

.validation-error-list h4 {
    color: #dc2626;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.validation-error-list ul {
    color: #991b1b;
    margin-left: 20px;
}

.validation-error-list li {
    margin-bottom: 5px;
}

/* Form field error states */
.form-group input.error,
.form-group select.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Survey form button overrides */
.survey-form .btn-secondary {
    background: transparent;
    color: #64748b;
    border: 2px solid #64748b;
}

.survey-form .btn-secondary:hover {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

/* GDPR Notice */
.gdpr-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.gdpr-notice h4 {
    color: #1e293b;
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
}

.gdpr-notice p {
    margin: 8px 0;
    color: #475569;
}

.privacy-link {
    color: #2563eb;
    text-decoration: underline;
}

.privacy-link:hover {
    color: #1d4ed8;
}

.consent-checkbox {
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: auto;
    flex-shrink: 0;
}

.checkmark {
    margin-left: 0;
}

/* Privacy page styles */
.privacy-section {
    padding: 40px 0 80px 0;
    background: white;
}

.privacy-section h1 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.privacy-content h2 {
    color: #2563eb;
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.privacy-content p {
    margin-bottom: 15px;
    color: #374151;
}

.privacy-content ul {
    margin: 15px 0 15px 20px;
    color: #374151;
}

.privacy-content li {
    margin-bottom: 8px;
}

.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info p {
    margin: 8px 0;
}

/* Test mode indicator */
.test-mode-indicator {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Detailed breakdown section */
.detailed-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.detailed-breakdown h4 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.question-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.question-breakdown-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

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

.breakdown-header h5 {
    color: #1e293b;
    font-size: 1rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.breakdown-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-score-badge {
    background: #2563eb;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.performance-indicator {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.performance-indicator.above-average {
    background: #dcfce7;
    color: #166534;
}

.performance-indicator.below-average {
    background: #fef2f2;
    color: #dc2626;
}

.performance-indicator.at-average {
    background: #f1f5f9;
    color: #475569;
}

.breakdown-bars {
    display: grid;
    gap: 8px;
    padding-left: 15px;
}

.breakdown-bar {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    align-items: center;
    gap: 10px;
}

.breakdown-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.breakdown-bar-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.breakdown-bar-fill.your-score {
    background: #2563eb;
}

.breakdown-bar-fill.company-score {
    background: #059669;
}

.breakdown-bar-fill.industry-score {
    background: #7c3aed;
}

.breakdown-value {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maturity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.maturity-level-badge {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Results tabs */
.results-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    margin: 30px 0 20px 0;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-button.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.tab-button:hover:not(.active) {
    background: #e2e8f0;
    color: #374151;
}

.tab-content {
    margin-top: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Company comparison styles */
.company-stats {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 20px;
}

.company-question-comparison {
    margin-top: 25px;
}

.company-questions-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.company-question-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.company-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.company-question-header h6 {
    color: #1e293b;
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.comparison-indicator {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.comparison-indicator.above-company {
    background: #dcfce7;
    color: #166534;
}

.comparison-indicator.below-company {
    background: #fef2f2;
    color: #dc2626;
}

.comparison-indicator.at-company {
    background: #f1f5f9;
    color: #475569;
}

.company-comparison-bars {
    display: grid;
    gap: 6px;
}

.comparison-bar {
    display: grid;
    grid-template-columns: 60px 1fr 100px;
    align-items: center;
    gap: 10px;
}

.comparison-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.comparison-bar-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.comparison-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.comparison-value {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 600;
    text-align: right;
}

.btn-playbook {
    background: #7c3aed;
    color: white;
    border: 2px solid #7c3aed;
}

.btn-playbook:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    transform: translateY(-2px);
}

/* Playbook loading overlay */
#playbook-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.playbook-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
}

.playbook-loading-content h3 {
    color: #1e293b;
    margin: 20px 0 10px 0;
}

.playbook-loading-content p {
    color: #64748b;
    margin-bottom: 15px;
}

.progress-text {
    color: #7c3aed;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Playbook guidance styles */
.playbook-guidance {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.playbook-guidance h4 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.playbook-guidance p {
    text-align: center;
    color: #1e40af;
    margin-bottom: 25px;
}

.playbook-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.playbook-option {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.option-header {
    flex: 1;
}

.option-header h5 {
    color: #1e293b;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.option-score {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.score-badge {
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.maturity-tag {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

.btn-guidance {
    background: #1e40af;
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.btn-guidance:hover {
    background: #1e3a8a;
}

.btn-guidance:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.max-score-message {
    color: #059669;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Guidance display */
.guidance-display {
    margin: 30px 0;
}

.guidance-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.guidance-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.guidance-header h4 {
    color: #1e293b;
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.score-progression {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-level, .target-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.arrow {
    font-size: 1.2rem;
    color: #64748b;
}

.btn-close {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: #dc2626;
}

.guidance-sections {
    padding: 20px;
}

.guidance-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

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

.guidance-section h5 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.guidance-markdown {
    color: #374151;
    line-height: 1.6;
}

.guidance-markdown h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
}

.guidance-markdown h4 {
    color: #374151;
    font-size: 1rem;
    margin: 12px 0 8px 0;
}

.guidance-markdown h5 {
    color: #64748b;
    font-size: 0.9rem;
    margin: 10px 0 5px 0;
}

.guidance-markdown ul {
    margin: 10px 0 10px 20px;
}

.guidance-markdown li {
    margin-bottom: 5px;
}

.guidance-actions {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.guidance-loading, .guidance-error {
    text-align: center;
    padding: 40px;
}

.guidance-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

/* Question benchmarks display */
.question-benchmarks {
    margin-top: 30px;
}

.question-benchmarks h5 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.questions-grid {
    display: grid;
    gap: 20px;
}

.question-benchmark {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

.question-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.score-bar {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.score-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.bar-container {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

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

.bar-fill.your-score {
    background: #2563eb;
}

.bar-fill.company-score {
    background: #059669;
}

.bar-fill.industry-score {
    background: #7c3aed;
}

.score-value {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 600;
    text-align: right;
}

/* XL screen optimizations for above-the-fold fit */
@media (min-width: 1440px) {
    .survey-form {
        padding: 25px 60px 35px 60px;
    }
    
    .question-header {
        margin-bottom: 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
        line-height: 1.25;
    }
    
    .radio-group {
        margin-bottom: 25px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }
    
    .radio-option {
        padding: 12px 16px;
    }
    
    .radio-text {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .form-actions {
        margin-top: 25px;
        gap: 12px;
    }
    
    .form-actions .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: relative;
    }
    
    .survey-form {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .gdpr-notice {
        padding: 15px;
        margin: 20px 0;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .radio-option {
        padding: 15px 20px;
    }
    
    .radio-text {
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions .btn {
        min-width: auto;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .score-details {
        text-align: center;
    }
}
