/* style/payment-methods.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-font: #FFFF00;
  --body-bg: var(--dark-bg);
}

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

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

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-payment-methods__description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-payment-methods__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 3;
  color: var(--secondary-color);
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: var(--register-btn-bg); /* Custom Register/Login button color */
  color: var(--register-login-font); /* Custom Register/Login font color */
  border-color: var(--register-btn-bg);
}

.page-payment-methods__btn-primary:hover {
  background-color: #a40707; /* Darken by ~10% */
  border-color: #a40707;
}

.page-payment-methods__btn-secondary {
  background-color: var(--login-btn-bg); /* Custom Register/Login button color */
  color: var(--register-login-font); /* Custom Register/Login font color */
  border-color: var(--login-btn-bg);
}

.page-payment-methods__btn-secondary:hover {
  background-color: #a40707; /* Darken by ~10% */
  border-color: #a40707;
}

/* Content Grid */
.page-payment-methods__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

/* Cards */
.page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: var(--primary-color); /* Using brand primary for card titles */
  margin-bottom: 15px;
  text-shadow: none;
}

.page-payment-methods__card p {
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

/* Image Full Width */
.page-payment-methods__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Dark Section Specifics */
.page-payment-methods__dark-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-payment-methods__dark-section .page-payment-methods__description {
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__dark-section .page-payment-methods__card {
  background-color: var(--secondary-color);
  color: #333333; /* Dark text for light card background */
  border-color: rgba(0, 0, 0, 0.1);
}

.page-payment-methods__dark-section .page-payment-methods__card-title {
  color: var(--primary-color);
}

.page-payment-methods__dark-section .page-payment-methods__card p {
  color: #555555;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #005a2e; /* Darken by ~5% */
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--register-login-font); /* Using custom font color for toggle */
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact Section */
.page-payment-methods__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 300px !important; /* Max width for mobile buttons */
    margin: 0 auto;
    padding: 12px 20px;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__description {
    font-size: 0.95em;
  }
  .page-payment-methods__content-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__card {
    padding: 25px;
  }
  .page-payment-methods__image-full-width {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__contact-methods {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  /* Ensure content containers also adapt */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__contact-methods {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Global image responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure image containers are also responsive */
.page-payment-methods__image-wrapper,
.page-payment-methods__img-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile specific overrides for images and content containers */
@media (max-width: 768px) {
  .page-payment-methods img {
    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__faq-list,
  .page-payment-methods__hero-actions,
  .page-payment-methods__content-grid,
  .page-payment-methods__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-payment-methods__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-payment-methods__faq-question,
  .page-payment-methods__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}