:root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #7f8c8d;
            --legal-color: #8e44ad;
        }
         .page-header {
            background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 62, 80, 0.2);
            position: relative;
            overflow: hidden;  color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .legal-notice {
            background-color: rgba(231, 76, 60, 0.08);
            border-left: 4px solid var(--accent-color);
            padding: 1rem 1.5rem;
            border-radius: 0 4px 4px 0;
            margin-bottom: 1.5rem;
        }
        .legal-notice h5 {
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        .form-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .template-card {
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            background-color: var(--light-gray);
            position: relative;
        }
        .template-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .template-card.selected {
            border-color: var(--secondary-color);
            background-color: rgba(52, 152, 219, 0.05);
        }
        .custom-template-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--success-color);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .template-icon {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            background-color: rgba(52, 152, 219, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--secondary-color);
            font-size: 1.5rem;
        }
        .btn-success {
            background-color: var(--success-color);
            border-color: var(--success-color);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            transition: all 0.3s;
        }
        .result-header {
            background-color: var(--primary-color);
            color: white;
            padding: 1.25rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .result-.waiver-title {
            text-align: center;
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 2rem;
            color: var(--primary-color);
        }
        .waiver-section {
            margin-bottom: 1.5rem;
        }
        .waiver-section h4 {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
        }
        .signature-area {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 2px solid #ccc;
        }
        .signature-line {
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        .signature-field {
            border-bottom: 1px solid #999;
            padding-bottom: 0.5rem;
            min-width: 300px;
            display: inline-block;
            margin-right: 1rem;
        }
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            position: relative;
        }
        .step-indicator::before {
            content: "";
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #eee;
            z-index: 1;
        }
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            flex: 1;
        }
        .step.active .step.completed .step-label {
            font-size: 0.9rem;
            text-align: center;
            color: var(--text-muted);
        }
        .step.active .step-label {
            color: var(--secondary-color);
            font-weight: 600;
        }
        .nav-tabs {
            border-bottom: 1px solid var(--border-color);
        }
        .nav-tabs .nav-tabs @media (max-width: 768px) {
            .result-.step-indicator {
                flex-wrap: wrap;
            }
            .step {
                margin-bottom: 1rem;
                flex: 0 0 33.33%;
            }
        }
        .form-check {
            margin-bottom: 0.75rem;
        }
        .form-check-input:checked {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }
        .info-tooltip {
            color: var(--secondary-color);
            cursor: help;
            margin-left: 0.25rem;
        }
        .clause-options {
            margin-top: 1rem;
        }
        .clause-card {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            background-color: white;
        }
        .clause-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .clause-title {
            font-weight: 600;
            color: var(--primary-color);
        }
        .template-management {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 2rem;
            border: 1px solid var(--border-color);
        }
        .saved-templates {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }
        .saved-template-item {
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 1rem;
            width: calc(50% - 0.5rem);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .undo-redo-controls {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .auto-save-indicator {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--success-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            font-size: 0.875rem;
            z-index: 1000;
            display: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            display: none;
        }
        .loading-content {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            text-align: center;
            max-width: 400px;
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--secondary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
                  
             
                        .signature-area { margin-top: 40pt; }
                        .signature-line { margin-top: 20pt; }