/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  color: #333;
  line-height: 1.7;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  color: white;
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.3);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="white" d="M30,30 Q50,10 70,30 T90,50 T70,70 T50,90 T30,70 T10,50 T30,30 Z"/></svg>');
  background-size: 150px;
}

header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
  position: relative;
  z-index: 1;
}

nav a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #1e88e5;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== SECTIONS ===== */
section {
  max-width: 1000px;
  margin: 40px auto;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #1e88e5 0%, #4caf50 100%);
}

h2 {
  color: #1e88e5;
  border-bottom: 3px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 25px;
  font-size: 1.8em;
  display: inline-block;
}

/* ===== ABOUT SECTION ===== */
#about {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#about img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
  border: 4px solid #1e88e5;
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.05);
}

#about p {
  font-size: 1.1em;
  color: #555;
  flex: 1;
  min-width: 300px;
}

/* ===== SERVICES SECTION ===== */
#services {
  background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
}

#services ul {
  list-style: none;
  padding: 0;
}

#services li {
  padding: 15px 20px;
  margin-bottom: 12px;
  background: white;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 50px;
}

#services li::before {
  content: '❤️';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

#services li:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}
/* ===== REGISTRATION FORM ===== */
#registration {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #e3f2fd;
}

#registration h2 {
  color: #1e88e5;
  text-align: center;
  margin-bottom: 10px;
}

.form-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

#consultation-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #455a64;
  font-size: 1.05em;
}

.form-group label::after {
  content: ' *';
  color: #f44336;
  display: inline;
}

.form-group label[for="email"]::after,
.form-group label[for="note"]::after {
  content: '';
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  font-size: 1.2em;
  color: #1e88e5;
  z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  cursor: pointer;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.4em;
}

.form-note {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin-top: 20px;
  padding: 15px;
  background: rgba(30, 136, 229, 0.05);
  border-radius: 8px;
  border-left: 3px solid #4caf50;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 15px;
  border: 2px solid #4caf50;
  margin-top: 20px;
}

.form-success .success-icon {
  font-size: 3em;
  color: #4caf50;
  margin-bottom: 20px;
}

.form-success h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

/* Loading animation */
.form-loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1e88e5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ===== CONTACT SECTION ===== */
#contact {
  background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
  text-align: center;
}

#contact p {
  font-size: 1.2em;
  margin: 15px 0;
  padding: 10px;
  background: rgba(30, 136, 229, 0.1);
  border-radius: 10px;
  border-left: 4px solid #1e88e5;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  background: linear-gradient(135deg, #1e88e5 0%, #4caf50 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
  background: linear-gradient(135deg, #4caf50 0%, #1e88e5 100%);
}

/* ===== CERTIFICATES SLIDER ===== */
#certificates {
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.slider {
  position: relative;
  max-width: 800px;
  height: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: white;
  border: 3px solid #1e88e5;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background: white;
  padding: 20px;
}

.slides img.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 136, 229, 0.8);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  z-index: 10;
  transition: all 0.3s ease;
}

.prev:hover, .next:hover {
  background: rgba(30, 136, 229, 1);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ===== PRESS SECTION ===== */
#press {
  background: linear-gradient(135deg, #ffffff 0%, #f3e5f5 100%);
}

#press h2 {
  color: #1e88e5;
  border-bottom-color: #4caf50;
}

.press-links {
  list-style: none;
  padding: 0;
}

.press-links li {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #1e88e5;
}

.press-links li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.2);
}

.press-links li a {
  color: #455a64;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  display: block;
  transition: color 0.3s ease;
}

.press-links li a:hover {
  color: #1e88e5;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  color: white;
  font-size: 1em;
  margin-top: 60px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #1e88e5, #4caf50);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header {
    padding: 30px 15px;
  }
  
  header h1 {
    font-size: 1.8em;
  }
  
  nav a {
    margin: 0 10px;
    font-size: 1em;
    padding: 6px 12px;
  }
  
  section {
    margin: 20px 15px;
    padding: 30px 20px;
  }
  
  #about {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  #about img {
    width: 150px;
    height: 150px;
  }
  
  .slider {
    height: 300px;
    margin: 20px 15px;
  }
  
  .prev, .next {
    padding: 12px 16px;
    font-size: 20px;
  }
}
/* ===== CONTACT SECTION UPDATED ===== */
#contact {
  background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
  text-align: left; /* Căn lề trái toàn bộ section */
}

#contact h2 {
  text-align: center; /* Chỉ căn giữa tiêu đề */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  font-size: 1.2em;
  margin: 20px 0;
  padding: 15px 20px;
  background: rgba(30, 136, 229, 0.1);
  border-radius: 10px;
  border-left: 4px solid #1e88e5;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info p::before {
  font-size: 1.4em;
}

.contact-info p:nth-child(1)::before { content: '📞'; }
.contact-info p:nth-child(2)::before { content: '📧'; }
.contact-info p:nth-child(3)::before { content: '🏥'; }

/* Social Media Buttons */
.social-media {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.social-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
  color: white;
}

.social-btn.tiktok {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook:hover {
  background: linear-gradient(135deg, #0d5cb6 0%, #1877f2 100%);
  border-color: #1877f2;
}

.social-btn.tiktok:hover {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
  border-color: #69c9d0;
}

.social-icon {
  font-size: 1.4em;
}

.contact-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social-btn i {
  font-size: 1.2em;
  width: 20px;
  text-align: center;
}
/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
  /* Base adjustments */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Header mobile optimization */
  header {
    padding: 25px 15px;
  }
  
  header img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  
  header h1 {
    font-size: 1.5em;
    margin-bottom: 15px;
    padding: 0 10px;
  }
  
  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  nav a {
    margin: 0 5px;
    font-size: 0.9em;
    padding: 6px 12px;
    border-radius: 20px;
  }
  
  /* Section mobile optimization */
  section {
    margin: 20px 15px;
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  h2 {
    font-size: 1.5em;
    text-align: center;
    display: block;
    width: 100%;
  }
  
  /* About section mobile */
  #about {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  #about img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  #about p {
    min-width: unset;
    text-align: left;
    font-size: 1em;
  }
  
  /* Services mobile */
  #services li {
    padding: 12px 15px;
    padding-left: 45px;
    margin-bottom: 10px;
    font-size: 0.95em;
  }
  
  #services li::before {
    left: 15px;
  }
  
  /* Contact section mobile */
  .contact-info p {
    font-size: 1em;
    padding: 12px 15px;
    margin: 15px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .contact-info p::before {
    font-size: 1.2em;
  }
  
  .social-media {
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
  }
  
  .social-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
  
  .contact-actions {
    justify-content: center;
    gap: 12px;
  }
  
  .button {
    padding: 10px 20px;
    font-size: 0.95em;
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  
  /* Certificates slider mobile */
  #certificates {
    padding: 25px 15px;
  }
  
  .slider {
    height: 300px;
    margin: 20px 0;
    border-radius: 10px;
  }
  
  .prev, .next {
    padding: 10px 14px;
    font-size: 18px;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }
  
  /* Press section mobile */
  .press-links li {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .press-links li a {
    font-size: 0.95em;
  }
  
  /* Footer mobile */
  footer {
    padding: 30px 15px;
    font-size: 0.9em;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.3em;
  }
  
  nav a {
    font-size: 0.85em;
    padding: 5px 10px;
    margin: 2px;
  }
  
  section {
    margin: 15px 10px;
    padding: 20px 15px;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  #about img {
    width: 120px;
    height: 120px;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    margin: 5px 0;
  }
  
  .social-media {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
  }
  
  .slider {
    height: 250px;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    margin: 30px 20px;
    padding: 35px 30px;
  }
  
  .slider {
    max-width: 90%;
    height: 400px;
  }
}

/* ===== MOBILE-SPECIFIC ENHANCEMENTS ===== */
/* Mobile optimization for form */
@media (max-width: 768px) {
  #registration {
    padding: 25px 15px;
    margin: 20px 10px;
  }
  
  .form-description {
    font-size: 1em;
    padding: 0 10px;
  }
  
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea {
    padding: 12px 15px 12px 40px;
    font-size: 0.95em;
  }
  
  .input-icon {
    left: 12px;
    font-size: 1.1em;
  }
  
  .submit-btn {
    padding: 15px;
    font-size: 1.1em;
  }
  
  .form-note {
    font-size: 0.85em;
    padding: 12px;
  }
  
  .form-group label {
    font-size: 1em;
  }
}
/* Improve touch targets */
@media (max-width: 768px) {
  .button, 
  .social-btn, 
  nav a {
    min-height: 44px; /* Apple's recommended touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea {
    font-size: 16px;
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile menu enhancement */
@media (max-width: 768px) {
  nav {
    padding: 10px 0;
  }
  
  nav a {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
}