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

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

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

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.header p {
    color: #666;
    font-size: 16px;
}

.main-content {
    display: flex;
    gap: 20px;
    height: 70vh;
}

.form-panel, .preview-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-panel {
    display: flex;
    flex-direction: column;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: white;
}

.tab-button:hover {
    background: #e9ecef;
}

.form-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

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

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

.tooltip {
    cursor: help;
    margin-left: 5px;
    opacity: 0.7;
    font-size: 12px;
    color: #007bff;
}

.tooltip:hover {
    opacity: 1;
}

.help-icon {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    cursor: help;
    vertical-align: middle;
}

.help-icon:hover .help-tooltip {
    display: block;
}

.help-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2c3e50;
}

.form-explanation {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #1565c0;
    border-radius: 0 4px 4px 0;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

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

.nav-button.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.nav-button.primary:hover {
    background: #0056b3;
}

.preview-panel {
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.preview-header h2 {
    color: #2c3e50;
    font-size: 18px;
}

.preview-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.document-preview {
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
}

.highlighted-text {
    background-color: #fff9c4;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    animation: highlight 3s ease-in-out;
    box-shadow: 0 1px 3px rgba(255, 235, 59, 0.3);
}

@keyframes highlight {
    0% { 
        background-color: #ffeb3b; 
        transform: scale(1.02);
    }
    50% { 
        background-color: #fff176; 
    }
    100% { 
        background-color: #fff9c4; 
        transform: scale(1);
    }
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .form-panel, .preview-panel {
        height: 400px;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-button {
        flex: 1;
        min-width: 120px;
    }
}

/* PayPal Paywall Styles */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.paywall-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.paywall-modal h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.paywall-modal p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.purchase-section {
    margin: 25px 0;
}

.paypal-payment-section {
    margin: 30px 0;
}

.paypal-button-container {
    margin: 20px 0;
    min-height: 45px;
}

.paypal-fallback {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 10px 0;
    color: #495057;
    font-size: 14px;
}

.paypal-form-fallback {
    margin: 15px 0;
}

.paypal-id-display {
    background: #f8f9fa;
    border: 2px dashed #007bff;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
    cursor: text;
    user-select: all;
}

.paypal-direct-link {
    display: inline-block;
    background: #0070f3;
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    margin: 15px 0;
    transition: background 0.3s ease;
}

.paypal-direct-link:hover {
    background: #0051cc;
    text-decoration: none;
}

.paypal-loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 10px 0;
}

.paypal-loading p {
    margin-bottom: 15px;
    color: #666;
}

.manual-payment-section {
    margin: 20px 0;
}

.payment-divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.payment-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.manual-entry-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.manual-entry-button:hover {
    background: #5a6268;
}

.paypal-section {
    margin: 20px 0;
}

.paypal-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.paypal-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.paypal-section input:focus {
    outline: none;
    border-color: #007bff;
}

.paywall-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.unlock-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.unlock-button:hover {
    background: #218838;
}

.cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-button:hover {
    background: #5a6268;
}

.paypal-info, .payment-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: #495057;
}

.paypal-info p, .payment-info p {
    margin: 5px 0;
}

.paypal-info strong, .payment-info strong {
    color: #2c3e50;
}

/* Non-copyable preview until payment */
.non-copyable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.non-copyable::selection {
    background: transparent;
}

.non-copyable::-moz-selection {
    background: transparent;
}

/* Consultation Button Styles */
.consult-button {
    background: #17a2b8 !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.consult-button:hover {
    background: #138496 !important;
    text-decoration: none !important;
}

/* Make navigation buttons smaller to fit consultation button */
.navigation-buttons {
    gap: 8px;
}

.nav-button {
    padding: 10px 16px;
    font-size: 14px;
}

/* Checkbox Grid Layout for Industry Compliance */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

/* Risk Analysis Styles */
.risk-analysis {
    padding: 0;
}

.overall-risk-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.overall-risk-card.risk-low {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.overall-risk-card.risk-medium {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.overall-risk-card.risk-high {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.risk-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.risk-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.risk-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.risk-item.risk-medium {
    border-left-color: #ffc107;
}

.risk-item.risk-low {
    border-left-color: #28a745;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.risk-level-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.risk-level-badge.risk-high {
    background: #dc3545;
}

.risk-level-badge.risk-medium {
    background: #ffc107;
    color: #212529;
}

.risk-level-badge.risk-low {
    background: #28a745;
}

.risk-recommendation {
    margin-top: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.compliance-gap {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.compliance-gap.gap-high {
    border-left-color: #fd7e14;
}

.compliance-gap.gap-medium {
    border-left-color: #ffc107;
}

.gap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.severity-badge.severity-critical {
    background: #dc3545;
}

.severity-badge.severity-high {
    background: #fd7e14;
}

.severity-badge.severity-medium {
    background: #ffc107;
    color: #212529;
}

.gap-action {
    margin-top: 10px;
    padding: 10px;
    background: #d1ecf1;
    border-radius: 4px;
    font-size: 14px;
}

.benchmark-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.benchmark-item {
    padding: 8px 0;
    color: #495057;
    font-size: 14px;
}

.recommendations {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.recommendation-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}

.recommendation-item.priority-high {
    background: #fff5f5;
    border-left-color: #dc3545;
    color: #721c24;
}

.next-steps {
    background: #e8f5e8;
    border-left-color: #28a745;
}

.steps-list {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.step-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

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

/* Industry-specific compliance styling */
.industry-recommended {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 8px !important;
}

.recommended-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}/* Enhanced AI Platform Terms Generator - Additional Styles */

/* Conditional sections for enhanced features */
.conditional-section {
    margin-left: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
}

.conditional-section h4 {
    color: #495057 !important;
    font-size: 16px !important;
    margin-bottom: 12px !important;
}

/* Enhanced tab navigation for more tabs */
.tab-navigation {
    flex-wrap: wrap;
    gap: 2px;
}

.tab-button {
    min-width: 100px;
    font-size: 13px;
    padding: 12px 8px;
    text-align: center;
}

@media (max-width: 1200px) {
    .tab-button {
        font-size: 12px;
        padding: 10px 6px;
        min-width: 90px;
    }
}

@media (max-width: 900px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        min-width: auto;
    }
    
    .tab-button.active {
        border-left-color: #007bff;
        border-bottom-color: transparent;
    }
}

/* Payment and billing specific styles */
.payment-explanation {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #856404;
    border-radius: 0 4px 4px 0;
}

.billing-warning {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #721c24;
    border-radius: 0 4px 4px 0;
}

/* Support level indicators */
.support-level-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.support-level-indicator.basic {
    background: #ffc107;
    color: #212529;
}

.support-level-indicator.comprehensive {
    background: #28a745;
    color: white;
}

/* Compliance badges and indicators */
.compliance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}

.compliance-indicator.required {
    background: #dc3545;
    color: white;
}

.compliance-indicator.recommended {
    background: #ffc107;
    color: #212529;
}

.compliance-indicator.optional {
    background: #6c757d;
    color: white;
}

/* EU AI Act specific styling */
.eu-ai-act-section {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ai-risk-classification {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0;
}

.ai-risk-classification.minimal {
    background: #d4edda;
    color: #155724;
}

.ai-risk-classification.limited {
    background: #fff3cd;
    color: #856404;
}

.ai-risk-classification.high {
    background: #f8d7da;
    color: #721c24;
}

.ai-risk-classification.prohibited {
    background: #343a40;
    color: white;
}

/* California AI law styling */
.california-compliance {
    background: #fff8e1;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

/* Enhanced checkbox styling for new features */
.checkbox-enhanced {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-enhanced input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.checkbox-enhanced:hover input ~ .checkmark {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.checkbox-enhanced input:checked ~ .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-enhanced input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-enhanced .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Multi-select checkbox arrays */
.checkbox-array {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 10px 0;
}

/* Enhanced form sections */
.form-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.form-section-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.form-section-content {
    padding: 20px;
}

/* Advanced risk indicators */
.risk-meter {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.risk-meter-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.risk-meter-fill.low {
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 25%;
}

.risk-meter-fill.medium {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    width: 60%;
}

.risk-meter-fill.high {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
    width: 90%;
}

/* Industry-specific styling enhancements */
.industry-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.industry-badge.healthcare {
    background: #e3f2fd;
    color: #1565c0;
}

.industry-badge.financial {
    background: #fff3e0;
    color: #ef6c00;
}

.industry-badge.education {
    background: #f3e5f5;
    color: #7b1fa2;
}

.industry-badge.hr {
    background: #e8f5e8;
    color: #2e7d32;
}

/* Enhanced tooltips for complex features */
.advanced-tooltip {
    position: relative;
    cursor: help;
}

.advanced-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.advanced-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.advanced-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #2c3e50;
}

/* Dynamic compliance scoring */
.compliance-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.compliance-score-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.compliance-score-label {
    color: #6c757d;
    font-size: 14px;
}

.compliance-progress {
    flex: 1;
    margin: 0 20px;
}

.compliance-progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.compliance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* Enhanced preview highlighting */
.document-preview .section-highlight {
    background: linear-gradient(120deg, #fff9c4 0%, #fff176 50%, #fff9c4 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out;
    padding: 2px 4px;
    border-radius: 3px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive enhancements for mobile */
@media (max-width: 768px) {
    .conditional-section {
        margin-left: 10px;
        padding: 15px;
    }
    
    .checkbox-array {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .advanced-tooltip .tooltip-content {
        width: 250px;
        font-size: 12px;
    }
    
    .compliance-score {
        flex-direction: column;
        text-align: center;
    }
    
    .compliance-progress {
        width: 100%;
        margin: 15px 0;
    }
}

/* Print styles for generated documents */
@media print {
    .form-panel {
        display: none;
    }
    
    .preview-panel {
        flex: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .preview-header {
        display: none;
    }
    
    .document-preview {
        font-size: 11pt;
        line-height: 1.4;
        color: black;
    }
    
    .highlighted-text {
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .conditional-section {
        background: #343a40;
        border-left-color: #6c757d;
        color: #f8f9fa;
    }
    
    .form-explanation {
        background: #495057;
        color: #f8f9fa;
    }
    
    .compliance-indicator {
        filter: brightness(0.9);
    }
}

/* Animation for form sections appearing */
.form-content > div {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Enhanced focus styles for accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.checkbox-group input[type="checkbox"]:focus + label {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading states for dynamic content */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success and error states */
.success-message {
    padding: 12px 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin: 10px 0;
}

.error-message {
    padding: 12px 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 10px 0;
}

/* Enhanced button group styling */
.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.button-group .nav-button {
    flex: 1;
    min-width: 100px;
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
    }
    
    .button-group .nav-button {
        width: 100%;
    }
}
