/* style/payment-methods.css */

/* Base Styles & Global Resets within page-payment-methods scope */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-payment-methods__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.page-payment-methods__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-payment-methods__list-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-payment-methods__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-payment-methods__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
  max-height: 600px; /* Limit height for hero image */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: var(--background); /* Use background color for content block */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__main-title {
  color: var(--text-main);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  /* H1 font-size rule: no fixed font-size, rely on weight, line-height, etc. */
}

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

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

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

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-payment-methods__btn-secondary:hover {
  background: var(--glow);
  color: var(--background);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-payment-methods__btn-full-width {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Dark Section Styling */
.page-payment-methods__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: var(--text-main);
}

.page-payment-methods__dark-section .page-payment-methods__text-secondary {
  color: var(--text-secondary);
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-payment-methods__faq-question:hover {
  background-color: var(--divider);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow);
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Utility Classes */
.page-payment-methods__text-center {
  text-align: center;
}

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

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

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

  .page-payment-methods__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-payment-methods__hero-content {
    margin-top: -40px; /* Adjust overlap for smaller screens */
    padding: 20px 15px;
  }

  .page-payment-methods__main-title {
    font-size: 2.2rem; /* Adjusted for mobile, still not fixed large */
  }

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

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

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

  /* Buttons container mobile adaptation */
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-payment-methods__list-title {
    font-size: 1.2rem;
  }

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

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

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers mobile adaptation */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important;
  }
}

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

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

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

/* Color Contrast Fixes (as per instructions) */
.page-payment-methods__dark-bg {
  color: #ffffff; /* Deep Green background uses light text */
  background: var(--deep-green);
}

.page-payment-methods__text-secondary {
  color: var(--text-secondary);
}

.page-payment-methods__btn-primary {
  color: #ffffff; /* Ensure button text is white */
}

.page-payment-methods__btn-secondary {
  color: var(--glow); /* Ensure button text uses glow color */
}

/* No filter properties to change image colors */
.page-payment-methods img {
  filter: none;
}