/* Custom Colors */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --section-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --light-text: #ffffff;
}

/* Base styles for the page content, assuming body background is light */
.page-phuong-thuc-thanh-toan {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for light background */
  line-height: 1.6;
  background-color: var(--section-bg); /* Use a light background for sections */
}

/* Hero Section */
.page-phuong-thuc-thanh-toan__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-phuong-thuc-thanh-toan__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height of the image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-phuong-thuc-thanh-toan__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover the area, will adjust for mobile */
  display: block;
}

.page-phuong-thuc-thanh-toan__hero-content {
  position: relative; /* Not absolute, to flow below image */
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  color: var(--light-text);
}

.page-phuong-thuc-thanh-toan__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--light-text);
  max-width: 60ch; /* Limit line length for readability */
  margin-left: auto;
  margin-right: auto;
}

.page-phuong-thuc-thanh-toan__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.page-phuong-thuc-thanh-toan__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Styles */
.page-phuong-thuc-thanh-toan__section {
  padding: 60px 0;
}

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

.page-phuong-thuc-thanh-toan__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-phuong-thuc-thanh-toan__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-phuong-thuc-thanh-toan__text-block a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-phuong-thuc-thanh-toan__btn-primary,
.page-phuong-thuc-thanh-toan__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
}

.page-phuong-thuc-thanh-toan__btn-primary {
  background: var(--button-gradient);
  color: var(--light-text);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-phuong-thuc-thanh-toan__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-phuong-thuc-thanh-toan__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-phuong-thuc-thanh-toan__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

/* Method Grid */
.page-phuong-thuc-thanh-toan__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-phuong-thuc-thanh-toan__card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-phuong-thuc-thanh-toan__card p {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__card ul {
  list-style: none;
  padding-left: 0;
  margin-top: auto; /* Push pros/cons to bottom */
}

.page-phuong-thuc-thanh-toan__card li {
  font-size: 15px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__card li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

.page-phuong-thuc-thanh-toan__cta-section {
  text-align: center;
  margin-top: 50px;
}

/* Flex Container for Guide Sections */
.page-phuong-thuc-thanh-toan__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-phuong-thuc-thanh-toan__content-block,
.page-phuong-thuc-thanh-toan__image-block {
  flex: 1;
  min-width: 300px;
}

.page-phuong-thuc-thanh-toan__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-phuong-thuc-thanh-toan__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-phuong-thuc-thanh-toan__ordered-list li {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__flex-container--reverse {
  flex-direction: row-reverse;
}

/* Security Section */
.page-phuong-thuc-thanh-toan__dark-bg {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 80px 0;
}

.page-phuong-thuc-thanh-toan__dark-bg .page-phuong-thuc-thanh-toan__section-title,
.page-phuong-thuc-thanh-toan__dark-bg .page-phuong-thuc-thanh-toan__text-block,
.page-phuong-thuc-thanh-toan__dark-bg .page-phuong-thuc-thanh-toan__feature-title,
.page-phuong-thuc-thanh-toan__dark-bg .page-phuong-thuc-thanh-toan__feature-item p {
  color: var(--light-text);
}

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

.page-phuong-thuc-thanh-toan__feature-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-phuong-thuc-thanh-toan__feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--light-text);
}

.page-phuong-thuc-thanh-toan__image-center {
  text-align: center;
  margin-top: 40px;
}

.page-phuong-thuc-thanh-toan__image-center img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Important Notes Section */
.page-phuong-thuc-thanh-toan__bullet-list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-phuong-thuc-thanh-toan__bullet-list li {
  font-size: 17px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-main);
}

.page-phuong-thuc-thanh-toan__bullet-list li::before {
  content: "✔️"; /* Checkmark icon */
  color: var(--primary-color);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-phuong-thuc-thanh-toan__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-phuong-thuc-thanh-toan__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
details.page-phuong-thuc-thanh-toan__faq-item summary.page-phuong-thuc-thanh-toan__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;
  color: var(--text-main);
}
details.page-phuong-thuc-thanh-toan__faq-item summary.page-phuong-thuc-thanh-toan__faq-question::-webkit-details-marker {
  display: none;
}
details.page-phuong-thuc-thanh-toan__faq-item summary.page-phuong-thuc-thanh-toan__faq-question:hover {
  background: var(--section-bg);
}
.page-phuong-thuc-thanh-toan__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-phuong-thuc-thanh-toan__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-phuong-thuc-thanh-toan__faq-item .page-phuong-thuc-thanh-toan__faq-answer {
  padding: 0 20px 20px;
  background: var(--section-bg);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}
details.page-phuong-thuc-thanh-toan__faq-item .page-phuong-thuc-thanh-toan__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Conclusion Section */
.page-phuong-thuc-thanh-toan__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-phuong-thuc-thanh-toan__cta-final {
  margin-top: 40px;
}

/* Responsive Styles */
/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-phuong-thuc-thanh-toan__hero-description {
    font-size: clamp(15px, 2.2vw, 18px);
  }
  .page-phuong-thuc-thanh-toan__section {
    padding: 50px 0;
  }
  .page-phuong-thuc-thanh-toan__section-title {
    font-size: clamp(22px, 3.5vw, 32px);
    margin-bottom: 30px;
  }
  .page-phuong-thuc-thanh-toan__text-block {
    font-size: 16px;
  }
  .page-phuong-thuc-thanh-toan__method-grid {
    gap: 20px;
  }
  .page-phuong-thuc-thanh-toan__card {
    padding: 25px;
  }
  .page-phuong-thuc-thanh-toan__card-title {
    font-size: 22px;
  }
}