.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
}

.page-payment-methods__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  color: #ffffff;
  z-index: 1;
  position: relative;
  margin-top: -100px; /* Pull content up slightly over the image */
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-payment-methods__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Main color */
  text-align: center;
  margin-bottom: 40px;
}

.page-payment-methods__text-block {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__method-icon {
  width: 100%; /* Ensure image takes full width of its container */
  max-width: 250px; /* Max width for consistency */
  height: auto;
  margin-bottom: 25px;
  object-fit: contain;
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

.page-payment-methods__method-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333; /* Text Main */
  margin-bottom: 15px;
}

.page-payment-methods__method-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-payment-methods__method-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__method-list li {
  font-size: 15px;
  color: #555555;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__method-list li::before {
  content: '✓';
  color: #E53935; /* Main color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935; /* Main color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #E53935; /* Main color */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-secondary:hover {
  background: #E53935; /* Main color */
  color: #ffffff;
}

.page-payment-methods__process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E53935; /* Main color */
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #333333; /* Text Main */
  margin-bottom: 15px;
}

.page-payment-methods__step-description {
  font-size: 16px;
  color: #555555;
}

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

.page-payment-methods__security-section {
  background-color: #F5F7FA;
}

.page-payment-methods__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-payment-methods__security-text {
  flex: 1;
  text-align: left;
}

.page-payment-methods__security-text .page-payment-methods__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-payment-methods__security-text .page-payment-methods__text-block {
  text-align: left;
  margin: 0 0 30px 0;
}

.page-payment-methods__security-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-payment-methods__security-features li {
  font-size: 17px;
  color: #333333; /* Text Main */
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-payment-methods__security-features li::before {
  content: '🔒';
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

.page-payment-methods__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

.page-payment-methods__faq-section {
  background-color: #F5F7FA; /* Background */
}

.page-payment-methods__faq-list {
  margin-top: 40px;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Text Main */
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 40px;
  }
  .page-payment-methods__description {
    font-size: 16px;
  }
  .page-payment-methods__section-title {
    font-size: 30px;
  }
  .page-payment-methods__method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-payment-methods__process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-payment-methods__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__security-text {
    text-align: center;
  }
  .page-payment-methods__security-text .page-payment-methods__section-title,
  .page-payment-methods__security-text .page-payment-methods__text-block {
    text-align: center;
  }
  .page-payment-methods__security-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 768px) {
  /* General container and content padding */
  .page-payment-methods__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
    margin-bottom: 30px;
  }
  .page-payment-methods__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-payment-methods__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-payment-methods__btn-primary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles and Text Blocks */
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-payment-methods__text-block {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Method Grid (Cards) */
  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__method-card {
    padding: 25px;
  }
  .page-payment-methods__method-icon {
    max-width: 200px; /* Adjust max width for mobile */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
  }
  .page-payment-methods__method-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-payment-methods__method-description {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .page-payment-methods__method-list li {
    font-size: 14px;
  }
  .page-payment-methods__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Process Steps */
  .page-payment-methods__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-payment-methods__step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-payment-methods__step-description {
    font-size: 15px;
  }
  .page-payment-methods__cta-bottom {
    margin-top: 40px;
  }

  /* Security Section */
  .page-payment-methods__security-content {
    gap: 30px;
  }
  .page-payment-methods__security-text .page-payment-methods__section-title {
    font-size: 24px;
  }
  .page-payment-methods__security-text .page-payment-methods__text-block {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-payment-methods__security-features li {
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 25px;
  }
  .page-payment-methods__security-features li::before {
    font-size: 18px;
  }
  .page-payment-methods__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  /* FAQ Section */
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question { padding: 15px; }
  .page-payment-methods__faq-qtext { font-size: 15px; }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer { padding: 0 15px 15px; }

  /* Universal Image and Button containers for mobile */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for wrap */
    flex-direction: column; /* Default to column for single buttons or wrap for multiple */
  }
}