/* style/deposit.css */

/* Cấu hình chung cho trang Nạp tiền */
.page-deposit {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Văn bản sáng trên nền tối */
  background-color: #000000; /* Nền body tối từ shared.css */
  padding-top: 120px; /* Khoảng cách cho fixed header trên desktop */
}

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

.page-deposit__title,
.page-deposit__subtitle {
  color: #FFD700; /* Màu vàng cho tiêu đề nổi bật */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-deposit__title {
  font-size: 3.2em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-deposit__subtitle {
  font-size: 2.5em;
  line-height: 1.3;
}

.page-deposit__description,
.page-deposit__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Nút CTA chung */
.page-deposit__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-deposit__btn-primary,
.page-deposit__btn-secondary,
.page-deposit__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-deposit__btn-primary {
  background-color: #FFD700; /* Vàng */
  color: #0A2463; /* Xanh đậm */
  border: 2px solid #FFD700;
}

.page-deposit__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  transform: translateY(-3px);
}

.page-deposit__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Vàng */
  border: 2px solid #FFD700;
}

.page-deposit__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-3px);
}

.page-deposit__btn-tertiary {
  background-color: #0A2463; /* Xanh đậm */
  color: #ffffff;
  border: 1px solid #FFD700;
  font-size: 0.95em;
  padding: 10px 20px;
}

.page-deposit__btn-tertiary:hover {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #0A2463;
}

/* Các phần chính của trang */
.page-deposit__intro-section,
.page-deposit__methods-section,
.page-deposit__step-by-step-section,
.page-deposit__tips-section,
.page-deposit__security-section,
.page-deposit__faq-section,
.page-deposit__cta-bottom-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-deposit__intro-section {
  background: linear-gradient(135deg, #0A2463, #000000);
  padding-top: 150px; /* Đảm bảo nội dung không bị che bởi header cố định */
}

.page-deposit__dark-section {
  background-color: #0A2463; /* Nền xanh đậm */
  color: #ffffff; /* Văn bản trắng */
}

/* Phần phương thức nạp tiền */
.page-deposit__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-deposit__method-card {
  background: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #FFD700;
}

.page-deposit__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-deposit__method-icon img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-deposit__method-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-deposit__method-description {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-deposit__method-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.page-deposit__method-details li {
  color: #f0f0f0;
  margin-bottom: 5px;
  font-size: 0.9em;
}

/* Phần hướng dẫn từng bước */
.page-deposit__steps-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.page-deposit__steps-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-deposit__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 20px 25px;
  border-radius: 8px;
  position: relative;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-deposit__step-number {
  position: absolute;
  top: 20px;
  left: -20px;
  background-color: #FFD700;
  color: #0A2463;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 700;
  border: 2px solid #0A2463;
}

.page-deposit__step-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 30px;
}

.page-deposit__step-description {
  font-size: 0.95em;
  padding-left: 30px;
}

.page-deposit__steps-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFD700;
}

/* Phần mẹo và lưu ý */
.page-deposit__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 50px auto;
}

.page-deposit__tips-list li {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1em;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-deposit__tips-list li strong {
  color: #FFD700;
}

.page-deposit__tips-image {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFD700;
}

/* Phần an toàn và bảo mật */
.page-deposit__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-deposit__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #FFD700;
}

.page-deposit__security-item img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-deposit__security-item h3 {
  color: #FFD700;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-deposit__security-item p {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* Phần FAQ */
.page-deposit__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-deposit__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

/* FAQ mặc định - ẩn câu trả lời */
.page-deposit__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

/* FAQ khi được mở rộng - 🚨 Sử dụng!important và max-height đủ lớn */
.page-deposit__faq-item.active .page-deposit__faq-answer {
  max-height: 2000px !important; /* 🚨 Đảm bảo đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Câu hỏi FAQ */
.page-deposit__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #FFD700;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700;
}

.page-deposit__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #e0b800;
}

.page-deposit__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Tiêu đề câu hỏi */
.page-deposit__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #FFD700;
}

/* Biểu tượng chuyển đổi */
.page-deposit__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-deposit__faq-item.active .page-deposit__faq-toggle {
  transform: rotate(45deg); /* Xoay biểu tượng khi mở */
  color: #ffffff;
}

/* Phần CTA cuối trang */
.page-deposit__cta-bottom-section {
  background: linear-gradient(45deg, #0A2463, #000000);
  padding: 100px 0;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .page-deposit__title {
    font-size: 2.8em;
  }

  .page-deposit__subtitle {
    font-size: 2.2em;
  }

  .page-deposit__methods-grid {
    gap: 20px;
  }

  .page-deposit__steps-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-deposit__steps-image {
    order: -1; /* Đặt hình ảnh lên đầu trên mobile */
  }

  .page-deposit__step-number {
    left: 0;
  }

  .page-deposit__step-title,
  .page-deposit__step-description {
    padding-left: 45px;
  }
}

@media (max-width: 768px) {
  .page-deposit {
    padding-top: 100px !important; /* Khoảng cách cho fixed header trên mobile */
  }

  .page-deposit__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-deposit__title {
    font-size: 2.2em;
  }

  .page-deposit__subtitle {
    font-size: 1.8em;
  }

  .page-deposit__description,
  .page-deposit__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-deposit__intro-section,
  .page-deposit__methods-section,
  .page-deposit__step-by-step-section,
  .page-deposit__tips-section,
  .page-deposit__security-section,
  .page-deposit__faq-section,
  .page-deposit__cta-bottom-section {
    padding: 50px 0;
  }

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

  .page-deposit__btn-primary,
  .page-deposit__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }

  .page-deposit__method-card {
    padding: 25px;
  }

  .page-deposit__method-icon img {
    width: 100px;
  }

  .page-deposit__method-title {
    font-size: 1.4em;
  }

  .page-deposit__steps-list {
    gap: 20px;
  }

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

  .page-deposit__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    top: 15px;
    left: -17px;
  }

  .page-deposit__step-title {
    font-size: 1.2em;
    padding-left: 30px;
  }
  .page-deposit__step-description {
    font-size: 0.9em;
    padding-left: 30px;
  }

  .page-deposit__tips-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  .page-deposit__security-item {
    padding: 25px;
  }

  .page-deposit__security-item img {
    width: 80px;
  }

  .page-deposit__security-item h3 {
    font-size: 1.3em;
  }

  .page-deposit__faq-question {
    padding: 15px 20px;
  }

  .page-deposit__faq-question h3 {
    font-size: 1em;
  }

  .page-deposit__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-deposit__faq-item.active .page-deposit__faq-answer {
    padding: 15px !important;
  }

  /* Tất cả hình ảnh và container trong mobile */
  .page-deposit img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-deposit__intro-section,
  .page-deposit__methods-section,
  .page-deposit__step-by-step-section,
  .page-deposit__tips-section,
  .page-deposit__security-section,
  .page-deposit__faq-section,
  .page-deposit__cta-bottom-section,
  .page-deposit__method-card,
  .page-deposit__step-item,
  .page-deposit__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}