/* style/payment-methods.css */

/* Base styles for the page, ensuring text is visible on dark body background */
.page-payment-methods {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  overflow: hidden;
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-payment-methods__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-guide,
.page-payment-methods__limits-fees,
.page-payment-methods__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background to match body */
  color: #ffffff;
}

.page-payment-methods__dark-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color section */
  color: #ffffff;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-payment-methods__note {
  font-style: italic;
  font-size: 0.9em;
  color: #cccccc;
  margin-top: 30px;
  text-align: center;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin: 0 10px;
}

.page-payment-methods__btn-primary:hover {
  background-color: #ff9900;
  border-color: #ff9900;
}

.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-payment-methods__method-card,
.page-payment-methods__step-card,
.page-payment-methods__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff; /* White background for light cards */
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__method-card:hover,
.page-payment-methods__step-card:hover,
.page-payment-methods__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-image,
.page-payment-methods__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-payment-methods__card-title,
.page-payment-methods__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-payment-methods__card-description,
.page-payment-methods__feature-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: inherit;
}

.page-payment-methods__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
  color: inherit;
}

.page-payment-methods__feature-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  color: inherit;
}

.page-payment-methods__feature-list li::before {
  content: '✓';
  color: #26A9E0; /* Brand color checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

/* Info Table */
.page-payment-methods__info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-payment-methods__table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-payment-methods__table-row:last-child {
  border-bottom: none;
}

.page-payment-methods__table-header {
  background-color: #26A9E0; /* Brand color header */
  font-weight: 700;
  color: #ffffff;
}

.page-payment-methods__table-cell {
  padding: 5px 10px;
  word-break: break-word;
  color: inherit;
}

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

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px; /* Large enough for content */
  padding-bottom: 20px;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-payment-methods__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #f0f0f0;
}

.page-payment-methods__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Details element specific styling */
details.page-payment-methods__faq-item > summary {
  list-style: none;
}

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

details.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
  max-height: none; /* Allow content to dictate height when open */
  padding-bottom: 20px;
}

.page-payment-methods__mt-4 {
  margin-top: 30px;
}

/* Utility for spacing */
.page-payment-methods__space-y-4 > *:not(:last-child) {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section {
    padding: 40px 20px;
  }

  .page-payment-methods__hero-content {
    max-width: 700px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__withdrawal-guide,
  .page-payment-methods__limits-fees,
  .page-payment-methods__cta-section,
  .page-payment-methods__dark-section {
    padding: 60px 0;
  }

  .page-payment-methods__table-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .page-payment-methods__table-header {
    display: none; /* Hide header on smaller screens if columns stack */
  }

  .page-payment-methods__table-row {
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-payment-methods__table-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
  }

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

  .page-payment-methods__table-cell::before {
    content: attr(data-label) ': ';
    font-weight: bold;
    color: #26A9E0;
    display: block;
  }
}

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

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

  .page-payment-methods__hero-image,
  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__info-table,
  .page-payment-methods__faq-item {
    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;
  }

  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px; /* Add vertical spacing for stacked buttons */
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 0; /* Gap handled by individual button margin-bottom */
  }

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

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

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

  .page-payment-methods__table-row {
    grid-template-columns: 1fr; /* Stack cells vertically */
  }

  .page-payment-methods__table-cell::before {
    content: attr(data-label) ': ';
    font-weight: bold;
    color: #26A9E0;
    display: block;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 0.95em;
    padding: 12px 20px;
  }
}