/* style/payment-methods.css */

/* Custom Colors */
:root {
  --page-payment-methods-bg: #08160F;
  --page-payment-methods-card-bg: #11271B;
  --page-payment-methods-text-main: #F2FFF6;
  --page-payment-methods-text-secondary: #A7D9B8;
  --page-payment-methods-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-payment-methods-border: #2E7A4E;
  --page-payment-methods-glow: #57E38D;
  --page-payment-methods-gold: #F2C14E;
  --page-payment-methods-divider: #1E3A2A;
  --page-payment-methods-deep-green: #0A4B2C;
}

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-bg);
  line-height: 1.6;
}

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

.page-payment-methods__section-title {
  font-size: 2.5rem;
  color: var(--page-payment-methods-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-payment-methods-glow);
  border-radius: 2px;
}

.page-payment-methods__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-payment-methods-text-secondary);
  text-align: justify;
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
  text-align: center;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--page-payment-methods-gold);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-payment-methods__description {
  font-size: 1.2rem;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  background: var(--page-payment-methods-btn-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  border: none;
  cursor: pointer;
}

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

.page-payment-methods__intro-section,
.page-payment-methods__deposit-methods,
.page-payment-methods__how-to-deposit,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__how-to-withdraw,
.page-payment-methods__limits-fees,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__contact-cta {
  padding: 60px 0;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods {
  background-color: var(--page-payment-methods-deep-green);
}

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

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

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__method-icon {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__method-title {
  font-size: 1.8rem;
  color: var(--page-payment-methods-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__method-description {
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-payment-methods__method-details-list li::before {
    content: '✓';
    color: var(--page-payment-methods-glow);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--page-payment-methods-glow);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--page-payment-methods-glow);
  cursor: pointer;
  margin-top: auto; /* Push button to bottom */
}

.page-payment-methods__btn-secondary:hover {
  background: var(--page-payment-methods-glow);
  color: var(--page-payment-methods-bg);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-payment-methods__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  background-color: var(--page-payment-methods-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-payment-methods-border);
  text-align: center;
}

.page-payment-methods__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--page-payment-methods-glow);
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 1.6rem;
  color: var(--page-payment-methods-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__step-description {
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-payment-methods__step-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

.page-payment-methods__call-to-action {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--page-payment-methods-deep-green);
  border-radius: 12px;
  border: 1px solid var(--page-payment-methods-border);
}

.page-payment-methods__call-to-action .page-payment-methods__text-block {
  font-size: 1.2rem;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 30px;
}

.page-payment-methods__important-note {
  background-color: var(--page-payment-methods-card-bg);
  border-left: 5px solid var(--page-payment-methods-gold);
  padding: 25px;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__note-title {
  font-size: 1.5rem;
  color: var(--page-payment-methods-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__note-list {
  list-style: disc;
  margin-left: 25px;
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.page-payment-methods__note-list li {
  margin-bottom: 10px;
}

.page-payment-methods__table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 8px;
  border: 1px solid var(--page-payment-methods-border);
}

.page-payment-methods__transaction-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* Ensure table is readable on smaller screens */
}

.page-payment-methods__transaction-table th,
.page-payment-methods__transaction-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--page-payment-methods-divider);
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__transaction-table th {
  background-color: var(--page-payment-methods-deep-green);
  color: var(--page-payment-methods-text-main);
  font-weight: bold;
  font-size: 1.1rem;
}

.page-payment-methods__transaction-table tr:nth-child(even) {
  background-color: rgba(17, 39, 27, 0.5); /* Slightly darker for contrast */
}

.page-payment-methods__transaction-table tr:hover {
  background-color: rgba(17, 39, 27, 0.8);
}

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

.page-payment-methods__feature-item {
  background-color: var(--page-payment-methods-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-payment-methods-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 100px; /* Ensure icon is not too small */
  min-height: 100px;
}

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

.page-payment-methods__feature-description {
  color: var(--page-payment-methods-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-deep-green);
  border-bottom: 1px solid var(--page-payment-methods-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-payment-methods-glow);
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-payment-methods-text-secondary);
  background-color: var(--page-payment-methods-card-bg);
}

.page-payment-methods__contact-cta {
  text-align: center;
  background-color: var(--page-payment-methods-deep-green);
  padding: 60px 20px;
  border-top: 1px solid var(--page-payment-methods-border);
}

.page-payment-methods__contact-cta .page-payment-methods__section-title {
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__contact-cta .page-payment-methods__text-block {
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__section-title {
    font-size: 2rem;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-payment-methods__description {
    font-size: 1.1rem;
  }
  .page-payment-methods__method-icon {
    width: 150px;
    height: auto;
  }
  .page-payment-methods__feature-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px !important;
  }

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

  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

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

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__step-by-step,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__feature-item {
    padding: 25px;
  }

  .page-payment-methods__method-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.4rem;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }
  
  .page-payment-methods__feature-icon {
    max-width: 100px !important;
    width: 100px !important;
    height: 100px !important;
    display: block !important;
    min-width: 80px !important;
    min-height: 80px !important;
  }

  .page-payment-methods__table-wrapper {
    overflow-x: scroll;
  }

  .page-payment-methods__transaction-table {
    min-width: 600px;
  }

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

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

  .page-payment-methods__call-to-action,
  .page-payment-methods__important-note,
  .page-payment-methods__contact-cta {
    padding: 30px 15px;
  }

  /* Ensure all containers handle overflow */
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__faq-item,
  .page-payment-methods__call-to-action,
  .page-payment-methods__important-note,
  .page-payment-methods__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  
  .page-payment-methods__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
}

@media (max-width: 480px) {
  .page-payment-methods__section-title {
    font-size: 1.5rem;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.2rem;
  }
  .page-payment-methods__faq-question {
    font-size: 1rem;
  }
}