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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
a {
  text-decoration: none;
}

.background-color {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
    
}

/* Body: Flexbox layout for better vertical alignment */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Navbar: Adjust margins and padding for small screens */
.navbar {
  padding: 10px 20px;
}

/* Ensure home content and services adapt to screen width */
.content-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 30px 10px;
  color: #1d3fa1;
}

.home-row {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Left section in home content for proper spacing */
.home-left {
  position: relative;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

.home-right img {
  max-width: 100%;
  height: auto;
}

/* Flexbox for service items */
.service {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-items {
  background-color: #e0f7ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 250px;
  text-align: center;
}

.service-items:hover {
  transform: scale(1.05);
  background-color: #fff7ff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-home {
    padding: 20px;
    gap: 30px;
  }
  
  .home-row {
    flex-direction: column;
    gap: 20px;
  }

  .home-left {
    padding: 10px;
  }

  .service-items {
    width: 100%;
    max-width: 300px;
  }

 
}

@media (max-width: 500px) {
  .navbar-brand img {
    width: 75px;
    height: 75px;
  }

  .home-row {
    gap: 15px;
  }

  .home-right img {
    max-width: 100%;
    height: auto;
  }

  .service-items {
    width: 90%;
  }


}

.logo {
  width: 100px; /* Increase the width */
  height: auto; /* Adjust height proportionally */
}

/*--------------------------------------------------------------------------------------*/

/* Global Styles */
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

/* Content Layout */
.content {
  display: flex;
  flex-wrap: wrap; /* Enable wrapping for responsiveness */
  justify-content: space-between;
  padding: 1rem;
}

/* Left section styling */
.left {
  flex: 1 1 50%; /* Takes up 50% of the width */
  padding: 20px;
}

.left .form {
  max-width: 500px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-layout {
  display: flex;
  justify-content: center;
  padding: 10px;
}

/* Checkbox styling */
.symptoms {
  font-size: 19px;
  margin-right: 10px;
}

input[type="checkbox"] {
  margin-bottom: 10px;
  transform: scale(0.9);
}

/* Add hover effects */
input[type="checkbox"]:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

.left, .right {
  flex: 1 1 100%; /* Stack the sections on top of each other */
  padding: 10px;
}

.content {
  flex-direction: column;
  align-items: center;
}

.form, .right-top {
  width: 100%;
}

input[type="checkbox"] {
  margin-bottom: 10px;
  transform: scale(1.5); /* Make checkboxes smaller for mobile */
}

/* From Uiverse.io by zjssun */
.button {
position: relative;
padding: 10px 22px;
border-radius: 6px;
border: none;
color: #fff;
cursor: pointer;
background-color: #7d2ae8;
transition: all 0.2s ease;
}

.button:active {
transform: scale(0.96);
}

.button:before,
.button:after {
position: absolute;
content: "";
width: 150%;
left: 50%;
height: 100%;
transform: translateX(-50%);
z-index: -1000;
background-repeat: no-repeat;
}

.button:hover:before {
top: -70%;
background-image: radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, transparent 20%, #7d2ae8 20%, transparent 30%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, transparent 10%, #7d2ae8 15%, transparent 20%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%),
  radial-gradient(circle, #7d2ae8 20%, transparent 20%);
background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
  10% 10%, 18% 18%;
background-position: 50% 120%;
animation: greentopBubbles 0.6s ease;
}

@keyframes greentopBubbles {
0% {
  background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
    40% 90%, 55% 90%, 70% 90%;
}

50% {
  background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
    50% 50%, 65% 20%, 90% 30%;
}

100% {
  background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
    50% 40%, 65% 10%, 90% 20%;
  background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
}
}

.button:hover:after {
bottom: -70%;
background-image: radial-gradient(circle, #e82a2a 20%, transparent 20%),
  radial-gradient(circle, #e82a2a 20%, transparent 20%),
  radial-gradient(circle, transparent 10%, #e82a2a 15%, transparent 20%),
  radial-gradient(circle, #e82a2a 20%, transparent 20%),
  radial-gradient(circle, #e82a2a 20%, transparent 20%),
  radial-gradient(circle, #e82a2a 20%, transparent 20%),
  radial-gradient(circle, #e82a2a 20%, transparent 20%);
background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
background-position: 50% 0%;
animation: greenbottomBubbles 0.6s ease;
}

@keyframes greenbottomBubbles {
0% {
  background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
    70% -10%, 70% 0%;
}

50% {
  background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
    105% 0%;
}

100% {
  background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
    110% 10%;
  background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
}
}


/*เส้นบน----------------------------------------------------------------------------------------------------------*/

/* Navbar links hover animation */
.navbar-nav .nav-link {
  position: relative;
  color: #000;
  padding: 10px;
  font-size: 1rem;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #007bff; /* Change the color on hover */
  
}

/* Underline effect: starts from center and expands outward */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: #007bff;
  transform: translateX(-50%);
  transition: width 0.4s ease-in-out; /* Smooth expansion */
}

.navbar-nav .nav-link:hover::after {
  width: 100%; /* Expand to full width */
  left: 50%;
  transform: translateX(-50%);
}

/*เส้นล่าง-----------------------------------------------------------------------------------------------------------------------------*/
/* Add a color-changing line at the top of the navbar */
.navbar {
  position: relative;
  z-index: 1;
}
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;                         /* Set the height of the color line */
  background: linear-gradient(90deg, #71C9CE 0%, #A6E3E9 25%, #CBF1F5 75%, #E3FDFD 100%);
  background-size: 600%;
  animation: colorChange 6s linear infinite;  /* Infinite animation */
}

/* Keyframes to animate the gradient colors */
@keyframes colorChange {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.footer {
  position: relative;
  z-index: 1;
  padding: 20px 0; /* Adjust padding as needed */
  text-align: center; /* Center the footer text */
}

.footer::after { /* Use ::after to place the gradient at the bottom */
  content: "";
  position: absolute;
  bottom: 0; /* Align it to the bottom */
  left: 0;
  width: 100%;
  height: 6px; /* Set the height of the color line */
  background: linear-gradient(90deg, #71C9CE 0%, #A6E3E9 25%, #CBF1F5 75%, #E3FDFD 100%);
  background-size: 600%;
  animation: colorChange 6s linear infinite; /* Infinite animation */
}

/* Keyframes to animate the gradient colors */
@keyframes colorChange {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/*-----------------------------------------------------------------------------------------------------------------------------*/  

/*animate background*/
.circles {
position: absolute;
top: 100px;
left: 0;
width: 100%;
height: 1200px;

}

.circles li {
position: absolute;
display: block;
list-style: none;
width: 20px;
height: 70px;
background: rgba(255, 255, 255, 0.5);
animation: animate 25s linear infinite;
bottom: 0px;

}

.circles li:nth-child(1) {
left: 25%;
width: 80px;
height: 80px;
animation-delay: 0s;
}


.circles li:nth-child(2) {
left: 10%;
width: 20px;
height: 20px;
animation-delay: 2s;
animation-duration: 12s;
}

.circles li:nth-child(3) {
left: 70%;
width: 20px;
height: 20px;
animation-delay: 4s;
}

.circles li:nth-child(4) {
left: 40%;
width: 60px;
height: 60px;
animation-delay: 0s;
animation-duration: 18s;
}

.circles li:nth-child(5) {
left: 65%;
width: 20px;
height: 20px;
animation-delay: 0s;
}

.circles li:nth-child(6) {
left: 75%;
width: 110px;
height: 110px;
animation-delay: 3s;
}

.circles li:nth-child(7) {
left: 35%;
width: 150px;
height: 150px;
animation-delay: 7s;
}

.circles li:nth-child(8) {
left: 50%;
width: 25px;
height: 25px;
animation-delay: 15s;
animation-duration: 45s;
}

.circles li:nth-child(9) {
left: 20%;
width: 15px;
height: 15px;
animation-delay: 2s;
animation-duration: 35s;
}

.circles li:nth-child(10) {
left: 85%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 11s;
}



@keyframes animate {

0% {
  transform: translateY(500) rotate(0deg);
  opacity: 1;
  border-radius: 0;
}

100% {
  transform: translateY(-1500px) rotate(720deg);
  opacity: 0;
  border-radius: 50%;
}

}

.footer {
background-color: #333;
color: #fff;
padding: 20px 10%;
}
.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.footer-section {
flex: 1;
margin: 10px;
min-width: 200px;
}
.footer-section h3 {
margin-bottom: 10px;
font-size: 18px;
color: #f2f2f2;
}
.footer-section p, 
.footer-section a {
color: #ccc;
text-decoration: none;
margin-bottom: 8px;
display: block;
}
.footer-section a:hover {
color: #fff;
}
.footer-section img {
width: 100%;
max-width: 300px;
border-radius: 8px;
margin-top: 10px;
}
.social-links a {
display: inline-block;
margin: 5px 10px 5px 0;
color: #ccc;
font-size: 20px;
}
.social-links a:hover {
color: #fff;
}
.footer-bottom {
text-align: center;
margin-top: 20px;
border-top: 1px solid #444;
padding-top: 10px;
font-size: 14px;
}

@media (max-width: 768px) {
.footer-container {
    flex-direction: column;
    text-align: center;
}
.footer-section img {
    margin: 10px auto;
}
}

/*new css detect*/
.detect-section {
background-color: #f4f6f9;
padding: 3rem 0;
}

.input-card {
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 2rem;
transition: transform 0.3s ease;
}

.input-card:hover {
transform: translateY(-5px);
}

.custom-checkbox .form-check-input:checked {
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.btn-submit {
background-color: var(--primary-color);
color: white;
transition: all 0.3s ease;
}

.btn-submit:hover {
background-color: var(--secondary-color);
transform: translateY(-3px);
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.spinner-container {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  animation: rotate 2s linear infinite;
}

.spinner .path {
  stroke: #007bff; /* Customize the color */
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
      transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
  }
  50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
  }
  100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
  }
}