/* style/phuong-thuc-thanh-toan.css */
.page-phuong-thuc-thanh-toan {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
}

.page-phuong-thuc-thanh-toan__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-phuong-thuc-thanh-toan__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-phuong-thuc-thanh-toan__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-phuong-thuc-thanh-toan__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-phuong-thuc-thanh-toan__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 675px; /* Limit hero image height */
}

.page-phuong-thuc-thanh-toan__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: relative;
}

.page-phuong-thuc-thanh-toan__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-phuong-thuc-thanh-toan__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-phuong-thuc-thanh-toan__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-phuong-thuc-thanh-toan__section-title--light {
  color: #ffffff;
}

.page-phuong-thuc-thanh-toan__text-block {
  font-size: 1em;
  text-align: justify;
  margin-bottom: 25px;
  line-height: 1.7;
}

.page-phuong-thuc-thanh-toan__text-block--light {
  color: #f0f0f0;
}

.page-phuong-thuc-thanh-toan__payment-grid,
.page-phuong-thuc-thanh-toan__steps-grid,
.page-phuong-thuc-thanh-toan__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__payment-card,
.page-phuong-thuc-thanh-toan__step-card,
.page-phuong-thuc-thanh-toan__feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-phuong-thuc-thanh-toan__payment-card:hover,
.page-phuong-thuc-thanh-toan__step-card:hover,
.page-phuong-thuc-thanh-toan__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-phuong-thuc-thanh-toan__payment-icon,
.page-phuong-thuc-thanh-toan__step-icon,
.page-phuong-thuc-thanh-toan__feature-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 4px;
  min-width: 200px;
  min-height: 200px;
}

.page-phuong-thuc-thanh-toan__card-title,
.page-phuong-thuc-thanh-toan__step-title,
.page-phuong-thuc-thanh-toan__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-phuong-thuc-thanh-toan__feature-title--light {
  color: #ffffff;
}

.page-phuong-thuc-thanh-toan__card-description,
.page-phuong-thuc-thanh-toan__step-description,
.page-phuong-thuc-thanh-toan__feature-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
}

.page-phuong-thuc-thanh-toan__feature-description--light {
  color: #f0f0f0;
}

.page-phuong-thuc-thanh-toan__notice-box {
  background-color: #f8f8f8;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 4px;
}

.page-phuong-thuc-thanh-toan__notice-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-phuong-thuc-thanh-toan__notice-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #555555;
}

.page-phuong-thuc-thanh-toan__notice-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-phuong-thuc-thanh-toan__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-phuong-thuc-thanh-toan__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
  list-style: none;
}

.page-phuong-thuc-thanh-toan__faq-question::-webkit-details-marker {
  display: none;
}

.page-phuong-thuc-thanh-toan__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-phuong-thuc-thanh-toan__faq-item[open] .page-phuong-thuc-thanh-toan__faq-toggle {
  transform: rotate(45deg);
}

.page-phuong-thuc-thanh-toan__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-phuong-thuc-thanh-toan__cta-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__btn-primary,
.page-phuong-thuc-thanh-toan__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  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-phuong-thuc-thanh-toan__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-phuong-thuc-thanh-toan__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-phuong-thuc-thanh-toan__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-phuong-thuc-thanh-toan__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #017439;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-phuong-thuc-thanh-toan__main-title {
    font-size: 2.5em;
  }
  .page-phuong-thuc-thanh-toan__section-title {
    font-size: 2em;
  }
  .page-phuong-thuc-thanh-toan__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-phuong-thuc-thanh-toan__container {
    padding: 15px;
  }

  .page-phuong-thuc-thanh-toan__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-phuong-thuc-thanh-toan__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-phuong-thuc-thanh-toan__main-title {
    font-size: 2em;
  }

  .page-phuong-thuc-thanh-toan__hero-description {
    font-size: 1em;
  }

  .page-phuong-thuc-thanh-toan__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-phuong-thuc-thanh-toan__payment-grid,
  .page-phuong-thuc-thanh-toan__steps-grid,
  .page-phuong-thuc-thanh-toan__security-features {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-phuong-thuc-thanh-toan__payment-card,
  .page-phuong-thuc-thanh-toan__step-card,
  .page-phuong-thuc-thanh-toan__feature-card {
    padding: 20px;
  }

  .page-phuong-thuc-thanh-toan__card-title,
  .page-phuong-thuc-thanh-toan__step-title,
  .page-phuong-thuc-thanh-toan__feature-title {
    font-size: 1.2em;
  }

  .page-phuong-thuc-thanh-toan__notice-box {
    padding: 20px;
  }

  .page-phuong-thuc-thanh-toan__notice-title {
    font-size: 1.3em;
  }

  .page-phuong-thuc-thanh-toan__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  /* General image responsiveness */
  .page-phuong-thuc-thanh-toan img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to shrink below 200px if container is smaller */
    min-height: unset !important;
  }
  
  /* Ensure content containers don't overflow */
  .page-phuong-thuc-thanh-toan__content-section,
  .page-phuong-thuc-thanh-toan__guide-section,
  .page-phuong-thuc-thanh-toan__security-section,
  .page-phuong-thuc-thanh-toan__faq-section,
  .page-phuong-thuc-thanh-toan__container,
  .page-phuong-thuc-thanh-toan__payment-grid,
  .page-phuong-thuc-thanh-toan__steps-grid,
  .page-phuong-thuc-thanh-toan__security-features {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Button responsiveness */
  .page-phuong-thuc-thanh-toan__btn-primary,
  .page-phuong-thuc-thanh-toan__btn-secondary,
  .page-phuong-thuc-thanh-toan a[class*="button"],
  .page-phuong-thuc-thanh-toan 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;
    margin-bottom: 10px; /* Space out stacked buttons */
  }
  
  .page-phuong-thuc-thanh-toan__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}