/* style/payment-methods.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.15);
  --button-hover-dark: #0056b3;
  --button-secondary-hover-dark: #e0a800;
}

.page-payment-methods {
  color: var(--text-light); /* Text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if section background is not set */
  padding-top: 120px; /* Desktop: Clear fixed header */
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-payment-methods__hero-section {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  padding: 80px 0;
  text-align: center;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-payment-methods__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  background: var(--button-secondary-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__cta-button--secondary:hover {
  background: #f0f0f0;
  color: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
}

.page-payment-methods__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-dark);
}

.page-payment-methods__section:last-of-type {
  border-bottom: none;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  color: #b0b0b0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-payment-methods__method-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__method-icon {
  width: 150px; /* Min size 200x200px, but here it's an icon, so I'll try to keep it large */
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-payment-methods__method-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__method-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.page-payment-methods__method-features {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-payment-methods__method-features li {
  color: #c0c0c0;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__method-features li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-payment-methods__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-payment-methods__step-text {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.page-payment-methods__info-box {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__info-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-payment-methods__info-box p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-payment-methods__info-list {
  list-style-type: none;
  padding: 0;
  margin-left: 20px;
}

.page-payment-methods__info-list li {
  color: #c0c0c0;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__info-list li strong {
  color: #ffffff;
}

.page-payment-methods__info-list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-payment-methods__feature-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-payment-methods__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__feature-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.page-payment-methods__tip-list {
  list-style-type: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-payment-methods__tip-list li {
  background: var(--card-bg-dark);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__tip-list li strong {
  color: var(--secondary-color);
}

.page-payment-methods__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

.page-payment-methods__faq-section {
  background-color: var(--bg-dark);
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-light);
  background: var(--card-bg-dark);
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--card-bg-dark);
  border-radius: 0 0 8px 8px;
}

/* Vùng câu hỏi FAQ */
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-payment-methods__faq-question:hover {
  background: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Tiêu đề câu hỏi */
.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
}

/* Biểu tượng chuyển đổi */
.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__step-icon,
  .page-payment-methods__feature-icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    padding-top: 100px !important; /* Mobile: Clear fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__hero-section {
    padding: 60px 0;
  }
  .page-payment-methods__main-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-payment-methods__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-payment-methods__method-grid,
  .page-payment-methods__step-by-step,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__feature-item {
    padding: 25px;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__step-icon,
  .page-payment-methods__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.4em;
  }
  .page-payment-methods__info-box {
    padding: 25px;
    margin-top: 40px;
  }
  .page-payment-methods__info-title {
    font-size: 1.5em;
  }
  .page-payment-methods__tip-list li {
    padding: 15px;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px !important;
  }
  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__feature-item,
  .page-payment-methods__info-box,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-payment-methods__faq-section .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}