/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Matches body background type */
}

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

.page-payment-methods__dark-bg {
  background-color: #1a1a2e; /* Deep blue from shared.css body */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-payment-methods__light-bg {
  background-color: #f8f9fa; /* Light grey for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-payment-methods__text-center {
  text-align: center;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  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-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
  color: #ffffff;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for emphasis */
  line-height: 1.2;
}

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

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

.page-payment-methods__cta-buttons--center {
  margin-top: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Main brand color */
  border: 2px solid #26A9E0;
}

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

/* Section Titles */
.page-payment-methods__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from section for contrast */
}

.page-payment-methods__subtitle {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

/* General text styles */
.page-payment-methods p {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: inherit;
}

.page-payment-methods strong {
  color: inherit;
}

.page-payment-methods__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: inherit;
}

.page-payment-methods__list li {
  margin-bottom: 10px;
  font-size: 1.0em;
}

.page-payment-methods__list-numbered {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: inherit;
}

.page-payment-methods__list-numbered li {
  margin-bottom: 10px;
  font-size: 1.0em;
}

/* Image specific styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__image-full {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

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

.page-payment-methods__card {
  background-color: #ffffff; /* White background for cards in light section */
  color: #333333; /* Dark text for light card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-payment-methods__dark-bg .page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards in dark section */
  color: #ffffff; /* Light text for dark card background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.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.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color */
}

.page-payment-methods__dark-bg .page-payment-methods__card-title {
  color: #26A9E0;
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff; /* Light background for FAQ items in light section */
  color: #333333; /* Dark text */
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-payment-methods__dark-bg .page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark section */
  color: #ffffff; /* Light text */
  border-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-payment-methods__dark-bg .page-payment-methods__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  color: inherit;
}

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

.page-payment-methods__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.0em;
  color: inherit;
}

/* Details tag specific styling for FAQ */
.page-payment-methods__faq-item summary {
  list-style: none;
}

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

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-payment-methods__dark-bg .page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__subtitle {
    font-size: 1.4em;
  }
  .page-payment-methods__method-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-payment-methods__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-payment-methods__description {
    font-size: 1em;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    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__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-payment-methods__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__subtitle {
    font-size: 1.2em;
  }
  .page-payment-methods p, .page-payment-methods li {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-content {
    padding: 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
  .page-payment-methods__section-title {
    font-size: 1.4em;
  }
  .page-payment-methods__card-title {
    font-size: 1.5em;
  }
}

/* Ensure color contrast on specific elements */
.page-payment-methods h1, .page-payment-methods h2, .page-payment-methods h3, .page-payment-methods h4, .page-payment-methods h5, .page-payment-methods h6 {
    color: inherit; /* Ensure titles adapt to section background */
}

.page-payment-methods__dark-bg h1, .page-payment-methods__dark-bg h2, .page-payment-methods__dark-bg h3, .page-payment-methods__dark-bg h4, .page-payment-methods__dark-bg h5, .page-payment-methods__dark-bg h6 {
    color: #ffffff;
}

.page-payment-methods__light-bg h1, .page-payment-methods__light-bg h2, .page-payment-methods__light-bg h3, .page-payment-methods__light-bg h4, .page-payment-methods__light-bg h5, .page-payment-methods__light-bg h6 {
    color: #333333;
}

/* Override for specific elements if brand color is used on dark background */
.page-payment-methods__main-title,
.page-payment-methods__card-title,
.page-payment-methods__faq-toggle {
    color: #26A9E0; /* Brand color for emphasis, assume good contrast */
}

.page-payment-methods__dark-bg .page-payment-methods__main-title,
.page-payment-methods__dark-bg .page-payment-methods__card-title,
.page-payment-methods__dark-bg .page-payment-methods__faq-toggle {
    color: #26A9E0; /* Ensure brand color stands out on dark backgrounds */
}

.page-payment-methods__light-bg .page-payment-methods__main-title,
.page-payment-methods__light-bg .page-payment-methods__card-title,
.page-payment-methods__light-bg .page-payment-methods__faq-toggle {
    color: #26A9E0;
}