File size: 86,417 Bytes
18e382c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BFS Financial Services - Loan Management</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* Custom CSS for elements Tailwind can't handle easily */
        .loan-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .dashboard-card:hover {
            transform: scale(1.02);
        }
        
        #map {
            height: 400px;
            width: 100%;
        }
        
        .sidebar {
            transition: all 0.3s;
        }
        
        .application-status-pending {
            background-color: #FEF3C7;
            color: #92400E;
        }
        
        .application-status-approved {
            background-color: #D1FAE5;
            color: #065F46;
        }
        
        .application-status-rejected {
            background-color: #FEE2E2;
            color: #991B1B;
        }
        
        .application-status-completed {
            background-color: #DBEAFE;
            color: #1E40AF;
        }
        
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                z-index: 50;
                height: 100vh;
            }
            
            .sidebar-open {
                transform: translateX(0);
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Public Website -->
    <div id="public-site">
        <!-- Navigation -->
        <nav class="bg-white shadow-lg">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="flex justify-between h-16">
                    <div class="flex">
                        <div class="flex-shrink-0 flex items-center">
                            <img class="h-8 w-auto" src="https://via.placeholder.com/150x50?text=BFS+Logo" alt="BFS Financial Services">
                        </div>
                        <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
                            <a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" onclick="showSection('home')">
                                Home
                            </a>
                            <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" onclick="showSection('about')">
                                About Us
                            </a>
                            <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" onclick="showSection('services')">
                                Services
                            </a>
                            <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" onclick="showSection('blog')">
                                Blog
                            </a>
                            <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" onclick="showSection('contact')">
                                Contact
                            </a>
                        </div>
                    </div>
                    <div class="hidden sm:ml-6 sm:flex sm:items-center">
                        <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium" onclick="showSection('apply')">
                            Request a Loan
                        </button>
                    </div>
                    <div class="-mr-2 flex items-center sm:hidden">
                        <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" onclick="toggleMobileMenu()">
                            <span class="sr-only">Open main menu</span>
                            <i class="fas fa-bars"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- Mobile menu -->
            <div class="hidden sm:hidden" id="mobile-menu">
                <div class="pt-2 pb-3 space-y-1">
                    <a href="#" class="bg-blue-50 border-blue-500 text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('home')">Home</a>
                    <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('about')">About Us</a>
                    <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('services')">Services</a>
                    <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('blog')">Blog</a>
                    <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('contact')">Contact</a>
                    <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium" onclick="showSection('apply')">Request a Loan</a>
                </div>
            </div>
        </nav>

        <!-- Login Button (for admin access) -->
        <div class="absolute top-4 right-4">
            <button class="bg-gray-800 text-white px-4 py-2 rounded-md text-sm font-medium" onclick="showAdminLogin()">
                Admin Login
            </button>
        </div>

        <!-- Home Section -->
        <section id="home-section" class="public-section">
            <!-- Hero Banner -->
            <div class="bg-blue-700 text-white">
                <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
                    <div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
                        <div>
                            <h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl mb-4">
                                Financial Solutions Tailored for You
                            </h1>
                            <p class="text-xl text-blue-100 mb-8">
                                Fast approvals, flexible repayment options, and competitive rates to help you achieve your goals.
                            </p>
                            <div class="flex flex-col sm:flex-row gap-4">
                                <button class="bg-white text-blue-700 hover:bg-blue-50 px-6 py-3 rounded-md text-lg font-semibold" onclick="showSection('apply')">
                                    Apply Now
                                </button>
                                <button class="border-2 border-white text-white hover:bg-blue-600 px-6 py-3 rounded-md text-lg font-semibold" onclick="showSection('services')">
                                    Learn More
                                </button>
                            </div>
                        </div>
                        <div class="mt-12 lg:mt-0">
                            <!-- Loan Calculator Widget -->
                            <div class="bg-white rounded-lg shadow-xl p-6 text-gray-800">
                                <h3 class="text-lg font-semibold mb-4">Loan Calculator</h3>
                                <div class="space-y-4">
                                    <div>
                                        <label for="loan-amount" class="block text-sm font-medium text-gray-700">Loan Amount (TZS)</label>
                                        <input type="range" id="loan-amount" min="100000" max="10000000" step="100000" value="5000000" class="w-full mt-1">
                                        <div class="flex justify-between text-xs text-gray-500 mt-1">
                                            <span>100,000</span>
                                            <span id="loan-amount-value">5,000,000</span>
                                            <span>10,000,000</span>
                                        </div>
                                    </div>
                                    <div>
                                        <label for="loan-term" class="block text-sm font-medium text-gray-700">Term (Months)</label>
                                        <input type="range" id="loan-term" min="3" max="60" step="1" value="12" class="w-full mt-1">
                                        <div class="flex justify-between text-xs text-gray-500 mt-1">
                                            <span>3</span>
                                            <span id="loan-term-value">12</span>
                                            <span>60</span>
                                        </div>
                                    </div>
                                    <div>
                                        <label for="loan-type" class="block text-sm font-medium text-gray-700">Loan Type</label>
                                        <select id="loan-type" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                                            <option>Personal Loan</option>
                                            <option>Business Loan</option>
                                            <option>Education Loan</option>
                                            <option>Car Loan</option>
                                        </select>
                                    </div>
                                    <div class="pt-4 border-t border-gray-200">
                                        <div class="flex justify-between mb-2">
                                            <span class="text-sm font-medium">Monthly Payment:</span>
                                            <span class="text-sm font-semibold" id="monthly-payment">TZS 458,333</span>
                                        </div>
                                        <div class="flex justify-between">
                                            <span class="text-sm font-medium">Total Interest:</span>
                                            <span class="text-sm font-semibold" id="total-interest">TZS 500,000</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Benefits Section -->
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        Why Choose BFS Financial Services?
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        We provide financial solutions that fit your unique needs and circumstances.
                    </p>
                </div>
                
                <div class="grid md:grid-cols-3 gap-8">
                    <div class="bg-white p-6 rounded-lg shadow-md text-center">
                        <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                            <i class="fas fa-bolt text-xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">Fast Approvals</h3>
                        <p class="text-gray-500">
                            Get loan decisions within 24 hours with our streamlined application process.
                        </p>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-md text-center">
                        <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                            <i class="fas fa-calendar-alt text-xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">Flexible Repayments</h3>
                        <p class="text-gray-500">
                            Choose repayment schedules that work for you - daily, weekly, or monthly.
                        </p>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-md text-center">
                        <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                            <i class="fas fa-percentage text-xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">Competitive Rates</h3>
                        <p class="text-gray-500">
                            Enjoy some of the most competitive interest rates in the market.
                        </p>
                    </div>
                </div>
            </div>

            <!-- Testimonials -->
            <div class="bg-gray-100 py-16 px-4 sm:px-6 lg:px-8">
                <div class="max-w-7xl mx-auto">
                    <h2 class="text-3xl font-extrabold text-gray-900 text-center mb-12">
                        What Our Clients Say
                    </h2>
                    
                    <div class="grid md:grid-cols-3 gap-8">
                        <div class="bg-white p-6 rounded-lg shadow-md">
                            <div class="flex items-center mb-4">
                                <div class="flex-shrink-0">
                                    <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/32.jpg" alt="">
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Sarah J.</p>
                                    <div class="flex text-yellow-400">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                    </div>
                                </div>
                            </div>
                            <p class="text-gray-600 italic">
                                "The process was so simple and straightforward. I got my education loan approved within a day and could pay my tuition fees on time."
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md">
                            <div class="flex items-center mb-4">
                                <div class="flex-shrink-0">
                                    <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/54.jpg" alt="">
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Michael T.</p>
                                    <div class="flex text-yellow-400">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                    </div>
                                </div>
                            </div>
                            <p class="text-gray-600 italic">
                                "BFS helped me expand my small business with a quick loan. Their repayment options are flexible which made it easy for me to manage cash flow."
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md">
                            <div class="flex items-center mb-4">
                                <div class="flex-shrink-0">
                                    <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Grace M.</p>
                                    <div class="flex text-yellow-400">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                </div>
                            </div>
                            <p class="text-gray-600 italic">
                                "I was able to get a car loan with very minimal documentation. The customer service is excellent and they guided me through the entire process."
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Call to Action -->
            <div class="bg-blue-700 text-white">
                <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8 text-center">
                    <h2 class="text-3xl font-extrabold tracking-tight sm:text-4xl mb-4">
                        Ready to Get Started?
                    </h2>
                    <p class="text-xl text-blue-100 mb-8 max-w-3xl mx-auto">
                        Take the first step towards achieving your financial goals with our simple application process.
                    </p>
                    <button class="bg-white text-blue-700 hover:bg-blue-50 px-8 py-3 rounded-md text-lg font-semibold" onclick="showSection('apply')">
                        Apply for a Loan
                    </button>
                </div>
            </div>
        </section>

        <!-- About Us Section -->
        <section id="about-section" class="public-section hidden">
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        About BFS Financial Services
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        Empowering individuals and businesses with accessible financial solutions since 2010.
                    </p>
                </div>
                
                <!-- Company History -->
                <div class="mb-16">
                    <div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
                        <div class="mb-8 lg:mb-0">
                            <img src="https://via.placeholder.com/600x400?text=BFS+Office" alt="BFS Office" class="rounded-lg shadow-lg w-full">
                        </div>
                        <div>
                            <h3 class="text-2xl font-bold text-gray-900 mb-4">Our Story</h3>
                            <p class="text-gray-600 mb-4">
                                Founded in 2010, BFS Financial Services began as a small community lender in Dar es Salaam with a mission to provide accessible financial services to underserved individuals and small businesses.
                            </p>
                            <p class="text-gray-600 mb-4">
                                Over the years, we've grown to become one of Tanzania's most trusted financial service providers, expanding our operations to multiple regions while maintaining our commitment to personalized service.
                            </p>
                            <p class="text-gray-600">
                                Today, we serve thousands of customers across Tanzania, helping them achieve their personal and business financial goals through our diverse range of loan products.
                            </p>
                        </div>
                    </div>
                </div>
                
                <!-- Mission & Vision -->
                <div class="grid md:grid-cols-2 gap-8 mb-16">
                    <div class="bg-blue-50 p-8 rounded-lg">
                        <div class="flex items-center mb-4">
                            <div class="flex-shrink-0 bg-blue-100 p-3 rounded-full">
                                <i class="fas fa-bullseye text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-900 ml-3">Our Mission</h3>
                        </div>
                        <p class="text-gray-700">
                            To provide innovative, accessible, and responsible financial solutions that empower our customers to achieve their dreams and improve their quality of life.
                        </p>
                    </div>
                    
                    <div class="bg-blue-50 p-8 rounded-lg">
                        <div class="flex items-center mb-4">
                            <div class="flex-shrink-0 bg-blue-100 p-3 rounded-full">
                                <i class="fas fa-eye text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-900 ml-3">Our Vision</h3>
                        </div>
                        <p class="text-gray-700">
                            To be Tanzania's leading financial services provider, recognized for our customer-centric approach, ethical practices, and positive impact on communities.
                        </p>
                    </div>
                </div>
                
                <!-- Core Values -->
                <div class="mb-16">
                    <h3 class="text-2xl font-bold text-gray-900 mb-8 text-center">Our Core Values</h3>
                    <div class="grid md:grid-cols-3 gap-6">
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-hand-holding-heart text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Integrity</h4>
                            <p class="text-gray-600 text-sm">
                                We conduct our business with honesty, transparency, and ethical practices.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-users text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Customer Focus</h4>
                            <p class="text-gray-600 text-sm">
                                We put our customers at the center of everything we do, delivering personalized solutions.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-lightbulb text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Innovation</h4>
                            <p class="text-gray-600 text-sm">
                                We continuously seek better ways to serve our customers and improve our processes.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-shield-alt text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Responsibility</h4>
                            <p class="text-gray-600 text-sm">
                                We lend responsibly and help customers make informed financial decisions.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-hands-helping text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Community</h4>
                            <p class="text-gray-600 text-sm">
                                We're committed to the economic development and well-being of the communities we serve.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-star text-xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Excellence</h4>
                            <p class="text-gray-600 text-sm">
                                We strive for excellence in all aspects of our business and customer service.
                            </p>
                        </div>
                    </div>
                </div>
                
                <!-- Management Team -->
                <div class="mb-16">
                    <h3 class="text-2xl font-bold text-gray-900 mb-8 text-center">Our Leadership Team</h3>
                    <div class="grid md:grid-cols-3 gap-8">
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="CEO" class="w-32 h-32 rounded-full mx-auto mb-4">
                            <h4 class="text-lg font-semibold text-gray-900">James Mwambene</h4>
                            <p class="text-blue-600 font-medium mb-2">Chief Executive Officer</p>
                            <p class="text-gray-600 text-sm">
                                With over 20 years in financial services, James leads BFS with a vision for growth and customer satisfaction.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="CFO" class="w-32 h-32 rounded-full mx-auto mb-4">
                            <h4 class="text-lg font-semibold text-gray-900">Grace Nkunda</h4>
                            <p class="text-blue-600 font-medium mb-2">Chief Financial Officer</p>
                            <p class="text-gray-600 text-sm">
                                Grace oversees all financial operations with a focus on sustainability and responsible lending.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md text-center">
                            <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="COO" class="w-32 h-32 rounded-full mx-auto mb-4">
                            <h4 class="text-lg font-semibold text-gray-900">Robert Kimambo</h4>
                            <p class="text-blue-600 font-medium mb-2">Chief Operations Officer</p>
                            <p class="text-gray-600 text-sm">
                                Robert ensures our operations run smoothly across all branches with efficiency and customer focus.
                            </p>
                        </div>
                    </div>
                </div>
                
                <!-- Locations -->
                <div>
                    <h3 class="text-2xl font-bold text-gray-900 mb-8 text-center">Our Locations</h3>
                    <div class="bg-white p-6 rounded-lg shadow-md">
                        <div id="map"></div>
                        <div class="grid md:grid-cols-3 gap-6 mt-8">
                            <div class="border-l-4 border-blue-500 pl-4">
                                <h4 class="font-semibold text-gray-900">Head Office - Dar es Salaam</h4>
                                <p class="text-gray-600 text-sm">123 Financial Street, CBD</p>
                                <p class="text-gray-600 text-sm">Phone: +255 22 123 4567</p>
                                <p class="text-gray-600 text-sm">Email: dar@bfs.co.tz</p>
                            </div>
                            
                            <div class="border-l-4 border-blue-500 pl-4">
                                <h4 class="font-semibold text-gray-900">Arusha Branch</h4>
                                <p class="text-gray-600 text-sm">456 Business Avenue</p>
                                <p class="text-gray-600 text-sm">Phone: +255 27 123 4567</p>
                                <p class="text-gray-600 text-sm">Email: arusha@bfs.co.tz</p>
                            </div>
                            
                            <div class="border-l-4 border-blue-500 pl-4">
                                <h4 class="font-semibold text-gray-900">Mwanza Branch</h4>
                                <p class="text-gray-600 text-sm">789 Lake Road</p>
                                <p class="text-gray-600 text-sm">Phone: +255 28 123 4567</p>
                                <p class="text-gray-600 text-sm">Email: mwanza@bfs.co.tz</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Services Section -->
        <section id="services-section" class="public-section hidden">
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        Our Loan Services
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        We offer a variety of loan products to meet your financial needs.
                    </p>
                </div>
                
                <!-- Loan Types -->
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Personal Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Flexible loans for your personal needs - home improvements, medical expenses, travel, or any other purpose.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: TZS 500,000 - 10,000,000</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 3 - 36 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Quick approval within 24 hours</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                    
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Business Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Capital to start, expand, or manage cash flow for your business. Ideal for SMEs and entrepreneurs.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: TZS 1,000,000 - 50,000,000</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 6 - 60 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Collateral options available</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                    
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Education Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Invest in your or your child's education with our flexible tuition financing solutions.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: TZS 300,000 - 20,000,000</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 6 - 48 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Payments aligned with school terms</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                    
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Car Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Affordable financing for new or used vehicles with competitive rates and flexible terms.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: Up to 80% of vehicle value</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 12 - 60 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Fast processing for qualified buyers</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                    
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Construction Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Finance your home construction or renovation project with our specialized construction loans.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: TZS 5,000,000 - 100,000,000</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 12 - 84 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Progress-based disbursements</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                    
                    <div class="loan-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
                        <div class="bg-blue-600 p-4 text-white">
                            <h3 class="text-xl font-semibold">Emergency Loans</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">
                                Quick access to funds for unexpected expenses with minimal documentation.
                            </p>
                            <ul class="space-y-2 mb-6">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Amounts: TZS 200,000 - 2,000,000</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Terms: 1 - 12 months</span>
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    <span class="text-gray-700">Same-day approval for qualified applicants</span>
                                </li>
                            </ul>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-medium" onclick="showSection('apply')">
                                Apply Now
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Repayment Options -->
                <div class="bg-blue-50 rounded-lg p-8 mb-16">
                    <h3 class="text-2xl font-bold text-gray-900 mb-6 text-center">Flexible Repayment Options</h3>
                    <div class="grid md:grid-cols-3 gap-6">
                        <div class="bg-white p-6 rounded-lg shadow-sm text-center">
                            <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-calendar-day text-2xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Daily Repayments</h4>
                            <p class="text-gray-600 text-sm">
                                Small, manageable daily payments that fit with your cash flow. Ideal for businesses with daily income.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-sm text-center">
                            <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-calendar-week text-2xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Weekly Repayments</h4>
                            <p class="text-gray-600 text-sm">
                                Convenient weekly installments that align with your pay schedule or business cycles.
                            </p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-sm text-center">
                            <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-blue-100 text-blue-600 mb-4">
                                <i class="fas fa-calendar-alt text-2xl"></i>
                            </div>
                            <h4 class="text-lg font-medium text-gray-900 mb-2">Monthly Repayments</h4>
                            <p class="text-gray-600 text-sm">
                                Traditional monthly payments for those who prefer a single payment each month.
                            </p>
                        </div>
                    </div>
                </div>
                
                <!-- Payment Methods -->
                <div>
                    <h3 class="text-2xl font-bold text-gray-900 mb-6 text-center">Convenient Payment Methods</h3>
                    <div class="grid md:grid-cols-4 gap-4">
                        <div class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                            <img src="https://via.placeholder.com/80x50?text=CASH" alt="Cash" class="h-12 mb-2">
                            <span class="text-gray-700 font-medium">Cash</span>
                            <p class="text-gray-500 text-xs mt-1 text-center">Pay at any BFS branch nationwide</p>
                        </div>
                        
                        <div class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                            <img src="https://via.placeholder.com/80x50?text=BANK" alt="Bank Transfer" class="h-12 mb-2">
                            <span class="text-gray-700 font-medium">Bank Transfer</span>
                            <p class="text-gray-500 text-xs mt-1 text-center">Direct transfers to our bank account</p>
                        </div>
                        
                        <div class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                            <img src="https://via.placeholder.com/80x50?text=M-Pesa" alt="M-Pesa" class="h-12 mb-2">
                            <span class="text-gray-700 font-medium">M-Pesa</span>
                            <p class="text-gray-500 text-xs mt-1 text-center">Quick and secure mobile payments</p>
                        </div>
                        
                        <div class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                            <img src="https://via.placeholder.com/80x50?text=TigoPesa" alt="Tigo Pesa" class="h-12 mb-2">
                            <span class="text-gray-700 font-medium">Tigo Pesa</span>
                            <p class="text-gray-500 text-xs mt-1 text-center">Mobile money payments</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Blog Section -->
        <section id="blog-section" class="public-section hidden">
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        BFS Financial Blog
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        Financial tips, company news, and helpful resources.
                    </p>
                </div>
                
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12">
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+1" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>June 15, 2023</span>
                                <span class="mx-2">•</span>
                                <span>5 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">How to Improve Your Credit Score in Tanzania</h3>
                            <p class="text-gray-600 mb-4">
                                Learn practical steps to build and maintain a good credit score to qualify for better loan terms.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+2" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>May 28, 2023</span>
                                <span class="mx-2">•</span>
                                <span>4 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">Choosing the Right Loan for Your Small Business</h3>
                            <p class="text-gray-600 mb-4">
                                A guide to selecting the most suitable financing option for your business needs and growth stage.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+3" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>April 10, 2023</span>
                                <span class="mx-2">•</span>
                                <span>6 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">Understanding Loan Interest Rates and Fees</h3>
                            <p class="text-gray-600 mb-4">
                                Break down the true cost of borrowing and how to compare different loan offers effectively.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+4" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>March 22, 2023</span>
                                <span class="mx-2">•</span>
                                <span>3 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">BFS Financial Services Expands to Mwanza</h3>
                            <p class="text-gray-600 mb-4">
                                We're excited to announce the opening of our new branch in Mwanza to serve customers in the Lake Zone.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+5" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>February 15, 2023</span>
                                <span class="mx-2">•</span>
                                <span>7 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">Budgeting Tips for Family Financial Health</h3>
                            <p class="text-gray-600 mb-4">
                                Practical strategies to manage household finances and save for future goals while meeting current needs.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-md overflow-hidden">
                        <img src="https://via.placeholder.com/600x400?text=Blog+6" alt="Blog Post" class="w-full h-48 object-cover">
                        <div class="p-6">
                            <div class="flex items-center text-sm text-gray-500 mb-2">
                                <span>January 5, 2023</span>
                                <span class="mx-2">•</span>
                                <span>5 min read</span>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">How to Prepare for a Loan Application</h3>
                            <p class="text-gray-600 mb-4">
                                Essential documents and information you need to have ready to streamline your loan application process.
                            </p>
                            <a href="#" class="text-blue-600 font-medium inline-flex items-center">
                                Read More
                                <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>
                
                <div class="text-center">
                    <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md text-lg font-medium">
                        View All Articles
                    </button>
                </div>
            </div>
        </section>

        <!-- Contact Section -->
        <section id="contact-section" class="public-section hidden">
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        Contact Us
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        We're here to help with any questions about our services.
                    </p>
                </div>
                
                <div class="lg:grid lg:grid-cols-2 lg:gap-8">
                    <div class="mb-8 lg:mb-0">
                        <div class="bg-white p-6 rounded-lg shadow-md">
                            <h3 class="text-xl font-semibold text-gray-900 mb-4">Send Us a Message</h3>
                            <form>
                                <div class="mb-4">
                                    <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Your Name</label>
                                    <input type="text" id="name" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div class="mb-4">
                                    <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
                                    <input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div class="mb-4">
                                    <label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Phone Number</label>
                                    <input type="tel" id="phone" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div class="mb-4">
                                    <label for="subject" class="block text-sm font-medium text-gray-700 mb-1">Subject</label>
                                    <select id="subject" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                        <option>General Inquiry</option>
                                        <option>Loan Application</option>
                                        <option>Account Support</option>
                                        <option>Complaint</option>
                                        <option>Other</option>
                                    </select>
                                </div>
                                <div class="mb-4">
                                    <label for="message" class="block text-sm font-medium text-gray-700 mb-1">Message</label>
                                    <textarea id="message" rows="4" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"></textarea>
                                </div>
                                <div>
                                    <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md font-medium">
                                        Send Message
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                    
                    <div>
                        <div class="bg-white p-6 rounded-lg shadow-md mb-8">
                            <h3 class="text-xl font-semibold text-gray-900 mb-4">Our Contact Information</h3>
                            <div class="space-y-4">
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 h-6 w-6 text-blue-600">
                                        <i class="fas fa-map-marker-alt"></i>
                                    </div>
                                    <div class="ml-3 text-base text-gray-700">
                                        <p>123 Financial Street</p>
                                        <p>Dar es Salaam, Tanzania</p>
                                    </div>
                                </div>
                                
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 h-6 w-6 text-blue-600">
                                        <i class="fas fa-phone-alt"></i>
                                    </div>
                                    <div class="ml-3 text-base text-gray-700">
                                        <p>+255 22 123 4567</p>
                                        <p>+255 763 123 456 (Mobile)</p>
                                    </div>
                                </div>
                                
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 h-6 w-6 text-blue-600">
                                        <i class="fas fa-envelope"></i>
                                    </div>
                                    <div class="ml-3 text-base text-gray-700">
                                        <p>info@bfs.co.tz</p>
                                        <p>support@bfs.co.tz</p>
                                    </div>
                                </div>
                                
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 h-6 w-6 text-blue-600">
                                        <i class="fas fa-clock"></i>
                                    </div>
                                    <div class="ml-3 text-base text-gray-700">
                                        <p class="font-medium">Working Hours:</p>
                                        <p>Monday - Friday: 8:00 AM - 5:00 PM</p>
                                        <p>Saturday: 9:00 AM - 2:00 PM</p>
                                        <p>Sunday: Closed</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg shadow-md">
                            <h3 class="text-xl font-semibold text-gray-900 mb-4">Branch Locations</h3>
                            <div id="contact-map" style="height: 300px;"></div>
                            <div class="mt-4">
                                <button class="text-blue-600 font-medium inline-flex items-center" onclick="showSection('about')">
                                    View All Branch Details
                                    <i class="fas fa-arrow-right ml-2"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Apply for Loan Section -->
        <section id="apply-section" class="public-section hidden">
            <div class="max-w-7xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
                        Apply for a Loan
                    </h2>
                    <p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
                        Complete this form to start your loan application process.
                    </p>
                </div>
                
                <div class="bg-white p-6 rounded-lg shadow-md">
                    <div class="mb-8">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-600 text-white flex items-center justify-center">
                                <span>1</span>
                            </div>
                            <h3 class="ml-4 text-lg font-medium text-gray-900">Personal Information</h3>
                        </div>
                        
                        <div class="ml-14 mt-4 grid md:grid-cols-2 gap-6">
                            <div>
                                <label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
                                <input type="text" id="first-name" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
                                <input type="text" id="last-name" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="dob" class="block text-sm font-medium text-gray-700 mb-1">Date of Birth</label>
                                <input type="date" id="dob" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="gender" class="block text-sm font-medium text-gray-700 mb-1">Gender</label>
                                <select id="gender" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>Male</option>
                                    <option>Female</option>
                                    <option>Other</option>
                                </select>
                            </div>
                            <div>
                                <label for="id-type" class="block text-sm font-medium text-gray-700 mb-1">ID Type</label>
                                <select id="id-type" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>NIDA</option>
                                    <option>Passport</option>
                                    <option>Driving License</option>
                                    <option>Voter ID</option>
                                </select>
                            </div>
                            <div>
                                <label for="id-number" class="block text-sm font-medium text-gray-700 mb-1">ID Number</label>
                                <input type="text" id="id-number" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Phone Number</label>
                                <input type="tel" id="phone" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
                                <input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div class="md:col-span-2">
                                <label for="address" class="block text-sm font-medium text-gray-700 mb-1">Physical Address</label>
                                <textarea id="address" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"></textarea>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-600 text-white flex items-center justify-center">
                                <span>2</span>
                            </div>
                            <h3 class="ml-4 text-lg font-medium text-gray-900">Loan Details</h3>
                        </div>
                        
                        <div class="ml-14 mt-4 grid md:grid-cols-2 gap-6">
                            <div>
                                <label for="loan-type" class="block text-sm font-medium text-gray-700 mb-1">Loan Type</label>
                                <select id="loan-type" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>Personal Loan</option>
                                    <option>Business Loan</option>
                                    <option>Education Loan</option>
                                    <option>Car Loan</option>
                                    <option>Construction Loan</option>
                                    <option>Emergency Loan</option>
                                </select>
                            </div>
                            <div>
                                <label for="loan-purpose" class="block text-sm font-medium text-gray-700 mb-1">Loan Purpose</label>
                                <input type="text" id="loan-purpose" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="loan-amount" class="block text-sm font-medium text-gray-700 mb-1">Loan Amount (TZS)</label>
                                <input type="number" id="loan-amount" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="loan-term" class="block text-sm font-medium text-gray-700 mb-1">Loan Term (Months)</label>
                                <select id="loan-term" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>3</option>
                                    <option>6</option>
                                    <option>12</option>
                                    <option>24</option>
                                    <option>36</option>
                                    <option>48</option>
                                    <option>60</option>
                                </select>
                            </div>
                            <div>
                                <label for="repayment-frequency" class="block text-sm font-medium text-gray-700 mb-1">Repayment Frequency</label>
                                <select id="repayment-frequency" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>Daily</option>
                                    <option>Weekly</option>
                                    <option>Monthly</option>
                                </select>
                            </div>
                            <div>
                                <label for="employment-status" class="block text-sm font-medium text-gray-700 mb-1">Employment Status</label>
                                <select id="employment-status" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                    <option>Employed</option>
                                    <option>Self-Employed</option>
                                    <option>Unemployed</option>
                                    <option>Student</option>
                                    <option>Retired</option>
                                </select>
                            </div>
                            <div class="md:col-span-2">
                                <label class="block text-sm font-medium text-gray-700 mb-2">Do you have any existing loans?</label>
                                <div class="flex items-center space-x-6">
                                    <div class="flex items-center">
                                        <input id="existing-loans-yes" name="existing-loans" type="radio" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300">
                                        <label for="existing-loans-yes" class="ml-2 block text-sm text-gray-700">Yes</label>
                                    </div>
                                    <div class="flex items-center">
                                        <input id="existing-loans-no" name="existing-loans" type="radio" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300">
                                        <label for="existing-loans-no" class="ml-2 block text-sm text-gray-700">No</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-600 text-white flex items-center justify-center">
                                <span>3</span>
                            </div>
                            <h3 class="ml-4 text-lg font-medium text-gray-900">Documents Upload</h3>
                        </div>
                        
                        <div class="ml-14 mt-4 space-y-6">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">ID Document (NIDA/Passport)</label>
                                <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
                                    <div class="space-y-1 text-center">
                                        <div class="flex text-sm text-gray-600">
                                            <label for="id-document" class="relative cursor-pointer bg-white rounded-md font-medium text-blue-600 hover:text-blue-500 focus-within:outline-none">
                                                <span>Upload a file</span>
                                                <input id="id-document" name="id-document" type="file" class="sr-only">
                                            </label>
                                            <p class="pl-1">or drag and drop</p>
                                        </div>
                                        <p class="text-xs text-gray-500">
                                            PNG, JPG, PDF up to 5MB
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">Proof of Income (Pay Slip/Bank Statement)</label>
                                <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
                                    <div class="space-y-1 text-center">
                                        <div class="flex text-sm text-gray-600">
                                            <label for="income-proof" class="relative cursor-pointer bg-white rounded-md font-medium text-blue-600 hover:text-blue-500 focus-within:outline-none">
                                                <span>Upload a file</span>
                                                <input id="income-proof" name="income-proof" type="file" class="sr-only">
                                            </label>
                                            <p class="pl-1">or drag and drop</p>
                                        </div>
                                        <p class="text-xs text-gray-500">
                                            PNG, JPG, PDF up to 5MB
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">Additional Documents (Optional)</label>
                                <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
                                    <div class="space-y-1 text-center">
                                        <div class="flex text-sm text-gray-600">
                                            <label for="additional-docs" class="relative cursor-pointer bg-white rounded-md font-medium text-blue-600 hover:text-blue-500 focus-within:outline-none">
                                                <span>Upload a file</span>
                                                <input id="additional-docs" name="additional-docs" type="file" class="sr-only">
                                            </label>
                                            <p class="pl-1">or drag and drop</p>
                                        </div>
                                        <p class="text-xs text-gray-500">
                                            PNG, JPG, PDF up to 5MB
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-600 text-white flex items-center justify-center">
                                <span>4</span>
                            </div>
                            <h3 class="ml-4 text-lg font-medium text-gray-900">Account Creation</h3>
                        </div>
                        
                        <div class="ml-14 mt-4 grid md:grid-cols-2 gap-6">
                            <div>
                                <label for="username" class="block text-sm font-medium text-gray-700 mb-1">Username</label>
                                <input type="text" id="username" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
                                <input type="password" id="password" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label>
                                <input type="password" id="confirm-password" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                        </div>
                    </div>
                    
                    <div class="flex justify-end">
                        <button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-6 rounded-md text-lg font-medium">
                            Submit Application
                        </button>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Admin Dashboard (hidden by default) -->
    <div id="admin-dashboard" class="hidden">
        <!-- Admin content would go here -->
    </div>

    <script>
        // Function to show a specific section and hide others
        function showSection(sectionId) {
            // Hide all public sections first
            document.querySelectorAll('.public-section').forEach(section => {
                section.classList.add('hidden');
            });
            
            // Show the selected section
            const sectionToShow = document.getElementById(`${sectionId}-section`);
            if (sectionToShow) {
                sectionToShow.classList.remove('hidden');
            }
            
            // Update active nav link
            updateActiveNavLink(sectionId);
        }
        
        // Function to update active navigation link
        function updateActiveNavLink(activeSection) {
            // Reset all nav links
            document.querySelectorAll('nav a').forEach(link => {
                link.classList.remove('border-blue-500', 'text-gray-900');
                link.classList.add('border-transparent', 'text-gray-500');
            });
            
            // Set active link
            const activeLink = document.querySelector(`nav a[onclick="showSection('${activeSection}')"]`);
            if (activeLink) {
                activeLink.classList.remove('border-transparent', 'text-gray-500');
                activeLink.classList.add('border-blue-500', 'text-gray-900');
            }
        }
        
        // Function to toggle mobile menu
        function toggleMobileMenu() {
            const mobileMenu = document.getElementById('mobile-menu');
            mobileMenu.classList.toggle('hidden');
        }
        
        // Function to show admin login
        function showAdminLogin() {
            document.getElementById('public-site').classList.add('hidden');
            document.getElementById('admin-dashboard').classList.remove('hidden');
        }
        
        // Initialize the page with home section visible
        document.addEventListener('DOMContentLoaded', function() {
            showSection('home');
            
            // Add event listeners for loan calculator
            const loanAmount = document.getElementById('loan-amount');
            const loanTerm = document.getElementById('loan-term');
            
            if (loanAmount && loanTerm) {
                loanAmount.addEventListener('input', updateLoanCalculator);
                loanTerm.addEventListener('input', updateLoanCalculator);
            }
        });
        
        // Function to update loan calculator values
        function updateLoanCalculator() {
            const amount = document.getElementById('loan-amount').value;
            const term = document.getElementById('loan-term').value;
            
            // Update displayed values
            document.getElementById('loan-amount-value').textContent = new Intl.NumberFormat().format(amount);
            document.getElementById('loan-term-value').textContent = term;
            
            // Simple interest calculation (example)
            const interestRate = 0.1; // 10% interest rate
            const totalInterest = amount * interestRate;
            const monthlyPayment = (Number(amount) + totalInterest) / term;
            
            // Update results
            document.getElementById('monthly-payment').textContent = 'TZS ' + new Intl.NumberFormat().format(monthlyPayment.toFixed(0));
            document.getElementById('total-interest').textContent = 'TZS ' + new Intl.NumberFormat().format(totalInterest.toFixed(0));
        }
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=danielmkinga92/bfs" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>