/* style/payment-methods.css */

/* Custom Colors */
:root {
  --mmoo-primary: #11A84E;
  --mmoo-secondary: #22C768;
  --mmoo-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --mmoo-card-bg: #11271B;
  --mmoo-bg: #08160F;
  --mmoo-text-main: #F2FFF6;
  --mmoo-text-secondary: #A7D9B8;
  --mmoo-border: #2E7A4E;
  --mmoo-glow: #57E38D;
  --mmoo-gold: #F2C14E;
  --mmoo-divider: #1E3A2A;
  --mmoo-deep-green: #0A4B2C;
}

/* Base Styles */
.page-payment-methods {
  background-color: var(--mmoo-bg); /* Use specific background color */
  color: var(--mmoo-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--mmoo-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__section-description {
  font-size: 18px;
  color: var(--mmoo-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Color Contrast Classes */
.page-payment-methods__dark-bg {
  background-color: var(--mmoo-bg);
  color: var(--mmoo-text-main);
}

.page-payment-methods__light-bg {
  background-color: #f8f9fa; /* Slightly off-white for contrast */
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, more bottom */
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-payment-methods__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-payment-methods__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--mmoo-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: 20px;
  color: var(--mmoo-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: var(--mmoo-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-payment-methods__btn-secondary:hover {
  background: var(--mmoo-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Why Choose Section */
.page-payment-methods__why-choose,
.page-payment-methods__how-to-deposit,
.page-payment-methods__security-measures,
.page-payment-methods__faq-section {
  padding: 80px 0;
}

.page-payment-methods__popular-methods,
.page-payment-methods__how-to-withdraw,
.page-payment-methods__tips,
.page-payment-methods__cta-bottom {
  padding: 80px 0;
}

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

.page-payment-methods__feature-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-payment-methods__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--mmoo-primary);
  margin-bottom: 15px;
}

.page-payment-methods__feature-text {
  font-size: 16px;
  color: #555555;
}

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

.page-payment-methods__method-card {
  background-color: var(--mmoo-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--mmoo-border);
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__method-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-payment-methods__method-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mmoo-text-main);
  margin: 20px 15px 10px;
}

.page-payment-methods__method-text {
  font-size: 15px;
  color: var(--mmoo-text-secondary);
  padding: 0 15px 20px;
}

.page-payment-methods__card-button {
  display: inline-block;
  background: var(--mmoo-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.page-payment-methods__card-button:hover {
  background: var(--mmoo-primary);
}

/* How-to Sections */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  background-color: var(--mmoo-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--mmoo-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--mmoo-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mmoo-text-main);
  margin-bottom: 15px;
}

.page-payment-methods__step-text {
  font-size: 16px;
  color: var(--mmoo-text-secondary);
}

.page-payment-methods__center-cta {
  text-align: center;
  margin-top: 50px;
}

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

.page-payment-methods__security-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__security-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--mmoo-primary);
  margin-bottom: 15px;
}

.page-payment-methods__security-text {
  font-size: 16px;
  color: #555555;
}

/* Tips Section */
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__tip-item {
  background-color: var(--mmoo-card-bg);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--mmoo-text-main);
  border-left: 5px solid var(--mmoo-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__tip-item strong {
  color: var(--mmoo-primary);
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-payment-methods__faq-question:hover {
  background-color: #e5e5e5;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--mmoo-primary);
  margin-left: 15px;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: var(--mmoo-primary);
  color: #ffffff;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  color: #ffffff;
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-payment-methods__faq-item:not([open]) .page-payment-methods__faq-answer {
  border-top: none; /* Remove border when closed */
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom {
  text-align: center;
  padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-payment-methods__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }
  .page-payment-methods__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body handles header-offset */
    padding-bottom: 30px;
  }

  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 30px;
    max-height: 400px;
  }

  .page-payment-methods__hero-image,
  .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__hero-section,
  .page-payment-methods__why-choose,
  .page-payment-methods__popular-methods,
  .page-payment-methods__how-to-deposit,
  .page-payment-methods__how-to-withdraw,
  .page-payment-methods__security-measures,
  .page-payment-methods__tips,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods__card-button,
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__security-grid {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__why-choose,
  .page-payment-methods__popular-methods,
  .page-payment-methods__how-to-deposit,
  .page-payment-methods__how-to-withdraw,
  .page-payment-methods__security-measures,
  .page-payment-methods__tips,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
    padding: 50px 0;
  }

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

  .page-payment-methods__hero-description {
    font-size: 18px;
  }
  
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-payment-methods__hero-description {
    font-size: 16px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-payment-methods__feature-title,
  .page-payment-methods__method-title,
  .page-payment-methods__step-title,
  .page-payment-methods__security-title {
    font-size: 20px;
  }
  .page-payment-methods__feature-text,
  .page-payment-methods__method-text,
  .page-payment-methods__step-text,
  .page-payment-methods__security-text,
  .page-payment-methods__tip-item {
    font-size: 15px;
  }
}