/* style/payment-methods.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

:root {
  --qgwin-primary: #26A9E0;
  --qgwin-secondary: #FFFFFF;
  --qgwin-login-btn: #EA7C07;
  --qgwin-dark-bg-1: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
}

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

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--qgwin-secondary);
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--qgwin-secondary);
}

.page-payment-methods__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--qgwin-secondary);
}

.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: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-payment-methods__btn-primary {
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
  border: 2px solid var(--qgwin-primary);
}

.page-payment-methods__btn-primary:hover {
  background-color: darken(var(--qgwin-primary), 10%);
  border-color: darken(var(--qgwin-primary), 10%);
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--qgwin-secondary);
  color: var(--qgwin-primary);
}

/* General Section Styling */
.page-payment-methods__section {
  padding: 80px 0;
  text-align: center;
}

.page-payment-methods__light-bg {
  background-color: var(--qgwin-secondary);
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__dark-bg {
  background-color: var(--qgwin-dark-bg-1);
  color: var(--qgwin-secondary); /* Light text for dark background */
}

.page-payment-methods__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-payment-methods__text-block {
  font-size: 1rem;
  max-width: 900px;
  margin: 20px auto;
  text-align: left;
  color: inherit;
}

/* Methods Overview */
.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(--qgwin-secondary);
  color: #333333;
  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;
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--qgwin-primary);
}

.page-payment-methods__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

/* How-To Sections */
.page-payment-methods__step-list {
  list-style: none;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
  padding: 0;
}

.page-payment-methods__step-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-payment-methods__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.page-payment-methods__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

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

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

.page-payment-methods__feature-item {
  background-color: var(--qgwin-secondary);
  color: #333333;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-payment-methods__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--qgwin-primary);
}

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

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

.page-payment-methods__faq-item {
  background-color: var(--qgwin-secondary);
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #333333;
  text-align: left;
}

/* Conclusion CTA */
.page-payment-methods__cta-buttons--bottom {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-payment-methods__hero-description {
    font-size: 1.1rem;
  }
  .page-payment-methods__section-title {
    font-size: 2rem;
  }
  .page-payment-methods__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-payment-methods__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin: 0 auto;
  }
  .page-payment-methods__section {
    padding: 50px 0;
  }
  .page-payment-methods__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-payment-methods__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-payment-methods__text-block {
    font-size: 0.95rem;
  }
  .page-payment-methods__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__card-image {
    height: 180px;
  }
  .page-payment-methods__card-title {
    font-size: 1.5rem;
  }
  .page-payment-methods__step-item {
    padding-left: 50px;
  }
  .page-payment-methods__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .page-payment-methods__step-title {
    font-size: 1.3rem;
  }
  .page-payment-methods__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-payment-methods__feature-title {
    font-size: 1.4rem;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-payment-methods__faq-toggle {
    font-size: 1.5rem;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__card,
  .page-payment-methods__feature-item,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !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;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
  }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No CSS filter on images */
.page-payment-methods__hero-image { 
  /* filter: brightness(0.5); is allowed as it's not changing color, but adjusting brightness for readability */
}

/* Important: Content area image CSS dimensions lower bound */
/* All img elements within .page-payment-methods that are not explicitly part of shared components (like header logo, footer icons) */
.page-payment-methods__card-image,
.page-payment-methods__feature-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Adjustments for specific image uses where size might be smaller but still > 200px */
.page-payment-methods__feature-icon {
  width: 200px; /* Example, ensuring min 200px */
  height: 200px;
  object-fit: contain;
}

/* Override for hero image to fill container while maintaining aspect ratio, but not below 200px */
.page-payment-methods__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure contrast for text on various backgrounds */
/* Default light text on dark-bg sections handled by .page-payment-methods__dark-bg */
/* Default dark text on light-bg sections handled by .page-payment-methods__light-bg */

/* Specific contrast adjustments if needed */
.page-payment-methods__card .page-payment-methods__btn-secondary {
  color: var(--qgwin-primary);
  border-color: var(--qgwin-primary);
}
.page-payment-methods__card .page-payment-methods__btn-secondary:hover {
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
}

/* General text within light background sections */
.page-payment-methods__light-bg p,
.page-payment-methods__light-bg li {
  color: #333333;
}

/* General text within dark background sections */
.page-payment-methods__dark-bg p,
.page-payment-methods__dark-bg li {
  color: #ffffff;
}