/* style/payment-methods.css */

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

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

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

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

.page-payment-methods__dark-section {
  background-color: var(--page-payment-methods-bg-color);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, this is for visual spacing */
  background-color: var(--page-payment-methods-bg-color);
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

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

.page-payment-methods__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--page-payment-methods-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-payment-methods__subtitle {
  font-size: 1.2em;
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--page-payment-methods-gold-color);
  border: 2px solid var(--page-payment-methods-gold-color);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--page-payment-methods-gold-color);
  color: var(--page-payment-methods-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-text {
  color: var(--page-payment-methods-gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-payment-methods__btn-text:hover {
  color: var(--page-payment-methods-glow-color);
  text-decoration: underline;
}

/* Section Titles and Descriptions */
.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-payment-methods-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  color: var(--page-payment-methods-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-payment-methods__card {
  background-color: var(--page-payment-methods-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--page-payment-methods-border-color);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--page-payment-methods-deep-green);
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: var(--page-payment-methods-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__card-text {
  font-size: 1em;
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Steps List */
.page-payment-methods__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-payment-methods__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-payment-methods__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: var(--page-payment-methods-btn-gradient);
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-payment-methods__step-content {
  flex-grow: 1;
}

.page-payment-methods__step-title {
  font-size: 1.3em;
  color: var(--page-payment-methods-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__step-content p {
  font-size: 1em;
  color: #555555;
}

.page-payment-methods__step-content p a {
  color: var(--page-payment-methods-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__step-content p a:hover {
  text-decoration: underline;
}

.page-payment-methods__note {
  text-align: center;
  font-size: 0.95em;
  color: #666666;
  margin-top: 30px;
}

.page-payment-methods__note a {
  color: var(--page-payment-methods-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__note a:hover {
  text-decoration: underline;
}

.page-payment-methods__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-payment-methods__feature-item {
  text-align: center;
  background-color: var(--page-payment-methods-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-payment-methods-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2) drop-shadow(0 0 5px var(--page-payment-methods-glow-color));
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-payment-methods__feature-title {
  font-size: 1.4em;
  color: var(--page-payment-methods-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__feature-item p {
  font-size: 1em;
  color: var(--page-payment-methods-text-secondary);
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-payment-methods__faq-item summary {
  list-style: none;
}

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f9f9f9;
  color: var(--page-payment-methods-primary-color);
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #f0f0f0;
}

.page-payment-methods__faq-qtext {
  font-size: 1.1em;
  color: #333333;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-payment-methods-primary-color);
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: #e6ffe6; /* Lighter green when open */
  border-bottom: none;
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-payment-methods__faq-answer p a {
  color: var(--page-payment-methods-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__faq-answer p a:hover {
  text-decoration: underline;
}

/* CTA Section at bottom */
.page-payment-methods__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-payment-methods-deep-green);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__cta-content .page-payment-methods__section-title {
  color: var(--page-payment-methods-gold-color);
}

.page-payment-methods__cta-content .page-payment-methods__section-description {
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 50px;
}

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

  .page-payment-methods__main-title {
    font-size: 3em;
  }

  .page-payment-methods__section-title {
    font-size: 2.2em;
  }

  .page-payment-methods__grid-cards,
  .page-payment-methods__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }
  
  .page-payment-methods__hero-image {
    filter: brightness(0.6);
  }

  .page-payment-methods__hero-content {
    padding: 20px 15px;
  }

  .page-payment-methods__main-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

  .page-payment-methods__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-payment-methods__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-payment-methods__grid-cards,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon {
    height: 200px; /* Adjust for mobile, ensure >= 200px */
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-payment-methods__steps-list {
    padding: 0 15px;
  }

  .page-payment-methods__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-payment-methods__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }

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

  .page-payment-methods__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  
  /* Ensure images within content area are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers with images/buttons/videos are responsive */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Global image size enforcement for content area (not shared components) */
.page-payment-methods img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure CSS width/height matches HTML attributes for CLS */
.page-payment-methods__hero-image {
  width: 100%; /* Overridden by max-width in mobile, but default is 100% of its container */
  height: auto; /* Maintain aspect ratio */
}

.page-payment-methods__card-image,
.page-payment-methods__feature-icon {
  /* HTML width/height attributes will determine base size, CSS ensures responsiveness and minimums */
  max-width: 100%;
  height: auto;
}