.btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: var(--transition);
            min-height: 44px;
            min-width: 44px;
            line-height: 1.2;
            text-align: center;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 8px 18px rgba(17, 34, 77, 0.18);
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
        }

        .btn-secondary {
            background-color: white;
            border: 1px solid var(--border);
            color: var(--text-muted);
            font-weight: 500;
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
        }

        .btn-secondary:hover {
            background-color: #f4f6f9;
            color: var(--text-main);
            border-color: #bbb;
        }

        .btn-danger {
            background-color: #fee2e2;
            color: var(--danger);
        }

        .btn-danger:hover {
            background-color: #fecaca;
        }

        /* Content Scroll Area */
        .scroll-area {
            flex: 1;
            padding: 32px;
            overflow-y: auto;
            background-color: var(--bg-body);
        }

        /* Cards and Sections */
        .section-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            margin-bottom: 24px;
            overflow: hidden;
            display: none;
            /* Hidden by default */
            animation: fadeIn 0.3s ease-out;
            border: 1px solid var(--border);
        }

        .section-card.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card-header {
            padding: 16px 24px;
            border-bottom: 2px solid var(--accent);
            /* Thicker golden border */
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--primary);
            /* Dark blue header like DJP */
            color: white;
        }

        .card-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: white;
            /* Ensures text is visible on dark blue */
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .progress-pill {
            padding: 4px 12px;
            background-color: var(--accent);
            /* Yellow pill */
            color: var(--text-main);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .card-body {
            padding: 32px;
        }

        /* Forms */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        input[type="text"],
        input[type="date"],
        input[type="tel"],
        input[type="number"],
        select,
        textarea,
        .form-control {
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 16px;
            width: 100%;
            background-color: var(--input-bg);
            transition: var(--transition);
            min-height: 44px;
        }

        input[type="text"]:focus,
        input[type="date"]:focus,
        input[type="tel"]:focus,
        input[type="number"]:focus,
        select:focus,
        .form-control:focus,
        textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
            background-color: white;
        }

        textarea {
            resize: vertical;
            min-height: 88px;
        }

        .input-group {
            display: flex;
            gap: 8px;
            align-items: stretch;
            flex-wrap: wrap;
        }

        .register-group {
            align-items: center;
        }

        .register-group input {
            flex: 1 1 220px;
        }

        .register-group .btn {
            flex: 0 0 auto;
            min-width: 52px;
            padding-inline: 14px;
        }

        .table-responsive {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            border-radius: var(--radius);
        }

        .table-responsive table {
            min-width: 600px;
        }

        .routing-mobile {
            display: none;
        }

        .routing-step {
            border: 1px solid #dbe5f1;
            border-radius: 12px;
            padding: 14px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        }

        .routing-step+.routing-step {
            margin-top: 12px;
        }

        .routing-step-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .routing-step-badge {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: var(--accent);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .routing-step-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .routing-field label {
            display: block;
            margin-bottom: 6px;
        }

        .routing-unified {
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .routing-head,
        .routing-row {
            display: grid;
            grid-template-columns: minmax(260px, 2.2fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(140px, 0.8fr);
            gap: 0;
        }

        .routing-head {
            background: linear-gradient(180deg, #fbc02d 0%, #f4b400 100%);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 700;
        }

        .routing-head>div {
            padding: 14px 12px;
            border-bottom: 1px solid #e0a800;
            text-align: center;
        }

        .routing-head>div:first-child {
            text-align: left;
        }

        .routing-row {
            border-bottom: 1px solid var(--border);
            align-items: stretch;
            background: #fff;
        }

        .routing-row:nth-child(even) {
            background: #fcfdff;
        }

        .routing-row:last-child {
            border-bottom: none;
        }

        .routing-cell {
            padding: 12px;
        }

        .routing-cell input {
            width: 100%;
        }

        .routing-cell-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--primary);
            font-weight: 600;
            line-height: 1.35;
        }

        .routing-row .routing-cell:not(.routing-cell-title) {
            display: flex;
            align-items: center;
        }

        .routing-row .routing-cell:not(.routing-cell-title) input {
            text-align: center;
            border-radius: 8px;
            border-color: #d7dee8;
            background: #fff;
        }

        .routing-row .routing-cell:last-child input {
            text-align: left;
        }

        .routing-row .routing-cell:last-child input {
            max-width: 160px;
        }

        .routing-inline-label {
            display: none;
            margin-bottom: 6px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        /* Tables */
        .requirements-table {
            width: 100%;
            border-collapse: collapse;
            /* DJP uses collapsed borders */
            border-spacing: 0;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 24px;
            background-color: white;
        }

        .requirements-table th {
            background-color: var(--accent);
            /* Yellow header */
            padding: 14px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--text-main);
            /* Dark text on yellow */
            border-bottom: 2px solid #e0a800;
            /* Darker yellow border */
            font-size: 14px;
        }

        .requirements-table td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
            font-size: 14px;
            color: var(--text-muted);
        }

        .requirements-table td:last-child,
        .requirements-table th:last-child {
            text-align: center;
        }

        .requirements-table tr:last-child td {
            border-bottom: none;
        }

        .requirements-table tr:hover td {
            background-color: #f8fafc;
        }

        /* Custom Checkbox */
        .radio-group {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .custom-radio {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            min-height: 44px;
            padding: 8px 12px;
            border-radius: 8px;
        }

        .custom-radio input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .requirements-table .radio-group {
            justify-content: flex-start;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
            min-height: 32px;
        }

        .requirements-table .custom-radio {
            min-height: auto;
            padding: 4px 0;
            white-space: nowrap;
            justify-content: center;
        }

        /* Footer Actions */
        .section-footer {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .signature-area {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
        }

        .sig-block {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 150px;
        }

        .sig-block input {
            padding: 8px 12px !important;
        }

        /* Notification */
        .alert-box {
            padding: 16px;
            border-radius: 6px;
            margin-bottom: 24px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .alert-warning {
            background-color: var(--accent-light);
            border: 1px solid var(--accent);
            color: var(--text-main);
            /* Dark text for readability on yellow */
        }

        .alert-success {
            background-color: #ecfdf5;
            border: 1px solid #6ee7b7;
            color: #065f46;
        }

        /* Mobile Utility */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: white;
            /* Changed for dark top-bar */
            cursor: pointer;
            min-width: 44px;
            min-height: 44px;
        }

        /* Toast */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 4000;
            max-width: min(360px, calc(100vw - 32px));
            padding: 12px 16px;
            border-radius: 12px;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
            background: #1e293b;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            line-height: 1.45;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            pointer-events: none;
            word-break: break-word;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.success {
            background: #15803d;
        }

        .toast.error {
            background: #b91c1c;
        }

        .toast.warning {
            background: #b45309;
        }

        .toast.info {
            background: #1d4ed8;
        }

        @media (max-width: 768px) {
            .toast {
                top: auto;
                right: 16px;
                bottom: 16px;
                left: 16px;
                max-width: none;
            }
        }
