
        :root {
            --primary-color: #3b82f6;
            --secondary-color: #1e40af;
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
            --light-bg: #f8fafc;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }

        * {
            box-sizing: border-box;
        }

        /* body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px 0;
        } */

        .main-container {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            overflow: hidden;
        }

        .form-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 0.75rem 1rem;
            text-align: center;
        }

        .form-header h1 {
            margin: 0;
            font-size: 2rem;
            font-weight: 600;
        }

        .form-header p {
            margin: 0.5rem 0 0 0;
            opacity: 0.9;
        }

        .form-body {
            padding: 2rem;
        }

        .section-card {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid #e2e8f0;
        }

        .section-title {
            color: var(--secondary-color);
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            font-weight: 500;
            color: #374151;
            margin-bottom: 0.5rem;
            display: block;
        }

        .required {
            color: var(--danger-color);
        }

        .tab-error {
            color: var(--danger-color);
            font-weight: bold;
            border-bottom: 2px solid #dc3545;
        }
        .form-control {
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            padding: 0.15rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            width: 100%;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            outline: none;
        }

        .form-control.is-invalid {
            border-color: var(--danger-color);
        }

        .invalid-feedback {
            color: var(--danger-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: block;
        }

        .radio-group,
        .checkbox-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .radio-item,
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .radio-item input,
        .checkbox-item input {
            width: auto;
            margin: 0;
        }

        .guardian-table {
            overflow-x: auto;
            margin-top: 1rem;
        }

        .table {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .table th {
            background: var(--primary-color);
            color: white;
            font-weight: 500;
            border: none;
            padding: 1rem 0.75rem;
        }

        .table td {
            padding: 0.75rem;
            border-color: #e5e7eb;
        }

        .file-input-wrapper {
            position: relative;
            display: inline-block;
            cursor: pointer;
            width: 100%;
        }

        .file-input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .file-input-display {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            background: #f9fafb;
            transition: all 0.3s ease;
        }

        .file-input-display:hover {
            border-color: var(--primary-color);
            background: #eff6ff;
        }

        .file-requirements {
            font-size: 0.75rem;
            color: #6b7280;
            margin-top: 0.25rem;
        }

        .alert {
            border-radius: 8px;
            border: none;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .alert-success {
            background: #dcfce7;
            color: #166534;
        }

        .alert-danger {
            background: #fee2e2;
            color: #991b1b;
        }

        .btn {
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 500;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: #6b7280;
            color: white;
        }

        .btn-secondary:hover {
            background: #4b5563;
        }

        .form-actions {
            text-align: center;
            padding: 2rem;
            background: var(--light-bg);
            border-top: 1px solid #e5e7eb;
        }

        .captcha-container {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .captcha-display {
            background: #f3f4f6;
            padding: 0.75rem;
            border-radius: 8px;
            font-family: monospace;
            font-size: 1.25rem;
            font-weight: bold;
            letter-spacing: 2px;
            border: 2px solid #d1d5db;
        }

        .captcha-refresh {
            color: var(--primary-color);
            cursor: pointer;
            font-size: 1.25rem;
            transition: color 0.3s ease;
        }

        .captcha-refresh:hover {
            color: var(--secondary-color);
        }

        .disclaimer-section {
            background: #fef3c7;
            border: 1px solid #f59e0b;
            border-radius: 8px;
            padding: 1.5rem;
        }

        .disclaimer-section h6 {
            color: #92400e;
            margin-bottom: 1rem;
        }

        .disclaimer-item {
            margin-bottom: 1rem;
        }

        .disclaimer-item:last-child {
            margin-bottom: 0;
        }

        body {
            margin: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f2f5;
        }
        .header-bar {
            background-color: #f8f9fa;
            padding: 10px 20px;
            display: flex;
            align-items: center;
        }

        .header-bar img {
            height: 70px;
            margin-right: 20px;
        }
        .sidebar {
            /*flex: 0 0 250px; /* Fixed width sidebar */
            width: 155px;
            transition: width 0.3s ease;
            position: fixed; /* overlay on content */
            height: calc(100vh - 100px);
            top: 100px;
            left: 0;
            z-index: 1000;
            padding: 1rem;
            overflow: hidden;
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: white;
            /*max-width: 200px;
            height: 100vh;
            /*width: 250px; /* default expanded width */
            /*transition: all 0.3s ease; /* smooth collapse 
             /* hide overflowing content when collapsed 
            position: relative;*/
        }
        
        .sidebar.collapsed h2 {
         opacity: 0;
        }

        .sidebar a span {
             transition: opacity 0.3s;
        }

        .sidebar.collapsed a span {
            opacity: 0;
        }
        .sidebar.collapsed {
            flex: 0 0 60px; /* collapsed width */
            max-width: 60px;
            padding: 1rem 0.5rem;
        }
        .sidebar h2 {
            font-size: 1.5rem;
            /*margin-bottom: 2rem;*/
            /*transition: opacity 0.3s ease;*/
            /*display: flex;
            align-items: center;
            gap: 0.5rem;*/
            text-align: center;
            cursor: pointer;
        }

        .sidebar a {
            color: white;
            display: flex; 
            align-items: center;
            margin-bottom: 1rem;
            text-decoration: none;
            /*transition: opacity 0.3s ease;*/
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: background 0.3s ease;
        }

        .sidebar a:hover {
            /*text-decoration: underline;*/
            background: rgba(255, 255, 255, 0.1);
        }
        .sidebar a span {
            margin-left: 0.5rem; /* space for text */
        }

        .sidebar.collapsed a span {
            opacity: 0; /* hide text when collapsed */
        }
        .menu-items {
            /*max-height: 1000px;
            opacity: 1;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            overflow: hidden;*/
            max-height: 500px;
            opacity: 1;
            overflow: visible;
            transition: opacity 0.3s ease, max-height 0.3s ease;
            display: flex;
            flex-direction: column;
            margin-top: 2rem;
        }
        .menu-container {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
        }
        .sidebar.expanded .menu-container {
            opacity: 1;
            max-height: 500px; /* enough to show all content */
        }

        .menu-container h2 {
            margin-bottom: 1rem;
        }
        .menu-items a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            display: block;
            transition: background 0.3s;
        }

        .menu-items a:hover {
            background: rgba(255,255,255,0.1);
        }
        .sidebar.expanded {
            width: 100px;                /* expanded width */
        }

        .sidebar.expanded .menu-items {
            max-height: 500px;           /* enough to show all links */
            opacity: 1;
        }
        .sidebar.collapsed .menu-items {
            max-height: 0;
            opacity: 0;
        }
        .content {
            /*flex: 1;  Take remaining width 
            padding: 2rem;*/
            margin-left: 60px; /* initial collapsed state */
            margin-top: 20px;   /* leave space below header */
            transition: margin-left 0.3s ease;
        }
        .sidebar.expanded ~ .content {
            margin-left: 100px; /* match expanded sidebar width */
        }
        iframe {
            border: none;
            width: 100%;
            min-height: 90vh;
        }
        .toggle-container {
            display: flex;
            justify-content: center;
            cursor: pointer;
            margin-bottom: 1rem;
        }
        .toggle-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            margin-bottom: 1rem;
        }
        .menu-label {
            opacity: 1; 
            transition: opacity 0.3s ease;
            font-weight: 600;  
            white-space: nowrap;
            color: white; /* change text color to white */
        }
        /* Menu items links */
        .menu-items a span {
            color: white; /* change text color to white*/
        }

        /* Optional: Hover effect */
        .menu-items a:hover span {
            color: var(--primary-color); /* highlight on hover */
        }
        .sidebar.collapsed .menu-label {
            opacity: 0; /* hidden when expanded */
        }
        @media (max-width: 768px) {
            .main-container {
                margin: 0 10px;
                border-radius: 0;
            }

            .form-header {
                padding: 1.5rem;
            }

            .form-header h1 {
                font-size: 1.5rem;
            }

            .form-body {
                padding: 1rem;
            }

            .section-card {
                padding: 1rem;
            }

            .radio-group {
                flex-direction: column;
                gap: 0.75rem;
            }

            .table-responsive {
                font-size: 0.875rem;
            }

            .captcha-container {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .form-header h1 {
                font-size: 1.25rem;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }
        }

        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .progress-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            padding: 0 1rem;
        }

        .progress-step {
            flex: 1;
            text-align: center;
            position: relative;
        }

        .progress-step::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #e5e7eb;
            transform: translate(-50%, -50%);
        }

        .progress-step.active::before {
            background: var(--primary-color);
        }

        .progress-step.completed::before {
            background: var(--success-color);
        }

        .progress-step span {
            display: block;
            margin-top: 2rem;
            font-size: 0.875rem;
            color: #6b7280;
        }

        .progress-step.active span {
            color: var(--primary-color);
            font-weight: 500;
        }
        .highlight-error {
            border: 2px solid #dc3545; /* Red border for visibility */
            border-radius: 5px;
            padding: 2px; /* optional */
            background-color: #ffe6e6; /* light red background */
        }
