-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappointment.php
More file actions
1257 lines (1139 loc) · 72.3 KB
/
appointment.php
File metadata and controls
1257 lines (1139 loc) · 72.3 KB
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
<?php
session_start();
require_once 'db/config.php';
require_once 'notification_helper.php';
// Handle logout
if (isset($_GET['logout'])) {
session_destroy();
header('Location: login_signup.php');
exit();
}
// If a booking POST is attempted and user is not logged in, redirect to login
if ($_SERVER['REQUEST_METHOD'] === 'POST' && !isset($_SESSION['user_id'])) {
header('Location: login_signup.php');
exit();
}
// Handle appointment booking
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['book_appointment'])) {
$user_id = $_SESSION['user_id'];
$expert_id = $_POST['expert_id'];
$schedule_id = $_POST['schedule_id'];
$reason_of_visit = $_POST['reason_of_visit'];
$problem_description = $_POST['problem_description'];
$stmt = $conn->prepare("INSERT INTO appointment (uid, eid, shid, reason_of_visit, problem_description, status) VALUES (?, ?, ?, ?, ?, 'pending')");
if ($stmt) {
$stmt->bind_param("iisss", $user_id, $expert_id, $schedule_id, $reason_of_visit, $problem_description);
if ($stmt->execute()) {
// Get user name and schedule details for notification
$userSql = "SELECT fullname FROM user WHERE uid = ?";
$userStmt = $conn->prepare($userSql);
$userStmt->bind_param("i", $user_id);
$userStmt->execute();
$userResult = $userStmt->get_result();
$scheduleSql = "SELECT schedule_date, start_time FROM schedule WHERE shid = ?";
$scheduleStmt = $conn->prepare($scheduleSql);
$scheduleStmt->bind_param("i", $schedule_id);
$scheduleStmt->execute();
$scheduleResult = $scheduleStmt->get_result();
if ($userResult->num_rows > 0 && $scheduleResult->num_rows > 0) {
$userRow = $userResult->fetch_assoc();
$scheduleRow = $scheduleResult->fetch_assoc();
// Send notification to expert about new appointment
notifyNewAppointment($conn, $expert_id, $user_id, $userRow['fullname'], $scheduleRow['schedule_date'], $scheduleRow['start_time']);
}
$userStmt->close();
$scheduleStmt->close();
$success_message = "Appointment booked successfully! You will receive confirmation within 24 hours.";
} else {
$error_message = "Failed to book appointment. Please try again.";
}
$stmt->close();
} else {
$error_message = "Failed to book appointment. Please try again.";
}
}
// Fetch all experts
$experts = [];
$result = $conn->query("SELECT * FROM expert ORDER BY fullname");
if ($result) {
while ($row = $result->fetch_assoc()) {
$experts[] = $row;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book Appointment - SoulLift Professional Mental Health Platform</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="icon" type="image/svg+xml" href="resources/soullift-icon.svg">
<!-- CSS Libraries -->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<link rel="stylesheet" href="https://unpkg.com/aos@2.3.1/dist/aos.css">
<!-- Custom Tailwind Config -->
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
'inter': ['Inter', 'sans-serif'],
'poppins': ['Poppins', 'sans-serif'],
},
colors: {
primary: {
50: '#f0fdfa',
100: '#ccfbf1',
200: '#99f6e4',
300: '#5eead4',
400: '#2dd4bf',
500: '#14b8a6',
600: '#0d9488',
700: '#0f766e',
800: '#115e59',
900: '#134e4a',
},
secondary: {
50: '#fef7ff',
100: '#fceaff',
200: '#f9d5ff',
300: '#f3b2ff',
400: '#eb7eff',
500: '#dc4cff',
600: '#c62cf7',
700: '#a21cdc',
800: '#8319b3',
900: '#6d1a91',
},
accent: {
50: '#fff8ed',
100: '#ffefd5',
200: '#fed7aa',
300: '#fdb574',
400: '#fb923c',
500: '#f97316',
600: '#ea580c',
700: '#c2410c',
800: '#9a3412',
900: '#7c2d12',
},
success: {
50: '#f0fdf4',
100: '#dcfce7',
200: '#bbf7d0',
300: '#86efac',
400: '#4ade80',
500: '#22c55e',
600: '#16a34a',
700: '#15803d',
800: '#166534',
900: '#14532d',
}
},
animation: {
'fade-in-up': 'fadeInUp 0.5s ease-out',
'fade-in-down': 'fadeInDown 0.5s ease-out',
'fade-in-left': 'fadeInLeft 0.5s ease-out',
'fade-in-right': 'fadeInRight 0.5s ease-out',
'bounce-in': 'bounceIn 0.6s ease-out',
'scale-in': 'scaleIn 0.3s ease-out',
'pulse-glow': 'pulseGlow 2s infinite',
'float': 'float 3s ease-in-out infinite',
},
backdropBlur: {
'xs': '2px',
}
}
}
}
</script>
<!-- Custom CSS -->
<style>
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes bounceIn {
0%, 20%, 53%, 80%, 100% {
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transform: translate3d(0, 0, 0);
}
40%, 43% {
transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -30px, 0);
}
70% {
transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -15px, 0);
}
90% {
transform: translate3d(0, -4px, 0);
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes pulseGlow {
0%, 100% {
box-shadow: 0 0 5px rgba(20, 184, 166, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(20, 184, 166, 0.8);
}
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
.glass-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.teal-gradient {
background: linear-gradient(135deg, #667eea 0%, #14b8a6 100%);
}
.mental-health-bg {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.btn-primary {
background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
transition: all 0.3s ease;
}
.btn-primary:hover {
background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}
.icon-float {
animation: float 3s ease-in-out infinite;
}
.notification-dot {
animation: pulse-glow 2s infinite;
}
.glass-effect {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.18);
}
.gradient-text {
background: linear-gradient(135deg, #14b8a6, #7c3aed);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.btn-secondary {
background: linear-gradient(135deg, #a855f7, #7c3aed);
transition: all 0.3s ease;
}
.btn-secondary:hover {
background: linear-gradient(135deg, #9333ea, #6b21a8);
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}
.hero-pattern {
background-image:
radial-gradient(circle at 25% 25%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #14b8a6, #7c3aed);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #0d9488, #6b21a8);
}
.animate-fade-in-delay-1 {
animation: fadeInUp 0.6s ease-out 0.1s both;
}
.animate-fade-in-delay-2 {
animation: fadeInUp 0.6s ease-out 0.2s both;
}
.animate-fade-in-delay-3 {
animation: fadeInUp 0.6s ease-out 0.3s both;
}
</style>
<script>
function toggleMobileMenu() {
const mobileMenu = document.getElementById('mobile-menu');
mobileMenu.classList.toggle('hidden');
}
// Global variables
let selectedExpert = null;
let availableSchedules = [];
// Function to load schedules for selected expert
function loadExpertSchedules(expertId) {
fetch(`get_expert_schedules.php?expert_id=${expertId}`)
.then(response => response.json())
.then(data => {
availableSchedules = data;
displayScheduleOptions();
})
.catch(error => {
console.error('Error loading schedules:', error);
displayScheduleOptions(); // Show empty state
});
}
// Function to display schedule options
function displayScheduleOptions() {
const scheduleContainer = document.getElementById('schedule-options-container');
const scheduleSection = document.getElementById('schedule-section');
const noExpertMessage = document.getElementById('no-expert-message');
if (!selectedExpert) {
scheduleSection.style.display = 'none';
noExpertMessage.style.display = 'block';
return;
}
scheduleSection.style.display = 'block';
noExpertMessage.style.display = 'none';
if (availableSchedules.length === 0) {
scheduleContainer.innerHTML = `
<div class="text-center py-12 glass-card rounded-3xl border border-white/20">
<div class="w-24 h-24 bg-gradient-to-br from-gray-100 to-gray-200 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-calendar-times text-gray-400 text-4xl"></i>
</div>
<h4 class="text-2xl font-bold text-gray-700 mb-3 font-poppins">No Available Sessions</h4>
<p class="text-gray-500 text-lg">This expert has no available sessions at the moment. Please try again later or contact us directly.</p>
</div>
`;
return;
}
scheduleContainer.innerHTML = '';
availableSchedules.forEach(schedule => {
const isAtCapacity = schedule.current_appointments >= schedule.max_appointments;
const availableSlots = schedule.max_appointments - schedule.current_appointments;
const scheduleCard = document.createElement('div');
scheduleCard.className = `glass-card border-2 rounded-2xl p-6 transition-all duration-300 ${
isAtCapacity
? 'border-gray-200 bg-gray-50/50 opacity-50 cursor-not-allowed'
: 'border-gray-200 hover:border-primary-300 cursor-pointer card-hover'
}`;
if (!isAtCapacity) {
scheduleCard.onclick = () => selectSchedule(schedule);
}
scheduleCard.innerHTML = `
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-4">
${!isAtCapacity ? `<input type="radio" name="selected_schedule" value="${schedule.shid}" class="w-5 h-5 text-primary-600">` : ''}
<div class="flex items-center space-x-3">
<div class="w-12 h-12 bg-gradient-to-br from-secondary-400 to-secondary-600 rounded-xl flex items-center justify-center">
<i class="fas fa-video text-white"></i>
</div>
<div>
<h4 class="text-xl font-bold text-gray-900 font-poppins">${schedule.session_type}</h4>
<p class="text-primary-600 font-semibold flex items-center">
<i class="fas fa-calendar mr-2"></i>
${formatDate(schedule.schedule_date)}
</p>
</div>
</div>
</div>
<div class="text-right">
<div class="flex items-center space-x-3 mb-2">
<i class="fas fa-clock text-accent-500"></i>
<p class="text-xl font-bold text-gray-900">${schedule.start_time} - ${schedule.end_time}</p>
</div>
<p class="text-sm font-medium ${isAtCapacity ? 'text-red-500' : 'text-success-600'}">
${isAtCapacity ? '❌ Fully Booked' : `✅ ${availableSlots} slots available`}
</p>
</div>
</div>
${schedule.notes ? `<div class="mt-4 p-3 bg-gradient-to-r from-primary-50 to-secondary-50 rounded-xl border border-primary-100"><p class="text-gray-700 text-sm"><i class="fas fa-info-circle text-primary-500 mr-2"></i>${schedule.notes}</p></div>` : ''}
${isAtCapacity ? '<div class="mt-4 p-3 bg-gradient-to-r from-red-50 to-pink-50 rounded-xl border border-red-200"><p class="text-red-600 text-sm font-semibold"><i class="fas fa-exclamation-triangle mr-2"></i>This session is at maximum capacity</p></div>' : ''}
`;
scheduleContainer.appendChild(scheduleCard);
});
}
// Function to select a schedule
function selectSchedule(schedule) {
// Update hidden form fields
document.getElementById('schedule_id').value = schedule.shid;
// Update visual selection
document.querySelectorAll('input[name="selected_schedule"]').forEach(radio => {
radio.checked = false;
radio.closest('.border-2').classList.remove('border-purple-600', 'bg-purple-50');
radio.closest('.border-2').classList.add('border-gray-200');
});
const selectedRadio = document.querySelector(`input[name="selected_schedule"][value="${schedule.shid}"]`);
if (selectedRadio) {
selectedRadio.checked = true;
selectedRadio.closest('.border-2').classList.remove('border-gray-200');
selectedRadio.closest('.border-2').classList.add('border-purple-600', 'bg-purple-50');
}
}
// Function to select expert
function selectExpert(expertId, expertData) {
selectedExpert = expertData;
document.getElementById('expert_id').value = expertId;
// Clear previous selections
document.getElementById('schedule_id').value = '';
// Load expert's schedules
loadExpertSchedules(expertId);
}
// Helper function to format date
function formatDate(dateString) {
const date = new Date(dateString);
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
return date.toLocaleDateString('en-US', options);
}
// Initialize page
document.addEventListener('DOMContentLoaded', function() {
displayScheduleOptions(); // Show initial "select expert" message
});
</script>
</head>
<body class="min-h-screen bg-gradient-to-br from-slate-50 via-white to-primary-50 font-inter hero-pattern">
<!-- Animated Background Elements -->
<div class="fixed inset-0 overflow-hidden pointer-events-none">
<div class="absolute -top-40 -right-40 w-80 h-80 bg-primary-200 rounded-full mix-blend-multiply filter blur-xl opacity-30 animate-float"></div>
<div class="absolute -bottom-40 -left-40 w-80 h-80 bg-secondary-200 rounded-full mix-blend-multiply filter blur-xl opacity-30 animate-float" style="animation-delay: 2s;"></div>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-accent-200 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-float" style="animation-delay: 4s;"></div>
</div>
<!-- Header -->
<header class="glass-effect sticky top-0 z-50 border-b border-white/20">
<div class="container mx-auto px-6">
<nav class="flex justify-between items-center py-4">
<!-- Logo -->
<a href="Homepage.php" class="flex items-center space-x-3 group">
<div class="relative">
<img src="resources/soullift-logo.svg" alt="SoulLift Logo" class="h-10 w-auto group-hover:scale-105 transition-transform duration-300">
</div>
</a>
<!-- Desktop Navigation -->
<ul class="hidden lg:flex items-center space-x-8">
<li><a href="Homepage.php?page=home" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Home</a></li>
<li><a href="user_profile.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">My Profile</a></li>
<li><a href="blog.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Blog</a></li>
<?php
// choose appointments page based on role
$appointmentsPage = (isset($_SESSION['role']) && $_SESSION['role'] === 'expert') ? 'expert_appointments.php' : 'user_appointments.php';
?>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'user'): ?>
<li><a href="experts.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Experts</a></li>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="services.php" class="text-primary-600 font-semibold px-4 py-2 rounded-xl bg-primary-50/50 backdrop-blur-sm">Services</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Appointments</a></li>
<?php elseif (isset($_SESSION['role']) && $_SESSION['role'] === 'expert'): ?>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="schedule.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Schedule</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Appointments</a></li>
<?php else: ?>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<?php endif; ?>
<li><a href="about.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">About Us</a></li>
</ul>
<!-- Right side buttons -->
<div class="flex items-center space-x-4">
<!-- Notification Button -->
<a href="notifications.php" class="relative glass-effect text-primary-600 px-4 py-2 rounded-xl hover:bg-white/50 transition-all duration-300 group">
<i class="fas fa-bell mr-2 group-hover:animate-pulse"></i>
<span class="hidden sm:inline">Notifications</span>
<?php
// Add notification count logic here if needed
$notificationCount = 0; // You can implement this later
if($notificationCount > 0): ?>
<span class="absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full w-6 h-6 flex items-center justify-center">
<?= $notificationCount ?>
</span>
<?php endif; ?>
</a>
<?php if (isset($_SESSION['role'])): ?>
<a href="Homepage.php?logout=1" class="btn-secondary text-white px-6 py-2 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-all duration-300">
<i class="fas fa-sign-out-alt mr-2"></i>
Log Out
</a>
<?php else: ?>
<a href="login_signup.php" class="btn-primary text-white px-6 py-2 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-all duration-300">
<i class="fas fa-rocket mr-2"></i>
Get Started
</a>
<?php endif; ?>
</div>
<!-- Mobile Menu Button -->
<button class="lg:hidden text-gray-700 hover:text-primary-600 transition-colors p-2" onclick="toggleMobileMenu()">
<i class="fas fa-bars text-xl"></i>
</button>
</nav>
<!-- Mobile Navigation -->
<div id="mobile-menu" class="lg:hidden hidden pb-4">
<div class="glass-card rounded-2xl p-4 mt-4">
<ul class="space-y-2">
<li><a href="Homepage.php?page=home" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Home</a></li>
<li><a href="user_profile.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">My Profile</a></li>
<li><a href="blog.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Blog</a></li>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'user'): ?>
<li><a href="experts.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Experts</a></li>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="services.php" class="block text-primary-600 font-semibold px-4 py-3 rounded-xl bg-primary-50/50">Services</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Appointments</a></li>
<?php elseif (isset($_SESSION['role']) && $_SESSION['role'] === 'expert'): ?>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="schedule.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Schedule</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Appointments</a></li>
<?php else: ?>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<?php endif; ?>
<li><a href="about.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">About Us</a></li>
</ul>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="relative py-24 overflow-hidden">
<div class="max-w-7xl mx-auto px-6 text-center relative z-10">
<div class="space-y-8 animate-fade-in-up" data-aos="fade-up">
<div class="space-y-6">
<h1 class="text-6xl md:text-7xl font-bold text-gray-900 leading-tight font-poppins">
Book Your
<span class="gradient-text block mt-2">Appointment</span>
</h1>
<p class="text-xl text-gray-600 max-w-4xl mx-auto leading-relaxed">
Take the first step towards better mental health. Schedule a consultation with our qualified professionals who care about your wellbeing.
</p>
</div>
<div class="flex flex-wrap items-center justify-center gap-8 text-sm text-gray-500">
<div class="flex items-center space-x-3 glass-card px-4 py-3 rounded-full">
<div class="w-3 h-3 bg-gradient-to-r from-success-400 to-success-600 rounded-full animate-pulse"></div>
<span class="font-medium">Professional Counselors</span>
</div>
<div class="flex items-center space-x-3 glass-card px-4 py-3 rounded-full">
<div class="w-3 h-3 bg-gradient-to-r from-primary-400 to-primary-600 rounded-full animate-pulse" style="animation-delay: 0.5s;"></div>
<span class="font-medium">Flexible Scheduling</span>
</div>
<div class="flex items-center space-x-3 glass-card px-4 py-3 rounded-full">
<div class="w-3 h-3 bg-gradient-to-r from-secondary-400 to-secondary-600 rounded-full animate-pulse" style="animation-delay: 1s;"></div>
<span class="font-medium">Confidential Sessions</span>
</div>
</div>
</div>
</div>
<!-- Floating elements -->
<div class="absolute top-20 left-10 w-20 h-20 bg-primary-200 rounded-full opacity-60 animate-float"></div>
<div class="absolute bottom-20 right-10 w-16 h-16 bg-secondary-200 rounded-full opacity-60 animate-float" style="animation-delay: 2s;"></div>
<div class="absolute top-1/2 right-20 w-12 h-12 bg-accent-200 rounded-full opacity-60 animate-float" style="animation-delay: 4s;"></div>
<div class="absolute top-1/3 left-1/4 w-8 h-8 bg-success-200 rounded-full opacity-40 animate-float" style="animation-delay: 6s;"></div>
</section>
<!-- Appointment Booking Form -->
<section class="py-20 relative z-10">
<div class="max-w-6xl mx-auto px-6">
<div class="glass-card rounded-3xl shadow-2xl overflow-hidden border border-white/20 animate-fade-in-delay-1" data-aos="fade-up" data-aos-delay="200">
<div class="bg-gradient-to-r from-primary-600 via-secondary-600 to-accent-600 p-8 text-white relative overflow-hidden">
<div class="absolute inset-0 bg-black/10"></div>
<div class="relative z-10">
<h2 class="text-4xl font-bold mb-3 font-poppins">Schedule Your Session</h2>
<p class="text-white/90 text-lg">Fill out the form below to book your personalized appointment</p>
</div>
<div class="absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -mr-16 -mt-16"></div>
<div class="absolute bottom-0 left-0 w-24 h-24 bg-white/10 rounded-full -ml-12 -mb-12"></div>
</div>
<form method="POST" class="p-8 md:p-12 space-y-12">
<?php if (isset($success_message)): ?>
<div class="glass-card border border-success-200 bg-gradient-to-r from-success-50 to-emerald-50 px-6 py-4 rounded-2xl flex items-center space-x-4 animate-fade-in-delay-2">
<div class="w-12 h-12 bg-gradient-to-r from-success-500 to-success-600 rounded-full flex items-center justify-center">
<i class="fas fa-check-circle text-white text-xl"></i>
</div>
<div>
<h4 class="font-semibold text-success-800 mb-1">Success!</h4>
<p class="text-success-700"><?php echo $success_message; ?></p>
</div>
</div>
<?php endif; ?>
<?php if (isset($error_message)): ?>
<div class="glass-card border border-red-200 bg-gradient-to-r from-red-50 to-pink-50 px-6 py-4 rounded-2xl flex items-center space-x-4 animate-fade-in-delay-2">
<div class="w-12 h-12 bg-gradient-to-r from-red-500 to-red-600 rounded-full flex items-center justify-center">
<i class="fas fa-exclamation-circle text-white text-xl"></i>
</div>
<div>
<h4 class="font-semibold text-red-800 mb-1">Error!</h4>
<p class="text-red-700"><?php echo $error_message; ?></p>
</div>
</div>
<?php endif; ?>
<!-- Hidden form fields -->
<input type="hidden" id="expert_id" name="expert_id" required>
<input type="hidden" id="schedule_id" name="schedule_id" required>
<!-- Select Expert -->
<div data-aos="fade-up" data-aos-delay="300">
<h3 class="text-3xl font-bold text-gray-900 mb-8 flex items-center font-poppins">
<div class="w-12 h-12 bg-gradient-to-r from-primary-500 to-primary-600 rounded-2xl flex items-center justify-center mr-4">
<i class="fas fa-user-md text-white text-xl"></i>
</div>
Choose Your Counselor
</h3>
<div class="max-h-96 overflow-y-auto glass-card border border-white/20 rounded-2xl p-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<?php foreach ($experts as $expert): ?>
<label class="relative cursor-pointer group">
<input type="radio" name="expert" value="<?php echo $expert['eid']; ?>" class="sr-only peer"
onchange="selectExpert(<?php echo $expert['eid']; ?>, <?php echo htmlspecialchars(json_encode($expert)); ?>)">
<div class="glass-card border-2 border-gray-200 rounded-2xl p-6 peer-checked:border-primary-500 peer-checked:bg-primary-50/50 transition-all duration-300 group-hover:border-primary-300 card-hover">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="w-16 h-16 rounded-2xl overflow-hidden shadow-lg">
<?php if (!empty($expert['image'])): ?>
<img src="<?php echo htmlspecialchars($expert['image']); ?>" alt="<?php echo htmlspecialchars($expert['fullname']); ?>" class="w-full h-full object-cover">
<?php else: ?>
<div class="w-full h-full bg-gradient-to-br from-primary-400 to-secondary-500 flex items-center justify-center">
<span class="text-xl font-bold text-white"><?php echo strtoupper(substr($expert['fullname'], 0, 1)); ?></span>
</div>
<?php endif; ?>
</div>
<div class="flex-1">
<h4 class="text-lg font-bold text-gray-900 mb-1"><?php echo htmlspecialchars($expert['fullname']); ?></h4>
<p class="text-primary-600 font-semibold mb-2 flex items-center">
<i class="fas fa-stethoscope mr-2"></i>
<?php echo htmlspecialchars($expert['designation']); ?>
</p>
<div class="flex flex-wrap gap-2">
<?php if (!empty($expert['specialization'])): ?>
<?php
$specializations = array_slice(explode(',', $expert['specialization']), 0, 2);
foreach ($specializations as $spec): ?>
<span class="px-2 py-1 bg-gradient-to-r from-secondary-100 to-accent-100 text-secondary-700 text-xs rounded-full font-medium">
<?php echo trim($spec); ?>
</span>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
<button type="button" class="w-10 h-10 bg-gradient-to-r from-primary-500 to-secondary-500 text-white rounded-xl hover:shadow-lg transition-all flex items-center justify-center"
onclick="event.stopPropagation(); openExpertModal(<?php echo htmlspecialchars(json_encode($expert)); ?>)">
<i class="fas fa-info text-sm"></i>
</button>
</div>
</div>
</label>
<?php endforeach; ?>
</div>
</div>
</div>
<!-- Session Type and Schedule -->
<div id="schedule-section" style="display: none;" data-aos="fade-up" data-aos-delay="400">
<h3 class="text-3xl font-bold text-gray-900 mb-8 flex items-center font-poppins">
<div class="w-12 h-12 bg-gradient-to-r from-secondary-500 to-secondary-600 rounded-2xl flex items-center justify-center mr-4">
<i class="fas fa-calendar-clock text-white text-xl"></i>
</div>
Available Sessions
</h3>
<div id="schedule-options-container" class="space-y-4">
<!-- Dynamic schedule options will be loaded here -->
</div>
</div>
<!-- No Expert Selected Message -->
<div id="no-expert-message" class="text-center py-16" data-aos="fade-up" data-aos-delay="400">
<div class="glass-card border border-gray-200 rounded-3xl p-12">
<div class="w-24 h-24 bg-gradient-to-br from-gray-100 to-gray-200 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-user-clock text-gray-400 text-4xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-700 mb-3 font-poppins">Select an Expert First</h3>
<p class="text-gray-500 text-lg">Please choose a counselor from the list above to view their available session times and types.</p>
</div>
</div>
<!-- Concerns and Notes -->
<div data-aos="fade-up" data-aos-delay="500">
<h3 class="text-3xl font-bold text-gray-900 mb-8 flex items-center font-poppins">
<div class="w-12 h-12 bg-gradient-to-r from-accent-500 to-accent-600 rounded-2xl flex items-center justify-center mr-4">
<i class="fas fa-heart text-white text-xl"></i>
</div>
Tell Us About Your Concerns
</h3>
<div class="space-y-8">
<div class="group">
<label class="flex items-center space-x-3 text-gray-800 font-semibold text-lg mb-4">
<div class="w-8 h-8 bg-gradient-to-r from-primary-500 to-primary-600 rounded-lg flex items-center justify-center">
<i class="fas fa-list-ul text-white text-sm"></i>
</div>
<span class="font-poppins">Primary Concern</span>
<span class="text-red-500">*</span>
</label>
<div class="relative">
<select name="reason_of_visit" required
class="w-full bg-white/70 backdrop-blur-sm border-2 border-gray-200 rounded-2xl px-6 py-4 text-lg focus:outline-none focus:border-primary-500 focus:ring-4 focus:ring-primary-100 transition-all duration-300 group-hover:border-primary-300 font-medium appearance-none">
<option value="">Select your primary concern</option>
<option value="Anxiety">😰 Anxiety & Panic Disorders</option>
<option value="Depression">😔 Depression & Mood Issues</option>
<option value="Stress Management">😫 Stress Management</option>
<option value="Relationship Issues">💔 Relationship Issues</option>
<option value="Self-Esteem">💪 Self-Esteem & Confidence</option>
<option value="Work-Life Balance">⚖️ Work-Life Balance</option>
<option value="Trauma">🛡️ Trauma & PTSD</option>
<option value="Family Issues">👨👩👧👦 Family Counseling</option>
<option value="Grief">😢 Grief & Loss</option>
<option value="Other">🔍 Other</option>
</select>
<div class="absolute inset-y-0 right-0 flex items-center pr-6 pointer-events-none">
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
</div>
</div>
<div class="group">
<label class="flex items-center space-x-3 text-gray-800 font-semibold text-lg mb-4">
<div class="w-8 h-8 bg-gradient-to-r from-secondary-500 to-secondary-600 rounded-lg flex items-center justify-center">
<i class="fas fa-comment-dots text-white text-sm"></i>
</div>
<span class="font-poppins">Description of the Problem</span>
<span class="text-gray-400 text-sm font-normal">(Optional)</span>
</label>
<div class="relative">
<textarea name="problem_description" rows="6"
class="w-full bg-white/70 backdrop-blur-sm border-2 border-gray-200 rounded-2xl px-6 py-4 text-lg focus:outline-none focus:border-secondary-500 focus:ring-4 focus:ring-secondary-100 transition-all duration-300 group-hover:border-secondary-300 resize-none font-medium"
placeholder="Please share any additional information about your problem that might help us prepare for your session... The more details you provide, the better we can tailor our approach to help you."></textarea>
<div class="absolute top-4 right-4 pointer-events-none">
<i class="fas fa-feather-alt text-gray-400 text-lg"></i>
</div>
</div>
<p class="text-sm text-gray-500 bg-gray-50/50 backdrop-blur-sm px-4 py-2 rounded-xl border border-gray-100 mt-3">
<i class="fas fa-lock text-primary-500 mr-2"></i>
Your information is completely confidential and will only be shared with your selected counselor.
</p>
</div>
</div>
</div>
<!-- Terms and Submit -->
<div class="space-y-8" data-aos="fade-up" data-aos-delay="600">
<div class="glass-card p-6 rounded-2xl border border-white/20">
<div class="flex items-start space-x-4">
<input type="checkbox" id="terms" name="terms" required class="mt-1 w-5 h-5 text-primary-600 border-2 border-gray-300 rounded focus:ring-primary-500 focus:ring-2">
<label for="terms" class="text-gray-700 leading-relaxed">
<span class="font-semibold">I agree to the </span>
<a href="#" class="text-primary-600 hover:text-primary-800 font-semibold underline">Terms of Service</a>
<span class="font-semibold"> and </span>
<a href="#" class="text-primary-600 hover:text-primary-800 font-semibold underline">Privacy Policy</a>.
<br><span class="text-sm text-gray-600 mt-2 block">
<i class="fas fa-shield-alt text-success-500 mr-1"></i>
I understand that this session is confidential and professional.
</span>
</label>
</div>
</div>
<div class="text-center">
<button type="submit" name="book_appointment"
class="inline-flex items-center px-12 py-5 bg-gradient-to-r from-primary-600 via-secondary-600 to-accent-600 text-white text-xl font-bold rounded-2xl shadow-2xl hover:shadow-3xl transition-all duration-300 transform hover:scale-105 focus:outline-none focus:ring-4 focus:ring-primary-200 group font-poppins">
<i class="fas fa-calendar-check mr-3 text-2xl group-hover:animate-bounce"></i>
<span>Book My Appointment</span>
<i class="fas fa-arrow-right ml-3 group-hover:translate-x-1 transition-transform"></i>
</button>
<p class="text-gray-500 text-lg mt-6 glass-card px-6 py-3 rounded-xl border border-white/20 inline-block">
<i class="fas fa-clock text-primary-500 mr-2"></i>
You'll receive a confirmation email with session details within 24 hours.
</p>
</div>
</div>
</form>
</div>
</div>
</section>
<!-- Why Choose Us -->
<section class="py-20 bg-gradient-to-br from-primary-50 via-white to-secondary-50 relative overflow-hidden">
<div class="absolute inset-0 opacity-40">
<div class="absolute top-0 left-0 w-72 h-72 bg-primary-200 rounded-full mix-blend-multiply filter blur-xl animate-float"></div>
<div class="absolute bottom-0 right-0 w-72 h-72 bg-secondary-200 rounded-full mix-blend-multiply filter blur-xl animate-float" style="animation-delay: 3s;"></div>
</div>
<div class="max-w-7xl mx-auto px-6 relative z-10">
<div class="text-center mb-16" data-aos="fade-up">
<h2 class="text-4xl md:text-5xl font-bold text-gray-900 mb-6 font-poppins">
Why Choose
<span class="gradient-text">Soullift?</span>
</h2>
<p class="text-xl text-gray-600 max-w-4xl mx-auto leading-relaxed">
We're committed to providing you with the highest quality mental health support and creating a safe space for your healing journey.
</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card rounded-2xl p-8 card-hover text-center group animate-fade-in-delay-1" data-aos="fade-up" data-aos-delay="100">
<div class="w-20 h-20 bg-gradient-to-br from-success-500 to-success-600 rounded-2xl flex items-center justify-center mb-6 mx-auto group-hover:scale-110 transition-transform duration-300 shadow-lg">
<i class="fas fa-user-shield text-white text-2xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4 font-poppins">Licensed Professionals</h3>
<p class="text-gray-600 leading-relaxed">All our counselors are licensed and have years of experience in mental health support, ensuring you receive expert care.</p>
<div class="mt-4 flex justify-center space-x-2">
<span class="px-3 py-1 bg-gradient-to-r from-success-100 to-success-200 text-success-700 text-sm rounded-full font-medium">Certified</span>
<span class="px-3 py-1 bg-gradient-to-r from-primary-100 to-primary-200 text-primary-700 text-sm rounded-full font-medium">Experienced</span>
</div>
</div>
<div class="glass-card rounded-2xl p-8 card-hover text-center group animate-fade-in-delay-2" data-aos="fade-up" data-aos-delay="200">
<div class="w-20 h-20 bg-gradient-to-br from-primary-500 to-primary-600 rounded-2xl flex items-center justify-center mb-6 mx-auto group-hover:scale-110 transition-transform duration-300 shadow-lg">
<i class="fas fa-lock text-white text-2xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4 font-poppins">100% Confidential</h3>
<p class="text-gray-600 leading-relaxed">Your privacy is our priority. All sessions are completely confidential and secure, following strict HIPAA guidelines.</p>
<div class="mt-4 flex justify-center space-x-2">
<span class="px-3 py-1 bg-gradient-to-r from-primary-100 to-primary-200 text-primary-700 text-sm rounded-full font-medium">HIPAA Compliant</span>
<span class="px-3 py-1 bg-gradient-to-r from-secondary-100 to-secondary-200 text-secondary-700 text-sm rounded-full font-medium">Secure</span>
</div>
</div>
<div class="glass-card rounded-2xl p-8 card-hover text-center group animate-fade-in-delay-3" data-aos="fade-up" data-aos-delay="300">
<div class="w-20 h-20 bg-gradient-to-br from-secondary-500 to-secondary-600 rounded-2xl flex items-center justify-center mb-6 mx-auto group-hover:scale-110 transition-transform duration-300 shadow-lg">
<i class="fas fa-clock text-white text-2xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4 font-poppins">Flexible Scheduling</h3>
<p class="text-gray-600 leading-relaxed">Book sessions that fit your schedule with convenient online and in-person options available 7 days a week.</p>
<div class="mt-4 flex justify-center space-x-2">
<span class="px-3 py-1 bg-gradient-to-r from-secondary-100 to-secondary-200 text-secondary-700 text-sm rounded-full font-medium">24/7 Booking</span>
<span class="px-3 py-1 bg-gradient-to-r from-accent-100 to-accent-200 text-accent-700 text-sm rounded-full font-medium">Flexible</span>
</div>
</div>
</div>
<!-- Additional Features -->
<div class="mt-16 grid md:grid-cols-2 gap-8" data-aos="fade-up" data-aos-delay="400">
<div class="glass-card rounded-2xl p-6 border border-white/20">
<h4 class="text-xl font-bold text-gray-900 mb-4 font-poppins flex items-center">
<i class="fas fa-heart text-red-500 mr-3"></i>
Compassionate Care
</h4>
<p class="text-gray-600">Our approach focuses on creating a warm, non-judgmental environment where you can feel safe to share and heal.</p>
</div>
<div class="glass-card rounded-2xl p-6 border border-white/20">
<h4 class="text-xl font-bold text-gray-900 mb-4 font-poppins flex items-center">
<i class="fas fa-users text-primary-500 mr-3"></i>
Diverse Expertise
</h4>
<p class="text-gray-600">Our team specializes in various areas including anxiety, depression, trauma, relationships, and more.</p>
</div>
</div>
</div>
</section>
<!-- Expert Profile Modal -->
<div id="expert-profile-modal" class="fixed inset-0 bg-black bg-opacity-60 backdrop-blur-sm hidden z-50 overflow-y-auto">
<div class="flex items-center justify-center min-h-screen p-4">
<div class="glass-card rounded-3xl shadow-2xl max-w-4xl w-full max-h-screen overflow-y-auto border border-white/20">
<div class="relative">
<!-- Modal Header -->
<div class="bg-gradient-to-r from-primary-500 via-secondary-500 to-accent-500 p-8 text-white relative rounded-t-3xl overflow-hidden">
<div class="absolute inset-0 bg-black/10"></div>
<button onclick="closeExpertModal()" class="absolute top-4 right-4 glass-effect hover:bg-white/20 text-white px-3 py-2 rounded-xl transition-all z-10">
<i class="fas fa-times text-xl"></i>
</button>
<div class="flex items-center space-x-6 relative z-10">
<div id="modal-image-container" class="w-24 h-24 rounded-2xl overflow-hidden border-4 border-white/30 shadow-lg">
<!-- Dynamic image or initial -->
</div>
<div class="flex-1">
<h2 id="modal-name" class="text-3xl font-bold mb-2 font-poppins"><!-- Dynamic name --></h2>
<p id="modal-designation" class="text-white/90 text-xl mb-2 flex items-center">
<i class="fas fa-stethoscope mr-2"></i>
<span><!-- Dynamic designation --></span>
</p>
<p id="modal-contact" class="text-white/80 flex items-center">
<i class="fas fa-envelope mr-2"></i>
<span><!-- Dynamic contact info --></span>
</p>
</div>
</div>
<div class="absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -mr-16 -mt-16"></div>
<div class="absolute bottom-0 left-0 w-24 h-24 bg-white/10 rounded-full -ml-12 -mb-12"></div>
</div>
<!-- Modal Content -->
<div class="p-8 space-y-8">
<!-- About Section -->
<div class="glass-card p-6 rounded-2xl border border-primary-100">
<h3 class="text-xl font-bold text-gray-900 mb-4 flex items-center font-poppins">
<div class="w-10 h-10 bg-gradient-to-br from-primary-400 to-primary-600 rounded-xl flex items-center justify-center mr-3">