/* style/payment-methods.css */

/* --- Color Variables (from custom palette) --- */
:root {
  --main-color: #11A84E;
  --aux-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

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

.page-payment-methods__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Ensure no horizontal overflow */
}

.page-payment-methods__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive H2 font size */
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background);
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure images are not too small */
}

.page-payment-methods__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 font size with clamp */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
}

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

/* --- Buttons --- */
.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit width for button group */
  margin: 0 auto;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-payment-methods__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Text Main */
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--aux-color); /* A lighter green from the gradient */
  border: 2px solid var(--aux-color);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--aux-color);
  color: var(--text-main);
}

/* --- Dark Section --- */
.page-payment-methods__dark-section {
  background-color: var(--background); /* Deep green background */
  color: var(--text-main); /* Light text on dark background */
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: var(--text-main);
}

.page-payment-methods__dark-section .page-payment-methods__text-block {
  color: var(--text-secondary);
}

/* --- Grid Layout for Methods/Features --- */
.page-payment-methods__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__card {
  background-color: var(--card-bg); /* Darker green for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
  border: 1px solid var(--border);
}

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

.page-payment-methods__card-image {
  width: 100%;
  max-width: 250px; /* Constrain image width within card */
  height: auto;
  min-height: 200px; /* Enforce minimum height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-payment-methods__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-payment-methods__card-text {
  font-size: 16px;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to grow and push to bottom if needed */
}

/* --- Feature List --- */
.page-payment-methods__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
}

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

.page-payment-methods__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold); /* Use gold for feature titles */
  margin-bottom: 15px;
}

.page-payment-methods__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green); /* Slightly different background for question */
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-question {
  border-bottom-color: transparent; /* Hide border when open */
}

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

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

.page-payment-methods__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-payment-methods__faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- Final CTA Section --- */
.page-payment-methods__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* Use a deep green background for CTA */
  text-align: center;
}

.page-payment-methods__cta-container .page-payment-methods__section-title {
  color: var(--text-main);
  margin-bottom: 25px;
}

.page-payment-methods__cta-container .page-payment-methods__text-block {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-payment-methods__section {
    padding: 50px 0;
  }
  .page-payment-methods__hero-section {
    padding-bottom: 50px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-payment-methods__subtitle {
    font-size: 18px;
  }
  .page-payment-methods__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-payment-methods__card-title,
  .page-payment-methods__feature-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 40px 0 !important;
  }
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px !important;
  }
  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 30px !important;
  }
  .page-payment-methods__hero-content {
    padding: 0 15px !important;
  }
  .page-payment-methods__main-title {
    font-size: clamp(28px, 8vw, 40px) !important;
    margin-bottom: 15px !important;
  }
  .page-payment-methods__subtitle {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
  .page-payment-methods__section-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    margin-bottom: 30px !important;
  }
  .page-payment-methods__text-block {
    font-size: 15px !important;
    margin-bottom: 15px !important;
  }

  /* Image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__hero-image {
    min-height: 250px !important;
  }

  .page-payment-methods__card-image {
    max-width: 100% !important;
    min-height: 180px !important;
  }

  /* Containers for images and other content */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__cta-container,
  .page-payment-methods__faq-item,
  .page-payment-methods__grid-layout,
  .page-payment-methods__feature-list,
  .page-payment-methods__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Button responsiveness */
  .page-payment-methods__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }

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

  .page-payment-methods__card {
    padding: 25px !important;
  }
  .page-payment-methods__card-title,
  .page-payment-methods__feature-title {
    font-size: 18px !important;
  }
  .page-payment-methods__card-text,
  .page-payment-methods__feature-description {
    font-size: 15px !important;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px !important;
    font-size: 15px !important;
  }
}