/**
 * Cyber Risk Assessment Tool - Main Stylesheet
 * Modern, responsive design for the assessment tool
 */

:root {
    /* Fastcomcorp Brand Colors - Luxury Refined Palette */
    --primary-color: #006955; /* Fastcomcorp Green - Primary brand color */
    --primary-dark: #004d3f; /* Darker green for depth */
    --primary-light: #00a082; /* Lighter green for accents */
    --primary-blue: #0056a7; /* Fastcomcorp Blue - Secondary brand color */
    --primary-blue-dark: #003d75; /* Darker blue for depth */
    --primary-blue-light: #0066cc; /* Lighter blue for accents */
    --dark-navy: #091d42; /* Fastcomcorp Dark Navy - Header/background */
    --dark-navy-light: #0f2a5a; /* Lighter navy for gradients */
    --light-text: #afbdcb; /* Light text for dark backgrounds */
    
    /* Luxury Neutral Palette - Warmer, Softer for Eye Comfort */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f5f4f2; /* Warmer light background */
    --light-bg-elevated: #fefefe; /* Warmer white - not pure white for reduced glare */
    --dark-text: #1f1f1f; /* Slightly softer black for better readability */
    --dark-text-secondary: #5a5a5a; /* Softer secondary text with better contrast */
    --border-color: #e5e3e0; /* Warmer, softer borders */
    --border-color-light: #f0efec; /* Even softer for subtle dividers */
    
    /* Luxury Shadows - Softer, More Diffused for Eye Comfort */
    --shadow-sm: 0 1px 2px rgba(9, 29, 66, 0.06), 0 1px 1px rgba(9, 29, 66, 0.04);
    --shadow: 0 2px 8px rgba(9, 29, 66, 0.08), 0 1px 3px rgba(9, 29, 66, 0.06);
    --shadow-md: 0 4px 16px rgba(9, 29, 66, 0.1), 0 2px 6px rgba(9, 29, 66, 0.08);
    --shadow-lg: 0 8px 24px rgba(9, 29, 66, 0.12), 0 4px 10px rgba(9, 29, 66, 0.1);
    --shadow-xl: 0 12px 32px rgba(9, 29, 66, 0.14), 0 6px 16px rgba(9, 29, 66, 0.12);
    
    /* Luxury Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-navy-light) 50%, var(--primary-color) 100%);
    --gradient-elegant: linear-gradient(135deg, rgba(9, 29, 66, 0.95) 0%, rgba(0, 105, 85, 0.95) 50%, rgba(0, 86, 167, 0.95) 100%);
    
    /* Spacing Scale - Luxury Proportions */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
}

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

body {
    /* Premium Typography Stack - Luxury Feel */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'SF Pro Display', 'Helvetica Neue', Roboto, 'Arial', sans-serif;
    line-height: 1.75; /* More generous line height for extended reading comfort */
    color: var(--dark-text);
    /* Warmer, softer background - reduces eye strain for long sessions */
    background: #faf9f7; /* Warm off-white - easier on the eyes than pure white */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 105, 85, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 86, 167, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: 100% 100%;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em; /* Slight negative letter spacing for modern feel */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-color) 50%, var(--primary-blue) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.assessment-info {
    margin-top: 15px;
    font-size: 0.95em;
}

.assessment-info p {
    margin: 5px 0;
}

.header-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-pause {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.btn-pause:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

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

.btn-pause-inline {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-pause-inline:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Form Styles */
.intro-section {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.intro-section li {
    margin-bottom: 8px;
}

.domain-list {
    list-style: none;
    margin-left: 0;
}

.domain-list li {
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

/* Industry Selection */
.industry-selection-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
}

.form-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.industry-card {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
}

.industry-card {
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 105, 85, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.industry-card:hover::before {
    left: 100%;
}

.industry-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 105, 85, 0.2);
    transform: translateY(-2px);
}

.industry-card:has(input[type="radio"]:checked)::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
}

.industry-card input[type="radio"] {
    display: none;
}

.industry-card input[type="radio"]:checked + .card-content {
    color: var(--primary-color);
}

.industry-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #e7f3ff;
}

.card-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p {
    color: var(--secondary-color);
    font-size: 0.95em;
}

/* Capability Assessment Cards */
.capability-assessments-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #e0e0e0;
}

.capability-section-header {
    margin-bottom: 28px;
    margin-top: 16px;
}

.capability-header-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.capability-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
    align-self: flex-start;
}

.capability-header-content h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.capability-header-content p {
    color: var(--secondary-color);
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

.capability-card {
    border-left: 4px solid var(--primary-color);
    transition: border-left-width 0.2s ease;
}

.capability-card:hover {
    border-left-width: 6px;
}

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

.capability-card-header h3 {
    margin: 0;
    flex: 1;
}

.capability-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.capability-description {
    color: #666;
    font-size: 0.9em;
    margin-top: 6px;
    line-height: 1.4;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.required {
    color: var(--danger-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--dark-text);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 105, 85, 0.1);
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 105, 85, 0.05);
}

/* Enhanced Select Styling */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 40px;
}

.form-group select:invalid {
    color: #6c757d;
}

.form-group select option {
    padding: 12px;
    color: var(--dark-text);
}

/* ============================================
   SENIOR UX/UI IMPROVEMENTS - QUESTIONNAIRE
   ============================================ */

/* Sticky Progress Indicator - Expandable/Collapsible */
.progress-indicator {
    background: rgba(254, 254, 254, 0.95); /* Warmer, softer background */
    border-radius: 12px; /* Softer radius */
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 105, 85, 0.12); /* Softer border */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px; /* Below header */
    z-index: 90;
    backdrop-filter: blur(12px) saturate(180%); /* Enhanced blur for smoother glass effect */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Minimized State - Always Visible */
.progress-minimized {
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    align-items: center;
}

.progress-minimized-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.progress-minimized-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.progress-bar-mini {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-mini::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: progressShimmer 2s infinite;
}

.progress-minimized-text {
    min-width: 100px;
    text-align: right;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

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

.progress-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer !important;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.progress-toggle-btn:hover {
    background: rgba(0, 105, 85, 0.1);
    transform: scale(1.1);
}

.progress-toggle-btn:active {
    transform: scale(0.95);
}

.progress-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.progress-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.progress-indicator.expanded .progress-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

/* Expanded State - Collapsible */
.progress-expanded {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-top: var(--spacing-xs);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-sm);
    }
}

.progress-indicator:not(.expanded) .progress-expanded {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-sm);
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.progress-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 12px 0 0 12px;
}

.progress-header {
    margin-bottom: var(--spacing-xs);
}

.progress-header p {
    margin: 0;
    color: var(--dark-text);
    font-size: 0.85em;
    line-height: 1.4;
}

.progress-bar-container {
    margin-top: var(--spacing-xs);
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background: var(--border-color-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::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: progressShimmer 2s infinite;
}

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

.progress-bar::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%); }
}

.progress-text {
    text-align: center;
    font-size: 0.95em;
    color: var(--dark-text);
}

.progress-text strong {
    color: var(--primary-color);
}

.questionnaire-form {
    background: var(--light-bg-elevated); /* Warmer white instead of pure white */
    padding: var(--spacing-lg); /* Reduced from 30px for more compact */
    border-radius: 12px; /* Softer radius */
    box-shadow: var(--shadow); /* Softer shadow */
    max-width: 95%; /* Use 95% of viewport for wider display */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.domain-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-bg);
}

.domain-section:last-child {
    border-bottom: none;
}

.domain-title {
    color: var(--dark-navy);
    font-size: 1.35em; /* Reduced from 1.6em for more compact display */
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.03em;
    line-height: 1.3; /* Slightly tighter line height */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.domain-description {
    color: var(--dark-text-secondary);
    margin-bottom: var(--spacing-sm); /* Reduced from md */
    font-size: 0.9em; /* Reduced from 0.95em */
    line-height: 1.4; /* Slightly tighter */
    font-weight: 400;
    flex-shrink: 0;
}

/* ============================================
   LUXURY QUESTIONNAIRE STYLES
   ============================================ */

.question-group {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg); /* Reduced padding for more compact display */
    background: var(--light-bg-elevated);
    border-radius: 18px; /* Slightly larger radius for softer appearance */
    border: 1px solid var(--border-color-light);
    box-shadow: var(--shadow); /* Softer shadow for gentler appearance */
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother, more natural easing */
    position: relative;
    overflow: visible !important; /* Allow content to flow naturally */
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-width: 100%; /* Use full container width */
    margin-left: auto;
    margin-right: auto;
    animation: questionFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother fade */
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

.question-group.active {
    display: block !important;
}

.question-group::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.question-group::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.question-group::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

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

.question-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-group.active::before {
    opacity: 1;
}

.question-group:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px); /* Subtler hover lift for smoother feel */
    border-color: rgba(0, 105, 85, 0.2); /* Softer border on hover */
}

.question-label {
    display: block;
    font-weight: 600;
    font-size: 1.05em; /* Reduced from 1.15em for better fit */
    line-height: 1.5; /* Improved for better readability */
    margin-bottom: var(--spacing-sm); /* Reduced from md */
    color: var(--dark-text); /* Softer color for extended reading */
    letter-spacing: -0.005em; /* Slightly less tight for readability */
    padding-right: var(--spacing-sm); /* Reduced from md */
    flex-shrink: 0;
}

.question-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05em; /* Reduced from 1.1em */
    margin-right: 8px; /* Reduced from 10px */
    display: inline-block;
    min-width: 24px; /* Reduced from 28px */
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* Already compact */
    margin-top: var(--spacing-xs); /* Reduced from sm */
    flex: 1;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    padding-right: 0;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

.answer-options::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-sm) var(--spacing-md); /* Reduced padding for more compact display */
    background: var(--light-bg-elevated);
    border: 1.5px solid var(--border-color); /* Thinner, softer border */
    border-radius: 14px; /* Slightly larger for softer feel */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    flex-shrink: 0;
}

.radio-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 105, 85, 0.05) 0%, rgba(0, 86, 167, 0.05) 100%);
    transition: width 0.3s ease;
}

.radio-option:hover {
    border-color: rgba(0, 105, 85, 0.3); /* Softer border color */
    background: linear-gradient(90deg, rgba(0, 105, 85, 0.02) 0%, rgba(0, 86, 167, 0.02) 100%);
    transform: translateX(2px); /* Subtler movement */
    box-shadow: var(--shadow-sm);
}

.radio-option:hover::before {
    width: 100%;
}

.radio-option input[type="radio"] {
    margin-right: var(--spacing-md);
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    transition: all 0.3s ease;
}

.radio-option:has(input[type="radio"]:checked) input[type="radio"] {
    transform: scale(1.1);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    border-width: 2px; /* Thinner border for softer look */
    background: linear-gradient(135deg, rgba(0, 105, 85, 0.08) 0%, rgba(0, 86, 167, 0.08) 100%);
    box-shadow: 0 2px 8px rgba(0, 105, 85, 0.15), 0 0 0 3px rgba(0, 105, 85, 0.08); /* Softer shadow */
    transform: translateX(3px) scale(1.01); /* Subtler transform */
    font-weight: 500;
}

.radio-option:has(input[type="radio"]:checked)::before {
    width: 100%;
}

.radio-label {
    flex: 1;
    cursor: pointer;
    line-height: 1.6; /* Improved for better readability */
    color: var(--dark-text);
    font-size: 0.98em; /* Reduced from 1.05em for better fit */
    font-weight: 400;
    padding-top: 2px;
}

.radio-option:has(input[type="radio"]:checked) .radio-label {
    color: var(--dark-navy);
    font-weight: 500;
}

/* Luxury Checkbox Options (for multi-select questions) */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--light-bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.checkbox-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 105, 85, 0.05) 0%, rgba(0, 86, 167, 0.05) 100%);
    transition: width 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 105, 85, 0.03) 0%, rgba(0, 86, 167, 0.03) 100%);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.checkbox-option:hover::before {
    width: 100%;
}

.checkbox-option input[type="checkbox"] {
    margin-right: var(--spacing-md);
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 105, 85, 0.08) 0%, rgba(0, 86, 167, 0.08) 100%);
    box-shadow: 0 0 0 3px rgba(0, 105, 85, 0.1);
    transform: translateX(4px);
}

.checkbox-option:has(input[type="checkbox"]:checked)::before {
    width: 100%;
}

.checkbox-option:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.checkbox-label {
    flex: 1;
    cursor: pointer;
}

/* Luxury Help Text & Tooltips */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    color: var(--primary-blue);
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 86, 167, 0.1) 0%, rgba(0, 105, 85, 0.1) 100%);
    border: 1px solid rgba(0, 86, 167, 0.2);
}

.help-icon:hover {
    background: linear-gradient(135deg, rgba(0, 86, 167, 0.2) 0%, rgba(0, 105, 85, 0.2) 100%);
    transform: scale(1.15) rotate(5deg);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 86, 167, 0.2);
}

.help-icon:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.help-icon svg {
    width: 18px;
    height: 18px;
    pointer-events: auto; /* Ensure SVG can receive clicks */
}

.help-icon svg * {
    pointer-events: auto; /* Ensure all SVG elements can receive clicks */
}

.help-text {
    background: linear-gradient(135deg, rgba(0, 105, 85, 0.08) 0%, rgba(0, 86, 167, 0.08) 100%) !important;
    border-left: 4px solid var(--primary-color) !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    margin: var(--spacing-md) 0 var(--spacing-lg) 0 !important;
    border-radius: 10px;
    font-size: 0.98em;
    color: var(--dark-text) !important;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0, 105, 85, 0.15) !important;
    border: 1px solid rgba(0, 105, 85, 0.2) !important;
    display: none; /* Hidden by default */
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
}

.help-text[style*="display: block"],
.help-text[style*="display:block"],
.help-text[style*="display: block;"],
.help-text[style*="display:block;"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.help-text strong {
    color: var(--primary-color);
}

/* Force visibility when class is added */
.help-text.help-text-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Progress Saving */
.save-progress-btn {
    background: var(--primary-blue); /* Fastcomcorp Blue - matches brand */
    color: white;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 86, 167, 0.15);
}

.save-progress-btn:hover {
    background: var(--primary-blue-dark); /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 167, 0.2);
}

.save-progress-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 86, 167, 0.15);
}

.save-progress-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 86, 167, 0.1), 0 2px 8px rgba(0, 86, 167, 0.15);
}

.progress-saved {
    display: inline-block;
    margin-left: 10px;
    color: var(--success-color);
    font-size: 0.9em;
    font-weight: 600;
}

.progress-saved::before {
    content: "✓ ";
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding: 16px 20px;
    border-top: 2px solid var(--light-bg);
    position: sticky;
    bottom: 0;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 50;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #005a47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Results Page */
.risk-summary {
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 40px;
}

.risk-badge {
    padding: 30px;
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
}

.risk-badge h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.risk-level {
    font-size: 4em;
    font-weight: bold;
    margin: 20px 0;
}

.overall-score {
    font-size: 1.5em;
    opacity: 0.9;
}

.risk-description {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-top: 20px;
}

.domain-scores {
    margin-bottom: 40px;
}

.domain-scores h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.score-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
}

.score-risk {
    font-weight: 600;
    font-size: 1.1em;
}

.recommendations {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.recommendations h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section-description {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.recommendation-domain {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 6px;
}

.recommendation-domain h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.recommendation-list {
    margin-left: 20px;
}

.recommendation-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.privacy-note {
    margin-top: 10px;
    font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .industry-options {
        grid-template-columns: 1fr;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

/* Lloyd's Assessment Styles */
.lloyds-assessment {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
}

.lloyds-intro {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.05em;
}

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

.lloyds-grade {
    text-align: center;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
}

.lloyds-grade.grade-a {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.lloyds-grade.grade-b {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-color) 100%);
    color: white;
}

.lloyds-grade.grade-c {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.lloyds-grade.grade-d {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.grade-letter {
    font-size: 4em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.grade-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.lloyds-score {
    text-align: center;
    padding: 20px 40px;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 150px;
}

.lloyds-score .score-value {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.lloyds-score .score-label {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.lloyds-interpretation {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.lloyds-interpretation h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.lloyds-attributes {
    margin: 30px 0;
}

.lloyds-attributes h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    box-shadow: var(--shadow);
}

.attributes-table thead {
    background: var(--primary-color);
    color: white;
}

.attributes-table th,
.attributes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.attributes-table th {
    font-weight: 600;
}

.attributes-table tbody tr:hover {
    background: var(--light-bg);
}

.attributes-table .score-value {
    font-weight: bold;
    color: var(--primary-color);
}

.risk-low {
    color: var(--success-color);
    font-weight: 600;
}

.risk-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.risk-high {
    color: var(--danger-color);
    font-weight: 600;
}

.systemic-flags {
    margin: 30px 0;
}

.systemic-flags h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.flag {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--warning-color);
}

.flag.flag-high {
    border-left-color: var(--danger-color);
    background: #fff5f5;
}

.flag.flag-medium {
    border-left-color: var(--warning-color);
    background: #fffbf0;
}

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

.flag-header strong {
    font-size: 1.1em;
    color: var(--dark-text);
}

.flag-severity {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.severity-high {
    background: var(--danger-color);
    color: white;
}

.severity-medium {
    background: var(--warning-color);
    color: var(--dark-text);
}

.flag-description {
    margin: 10px 0;
    color: var(--dark-text);
}

.flag-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.flag-details p {
    margin: 8px 0;
    line-height: 1.6;
}

.lloyds-recommendations {
    margin: 30px 0;
}

.lloyds-recommendations h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.evidence-checklist {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.evidence-checklist h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.checklist li:before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.lloyds-provenance {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.provenance-note {
    color: var(--secondary-color);
    font-size: 0.85em;
}

/* Review Page Styles */
.review-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.review-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.review-summary {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.review-domain-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.review-domain-section .domain-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.review-domain-section .domain-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.review-table thead {
    background: var(--primary-color);
    color: white;
}

.review-table th,
.review-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.review-table th {
    font-weight: 600;
}

.review-table tbody tr:hover {
    background: var(--light-bg);
}

.review-table tbody tr:last-child td {
    border-bottom: none;
}

.answer-display {
    display: flex;
    align-items: center;
}

.review-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

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

.time-remaining {
    font-style: italic;
}

.question-count-info {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

.consistency-warnings {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.consistency-warnings h3 {
    margin-top: 0;
    color: #856404;
}

.consistency-warnings ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.consistency-warnings li {
    margin-bottom: 10px;
}

/* Phase II: Broker & Underwriter View Styles */
.broker-view {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid var(--primary-color);
}

.broker-view h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.broker-section {
    margin: 25px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.broker-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-assessment-card {
    padding: 20px;
}

.skill-score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.skill-score-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--dark-text);
}

.skill-score-label {
    font-size: 1em;
    color: var(--secondary-color);
}

.skill-level-badge {
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: var(--shadow);
}

.skill-description {
    font-size: 1.05em;
    line-height: 1.8;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.skill-breakdown {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.skill-breakdown h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-domain-list {
    list-style: none;
    margin-left: 0;
}

.skill-domain-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-domain-list li:last-child {
    border-bottom: none;
}

.skill-gaps {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.skill-gaps h4 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.gap-list {
    list-style: none;
    margin-left: 0;
}

.gap-item {
    padding: 12px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid var(--warning-color);
}

.gap-item.severity-critical {
    border-left-color: var(--danger-color);
    background: #f8d7da;
}

.gap-item.severity-high {
    border-left-color: #ff9800;
    background: #fff3cd;
}

.gap-item small {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
}

.risk-adjustment-info {
    margin: 20px 0;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

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

.adjustment-explanation {
    font-size: 0.95em;
    margin-top: 10px;
}

.skill-recommendations {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.skill-recommendations h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-recommendations .recommendation-list {
    list-style: none;
    margin-left: 0;
}

.skill-recommendations .recommendation-list li {
    padding: 12px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.skill-recommendations .recommendation-list li small {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
}

.broker-note {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.broker-note p {
    margin: 0;
    line-height: 1.6;
}

.section-note {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

/* Risk Exposure Display */
.exposure-card {
    padding: 20px;
}

.exposure-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.exposure-amount {
    flex: 1;
    min-width: 250px;
}

.exposure-amount h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.amount-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--dark-text);
    margin: 10px 0;
}

.risk-level-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
}

.exposure-adjustment {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.exposure-adjustment p {
    margin: 8px 0;
}

.exposure-breakdown {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.exposure-breakdown h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.exposure-list {
    list-style: none;
    margin-left: 0;
}

.exposure-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.exposure-list li:last-child {
    border-bottom: none;
}

.additional-costs-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 5px;
}

.additional-costs-list li {
    padding: 4px 0;
    border-bottom: none;
}

.risk-factors {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.risk-factors h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.factors-list {
    list-style: none;
    margin-left: 0;
}

.factors-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.factors-list li:last-child {
    border-bottom: none;
}

/* Coverage Recommendations Display */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.coverage-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.coverage-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.coverage-amounts p {
    margin: 10px 0;
    padding: 8px;
    background: var(--light-bg);
    border-radius: 4px;
}

.recommended-amount {
    font-size: 1.2em;
    font-weight: bold;
    background: #e7f3ff !important;
    border-left: 4px solid var(--primary-color) !important;
}

.bi-scenarios {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.bi-scenarios h5 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1em;
}

.bi-scenarios ul {
    list-style: none;
    margin-left: 0;
}

.bi-scenarios ul li {
    padding: 5px 0;
    font-size: 0.9em;
}

.coverage-summary {
    margin: 25px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 6px;
}

.coverage-summary h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.coverage-summary p {
    margin: 10px 0;
}

.adequacy-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9em;
}

.adequacy-badge.adequacy-optimal {
    background: #28a745;
    color: white;
}

.adequacy-badge.adequacy-adequate {
    background: #28a745;
    color: white;
}

.adequacy-badge.adequacy-minimal {
    background: #ffc107;
    color: #333;
}

.adequacy-badge.adequacy-inadequate {
    background: #dc3545;
    color: white;
}

.coverage-gaps {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.coverage-gaps h5 {
    margin-bottom: 10px;
}

.coverage-gaps ul {
    list-style: none;
    margin-left: 0;
}

/* Risk Appetite Alignment Display */
.appetite-card {
    padding: 20px;
}

.appetite-score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.appetite-score-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--dark-text);
}

.appetite-score-label {
    font-size: 1em;
    color: var(--secondary-color);
}

.appetite-recommendation {
    padding: 15px 25px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    box-shadow: var(--shadow);
}

.appetite-recommendation small {
    display: block;
    font-size: 0.7em;
    margin-top: 5px;
    opacity: 0.9;
}

.appetite-reason {
    font-size: 1.05em;
    line-height: 1.8;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.appetite-factors {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.appetite-factors h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.appetite-factors ul {
    list-style: none;
    margin-left: 0;
}

.appetite-factors ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.appetite-factors ul li:last-child {
    border-bottom: none;
}

.mismatch-reasons {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.mismatch-reasons h4 {
    margin-bottom: 10px;
}

.mismatch-reasons ul {
    list-style: none;
    margin-left: 0;
}

.mismatch-item {
    padding: 12px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    border-left: 4px solid var(--warning-color);
}

.mismatch-item.severity-high {
    border-left-color: var(--danger-color);
    background: #f8d7da;
}

.mismatch-item.severity-medium {
    border-left-color: #ff9800;
    background: #fff3cd;
}

.mismatch-item small {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
}

/* Floating Action Button (FAB) for Pause */
button.fab-pause,
.fab-pause {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #ff9800 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

.fab-pause.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-pause:hover {
    background: #f57c00;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.fab-pause:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fab-pause svg {
    width: 24px;
    height: 24px;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab-pause:hover .fab-tooltip {
    opacity: 1;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

/* ============================================
   LUXURY QUESTIONNAIRE NAVIGATION & CONTROLS
   ============================================ */

.question-container {
    margin-top: var(--spacing-md);
    max-width: 95%; /* Use 95% of viewport width for better space utilization */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-lg); /* Reduced from xl for better edge spacing */
    display: block !important;
    overflow: visible !important; /* Allow content to flow naturally */
    overflow-y: visible !important;
    overflow-x: visible !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
    position: relative;
    /* Ensure only active question contributes to height */
    min-height: 0;
    height: auto;
    box-sizing: border-box;
}

/* Hide non-active questions completely so they don't affect container height */
.question-group:not(.active) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.question-container::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.questionnaire-form .question-navigation,
.question-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: var(--spacing-xl) auto var(--spacing-md) auto !important; /* Reduced margins */
    padding: 20px 32px !important; /* Reduced padding */
    background: linear-gradient(135deg, rgba(254, 254, 254, 0.95) 0%, rgba(250, 249, 247, 0.95) 100%) !important; /* Warmer gradient */
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(9, 29, 66, 0.08), 0 2px 10px rgba(9, 29, 66, 0.06) !important; /* Softer shadows */
    border: 1px solid rgba(0, 105, 85, 0.08) !important; /* Softer border */
    backdrop-filter: blur(20px) saturate(180%) !important; /* Enhanced blur */
    max-width: 95% !important; /* Match container width for consistency */
    position: relative !important;
    margin-top: var(--spacing-xl) !important; /* Reduced from 2xl */
    z-index: 80 !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.question-counter {
    font-weight: 700;
    color: var(--dark-navy);
    font-size: 1.2em;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: rgba(0, 105, 85, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 105, 85, 0.1);
}

button.btn-nav,
.question-navigation .btn-nav,
.btn-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 32px !important;
    border-radius: 14px !important; /* Softer radius */
    font-size: 1.1em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; /* Smoother easing */
    background: var(--light-bg-elevated) !important; /* Warmer white */
    color: var(--dark-navy) !important;
    border: 1.5px solid var(--primary-color) !important; /* Thinner, softer border */
    letter-spacing: -0.01em !important;
    box-shadow: 0 2px 8px rgba(0, 105, 85, 0.12), 0 1px 3px rgba(0, 105, 85, 0.08) !important; /* Softer shadow */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 140px !important;
}

.btn-nav:hover:not(:disabled) {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important; /* Subtler lift */
    box-shadow: 0 4px 16px rgba(0, 105, 85, 0.2), 0 2px 6px rgba(0, 105, 85, 0.12) !important; /* Softer shadow */
    color: white !important;
}

.btn-nav:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: #f5f5f5 !important;
    border-color: #d0d0d0 !important;
    color: #999 !important;
    box-shadow: none !important;
}

button.btn-nav-primary,
.question-navigation .btn-nav-primary,
.btn-nav.btn-nav-primary,
.btn-nav-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(0, 105, 85, 0.25), 0 2px 8px rgba(0, 86, 167, 0.18) !important; /* Softer shadow */
    font-weight: 700 !important;
}

.btn-nav-primary:hover:not(:disabled) {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1.01) !important; /* Subtler transform */
    box-shadow: 0 6px 20px rgba(0, 105, 85, 0.3), 0 4px 10px rgba(0, 86, 167, 0.22) !important; /* Softer shadow */
    filter: brightness(1.05) !important; /* Subtler brightness */
}

/* Luxury Progress Bar */
.progress-bar-container {
    margin: var(--spacing-lg) 0;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--border-color-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04); /* Softer inset shadow */
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
    position: relative;
    overflow: hidden;
}

.progress-bar-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%); }
}

/* Luxury Header Styles */
.questionnaire-top-header {
    background: var(--light-bg-elevated);
    border-bottom: 1px solid var(--border-color-light);
    padding: var(--spacing-md) var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.questionnaire-top-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.questionnaire-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.questionnaire-logo:hover {
    transform: translateX(-2px);
    opacity: 0.9;
}

.questionnaire-logo:hover img {
    transform: scale(1.05);
}

.questionnaire-logo img {
    max-height: 70px;
    height: auto;
    width: auto;
    margin-right: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.questionnaire-logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.questionnaire-nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.questionnaire-nav-links a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.questionnaire-nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 105, 85, 0.05);
    transform: translateY(-1px);
}

/* Luxury Form Actions - Enhanced UX */
.form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(254, 254, 254, 0.96); /* Warmer background */
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color-light);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08), 0 -1px 4px rgba(0, 0, 0, 0.06); /* Softer shadow */
    z-index: 100;
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    backdrop-filter: blur(12px) saturate(180%); /* Glass effect */
    gap: var(--spacing-md);
    backdrop-filter: blur(20px);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Luxury Assessment Info Banner - Compact */
header {
    background: var(--gradient-elegant);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

header h1 {
    font-size: 1.8em;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.assessment-info {
    margin-top: var(--spacing-xs);
    font-size: 0.9em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.assessment-info p {
    margin: 0;
    font-weight: 400;
}

/* Luxury Progress Info Section */
.progress-info {
    background: linear-gradient(135deg, rgba(0, 105, 85, 0.05) 0%, rgba(0, 86, 167, 0.05) 100%);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 12px;
    margin: var(--spacing-lg) 0;
    border: 1px solid rgba(0, 105, 85, 0.1);
}

.progress-text strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================
   ADDITIONAL SENIOR UX/UI ENHANCEMENTS
   ============================================ */

/* Enhanced Focus States for Accessibility */
.radio-option:focus-within,
.checkbox-option:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-color: rgba(0, 105, 85, 0.4); /* Softer border on focus */
    box-shadow: 0 0 0 4px rgba(0, 105, 85, 0.1); /* Softer focus ring */
}

.btn:focus,
.btn-nav:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 105, 85, 0.15), 0 2px 8px rgba(0, 105, 85, 0.12), 0 1px 3px rgba(0, 105, 85, 0.08) !important; /* Enhanced focus shadow */
}

/* Smooth Answer Selection Animation */
.radio-option input[type="radio"]:checked + .radio-label::before {
    content: '✓';
    position: absolute;
    left: -30px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Question Number Badge */
.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    margin-right: 12px;
    box-shadow: var(--shadow-sm);
    padding: 0 4px;
}

/* Improved Required Indicator */
.required {
    color: var(--danger-color);
    font-weight: 700;
    margin-left: 4px;
    font-size: 1.1em;
}

/* Better Visual Separation for Domain Sections */
.question-group.active .domain-title {
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 105, 85, 0.15);
}

/* Enhanced Progress Text Styling */
.progress-text {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--dark-text);
    margin-top: var(--spacing-xs);
}

.progress-text strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1em;
}

/* Improved Resume Notice - Compact */
.resume-notice {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%) !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
    border-left: 4px solid var(--success-color) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-top: var(--spacing-sm) !important;
    font-size: 0.9em !important;
}

/* Better Spacing for Progress Info */
.progress-header {
    margin-bottom: var(--spacing-md);
}

.progress-header p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--dark-text-secondary);
}

/* Enhanced Answer Option Hover States */
.radio-option:hover:not(:has(input[type="radio"]:checked)) {
    background: linear-gradient(135deg, rgba(0, 105, 85, 0.04) 0%, rgba(0, 86, 167, 0.04) 100%);
    border-color: rgba(0, 105, 85, 0.3);
    transform: translateX(2px);
}

/* Improved Button States */
.btn-nav:active {
    transform: translateY(0) scale(0.98);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Better Mobile adjustments for FAB */
@media (max-width: 768px) {
    .fab-pause {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .question-group {
        padding: var(--spacing-lg);
    }
    
    .question-navigation {
        padding: var(--spacing-md);
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .question-counter {
        width: 100%;
        text-align: center;
        margin: var(--spacing-sm) 0;
    }
    
    .progress-indicator {
        top: 70px;
        padding: var(--spacing-md);
    }
    
    .fab-pause svg {
        width: 22px;
        height: 22px;
    }
    
    .fab-tooltip {
        display: none; /* Hide tooltip on mobile */
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }

    .action-buttons {
        display: none;
    }
    
    .lloyds-assessment {
        page-break-inside: avoid;
    }
    
    .broker-view {
        page-break-inside: avoid;
    }
}

