/* style/payment-methods.css */

:root {
  --mm999-primary-color: #017439;
  --mm999-secondary-color: #FFFFFF;
  --mm999-register-button-color: #C30808;
  --mm999-login-button-color: #C30808;
  --mm999-background-color: #FFFFFF;
  --mm999-register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--mm999-background-color);
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  background-color: var(--mm999-primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--mm999-secondary-color);
}

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-payment-methods__btn-primary {
  background-color: var(--mm999-register-button-color);
  color: var(--mm999-register-login-font-color);
  border: 2px solid var(--mm999-register-button-color);
}

.page-payment-methods__btn-primary:hover {
  background-color: #a30707;
  border-color: #a30707;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--mm999-secondary-color);
  color: var(--mm999-primary-color);
}

/* Section Styling */
.page-payment-methods__overview-section,
.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__guide-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom {
  padding: 60px 0;
}

.page-payment-methods__light-bg {
  background-color: var(--mm999-background-color);
  color: var(--text-dark);
}

.page-payment-methods__dark-bg {
  background-color: var(--mm999-primary-color);
  color: var(--text-light);
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-payment-methods__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Feature List */
.page-payment-methods__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-payment-methods__feature-item {
  text-align: center;
  background-color: var(--mm999-secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-payment-methods__feature-heading {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--mm999-primary-color);
}

/* Method Grid (Deposit/Withdrawal) */
.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  background-color: var(--mm999-secondary-color);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-payment-methods__method-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-payment-methods__method-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--mm999-primary-color);
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  width: 100%;
  max-width: 350px;
}

.page-payment-methods__method-details li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-payment-methods__method-card .page-payment-methods__btn-primary {
  margin-top: auto;
  width: auto;
  min-width: 180px;
}

/* Guide Section Steps */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  background-color: var(--mm999-secondary-color);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-payment-methods__step-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-payment-methods__step-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--mm999-primary-color);
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-payment-methods__faq-item {
  background-color: var(--mm999-secondary-color);
  color: var(--text-dark);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mm999-primary-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  content: '−';
}

/* Bottom CTA */
.page-payment-methods__cta-bottom .page-payment-methods__section-title,
.page-payment-methods__cta-bottom .page-payment-methods__text-block {
  color: var(--text-light);
}

/* Global image settings to prevent small icons and ensure responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__container {
    padding: 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-payment-methods__feature-list,
  .page-payment-methods__method-grid,
  .page-payment-methods__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .page-payment-methods__text-block {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-payment-methods__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    max-height: none !important;
    aspect-ratio: unset !important;
  }

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

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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: 12px 20px;
    font-size: 1rem;
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__guide-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
    padding: 40px 0;
  }

  .page-payment-methods__container,
  .page-payment-methods__feature-item,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__feature-list,
  .page-payment-methods__method-grid,
  .page-payment-methods__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-image,
  .page-payment-methods__step-image {
    height: 250px;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

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

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

  .page-payment-methods__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  /* General image responsiveness for content areas */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__method-details {
    width: 100%;
    max-width: unset;
  }
}