/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is white */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-payment-methods__hero-section {
  background: linear-gradient(135deg, var(--primary-color, #017439), #FFFFFF);
  padding: 60px 0;
  text-align: center;
  color: #ffffff; /* White text for gradient background */
}

.page-payment-methods__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* White text for hero title */
}

.page-payment-methods__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff; /* White text for hero intro */
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Primary button: Green background, white text */
.page-payment-methods__btn-primary {
  background: var(--primary-color, #017439);
  color: #ffffff;
  border: 2px solid var(--primary-color, #017439);
}

.page-payment-methods__btn-primary:hover {
  background: darken(var(--primary-color, #017439), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Secondary button: White background, green text */
.page-payment-methods__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #017439);
  border: 2px solid var(--primary-color, #017439);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--primary-color, #017439);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__section {
  padding: 80px 0;
  background-color: var(--secondary-color, #FFFFFF); /* Default light background */
}

.page-payment-methods__section--deposit {
  background-color: #f8f8f8;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #017439);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-payment-methods__grid--two-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-payment-methods__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-payment-methods__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 1.8em;
  color: var(--primary-color, #017439);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-subtitle {
  font-size: 1.2em;
  color: #333333;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-payment-methods__card-note {
  font-size: 0.95em;
  color: #777777;
  font-style: italic;
  margin-top: 20px;
  border-left: 4px solid var(--primary-color, #017439);
  padding-left: 15px;
}

.page-payment-methods__list {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

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

.page-payment-methods__list li::before {
  content: '✓';
  color: var(--primary-color, #017439);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__list-ordered {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-payment-methods__list-ordered li {
  margin-bottom: 10px;
  color: #555555;
}

.page-payment-methods__list-ordered li strong {
  color: #333333;
}

.page-payment-methods__content-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-payment-methods__image-left {
  flex-shrink: 0;
  width: 500px; /* Adjust based on desired layout */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-payment-methods__text-block {
  flex-grow: 1;
}

.page-payment-methods__block-title {
  font-size: 2em;
  color: var(--primary-color, #017439);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__block-title--centered {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.page-payment-methods__list-icon {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__list-icon li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-payment-methods__list-icon-item {
  font-size: 1.5em;
  color: var(--primary-color, #017439);
  margin-right: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.page-payment-methods__dark-bg {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title,
.page-payment-methods__dark-bg .page-payment-methods__feature-title {
  color: #ffffff;
}

.page-payment-methods__dark-bg .page-payment-methods__section-description,
.page-payment-methods__dark-bg .page-payment-methods__feature-text {
  color: #f0f0f0;
}

.page-payment-methods__dark-bg .page-payment-methods__link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-payment-methods__dark-bg .page-payment-methods__link:hover {
  color: #ffffff;
}

.page-payment-methods__feature-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%; /* Ensure consistent height in grid */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__feature-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-payment-methods__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* FAQ section styles */
.page-payment-methods__section--faq {
  background-color: #f8f8f8;
}

.page-payment-methods__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-payment-methods__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* App CTA Section */
.page-payment-methods__section--app-cta {
  padding: 80px 0;
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-payment-methods__section--app-cta .page-payment-methods__section-title,
.page-payment-methods__section--app-cta .page-payment-methods__section-description {
  color: #ffffff;
}

.page-payment-methods__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-payment-methods__text-content {
  flex: 1;
}

.page-payment-methods__image-content {
  flex-shrink: 0;
  width: 400px; /* Fixed width for image on desktop */
}

.page-payment-methods__app-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.5em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__grid--two-col {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__image-left {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__hero-section {
    padding: 40px 0;
  }

  .page-payment-methods__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-payment-methods__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-payment-methods__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__section {
    padding: 50px 0;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
  }

  .page-payment-methods__section-description {
    margin-bottom: 30px;
  }

  .page-payment-methods__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card-image {
    height: 180px;
    margin-bottom: 20px;
  }

  .page-payment-methods__card-title {
    font-size: 1.5em;
  }

  .page-payment-methods__card-subtitle {
    font-size: 1.1em;
  }

  .page-payment-methods__list li,
  .page-payment-methods__list-ordered li {
    font-size: 0.95em;
  }

  .page-payment-methods__content-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-payment-methods__image-left {
    width: 100%;
    order: 1; /* Image first on mobile */
  }

  .page-payment-methods__text-block {
    order: 2;
  }

  .page-payment-methods__block-title {
    font-size: 1.6em;
  }

  .page-payment-methods__list-icon li {
    font-size: 1em;
  }

  .page-payment-methods__grid--two-col {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__feature-box {
    padding: 25px;
  }

  .page-payment-methods__feature-title {
    font-size: 1.4em;
  }

  /* FAQ mobile */
  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-payment-methods__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  .page-payment-methods__container--flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-payment-methods__text-content {
    flex: 1;
  }

  .page-payment-methods__image-content {
    width: 100%;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__cta-group,
  .page-payment-methods__content-block,
  .page-payment-methods__grid,
  .page-payment-methods__grid--two-col,
  .page-payment-methods__feature-box,
  .page-payment-methods__faq-list,
  .page-payment-methods__container--flex,
  .page-payment-methods__text-content,
  .page-payment-methods__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__cta-group {
    padding: 0 15px; /* Ensure button group also has padding */
  }
}