/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Section spacing and container */
.page-payment-methods__section {
  padding: 40px 20px;
  text-align: center;
}

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

/* Color themes */
.page-payment-methods__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.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;
  justify-content: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  color: #ffffff;
  text-align: center;
}

.page-payment-methods__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  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;
}

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

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

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Titles and text blocks */
.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 30px;
  color: inherit;
}

.page-payment-methods__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-payment-methods__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__text-block a:hover {
  color: #1a7bb7;
}

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

.page-payment-methods__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Changed from cover to contain for method logos */
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-payment-methods__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Step List */
.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-payment-methods__step-text {
  font-size: 1rem;
  color: #555555;
}

.page-payment-methods__step-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__step-text a:hover {
  color: #1a7bb7;
}

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

/* Important Notes */
.page-payment-methods__important-notes {
  background-color: #f0f8ff; /* Light blue background */
  border: 1px solid #26A9E0;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__note-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-payment-methods__note-list {
  list-style: disc;
  padding-left: 25px;
  color: #555555;
}

.page-payment-methods__note-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-payment-methods__note-list li strong {
  color: #333333;
}

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

.page-payment-methods__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-payment-methods__feature-icon {
  width: 100px; /* Smaller size for icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-payment-methods__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-payment-methods__feature-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-payment-methods__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #eaf6ff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details */
}

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: #d1eaff;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: none;
}

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

.page-payment-methods__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__faq-answer a:hover {
  color: #1a7bb7;
}

/* CTA Section at bottom */
.page-payment-methods__cta-section {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    max-width: 768px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 30px 10px;
  }

  .page-payment-methods__container {
    padding: 0 10px;
  }

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

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

  .page-payment-methods__main-title {
    font-size: 2rem;
  }

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

  .page-payment-methods__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-payment-methods__text-block {
    font-size: 0.95rem;
  }

  .page-payment-methods__cards-grid,
  .page-payment-methods__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }

  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__step-title {
    font-size: 1.2rem;
  }

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

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

  .page-payment-methods__important-notes {
    padding: 25px;
  }

  .page-payment-methods__note-title {
    font-size: 1.4rem;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__cta-group,
  .page-payment-methods__cta-wrapper,
  .page-payment-methods__faq-list,
  .page-payment-methods__important-notes,
  .page-payment-methods__features-grid,
  .page-payment-methods__cards-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-payment-methods__cta-group {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8rem;
  }

  .page-payment-methods__section-title {
    font-size: 1.6rem;
  }

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