/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color from custom palette */
  background-color: var(--background, #0A0A0A); /* Default background color from custom palette */
}

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

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

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-main, #FFF6D6);
}

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

.page-payment-methods__hero-image {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
  max-height: 600px;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image for visual hierarchy */
  padding: 40px;
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: center;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--primary-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Ensure contrast with light gradient */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

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

.page-payment-methods__feature-card {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #3A2A12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 1.5rem;
  color: var(--secondary-color, #FFD36B);
  margin-bottom: 10px;
}

.page-payment-methods__feature-text {
  color: var(--text-main, #FFF6D6);
}

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

.page-payment-methods__method-card {
  background: var(--card-bg, #111111);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #3A2A12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__method-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-payment-methods__method-title {
  font-size: 1.4rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-payment-methods__method-text {
  color: var(--text-main, #FFF6D6);
}

/* How-To List */
.page-payment-methods__how-to-title {
  font-size: 1.8rem;
  color: var(--secondary-color, #FFD36B);
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: left;
}

.page-payment-methods__how-to-list {
  list-style-type: decimal;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding-left: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-payment-methods__how-to-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Transaction Limits Table */
.page-payment-methods__info-table {
  width: 100%;
  overflow-x: auto; /* Enable horizontal scrolling for small screens */
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
}

.page-payment-methods__info-table > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
}

.page-payment-methods__table-header {
  background: var(--primary-color, #F2C14E);
  color: #111111; /* Dark text for light background */
  font-weight: bold;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.page-payment-methods__table-header .page-payment-methods__table-cell {
    padding: 15px 10px;
}

.page-payment-methods__table-row {
  background: var(--card-bg, #111111);
}

.page-payment-methods__table-row:nth-child(even) {
  background: rgba(17, 17, 17, 0.8); /* Slightly different shade for readability */
}

.page-payment-methods__table-cell {
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid var(--border-color, #3A2A12);
  border-bottom: 1px solid var(--border-color, #3A2A12);
  color: var(--text-main, #FFF6D6);
  font-size: 0.95rem;
}

.page-payment-methods__table-cell:last-child {
  border-right: none;
}

.page-payment-methods__info-table > div:last-child > .page-payment-methods__table-cell {
    border-bottom: none;
}

.page-payment-methods__disclaimer {
  font-size: 0.9rem;
  color: var(--text-main, #FFF6D6);
  margin-top: 20px;
}

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

.page-payment-methods__security-item {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #3A2A12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__security-title {
  font-size: 1.5rem;
  color: var(--secondary-color, #FFD36B);
  margin-bottom: 10px;
}

.page-payment-methods__security-text {
  color: var(--text-main, #FFF6D6);
}

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

.page-payment-methods__faq-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--card-bg, #111111);
  color: var(--primary-color, #F2C14E);
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-payment-methods__faq-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color, #F2C14E);
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color, #FFD36B);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main, #FFF6D6);
  background: rgba(17, 17, 17, 0.9); /* Slightly darker for answer content */
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

/* Contact CTA */
.page-payment-methods__contact-cta {
  padding: 80px 0;
  background: var(--primary-color, #F2C14E);
  color: #111111; /* Dark text for light background */
}

.page-payment-methods__contact-cta .page-payment-methods__section-title,
.page-payment-methods__contact-cta .page-payment-methods__section-description {
  color: #111111;
}

.page-payment-methods__contact-cta .page-payment-methods__cta-button {
  background: var(--card-bg, #111111);
  color: var(--primary-color, #F2C14E);
}

.page-payment-methods__contact-cta .page-payment-methods__cta-button:hover {
  background: #3A2A12;
  box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

/* Utility classes */
.page-payment-methods__mt-20 {
  margin-top: 20px;
}

.page-payment-methods__dark-bg {
  background-color: var(--background, #0A0A0A);
}

.page-payment-methods__card {
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-payment-methods__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image {
    max-height: 400px;
  }

  .page-payment-methods__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 20px;
    max-width: 95%;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

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

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

  .page-payment-methods__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__how-to-list {
    padding-left: 25px;
  }

  .page-payment-methods__info-table > div {
    grid-template-columns: repeat(2, 1fr); /* Stack for better readability on mobile */
  }
  .page-payment-methods__table-header,
  .page-payment-methods__table-row {
    display: flex;
    flex-direction: column;
  }
  .page-payment-methods__table-cell {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--border-color, #3A2A12);
  }
  .page-payment-methods__table-header .page-payment-methods__table-cell {
    background: var(--primary-color, #F2C14E);
    color: #111111;
  }
  .page-payment-methods__info-table > div:last-child > .page-payment-methods__table-cell:last-child {
    border-bottom: none;
  }

  /* Force responsive images and containers */
  .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-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive styles */
  .page-payment-methods__cta-button {
    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: 1.1rem;
  }

  .page-payment-methods__faq-title {
    font-size: 1.1rem;
  }

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

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

@media (max-width: 480px) {
  .page-payment-methods__hero-content {
    margin-top: -60px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-payment-methods__cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}