/* style/payment-methods.css */

/* Variables from custom colors */
:root {
  --page-payment-methods-bg: #08160F;
  --page-payment-methods-card-bg: #11271B;
  --page-payment-methods-text-main: #F2FFF6;
  --page-payment-methods-text-secondary: #A7D9B8;
  --page-payment-methods-border: #2E7A4E;
  --page-payment-methods-glow: #57E38D;
  --page-payment-methods-gold: #F2C14E;
  --page-payment-methods-divider: #1E3A2A;
  --page-payment-methods-deep-green: #0A4B2C;
  --page-payment-methods-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-payment-methods {
  color: var(--page-payment-methods-text-main); /* Light text for dark background */
  background-color: var(--page-payment-methods-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-payment-methods-deep-green); /* A slightly different dark background for hero */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Not absolute, to prevent overlapping image */
  z-index: 1;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--page-payment-methods-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.4);
}

.page-payment-methods__description {
  font-size: 1.1rem;
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 30px;
}

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

.page-payment-methods__cta-buttons--center {
  justify-content: center;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-btn-gradient);
  color: var(--page-payment-methods-text-main); /* White text on dark button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--page-payment-methods-glow); /* Green text */
  border: 2px solid var(--page-payment-methods-glow);
}

.page-payment-methods__btn-secondary:hover {
  background-color: var(--page-payment-methods-glow);
  color: var(--page-payment-methods-bg); /* Dark text on green hover */
  transform: translateY(-3px);
}

/* General Section Styling */
.page-payment-methods__section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--page-payment-methods-divider);
}

.page-payment-methods__section:last-of-type {
  border-bottom: none;
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--page-payment-methods-gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-payment-methods__text-block {
  font-size: 1.05rem;
  color: var(--page-payment-methods-text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.page-payment-methods__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

.page-payment-methods__step-card {
  background-color: var(--page-payment-methods-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-payment-methods-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__step-title {
  font-size: 1.4rem;
  color: var(--page-payment-methods-glow);
  margin-bottom: 15px;
}

.page-payment-methods__step-description {
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
}

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

.page-payment-methods__method-item {
  background-color: var(--page-payment-methods-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-payment-methods-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__method-name {
  font-size: 1.5rem;
  color: var(--page-payment-methods-gold);
  margin-bottom: 15px;
  text-align: center;
}

.page-payment-methods__method-description {
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  text-align: center;
}

/* Security Measures */
.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__security-item {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--page-payment-methods-glow);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 1.05rem;
}

.page-payment-methods__security-item strong {
  color: var(--page-payment-methods-gold);
}

/* Tips */
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__tips-item {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--page-payment-methods-gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 1.05rem;
}

.page-payment-methods__tips-item strong {
  color: var(--page-payment-methods-glow);
}

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

.page-payment-methods__faq-item {
  background-color: var(--page-payment-methods-card-bg);
  border: 1px solid var(--page-payment-methods-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}
.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-card-bg);
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--page-payment-methods-divider);
}

.page-payment-methods__faq-question:hover {
  background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  color: var(--page-payment-methods-gold);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-payment-methods-glow);
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  max-height: 0; /* For JS-controlled toggle */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

/* Call to Action Card */
.page-payment-methods__call-to-action .page-payment-methods__card {
  background-color: var(--page-payment-methods-card-bg);
  padding: 50px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 2px solid var(--page-payment-methods-glow);
  margin-top: 60px;
}

.page-payment-methods__call-to-action .page-payment-methods__section-title {
  margin-bottom: 20px;
  color: var(--page-payment-methods-gold);
}

.page-payment-methods__call-to-action .page-payment-methods__text-block {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section {
    padding: 40px 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-payment-methods__description {
    font-size: 1rem;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* Image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Video responsiveness - if any, though not in this specific page */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-payment-methods__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  /* Button responsiveness */
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .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; /* Add some padding to prevent text touching edges */
    padding-right: 15px;
  }
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* General mobile container padding */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .page-payment-methods__text-block,
  .page-payment-methods__description,
  .page-payment-methods__step-description,
  .page-payment-methods__method-description,
  .page-payment-methods__security-item,
  .page-payment-methods__tips-item,
  .page-payment-methods__faq-answer p {
    font-size: 1rem;
  }
  .page-payment-methods__step-title,
  .page-payment-methods__method-name {
    font-size: 1.3rem;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-section {
    padding: 30px 10px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-payment-methods__section {
    padding: 40px 10px;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}