/* style/payment-methods.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg-color: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-payment-methods {
  color: var(--text-main-color); /* Body background is dark, so text should be light */
  background-color: var(--background-color);
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px; /* Space for content below image */
}

.page-payment-methods__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for hero image */
  overflow: hidden;
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-payment-methods__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

.page-payment-methods__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-payment-methods__section--intro {
  padding-top: 10px; /* Small top padding for the first content section */
}

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

.page-payment-methods__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-payment-methods__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  color: var(--text-main-color);
}

.page-payment-methods__features-grid,
.page-payment-methods__method-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__feature-card,
.page-payment-methods__method-card,
.page-payment-methods__security-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-payment-methods__feature-icon,
.page-payment-methods__method-logo,
.page-payment-methods__security-icon,
.page-payment-methods__step-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__dark-bg {
  color: #ffffff; /* Deep background, light text */
  background-color: var(--card-bg-color);
}

.page-payment-methods__feature-title,
.page-payment-methods__method-name,
.page-payment-methods__security-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-payment-methods__feature-description,
.page-payment-methods__method-info,
.page-payment-methods__security-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-payment-methods__method-category {
  margin-bottom: 60px;
}

.page-payment-methods__category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-payment-methods__category-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-main-color);
}

.page-payment-methods__method-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-payment-methods__method-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFD36B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main-color);
  text-align: left;
}

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

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

.page-payment-methods__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-payment-methods__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

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

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

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

.page-payment-methods__security-features {
  margin-top: 40px;
}

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

.page-payment-methods__security-item a:hover {
  text-decoration: underline;
}

.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__tips-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main-color);
  text-align: left;
}

.page-payment-methods__tips-list li strong {
  color: var(--secondary-color);
}

.page-payment-methods__tips-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-payment-methods__tips-list li a:hover {
  text-decoration: underline;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: var(--card-bg-color);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px;
}

.page-payment-methods__faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    margin-top: 0;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-bottom: 30px;
  }
  .page-payment-methods__hero-image-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile hero */
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }
  .page-payment-methods__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-payment-methods__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-payment-methods__text-block {
    font-size: 1rem;
  }
  .page-payment-methods__features-grid,
  .page-payment-methods__method-grid,
  .page-payment-methods__security-features,
  .page-payment-methods__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__security-item,
  .page-payment-methods__step-item {
    padding: 20px;
  }
  .page-payment-methods__feature-icon,
  .page-payment-methods__method-logo,
  .page-payment-methods__security-icon,
  .page-payment-methods__step-icon {
    max-width: 80px;
    margin-bottom: 15px;
  }
  .page-payment-methods__feature-title,
  .page-payment-methods__method-name,
  .page-payment-methods__security-title {
    font-size: 1.3rem;
  }
  .page-payment-methods__category-title {
    font-size: 1.6rem;
  }
  .page-payment-methods__tips-list li {
    font-size: 0.95rem;
  }
  .page-payment-methods__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px;
  }
  /* Mobile image and container overflow fix */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__section,
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__security-item,
  .page-payment-methods__step-item,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
  .page-payment-methods__cta-buttons--center {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-image-wrapper {
    padding-bottom: 100%; /* Square aspect ratio for very small screens */
  }
  .page-payment-methods__hero-content {
    padding-top: 10px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
  .page-payment-methods__hero-description {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
}