/* style/payment-methods.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #1a1a1a; /* Assuming shared.css body background might be dark */
  --button-login-color: #EA7C07;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default light background */
}

/* Adjust main content background and text color based on body background in shared.css */
/* If body background is dark, this section will override with light text */
.page-payment-methods__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-payment-methods__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-light);
  /* font-size: clamp(2.5rem, 5vw, 3.5rem); */ /* Using clamp for responsive font size, but avoiding fixed large values */
}

.page-payment-methods__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  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(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

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

.page-payment-methods__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-payment-methods__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

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

.page-payment-methods__method-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-payment-methods__method-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-payment-methods__method-description {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-payment-methods__method-features {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  width: 100%;
}

.page-payment-methods__method-features li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-payment-methods__method-features li strong {
  color: var(--primary-color);
}

.page-payment-methods__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-payment-methods__withdrawal-steps {
  margin-top: 30px;
}

.page-payment-methods__step-card {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-payment-methods__step-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-payment-methods__step-title {
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-payment-methods__step-description {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-payment-methods__step-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-payment-methods__step-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-payment-methods__step-list li strong {
  color: var(--primary-color);
}

.page-payment-methods__step-info {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-payment-methods__step-info li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-payment-methods__step-info li strong {
  color: var(--primary-color);
}

.page-payment-methods__bullet-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-top: 20px;
}

.page-payment-methods__bullet-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-payment-methods__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-payment-methods__security-features li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.page-payment-methods__security-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-right: 10px;
}

.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  background-color: var(--background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

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

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

.page-payment-methods__cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-payment-methods__cta-content {
  max-width: 800px;
}

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

  .page-payment-methods__main-title {
    font-size: 2.8em;
  }

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

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

  .page-payment-methods__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

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

  .page-payment-methods__main-title {
    font-size: 2.5em; /* Adjusted for mobile */
  }

  .page-payment-methods__description {
    font-size: 1em;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-payment-methods__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

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

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

  .page-payment-methods__method-card,
  .page-payment-methods__step-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__step-icon {
    width: 180px;
    height: 120px;
  }

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

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

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

  .page-payment-methods__cta-section {
    padding: 40px 15px;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers */
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* All sections and containers */
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed, example) */
/* .page-payment-methods__contrast-fix { */
/*   background: #ffffff !important; */
/*   color: #333333 !important; */
/*   border: 1px solid #e0e0e0 !important; */
/* } */

/* .page-payment-methods__text-contrast-fix { */
/*   color: #333333 !important; */
/*   text-shadow: none !important; */
/* } */