/* style/payment-methods.css */
/* 
  Page-specific styles for Payment Methods page.
  All class names must follow BEM naming convention: .page-payment-methods__element-name
  Styles are scoped to .page-payment-methods
*/

/* --- Base Styles --- */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Body background is light */
}

.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: 36px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #017439; /* Dark green background */
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let background color show */
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

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

.page-payment-methods__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Red for CTA buttons */
  color: #FFFF00; /* Yellow text for CTA buttons */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__hero-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* --- Buttons --- */
.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #C30808; /* Red for primary buttons */
  color: #FFFF00; /* Yellow text for primary buttons */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-1px);
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff; /* White background for secondary buttons */
  color: #017439; /* Brand primary color for text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439; /* Brand primary color border */
  cursor: pointer;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Introduction Section --- */
.page-payment-methods__introduction .page-payment-methods__section-description {
  margin-bottom: 20px;
  text-align: left; /* Align text left for longer paragraphs */
  max-width: 100%;
}

/* --- Steps / Guide Sections --- */
.page-payment-methods__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-payment-methods__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-payment-methods__step-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__step-item p {
  font-size: 16px;
  color: #555555;
}

.page-payment-methods__image-block {
  text-align: center;
  margin-bottom: 40px;
}

.page-payment-methods__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure image behaves as block for centering */
  margin: 0 auto;
}

.page-payment-methods__cta-button {
  margin-top: 20px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333; /* Dark text for light card background */
}

.page-payment-methods__card-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card p {
  font-size: 16px;
  color: #555555;
}

/* --- Important Notes Section --- */
.page-payment-methods__note-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-payment-methods__note-list li {
  font-size: 17px;
  color: #555555;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__note-list li::before {
  content: "✓";
  color: #017439;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-payment-methods__note-list li strong {
  color: #333333;
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #333333;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: #017439;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 16px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px;
}

/* --- Bottom CTA Section --- */
.page-payment-methods__cta-bottom {
  background-color: #017439; /* Brand primary color for dark background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 42px;
  }
  .page-payment-methods__section-title {
    font-size: 32px;
  }
  .page-payment-methods__hero-button {
    font-size: 18px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-payment-methods__hero-title {
    font-size: 32px;
  }
  .page-payment-methods__hero-description {
    font-size: 18px;
  }
  .page-payment-methods__section-title {
    font-size: 28px;
  }
  .page-payment-methods__section-description {
    font-size: 16px;
    text-align: left; /* Adjust alignment for mobile readability */
  }

  /* Image 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__hero-image-wrapper,
  .page-payment-methods__image-block,
  .page-payment-methods__cta-bottom,
  .page-payment-methods__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-payment-methods__hero-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 16px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 10px 20px;
  }
  .page-payment-methods__note-list li {
    font-size: 16px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 28px;
  }
  .page-payment-methods__hero-description {
    font-size: 16px;
  }
  .page-payment-methods__section-title {
    font-size: 24px;
  }
  .page-payment-methods__hero-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-payment-methods__step-item {
    min-width: unset;
    width: 100%;
  }
  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
  }
}

/* Color contrast enforcement - body background is light #FFFFFF */
.page-payment-methods {
  color: #333333; /* Default dark text */
}

.page-payment-methods__dark-bg {
  background: #017439; /* Brand color */
  color: #ffffff; /* White text on dark background */
}

/* Specific button colors */
.page-payment-methods__btn-primary {
  background: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
}

.page-payment-methods__btn-secondary {
  background: #ffffff;
  color: #017439; /* Green */
  border-color: #017439;
}