/* style/payment-methods.css */

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

/* body đã có padding-top từ shared.css, không thêm lại tại đây */
.page-payment-methods {
  background-color: var(--color-background); /* Sử dụng màu nền tối từ bảng màu */
  color: var(--color-text-main); /* Chữ màu sáng trên nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn để không bị trùng với padding-top của body */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Đảm bảo hình ảnh không bị che phủ bởi văn bản */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Làm mờ ảnh để chữ dễ đọc hơn */
}

.page-payment-methods__hero-content {
  position: relative; /* Đảm bảo nội dung nằm dưới hình ảnh theo luồng tài liệu */
  z-index: 1; /* Đảm bảo nội dung không bị hình ảnh che phủ nếu có lỗi */
  margin-top: -150px; /* Kéo nội dung lên trên hình ảnh một chút */
  padding: 0 20px;
  max-width: 900px;
  color: var(--color-text-main);
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-payment-methods__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

.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;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-payment-methods__btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.page-payment-methods__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__benefits-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__security-section,
.page-payment-methods__tips-section,
.page-payment-methods__how-to-deposit-section,
.page-payment-methods__how-to-withdraw-section,
.page-payment-methods__faq-section,
.page-payment-methods__support-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
}

.page-payment-methods__benefits-grid,
.page-payment-methods__method-card-grid,
.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__benefit-card,
.page-payment-methods__method-card,
.page-payment-methods__security-item {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-payment-methods__benefit-icon,
.page-payment-methods__method-icon,
.page-payment-methods__security-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  width: 100%;
  color: var(--color-text-secondary);
}

.page-payment-methods__method-details li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.page-payment-methods__method-details li::before {
  content: '•';
  color: var(--color-primary);
  position: absolute;
  left: 0;
}

.page-payment-methods__steps-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-payment-methods__steps-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
}

.page-payment-methods__steps-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-payment-methods__steps-content {
  flex: 1;
  min-width: 400px;
}

.page-payment-methods__step-item {
  background-color: var(--color-card-bg);
  border-left: 4px solid var(--color-primary);
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__step-title {
  font-size: 1.3rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__step-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.page-payment-methods__step-description a {
  color: var(--color-primary);
  text-decoration: none;
}

.page-payment-methods__step-description a:hover {
  text-decoration: underline;
}

.page-payment-methods__tip-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-payment-methods__tip-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-payment-methods__tip-heading {
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__tip-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

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

.page-payment-methods__faq-item {
  background-color: var(--color-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  color: var(--color-text-main);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-left: 15px;
  line-height: 1;
}

.page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.page-payment-methods__support-section {
  text-align: center;
  padding: 80px 0;
}

.page-payment-methods__dark-bg {
  background-color: var(--color-deep-green);
  padding: 60px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
}

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

/* --- Responsive Design --- */

/* Tất cả hình ảnh và container của chúng phải responsive */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ẩn hình ảnh trong các card nhỏ trên mobile để tiết kiệm không gian, nếu cần */
@media (max-width: 768px) {
  .page-payment-methods__benefit-icon,
  .page-payment-methods__method-icon,
  .page-payment-methods__security-icon {
    max-width: 150px; /* Giảm kích thước icon trên mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .page-payment-methods__steps-image-wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-content {
    margin-top: -100px; /* Điều chỉnh lại khoảng cách trên mobile */
  }

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

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

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100%;
    max-width: 300px !important; /* Giới hạn chiều rộng nút trên mobile */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

  .page-payment-methods__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-payment-methods__benefits-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__how-to-deposit-section,
  .page-payment-methods__how-to-withdraw-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__support-section {
    padding: 40px 0;
  }

  .page-payment-methods__steps-wrapper {
    flex-direction: column;
  }

  .page-payment-methods__steps-image-wrapper {
    max-width: 100%;
    order: -1; /* Đẩy hình ảnh lên trên */
  }

  .page-payment-methods__steps-content {
    min-width: unset;
    width: 100%;
  }

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

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

  .page-payment-methods__tip-list {
    grid-template-columns: 1fr;
  }

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

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

  .page-payment-methods__dark-bg {
    padding: 40px 15px;
  }

  /* Responsive images */
  .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-image-wrapper,
  .page-payment-methods__steps-image-wrapper,
  .page-payment-methods__method-card,
  .page-payment-methods__benefit-card,
  .page-payment-methods__security-item,
  .page-payment-methods__tip-item,
  .page-payment-methods__faq-item,
  .page-payment-methods__support-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important;
  }

  /* Buttons specific mobile styles */
  .page-payment-methods__cta-button,
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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; 
  }
}