/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Mobile scrollbar support */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Container for consistent padding and max-width */
.container {
    width: 92%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

/* Header Styles */
header {
    background-color: white;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.header-logo-link {
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-tagline {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 2px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Main Content Area */
main.container {
    flex-grow: 1;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 24px;
}

/* Footer Styles */
footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-separator {
    color: #4b5563;
}

.company-abn {
    color: #9ca3af;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #40B7E6;
}

.footer-copyright {
    color: #9ca3af;
}

/* Responsive footer for small screens */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Flash Messages */
.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}
.flash-message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-success { 
    background-color: #f0fdf4;
    color: #166534;
    border-color: #dcfce7;
}
.flash-error { 
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fee2e2;
}
.flash-warning { 
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}
.flash-info { 
    background-color: #f0f9ff;
    color: #075985;
    border-color: #e0f2fe;
}

/* Progress Bar (Fixed at Top) */
.progress-bar-fixed {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.9em;
    color: #4b5563;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar-fixed p {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #1f2937;
    font-weight: 500;
}

.progress-bar-fixed strong {
    color: #40B7E6;
}

.condensed-scale-area {
    margin-top: 4px;
    text-align: left;
    padding: 6px 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
}

.condensed-scale-title {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.condensed-scale-text {
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    justify-content: space-between;
}

.scale-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.95em;
    color: #64748b;
}

.scale-item:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #e2e8f0;
}

.scale-item strong {
    color: #40B7E6;
    margin-right: 4px;
    font-weight: 600;
}

/* Chat Area Styles */
.chat-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 24px;
    background-color: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message.user {
    background-color: #eff6ff;
    margin-left: auto;
    text-align: left;
    border: 1px solid #dbeafe;
}

.chat-message.vali {
    background-color: #FFFFFF;
    border: 1px solid #e5e7eb;
    margin-right: auto;
    text-align: left;
    max-width: 98%;
}

.message-sender strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: #64748b;
    font-weight: 600;
}

.chat-message.user .message-sender strong { color: #40B7E6; }
.chat-message.vali .message-sender strong { color: #40B7E6; }

.message-content {
    color: #1f2937;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Response Area (User Input Area) */
.response-area {
    margin-top: 24px;
    padding: 24px;
    background-color: #FFFFFF;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.response-area label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.95em;
}

/* Radio Button Group Styling */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    justify-content: center;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #40B7E6;
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    font-size: 0.95em;
}

/* Textarea for Thoughts/Comments */
#user_thoughts {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.15s ease-in-out;
}

#user_thoughts:focus {
    outline: none;
    border-color: #40B7E6;
    box-shadow: 0 0 0 3px rgba(64, 183, 230, 0.1);
}

/* Submit Button */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.button-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.submit-button, .continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #40B7E6;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    height: 48px;
    text-decoration: none;
}

.submit-button:hover {
    background-color: #2FA3D3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(64, 183, 230, 0.2);
}

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

.continue-button {
    background-color: #28a745;
}

.continue-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

@media (max-width: 768px) {
    .button-row {
        flex-direction: column;
    }
    
    .submit-button, .continue-button {
        width: 100%;
        max-width: none;
    }
}

/* Welcome Page Specifics */
.welcome-container h1 {
    color: #333; /* Override header color for welcome page if inside main */
    text-align: left;
    margin-bottom: 0.5em;
}
.welcome-container .lead {
    font-size: 1.25em;
    margin-bottom: 1em;
    color: #555;
}
.welcome-container p {
    color: #555;
    margin-bottom: 1em;
}
.scale-reference-container {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #F8F9FA;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}
.scale-reference-container h2, /* For old h2, new is h3 */
.rating-definitions-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #4A90E2;
}
.scale-text { /* Old style for pre text */
    white-space: pre-wrap; 
    font-family: "Courier New", Courier, monospace; 
    font-size: 0.95em;
    background-color: #FFF;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* New styles for rating definitions list */
.rating-definitions-container {
    /* Uses .welcome-section for general padding/margin if applicable */
    /* Add specific styles if .welcome-section is not enough or suitable */
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #F8F9FA; /* Light grey background */
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
}

.rating-definitions-container p { /* Intro paragraph for the definitions */
    margin-bottom: 15px;
    font-size: 1em;
}

.rating-list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
}

.rating-list li {
    margin-bottom: 8px; /* Space between list items */
    font-size: 1em;
    padding: 8px;
    background-color: #FFFFFF; /* White background for each item */
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.rating-list li strong {
    color: #333; /* Darker color for the rating level */
    margin-right: 5px;
}

.start-button-container {
    text-align: center; /* Center the start button */
    margin-top: 30px;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-decoration: none; /* Remove underline from link-style buttons */
}

.btn-primary {
    color: #fff;
    background-color: #4A90E2;
    border-color: #4A90E2;
}
.btn-primary:hover {
    background-color: #357ABD;
    border-color: #357ABD;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}


/* Report Page Specifics */
.report-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}
.report-section:last-child {
    border-bottom: none;
}
.report-section h3 {
    color: #4A90E2;
    margin-bottom: 10px;
}
.report-section h4 {
    color: #357ABD; /* Slightly darker blue for sub-headers */
    margin-top: 15px;
    margin-bottom: 8px;
}
.report-section ul {
    list-style: disc;
    padding-left: 20px;
}
.report-section li {
    margin-bottom: 5px;
}
.report-text-block {
    background-color: #F8F9FA;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #374151;
}

.report-text-block h1, .report-text-block h2, .report-text-block h3, .report-text-block h4, .report-text-block h5, .report-text-block h6 {
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.report-text-block p {
    margin-bottom: 1em;
}

.report-text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.report-text-block ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 1em;
}

.report-text-block li {
    margin-bottom: 0.5em;
}

.report-text-block strong {
    font-weight: 600;
    color: #1f2937;
}

.report-text-block a {
    color: #40B7E6;
    text-decoration: none;
}

.report-text-block a:hover {
    text-decoration: underline;
}

/* New styles for report sections */
.report-summary-text {
    margin-top: 20px;
}

.radar-chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.score-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #40B7E6, #22d3ee);
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

.paywall-card {
    text-align: center;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.paywall-card h2 {
    color: #e65100;
    margin-bottom: 1.5rem;
}

.paywall-message {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

.paywall-tier-info {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 1rem;
}

.pricing-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pricing-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.paywall-card .action-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    background-color: #28a745;
    border-color: #28a745;
}

.secure-payment-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.report-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-actions .btn {
    flex-shrink: 0;
}

.disabled-btn {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.email-report-info {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* Error page styling (simple) */
.error-container {
    text-align: center;
}

.error-container h1 {
    color: #e74c3c;
    margin-bottom: 1em;
}

/* Styling for the form actions container to hold buttons */

/* .more-info-button {
    padding: 10px 15px;
    font-size: 0.9em;
    background-color: #6c757d; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.more-info-button:hover {
    background-color: #5a6268;
} */

/* Privacy Page Styles */
.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-container h1 {
    color: #1f2937;
    font-size: 2em;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #40B7E6;
}

.privacy-section {
    margin-bottom: 2em;
}

.privacy-section h2 {
    color: #40B7E6;
    font-size: 1.4em;
    margin-bottom: 1em;
}

.privacy-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1em;
}

.privacy-section ul {
    list-style-type: disc;
    margin-left: 1.5em;
    margin-bottom: 1em;
    color: #4b5563;
}

.privacy-section li {
    margin-bottom: 0.5em;
    line-height: 1.5;
}

/* Results Page Styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Report Header */
.results-header {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.report-meta {
    flex: 1;
}

.report-meta h1 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.results-date {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
}

.overall-score {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.score-label {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    color: #40B7E6;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-card h2 {
    color: #1f2937;
    font-size: 1.5em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #40B7E6;
}

/* Maturity Overview */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.chart-container {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.radar-chart {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Enhanced Score Items */
.scores-container {
    padding: var(--spacing-lg);
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.scores-container .score-item {
    width: 100%;
    max-width: none;
    padding: calc(var(--spacing-sm)/2) var(--spacing);
}

/* Score Header Layout: icon, category, and score on one line */
.score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}
.score-icon {
    flex-shrink: 0;
    margin-right: var(--spacing);
    font-size: 1.2em;
    color: var(--color-primary);
}
.score-title {
    flex: 1;
    margin: 0; /* override any h3 margins */
    font-size: 0.8em;
    color: var(--color-secondary);
}
.score-value {
    flex-shrink: 0;
    margin-left: var(--spacing);
    font-size: 0.9em;
    font-weight: 700;
    color: var(--color-primary);
}

.score-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-item h3 {
    color: #1f2937;
    font-size: 1.1em;
    margin-bottom: 1rem;
}

.score-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #40B7E6;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Key Findings */
.findings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.findings-grid h3 {
    color: #40B7E6;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

/* Category Analysis */
.category-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.category-section h3 {
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-score {
    font-size: 0.9em;
    color: #40B7E6;
    background: #f0f9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* === Action Plan (Timeline) === */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing);
    justify-items: stretch;
}

/* Each phase column */
.timeline-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Remove connecting line */
.timeline-section:not(:last-child)::after { content: none; }

/* Header */
.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing);
}

/* Circular icon */
.timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-bg-lighter);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0;
}

.timeline-period {
    margin-left: auto;
    font-size: 0.85em;
    color: var(--color-muted);
}

/* Custom bullet icons inside each action list */
.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.timeline-content li::before {
    content: "\f0a9"; /* Font Awesome arrow-circle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--color-primary);
}

/* Enhanced Response Cards */
.response-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

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

.response-question {
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 1rem;
}

.response-score {
    color: #40B7E6;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.response-comment {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Print Styles Enhancement */
@media print {
    .results-container {
        padding: 0;
    }

    .section-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .report-actions,
    .actions-container {
        display: none;
    }

    /* Keep 3 columns for action plan even in print */
    .timeline-container {
        grid-template-columns: repeat(3, 1fr);
        gap: calc(var(--spacing)/2);
    }

    .collapsible-button {
        cursor: default;
    }

    .collapsible-content {
        display: block !important;
    }

    .toggle-icon {
        display: none;
    }

    .score-item,
    .response-card {
        break-inside: avoid;
    }
}

/* Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2rem;
    color: #1f2937;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.4;
}

/* Features Section */
.why-choose-section {
    padding: 1.5rem 0;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem;
    color: #4b5563;
    line-height: 1.4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
}

.feature-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 1.5rem;
    color: #40B7E6;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.75rem 0;
}

.step-card {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #40B7E6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 0.5rem;
    font-size: 0.85rem;
}

/* Pricing Section */
.pricing-section {
    padding: 1.5rem 0;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px; /* smaller card height */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #40B7E6;
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 25px;
    right: -70px; /* move ribbon slightly right so full text visible */
    background: #40B7E6;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 60px; /* balanced width */
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.pricing-card h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    color: #40B7E6;
    margin: 1rem 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.price .currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: "✓";
    color: #40B7E6;
    font-weight: bold;
}

.tier-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #40B7E6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.tier-button:hover {
    background: #2c9fd1;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 1rem;
    background: #4A90E2;
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 1rem;
    font-size: 0.95rem;
}

/* Buttons */
.cta-button, .tier-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #40B7E6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.tier-button {
    width: 100%;
    margin-top: 0.5rem;
}

/* General Styles */
h2 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

section {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
    }

    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
        min-height: auto;
    }

    .pricing-card.featured::before {
        top: 12px;
        right: -35px;
        padding: 3px 35px;
    }
}

/* CSS Variables for color palette and spacing */
:root {
    --color-primary: #40B7E6;
    --color-primary-dark: #3080ff;
    --color-secondary: #1f2937;
    --color-bg-light: #f8fafc;
    --color-bg-lighter: #ffffff;
    --color-text: #374151;
    --color-border: #e5e7eb;
    --color-muted: #6b7280;
    --border-radius: 8px;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --color-accent-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* Category Details Table */
.category-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing) 0;
}
.category-table td {
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing);
    vertical-align: top;
}
.category-table .section-heading {
    background-color: var(--color-bg-light);
    font-weight: 600;
    width: 30%;
    padding: var(--spacing-sm) var(--spacing);
    text-align: left;
}

/* Results Page Adjustments: Hero logo, Radar chart sizing, Progress bars on tiles */
.report-logo img {
    max-height: 60px;
    width: auto;
}

.radar-chart-container {
    width: 100%;
    margin: var(--spacing-lg) 0;
}
.radar-chart-container img {
    width: 100%;
    height: auto;
}

/* Tile Progress Bars */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: var(--spacing);
}
.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    transition: width .6s ease-out;
}

/* Maturity Overview Layout */
.maturity-overview-grid {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0; /* add space above and below */
}
@media (max-width: 768px) {
    .maturity-overview-grid {
        flex-direction: column;
    }
}
/* Set proportional widths: radar chart 3/4, scores 1/4 */
.maturity-overview-grid .overview-chart-wrapper {
    flex: 2;
}
.maturity-overview-grid .scores-container {
    flex: 1;
    margin: 0; /* remove nested margin so content aligns with chart */
}
/* Compact score cards */
.scores-container .score-item {
    padding: calc(var(--spacing-sm)/2) var(--spacing);
}
.score-header {
    padding: 0;
}
.score-title {
    font-size: 0.8em;
}
.score-value {
    font-size: 0.9em;
}
.progress-container {
    margin-top: var(--spacing-sm);
    height: 5px;
}

/* Results Page Header Layout */
.results-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}
.results-header-flex .report-logo {
    margin: 0;
}
.results-header-flex .report-header {
    flex: 1;
    margin-left: var(--spacing-lg);
}
.results-header-flex .page-title {
    font-size: 2rem;
    margin: 0;
}
.results-header-flex .report-meta {
    margin: var(--spacing-sm) 0 0;
}

/* Override nested margins for aligned columns */
.maturity-overview-grid .radar-chart-container {
    margin: 0;
}
.maturity-overview-grid .scores-container {
    flex: 1;
    margin: 0; /* remove nested margin so content aligns with chart */
}

/* Tier-specific blues */
.tier-starter {
    border-color: #B4DFFF;
}
.tier-starter .tier-button {
    background: #40B7E6;
}

.tier-standard {/* featured already styled */}

.tier-premium {
    border-color: #0080C6;
}
.tier-premium .tier-button {
    background: #0080C6;
}

/* Compact spacing overrides for Landing Page */
.landing-container .hero-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.landing-container .why-choose-section,
.landing-container .how-it-works-section,
.landing-container .pricing-section,
.landing-container .cta-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.landing-container .features-grid,
.landing-container .steps-grid {
    gap: 0.75rem;
}

.landing-container .feature-card,
.landing-container .step-card,
.landing-container .pricing-card {
    padding: 0.75rem;
}

.landing-container .pricing-grid {
    gap: 1rem;
    padding: 0.5rem;
}

.landing-container .cta-section {
    padding: 0.75rem;
    background: var(--color-accent-gradient);
}

.landing-container .cta-button {
    background: var(--color-primary-dark);
}
.landing-container .cta-button:hover {
    background: var(--color-primary);
}

.landing-container .pricing-card.featured::before {
    background: var(--color-primary-dark);
}

/* Highlight Standard tier button */
.landing-container .tier-standard .tier-button {
    background: var(--color-primary-dark);
}
.landing-container .tier-standard .tier-button:hover {
    background: var(--color-primary);
}

/* De-emphasise Premium tier button */
.landing-container .tier-premium .tier-button {
    background: var(--color-primary);
}
.landing-container .tier-premium .tier-button:hover {
    background: var(--color-primary-dark);
}

/* Larger pricing typography */
.landing-container .price {
    font-size: 3rem;
}
.landing-container .price .currency {
    font-size: 1.75rem;
}

/* Loading spinner for question submission */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #40B7E6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1em;
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    background-color: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #40B7E6;
    background-color: #ffffff;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1f2937;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}

/* Mobile Scrollbar Visibility Improvements */
/* Always show scrollbars on mobile for better UX */
* {
    /* Make scrollbars visible on WebKit browsers (iOS Safari, Chrome) */
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling for WebKit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* More prominent scrollbars on mobile */
@media (max-width: 768px) {
    /* Force scrollbars to be always visible on mobile */
    html {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make scrollbars wider and more visible on mobile */
    ::-webkit-scrollbar {
        width: 14px;
        height: 14px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #64748b;
        border-radius: 7px;
        border: 2px solid #f8fafc;
        min-height: 40px; /* Minimum thumb size for easier grabbing */
    }
    
    ::-webkit-scrollbar-thumb:active {
        background: #475569;
    }
    
    /* Add visual indicator that content is scrollable */
    .main-content-scrollable::after {
        content: '';
        position: fixed;
        right: 0;
        top: 50%;
        width: 4px;
        height: 40px;
        background: rgba(100, 116, 139, 0.3);
        border-radius: 2px 0 0 2px;
        pointer-events: none;
        animation: scrollIndicator 3s ease-in-out infinite;
        z-index: 1001;
    }
    
    @keyframes scrollIndicator {
        0%, 100% { 
            opacity: 0;
            transform: translateY(-50%) translateX(0);
        }
        50% { 
            opacity: 1;
            transform: translateY(-50%) translateX(-2px);
        }
    }
    
    /* Firefox scrollbar styling */
    html {
        scrollbar-width: auto;
        scrollbar-color: #64748b #f1f5f9;
    }
}

/* Ensure main content areas are properly scrollable */
main.container,
.chat-container,
.results-container {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Add scroll hint for very long content */
@media (max-width: 768px) {
    .scroll-hint {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: rgba(64, 183, 230, 0.9);
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        z-index: 1002;
        pointer-events: none;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    
    .scroll-hint.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-hint::before {
        content: '↓ ';
        font-weight: bold;
    }
}

/* Results Page Enhancements */
.section-card .chart-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.radar-chart-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.scores-section {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.scores-list .score-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.scores-list .score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left-color: #40B7E6;
}

.progress-container {
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: relative;
    overflow: hidden;
}

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

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

/* Chart loading states */
#chartLoadingMessage {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
}

#chartErrorMessage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .section-card .chart-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .radar-chart-container {
        padding: 1rem;
    }
    
    .scores-list {
        max-width: 100% !important;
        padding: 0 1rem;
    }
    
    .score-item {
        padding: 1rem !important;
    }
}

/* Two-column chart and scores layout */
.chart-scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.chart-column .radar-chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.scores-column .scores-list {
    padding-right: 8px;
}

.scores-column .score-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.scores-column .score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left-color: #40B7E6;
}

/* Mobile responsive - stack vertically on small screens */
@media (max-width: 768px) {
    .chart-scores-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-column {
        order: 1;
    }
    
    .scores-column {
        order: 2;
    }
    
    .scores-column .scores-list {
        max-height: none;
        padding-right: 0;
    }
} 