/* style/payment-methods.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa; /* A slightly off-white for contrast */
  --btn-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(--secondary-color); /* Default body background is white */
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #30baf2 100%); /* Using primary color and a lighter shade */
  color: var(--text-light); /* White text for dark background */
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px; /* Added border-radius for aesthetics */
  overflow: hidden; /* Ensure image corners are rounded */
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-payment-methods__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light); /* White text for contrast */
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light); /* White text for contrast */
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-login-color); /* Using login color for primary CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-payment-methods__cta-button:hover {
  background: #d66b07; /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-payment-methods__section {
  padding: 60px 20px;
}

.page-payment-methods__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text for light background */
}

.page-payment-methods__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light); /* White text for dark background */
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for containers */
}

.page-payment-methods__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from section (dark/light text) */
}

.page-payment-methods__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  text-align: justify;
}

.page-payment-methods__text-block a {
  color: var(--btn-login-color); /* Use login color for links in text */
  text-decoration: underline;
}

.page-payment-methods__text-block a:hover {
  color: #d66b07;
}

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

.page-payment-methods__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark); /* Dark text for white card background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-payment-methods__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color); /* Primary color for card titles */
}

.page-payment-methods__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-payment-methods__btn-primary:hover {
  background: #1f87b3;
}

/* Numbered List */
.page-payment-methods__numbered-list {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
  margin-bottom: 30px;
}

.page-payment-methods__numbered-list li {
  counter-increment: item;
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px;
  font-size: 1.05em;
}

.page-payment-methods__numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: var(--text-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

/* Bullet List */
.page-payment-methods__bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-payment-methods__bullet-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-payment-methods__bullet-list li::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Button Group */
.page-payment-methods__button-group {
  text-align: center;
  margin-top: 40px;
}

/* Contact CTA Section */
.page-payment-methods__contact-cta {
  text-align: center;
  padding: 40px 15px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 10px;
  margin-top: 60px;
}

.page-payment-methods__contact-cta .page-payment-methods__section-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-payment-methods__contact-cta .page-payment-methods__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-payment-methods__contact-cta .page-payment-methods__cta-button {
  background: var(--btn-login-color);
  color: var(--text-light);
}

.page-payment-methods__contact-cta .page-payment-methods__cta-button:hover {
  background: #d66b07;
}

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

/* FAQ container style */
.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* FAQ default state - answer hidden */
.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light); /* Light background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

/* Question style */
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-payment-methods__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-payment-methods__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--primary-color); /* Primary color for FAQ questions */
}

/* Toggle icon */
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--text-dark);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__hero-image {
    margin-bottom: 20px;
    border-radius: 4px;
  }

  .page-payment-methods__hero-title {
    font-size: 1.8em;
    line-height: 1.3;
  }

  .page-payment-methods__hero-description {
    font-size: 0.95em;
  }

  .page-payment-methods__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__section {
    padding: 40px 0; /* Adjust section padding */
  }

  .page-payment-methods__container {
    padding: 0 15px; /* Ensure content has side padding */
  }

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

  .page-payment-methods__text-block,
  .page-payment-methods__numbered-list li,
  .page-payment-methods__bullet-list li {
    font-size: 0.95em;
  }

  .page-payment-methods__grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card img {
     /* Slightly smaller image height for mobile cards */
  }

  .page-payment-methods__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__button-group {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Spacing between stacked buttons */
  }

  /* Mobile image adaptation for all images within .page-payment-methods */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ mobile adaptation */
  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-payment-methods__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }
}