/* style/payment-methods.css */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-payment-methods {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 0;
  padding-top: 10px; /* body已承担 --header-offset，此处禁止 var(--header-offset) */
  background-color: var(--deep-green-color); /* Fallback for image load */
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.65); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-payment-methods__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

.page-payment-methods__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  margin-left: 20px;
}

.page-payment-methods__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-green-color);
}

.page-payment-methods__overview-section,
.page-payment-methods__process-section,
.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

.page-payment-methods__methods-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary-color);
}

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

.page-payment-methods__feature-item,
.page-payment-methods__process-step {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__feature-title,
.page-payment-methods__step-title {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__feature-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-payment-methods__method-card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-payment-methods__method-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-payment-methods__method-image-wrapper {
  flex: 0 0 400px;
  max-width: 400px;
  margin-right: 30px;
}

.page-payment-methods__method-card:nth-child(even) .page-payment-methods__method-image-wrapper {
  margin-right: 0;
  margin-left: 30px;
}

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

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

.page-payment-methods__method-title {
  font-size: 1.8rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__method-description {
  color: var(--text-secondary-color);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

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

.page-payment-methods__method-list li {
  color: var(--text-main-color);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__method-list li::before {
  content: '✔';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  top: 0;
}

.page-payment-methods__list-highlight {
  color: var(--gold-color);
}

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

.page-payment-methods__step-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__step-list li {
  color: var(--text-main-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  font-size: 1.05rem;
}

.page-payment-methods__step-list li:last-child {
  margin-bottom: 0;
}

.page-payment-methods__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--glow-color);
  color: var(--deep-green-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-payment-methods__process-step {
  counter-reset: step-counter;
}

.page-payment-methods__security-features {
  margin-top: 40px;
}

.page-payment-methods__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

.page-payment-methods__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  position: relative;
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: var(--glow-color);
}

.page-payment-methods__faq-answer {
  padding: 0 30px 20px 30px;
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-payment-methods__faq-answer p {
  margin: 0;
}

.page-payment-methods__cta-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__method-card {
    flex-direction: column;
    text-align: center;
  }

  .page-payment-methods__method-card:nth-child(even) {
    flex-direction: column;
  }

  .page-payment-methods__method-image-wrapper {
    margin-right: 0;
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%;
  }

  .page-payment-methods__method-card:nth-child(even) .page-payment-methods__method-image-wrapper {
    margin-left: 0;
  }

  .page-payment-methods__process-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; 
  }

  .page-payment-methods__hero-content {
    padding: 20px;
  }

  .page-payment-methods__main-title {
    font-size: 2.2rem;
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
  }

  .page-payment-methods__section-title {
    font-size: 2rem;
  }

  .page-payment-methods__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-payment-methods__features-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-image-wrapper {
    margin-bottom: 20px;
  }

  .page-payment-methods__method-title {
    font-size: 1.6rem;
  }

  .page-payment-methods__method-description,
  .page-payment-methods__method-list li,
  .page-payment-methods__step-list li,
  .page-payment-methods__feature-description {
    font-size: 0.95rem;
  }

  .page-payment-methods__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-payment-methods__faq-answer {
    padding: 0 20px 15px 20px;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    margin-left: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image and container 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__method-image-wrapper,
  .page-payment-methods__process-step,
  .page-payment-methods__security-features,
  .page-payment-methods__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__methods-section,
  .page-payment-methods__process-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 40px 0;
  }

  .page-payment-methods__feature-icon {
    width: 100% !important; /* Ensure icons are responsive */
    max-width: 200px !important; /* Cap max width for smaller icons */
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8rem;
  }

  .page-payment-methods__section-title {
    font-size: 1.6rem;
  }

  .page-payment-methods__hero-content {
    padding: 15px;
  }
}