.page-phuong-thuc-thanh-toan {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Assuming shared.css sets body background to light */
}

.page-phuong-thuc-thanh-toan__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-phuong-thuc-thanh-toan__hero-section {
  background-color: #f5f5f5;
  padding: 40px 0;
  text-align: center;
  padding-top: 10px; /* Small top padding as per instruction */
}

.page-phuong-thuc-thanh-toan__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-phuong-thuc-thanh-toan__description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-phuong-thuc-thanh-toan__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-phuong-thuc-thanh-toan__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-phuong-thuc-thanh-toan__btn--primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-phuong-thuc-thanh-toan__btn--primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-phuong-thuc-thanh-toan__btn--secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-phuong-thuc-thanh-toan__btn--secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-phuong-thuc-thanh-toan__btn--large {
  padding: 15px 30px;
  font-size: 20px;
}

.page-phuong-thuc-thanh-toan__section {
  padding: 50px 0;
}

.page-phuong-thuc-thanh-toan__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
}

.page-phuong-thuc-thanh-toan__section-title--white {
  color: #ffffff;
}

.page-phuong-thuc-thanh-toan__text--white {
  color: #ffffff;
}

.page-phuong-thuc-thanh-toan p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.page-phuong-thuc-thanh-toan__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
}

.page-phuong-thuc-thanh-toan__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-phuong-thuc-thanh-toan__figcaption {
  font-size: 15px;
  color: #777777;
  margin-top: 10px;
}

.page-phuong-thuc-thanh-toan__method-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-phuong-thuc-thanh-toan__card-title {
  font-size: 24px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-phuong-thuc-thanh-toan__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  font-size: 17px;
}

.page-phuong-thuc-thanh-toan__list li {
  margin-bottom: 8px;
}

.page-phuong-thuc-thanh-toan__info-card {
  background-color: #f0f8f0; /* Light green background */
  border-left: 5px solid #017439;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-phuong-thuc-thanh-toan__warning-card {
  background-color: #fff3cd; /* Light warning color */
  border-left-color: #ffc107;
}

.page-phuong-thuc-thanh-toan__warning-card .page-phuong-thuc-thanh-toan__card-title {
  color: #856404;
}

.page-phuong-thuc-thanh-toan__link {
  color: #017439;
  text-decoration: underline;
}

.page-phuong-thuc-thanh-toan__link:hover {
  color: #005f2c;
}

.page-phuong-thuc-thanh-toan__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-phuong-thuc-thanh-toan__benefit-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-phuong-thuc-thanh-toan__benefit-title {
  font-size: 22px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-phuong-thuc-thanh-toan__faq-section {
  background-color: #f9f9f9;
  padding: 50px 0;
}

.page-phuong-thuc-thanh-toan__faq-list {
  margin-top: 30px;
}

.page-phuong-thuc-thanh-toan__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-phuong-thuc-thanh-toan__faq-question {
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  padding: 18px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f8f0;
  transition: background-color 0.3s ease;
}

.page-phuong-thuc-thanh-toan__faq-question:hover {
  background-color: #e0f2e0;
}

.page-phuong-thuc-thanh-toan__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: #ffffff;
}

.page-phuong-thuc-thanh-toan__faq-answer p {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 0;
  font-size: 16px;
  color: #555555;
}

.page-phuong-thuc-thanh-toan__faq-item.active .page-phuong-thuc-thanh-toan__faq-answer {
  max-height: 500px; /* Adjust as needed */
}

.page-phuong-thuc-thanh-toan__faq-toggle {
  font-size: 24px;
  line-height: 1;
}

.page-phuong-thuc-thanh-toan__faq-item.active .page-phuong-thuc-thanh-toan__faq-toggle {
  transform: rotate(45deg);
}

.page-phuong-thuc-thanh-toan__cta-final {
  background-color: #017439;
  padding: 60px 0;
  text-align: center;
}

.page-phuong-thuc-thanh-toan__promo-box {
  padding: 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, #017439, #005f2c);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-phuong-thuc-thanh-toan__promo-box .page-phuong-thuc-thanh-toan__section-title {
  margin-bottom: 20px;
}

.page-phuong-thuc-thanh-toan__promo-box .page-phuong-thuc-thanh-toan__text--white {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-phuong-thuc-thanh-toan__container {
    padding: 0 15px;
  }
  .page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(26px, 3.5vw, 44px);
  }
  .page-phuong-thuc-thanh-toan__description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-phuong-thuc-thanh-toan__section-title {
    font-size: clamp(22px, 2.8vw, 34px);
  }
  .page-phuong-thuc-thanh-toan__method-card, .page-phuong-thuc-thanh-toan__info-card {
    padding: 25px;
  }
  .page-phuong-thuc-thanh-toan__card-title {
    font-size: 22px;
  }
  .page-phuong-thuc-thanh-toan__benefit-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-phuong-thuc-thanh-toan__hero-section {
    padding: 30px 0;
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }
  .page-phuong-thuc-thanh-toan__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-phuong-thuc-thanh-toan__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-phuong-thuc-thanh-toan__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-phuong-thuc-thanh-toan__btn--large {
    padding: 15px 20px;
    font-size: 18px;
  }

  /* 2. 单栏长文容器 */
  .page-phuong-thuc-thanh-toan__section {
    padding: 30px 0;
  }
  .page-phuong-thuc-thanh-toan__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-phuong-thuc-thanh-toan__section-title {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 20px;
  }
  .page-phuong-thuc-thanh-toan p {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-phuong-thuc-thanh-toan__method-card, .page-phuong-thuc-thanh-toan__info-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-phuong-thuc-thanh-toan__card-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .page-phuong-thuc-thanh-toan__list {
    font-size: 16px;
    margin-left: 20px;
  }
  .page-phuong-thuc-thanh-toan__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-phuong-thuc-thanh-toan__benefit-title {
    font-size: 18px;
  }

  /* 3. 通用图片与 figure */
  .page-phuong-thuc-thanh-toan__figure {
    margin: 20px auto;
  }
  .page-phuong-thuc-thanh-toan__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-phuong-thuc-thanh-toan__figcaption {
    font-size: 14px;
  }

  /* 4. 按钮与按钮容器 (already covered in top-section and general btn styles) */
  /* Added explicit padding for containers to prevent overflow */
  .page-phuong-thuc-thanh-toan__section, .page-phuong-thuc-thanh-toan__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-phuong-thuc-thanh-toan__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-phuong-thuc-thanh-toan__faq-answer p {
    font-size: 15px;
  }
  .page-phuong-thuc-thanh-toan__faq-toggle {
    font-size: 20px;
  }
  .page-phuong-thuc-thanh-toan__promo-box {
    padding: 25px 15px;
  }
}

@media (max-width: 480px) {
  .page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(22px, 8vw, 30px);
  }
  .page-phuong-thuc-thanh-toan__section-title {
    font-size: clamp(18px, 7vw, 24px);
  }
  .page-phuong-thuc-thanh-toan__btn {
    font-size: 15px;
    padding: 10px 15px;
  }
  .page-phuong-thuc-thanh-toan__btn--large {
    font-size: 16px;
    padding: 12px 18px;
  }
  .page-phuong-thuc-thanh-toan__card-title {
    font-size: 18px;
  }
  .page-phuong-thuc-thanh-toan__benefit-title {
    font-size: 16px;
  }
  .page-phuong-thuc-thanh-toan__faq-question {
    font-size: 15px;
  }
}