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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%; /* Prevents iOS text scaling */
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent; /* Removes blue highlight on tap */
    touch-action: manipulation; /* Improves touch responsiveness */
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

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

.header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    height: 700px;
    max-height: 700px;
}

/* Ensure side-by-side layout for desktop computers */
@media (min-width: 1025px) {
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0px;
        height: 700px;
        max-height: 700px;
    }
    
    .form-panel {
        order: 1; /* Form inputs on the left */
    }
    
    .preview-panel {
        order: 2; /* Live preview on the right */
    }
}

.form-panel, .preview-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.form-panel {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-panel {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #f8f9fa;
}

/* Tab Navigation */
.tab-navigation {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    min-width: 100px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.tab-button:active {
    background: #dee2e6;
}

.tab-button.active {
    background: white;
    color: #2c3e50;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Form Content */
.form-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(700px - 140px); /* Account for tab nav and buttons */
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px; /* Better touch target */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
}

/* Prevent zoom on iOS */
@media screen and (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    min-height: 48px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item:active {
    background-color: #e9ecef;
}

.checkbox-item.selected {
    background-color: #e7f3ff;
    border-color: #007bff;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ced4da;
    border-radius: 3px;
    background: white;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.4;
}

/* Navigation Buttons */
.navigation-buttons {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    justify-content: center;
}

.nav-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: none;
}

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

.nav-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.consultation-button {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.consultation-button:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Preview Panel */
.preview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.preview-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.preview-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.document-preview {
    flex: 1;
    padding: 25px;
    background: white;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    border: none;
    max-height: calc(700px - 100px); /* Account for preview header */
}

/* Highlighting */
.highlighted-text {
    background-color: #fff9c4;
    display: inline;
    padding: 2px 0;
    animation: highlight 8s ease-out;
}

@keyframes highlight {
    0% { background-color: #ffeb3b; }
    20% { background-color: #fff9c4; }
    100% { background-color: #fff9c4; }
}

/* Risk Assessment Cards */
.risk-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.risk-strong {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.risk-moderate {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.risk-weak {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.risk-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.risk-card p {
    margin-bottom: 15px;
}

.risk-recommendations {
    list-style: none;
    padding: 0;
}

.risk-recommendations li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.risk-recommendations li:last-child {
    border-bottom: none;
}

/* Tips and Alerts */
.tip-box {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.tip-box.warning {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.tip-box.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.tip-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tooltips and Hints */
.hint-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.hint-tooltip .tooltip-icon {
    color: #6c757d;
    font-size: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hint-tooltip:hover .tooltip-icon {
    background: #007bff;
    color: white;
}

.hint-tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hint-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.hint-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.legal-claim {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.legal-claim h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-claim p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        max-height: none;
    }
    
    .preview-panel {
        order: -1;
        max-height: 300px;
        min-height: 250px;
    }
    
    .document-preview {
        max-height: 200px;
        font-size: 11pt;
    }
    
    .form-panel, .preview-panel {
        max-height: none;
    }
    
    .form-content {
        max-height: none;
        overflow-y: visible;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .app-container {
        padding: 15px;
    }
    
    .main-content {
        gap: 25px;
    }
    
    .navigation-buttons {
        padding: 18px 25px;
        gap: 12px;
    }
    
    .nav-button {
        padding: 12px 18px;
        font-size: 0.95rem;
        min-height: 44px; /* Better touch target */
    }
    
    .tab-button {
        padding: 14px 10px;
        font-size: 0.9rem;
        min-height: 48px; /* Better touch target */
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 44px; /* Better touch target */
    }
    
    .checkbox-item {
        padding: 16px;
        min-height: 44px; /* Better touch target */
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .app-container {
        padding: 8px;
        margin: 0;
    }
    
    .header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .main-content {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .form-content {
        padding: 15px;
    }
    
    .navigation-buttons {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: #f8f9fa;
        border-top: 2px solid #e9ecef;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .navigation-buttons > div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .nav-button {
        flex: 1;
        padding: 12px 8px;
        font-size: 0.85rem;
        min-height: 48px; /* Better touch target */
        justify-content: center;
        text-align: center;
        border-radius: 8px;
    }
    
    .consultation-button {
        flex: 1.2; /* Slightly larger */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .tab-button {
        padding: 14px 12px;
        font-size: 0.8rem;
        min-width: 120px;
        min-height: 48px; /* Better touch target */
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 48px; /* Better touch target */
        border-radius: 8px;
        border-width: 2px;
    }
    
    .form-group textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    .checkbox-grid {
        gap: 10px;
    }
    
    .checkbox-item {
        padding: 16px 12px;
        min-height: 56px; /* Better touch target for checkboxes */
        border-radius: 8px;
        border-width: 2px;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .checkbox-label {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .checkbox-description {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    .preview-panel {
        max-height: 250px;
        min-height: 200px;
    }
    
    .preview-header {
        padding: 15px;
    }
    
    .preview-header h2 {
        font-size: 1.3rem;
    }
    
    .document-preview {
        padding: 15px;
        font-size: 11pt;
        line-height: 1.5;
        max-height: 150px;
    }
    
    .risk-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .tip-box {
        padding: 12px;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    .guidance-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guidance-card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .evidence-item {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    /* Hide tooltips on mobile - they don't work well with touch */
    .hint-tooltip .tooltip-text {
        display: none;
    }
    
    /* Better form section headers */
    .form-content h3 {
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 12px;
        padding: 10px 0;
        border-bottom: 2px solid #007bff;
        color: #007bff;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .app-container {
        padding: 5px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .form-content {
        padding: 12px;
    }
    
    .navigation-buttons {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .nav-button {
        padding: 12px 6px;
        font-size: 0.8rem;
    }
    
    .tab-button {
        padding: 12px 8px;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
    }
    
    .checkbox-item {
        padding: 14px 10px;
    }
    
    .document-preview {
        padding: 12px;
        font-size: 10pt;
    }
}

/* Landscape mobile phones */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .preview-panel {
        order: 0;
        max-height: 250px;
    }
    
    .form-content {
        max-height: 250px;
        overflow-y: auto;
    }
    
    .navigation-buttons {
        position: relative;
        flex-direction: row;
    }
    
    .navigation-buttons > div {
        flex-direction: row;
    }
    
    .nav-button {
        flex: 0 0 auto;
        min-width: 80px;
    }
}

/* Mobile scrolling improvements */
.form-content,
.document-preview {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Better visual feedback for mobile interactions */
.form-group input:active,
.form-group select:active,
.form-group textarea:active {
    transform: scale(0.998);
    transition: transform 0.1s ease;
}

/* Improved loading states for mobile */
.nav-button:active {
    transform: scale(0.98);
}

/* eSignature Modal Styles */
.esignature-modal-overlay {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

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

.esignature-modal-content {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease-out;
}

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

/* eSignature Button Enhancements */
.nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.6 !important;
}

.nav-button.esign-button {
    position: relative;
    overflow: hidden;
}

.nav-button.esign-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-button.esign-button:hover:before {
    left: 100%;
}

/* Mobile responsiveness for eSignature modal */
@media (max-width: 768px) {
    .esignature-modal-content {
        width: 95%;
        height: 90%;
        padding: 15px;
    }
    
    .navigation-buttons > div {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-button {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Enhanced button hover states for eSignature buttons */
.nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Better spacing for mobile content */
@media (max-width: 768px) {
    .form-content h3:first-child {
        margin-top: 0;
    }
    
    .form-content h3:last-of-type {
        margin-bottom: 20px;
    }
    
    /* Ensure content doesn't get hidden behind fixed elements */
    .form-content {
        padding-bottom: 100px; /* Account for fixed navigation */
    }
    
    /* Better visual hierarchy on mobile */
    .risk-card h3 {
        font-size: 1.1rem;
    }
    
    .guidance-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}
@media print {
    .form-panel,
    .navigation-buttons,
    .tab-navigation {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .preview-panel {
        box-shadow: none;
        border: none;
    }
    
    .document-preview {
        font-size: 11pt;
        line-height: 1.5;
    }
}
/* Print Styles */
@media print {
    .form-panel,
    .navigation-buttons,
    .tab-navigation {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .preview-panel {
        box-shadow: none;
        border: none;
    }
    
    .document-preview {
        font-size: 11pt;
        line-height: 1.5;
    }
}
.evidence-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.evidence-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.evidence-item strong {
    color: #2c3e50;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.evidence-item div {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* Evidence Hierarchy Styles */
.evidence-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    min-height: 44px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
}

.evidence-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.evidence-item:active {
    transform: scale(0.998);
}

.evidence-item strong {
    color: #2c3e50;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.evidence-item div {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* Additional highlighting sections for new Tab 1 inputs */
.contact-info-highlight {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 2px 4px;
    border-radius: 2px;
}

.establishment-section-highlight {
    background-color: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Enhanced form section styling */
.form-content h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* Account establishment section styling */
.establishment-checkboxes {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

/* Improved button group styling */
.navigation-buttons div {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .navigation-buttons div {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Guidance Cards for Arbitration Tab */
.guidance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.guidance-card {
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
}

.guidance-card.include {
    background-color: #d4edda;
    border-color: #28a745;
}

.guidance-card.exclude {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.guidance-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.guidance-card ul {
    list-style: none;
    padding: 0;
}

.guidance-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.guidance-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
}


/* Paywall-specific styles */
.preview-non-copyable {
    position: relative;
}

.preview-non-copyable::before {
    content: "🔒 Payment required to copy or download";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 15;
    pointer-events: none;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.05) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0.05) 75%, 
        transparent 75%
    );
    background-size: 30px 30px;
    animation: stripe-animate 1s linear infinite;
}

@keyframes stripe-animate {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

/* Paid state button styling */
.nav-button.paid {
    background: linear-gradient(135deg, #4f46e5, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-button.paid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Unpaid state button styling */
.nav-button.unpaid {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-button.unpaid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-button.unpaid:hover::before {
    left: 100%;
}

.nav-button.unpaid:hover {
    background: linear-gradient(135deg, #5a6268, #343a40) !important;
    transform: translateY(-1px);
}

/* Mobile paywall adjustments */
@media (max-width: 768px) {
    .preview-non-copyable::before {
        font-size: 10px;
        padding: 3px 6px;
        top: 5px;
        right: 5px;
    }
    
    .nav-button.unpaid,
    .nav-button.paid {
        font-size: 0.85rem;
        padding: 12px 8px;
    }
}

/* eSignature Modal Styles */
.esignature-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

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

.esignature-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    height: 80%;
    max-width: 1000px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease-out;
}

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

/* eSignature Button Enhancements */
.nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.6 !important;
}

.nav-button.esign-button {
    position: relative;
    overflow: hidden;
}

.nav-button.esign-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-button.esign-button:hover:before {
    left: 100%;
}

/* Mobile responsiveness for eSignature modal */
@media (max-width: 768px) {
    .esignature-modal-content {
        width: 95%;
        height: 90%;
        padding: 15px;
    }
    
    .navigation-buttons > div {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-button {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Enhanced button hover states for eSignature buttons */
.nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
