body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
        }

        /* Header Styles */
        header {
            background: linear-gradient(135deg, #844fc1, #6c3fb5);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

            position: relative;
            color: white;
            overflow: hidden;
        }

        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: -20%;
            width: 20%;
            /* narrower width */
            height: 100%;
            background: linear-gradient(120deg,
                rgba(255, 255, 255, 0.05) 0%,
                /* less bright at edges */
                rgba(255, 255, 255, 0.15) 50%,
                /* softer center */
                rgba(255, 255, 255, 0.05) 100%);
            transform: skewX(-20deg);
            animation: lightSweep 3s infinite;
            pointer-events: none;
            z-index: 1;
        }

        @keyframes lightSweep {
        0% {
            left: -50%;
        }

        100% {
            left: 100%;
        }
        }

        header .left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        header div img {
            height: 4rem;
            width: 4rem;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.2);
            background-color: #fff;
        }

        header div h2 {
            font-family: 'Segoe UI', sans-serif;
            font-size: 1.5rem;
            color: #fff;
            margin: 0;
            font-weight: 600;
        }

        /* Mobile Header */
        @media (max-width: 768px) {
            header {
                padding: 0.75rem 1rem;
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            header div img {
                height: 3rem;
                width: 3rem;
            }

            header div h2 {
                font-size: 1.25rem;
            }

            header .left {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        /* Main Container */
        .main-container {
            min-height: calc(100vh - 120px);
            padding: 2rem 0;
        }

        @media (max-width: 768px) {
            .main-container {
                padding: 1rem 0;
            }
        }

        /* Sidebar Styles */
        .sidebar {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 1.5rem;
            height: fit-content;
            position: sticky;
            top: 2rem;
        }

        .sidebar h4 {
            font-weight: 700;
            color: #2c3e50;
            border-bottom: 3px solid #844fc1;
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .sidebar-link {
            color: #495057;
            font-weight: 500;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            margin-bottom: 0.5rem;
            display: block;
            text-decoration: none;
            border-left: 3px solid transparent;
        }

        .sidebar-link:hover {
            background: linear-gradient(45deg, #f8f9ff, #e9f0ff);
            color: #844fc1;
            text-decoration: none;
            border-left-color: #844fc1;
            transform: translateX(5px);
        }

        .sidebar-link.active {
            background: linear-gradient(45deg, #844fc1, #6c3fb5);
            color: white !important;
            border-left-color: #fff;
            box-shadow: 0 4px 15px rgba(132, 79, 193, 0.3);
        }

        /* Mobile Sidebar */
        @media (max-width: 991px) {
            .sidebar {
                position: relative;
                top: 0;
                margin-bottom: 2rem;
            }

            .sidebar .nav {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .sidebar-link {
                flex: 1;
                min-width: calc(50% - 0.25rem);
                text-align: center;
                font-size: 0.9rem;
                padding: 0.5rem;
            }

            .sidebar h4 {
                text-align: center;
                margin-bottom: 1rem;
            }
        }

        @media (max-width: 576px) {
            .sidebar-link {
                min-width: 100%;
                font-size: 0.85rem;
            }
        }

        /* Form Styles */
        .form-wrapper {
            padding: 0;
        }

        .form-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #e9ecef;
        }

        @media (max-width: 768px) {
            .form-card {
                padding: 1.5rem;
                margin: 0 0.5rem;
            }
        }

        .form-section {
            display: none;
            animation: fadeIn 0.3s ease-in;
        }

        .form-section.active {
            display: block;
        }

        @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
        }

        .form-header {
            margin-bottom: 2rem;
            font-weight: 700;
            font-size: 1.5rem;
            color: #2c3e50;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #844fc1;
            position: relative;
        }

        .form-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: #6c3fb5;
        }

        @media (max-width: 768px) {
            .form-header {
                font-size: 1.25rem;
                margin-bottom: 1.5rem;
            }
        }

        /* Form Controls */
        .form-label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #495057;
        }

        .form-control,
        .form-select {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 0.75rem;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: #844fc1;
            box-shadow: 0 0 0 0.2rem rgba(132, 79, 193, 0.25);
        }

        .form-control.is-invalid {
            border-color: #dc3545;
            animation: shake 0.5s ease-in-out;
        }

        .form-control.is-valid {
            border-color: #28a745;
        }

        /* Select2 styling to match .form-control */
        .select2-container .select2-selection--single {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 0.75rem;
            font-size: 0.95rem;
            color: #495057;
            transition: all 0.3s ease;
            height: auto;
            box-sizing: border-box;
        }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            color: #495057;
            line-height: 1.5;
            padding-left: 0;
            /* remove default extra padding */
        }

        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 100%;
            top: 0;
            right: 0.75rem;
        }

        /* Focus state */
        .select2-container--default .select2-selection--single:focus,
        .select2-container--default .select2-selection--single.select2-selection--focus {
            border-color: #844fc1;
            box-shadow: 0 0 0 0.2rem rgba(132, 79, 193, 0.25);
            outline: none;
        }

        /* Valid and invalid states */
        .select2-container--default .select2-selection--single.is-valid {
            border-color: #28a745;
        }

        .select2-container--default .select2-selection--single.is-invalid {
            border-color: #dc3545;
            animation: shake 0.5s ease-in-out;
        }

        /* Ensure width stays full */
        .select2-container {
            width: 100% !important;
        }



        @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
        }

        /* Buttons */
        .btn-primary {
            background: linear-gradient(45deg, #844fc1, #6c3fb5);
            border: none;
            border-radius: 8px;
            padding: 0.75rem 2rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(132, 79, 193, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(132, 79, 193, 0.4);
            background: linear-gradient(45deg, #6c3fb5, #5a2d9f);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Payment Button */
        .payment-btn {
            width: 100%;
            margin-top: 1rem;
            background: linear-gradient(45deg, #28a745, #20c997);
            border: none;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
        }

        .payment-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        }

        /* Modal Styles */
        .modal-content {
            border: none;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }

        .modal-header {
            background: linear-gradient(45deg, #844fc1, #6c3fb5);
            border-radius: 12px 12px 0 0;
        }

        /* Form Check Styles */
        .form-check-input:checked {
            background-color: #844fc1;
            border-color: #844fc1;
        }

        .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(132, 79, 193, 0.25);
        }

        /* Responsive Grid Adjustments */
        @media (max-width: 576px) {
            .row>[class*="col-sm-"] {
                margin-bottom: 1rem;
            }
        }

        /* Loading State */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        /* Progress Indicator */
        .progress-container {
            margin-bottom: 2rem;
        }

        .progress {
            height: 6px;
            border-radius: 3px;
            background-color: #e9ecef;
        }

        .progress-bar {
            background: linear-gradient(45deg, #844fc1, #6c3fb5);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        /* Utility Classes */
        .text-muted {
            color: #6c757d !important;
        }

        .text-danger {
            color: #dc3545 !important;
        }

        /* Mobile Optimizations */
        @media (max-width: 768px) {
            .container-fluid {
                padding: 0;
            }

            .main-container {
                padding: 1rem;
            }
        }

        /* Accessibility Improvements */
        .form-control:focus,
        .form-select:focus,
        .btn:focus {
            outline: none;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .sidebar-link.active {
            background-color: #0d6efd;
            color: white !important;
            border-radius: 5px;
        }

        .form-step {
            display: none;
        }

        .form-step.active {
            display: block;
        }

        header .login a {
            text-decoration: none;
        }

        header .login a div {
            padding: 5px 28px;
            background-color: #fff;
            border-radius: 10px;
            font-size: 17px;
            font-weight: 600;
            text-decoration: none;
            color: #6c3fb5;
            transition: all 0.8 ease;
        }

        header .login a div:hover {
            background-color: #4a2b88;
            color: #fff;
        }

        .note span {
            color: #f00;
        }

        .note {
            padding: 15px;
            margin: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            font-weight: 700;
            color: rgb(65, 65, 65);
            text-align: center;
        }

        .program-card {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .program-card:hover {
            border-color: #844fc1;
            box-shadow: 0 4px 15px rgba(44, 95, 141, 0.2);
        }

        .program-card.selected {
            border-color: #844fc1;
            background: linear-gradient(45deg, #fcf8ff, #f3e9ff);
        }
