/* Mobile optimizations - CSS only */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .form-panel,
    .preview-panel {
        max-height: none;
        width: 100%;
    }
    
    .preview-panel {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        min-height: 300px;
    }
    
    .tab-navigation {
        padding: 0 10px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 8px;
    }
    
    .help-icon {
        position: relative;
        display: inline-block;
        vertical-align: middle;
    }
    
    .tooltip {
        max-width: 200px;
        white-space: normal;
        left: auto;
        right: 0;
        transform: none;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .nav-button {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        position: sticky;
        top: 0;
        background: #f9fafb;
        padding: 10px 0;
        z-index: 5;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 10px;
    }
    
    .preview-table {
        width: 100%;
    }
    
    .preview-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        border-bottom: 1px solid #eaeaea;
    }
    
    .preview-table td {
        width: 100% !important;
        padding: 8px 5px;
    }
    
    .separator {
        display: none;
    }
    
    .english-column, 
    .spanish-column {
        width: 100%;
    }
    
    .spanish-column {
        border-top: 1px dashed #ccc;
        padding-top: 10px;
    }
    
    /* Make sure title rows are still visible */
    .title-row td {
        font-weight: bold;
        padding-top: 15px;
    }
    
    /* Improve spacing for signature items */
    .signature-row td {
        padding-top: 20px;
    }
    
    /* Ensure highlighted text is fully visible */
    .highlighted-text {
        width: 100%;
        display: inline-block;
    }
    
    /* Fix clause info spacing */
    .clause-included-info,
    .checkbox-warning {
        margin-left: 10px;
        margin-bottom: 15px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Risk sections in summary */
    .risk-section {
        padding: 10px;
    }
    
    .risk-section h4 {
        font-size: 14px;
    }
    
    .risk-section li {
        font-size: 12px;
        line-height: 1.4;
    }
}