/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
  font-family: "Poppins", "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 40px;   
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #4a90e2;
  display: flex;  /* Sử dụng flexbox để căn chỉnh các phần tử */
  align-items: center;  /* Căn giữa các phần tử theo chiều dọc */
}

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;  /* Khoảng cách giữa logo và văn bản */
}


.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4a90e2;
}

/* Hero section */
.hero {
  background-color: #f0f8ff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.hero a:hover {
  color: #fff;
}

/* Features */
.features {
  background-color: white;
  padding: 80px 0;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(350px, 1fr));
  gap: 30px;
  justify-content: center;
}

.feature-item {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-item img {
  width: 100%;
  max-width: 500px;
  height: 200px;
  border-radius: 8px;
}

/* Benefits */
.benefits {
  background: #f5f5f5;
  padding: 80px 0;
}

.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-item {
  margin-bottom: 30px;
  font-size: 18px;
  font-weight: 500;
}

/* How it works */
.how-it-works {
  padding: 80px 0;
  background: white;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
}

.step-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 50px;
}

.step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #4a90e2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  background: #f0f8ff;
  padding: 80px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.pricing-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.pricing-item .price {
  font-size: 28px;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 10px;
}

.pricing-item ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 20px;
  flex-grow: 1;
  text-align: left;
}

.pricing-item .cta-button {
  margin-top: auto;
  display: inline-block;
}

/* FAQ */
.faq {
  background: #f9f9f9;
  padding: 80px 0;
}

.faq-item {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Contact */
.contact {
  padding: 80px 0;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links li {
  margin: 0 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4a90e2;
}

.social-links a {
  margin: 0 8px;
  color: white;
  font-size: 18px;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  font-size: 16px;
  cursor: pointer;
}
button:hover {
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
}

/* Messenger & Zalo Buttons */
.messenger-button,
.zalo-button {
  position: fixed;
  right: 20px;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

.messenger-button {
  bottom: 90px;
  background: #0084ff;
}

.zalo-button {
  bottom: 20px;
  background: #0068ff;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .fade-in.show {
    opacity: 1;
    transform: translateY(0);
  }
}
.notice {
  margin-top: 10px;
  color: red;
  font-weight: bold;
  display: none; /* hoặc bạn có thể để trong JavaScript */
}
button {
  padding: 10px 15px;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999 !important;
}
.modal-content {
  background: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #555;
}

.close:hover {
  color: #000;
}
#qr-code img {
  max-width: 100%;
  border-radius: 8px;
}
#transfer-content {
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
}
.copy-notice {
  text-align: center;
  font-size: 12px;
  color: green;
}
.package {
  background: #f9f9f9; /* nền sáng */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px; /* bo góc */
  border: 1px solid #e0e0e0; /* viền sáng nhẹ */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* đổ bóng nhẹ */
  text-align: center; /* căn giữa nội dung */
  transition: transform 0.2s;
}

.package:hover {
  transform: translateY(-5px); /* hover nổi lên nhẹ */
}
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 20px;
  color: #333;
}
/* Container cho mã QR */
.qr-code-container {
  /* Đổi tên từ .qr-container thành .qr-code-container */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
  padding: 20px;
}

/* Nút đóng modal */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}
/* Đảm bảo modal cover toàn bộ màn hình */
.modal-qr-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Mờ nền để làm nổi bật modal */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out; /* Thêm hiệu ứng khi mở/đóng modal */
  }
  
  /* Nội dung của modal */
  .modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px; /* Bo tròn góc của modal */
    position: relative;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Thêm bóng đổ cho modal */
    transition: transform 0.3s ease-out;
  }
  
  /* Nút đóng modal */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    background: transparent;
    border: none;
  }
  
  /* Nút đóng khi hover */
  .close-btn:hover {
    color: #ff3b3b;
  }
  
  /* Đảm bảo mã QR được căn giữa trong container */
  .qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
  /* Tạo kiểu cho hình ảnh mã QR */
  .qr-image {
    width: 250px;
    height: 250px;
    border: 5px solid #f2f2f2; /* Thêm viền xung quanh mã QR */
    border-radius: 8px; /* Bo tròn viền */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ cho mã QR */
  }
  
  /* Hiển thị thông tin chi tiết giao dịch */
  #paymentDetails {
    margin-top: 20px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
  }
  
  #paymentDetails p {
    margin: 10px 0;
  }
  
  #paymentDetails strong {
    color: #007bff; /* Màu sắc cho các tiêu đề */
    font-weight: bold;
  }
  
  /* Thêm hiệu ứng hover cho các phần tử bên trong modal */
  .modal-content p:hover {
    color: #333;
    cursor: pointer;
  }
  .payment-period-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  position: relative;
  flex: 1;
  cursor: pointer;
  text-align: center;
}

.payment-option input[type="radio"] {
  display: none;
}

.option-box {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px 10px;
  transition: border 0.3s;
  position: relative;
}

.payment-option input[type="radio"]:checked + .option-box {
  border-color: #36d1dc;
  background-color: #f0faff;
}

.option-box strong {
  font-size: 16px;
  display: block;
  color: #333;
}

.discount {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4d4f;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 12px;
}

.discount.none {
  background-color: #999;
}
#paymentSummary {
  text-align: left; /* Căn lề trái */
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #007bff; /* Viền bên trái xanh dương */
  border-radius: 4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  max-width: 350px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#paymentSummary p {
  margin: 6px 0;
  font-size: 16px;
}

#paymentSummary b {
  color: #007bff;
}
