/* style/payment-methods.css */

/* --- Base Styles & Variables --- */
:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-text-color-dark: #333333;
  --page-text-color-light: #ffffff;
  --page-background-dark: #0a0a0a; /* Inherited from body via shared.css */
  --page-login-color: #EA7C07;
}

.page-payment-methods {
  background-color: var(--page-background-dark); /* Ensure consistency with body background */
  color: var(--page-text-color-light); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

.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.5em;
  color: var(--page-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-text-color-light);
}

/* --- Hero Section --- */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-payment-methods__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-secondary-color);
  max-width: 800px;
  padding: 20px;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--page-secondary-color);
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-secondary-color);
}

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

/* --- Buttons --- */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-payment-methods__btn-primary:hover {
  background-color: #1a8ac7; /* Slightly darker primary */
  border-color: #1a8ac7;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
}

/* --- Introduction Section --- */
.page-payment-methods__introduction-section {
  padding: 60px 0;
  background-color: var(--page-background-dark);
}

/* --- Options Section (Cards) --- */
.page-payment-methods__options-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

.page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white over dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-text-color-light);
}

.page-payment-methods__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistent card image sizes */
  object-fit: contain; /* Ensure image fits without cropping */
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--page-primary-color);
  font-weight: bold;
}

.page-payment-methods__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-text-color-light);
}

/* --- Withdrawal Section --- */
.page-payment-methods__withdrawal-section {
  padding: 60px 0;
  background-color: var(--page-background-dark);
}

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

.page-payment-methods__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--page-text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__step-description {
  font-size: 1em;
  color: var(--page-text-color-light);
}

.page-payment-methods__withdrawal-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* --- Security Section --- */
.page-payment-methods__security-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-payment-methods__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-text-color-light);
}

.page-payment-methods__feature-icon {
  max-width: 100%;
  height: 180px; /* Fixed height for consistent icon sizes */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  color: var(--page-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__feature-description {
  font-size: 1em;
  color: var(--page-text-color-light);
}

/* --- Tips Section --- */
.page-payment-methods__tips-section {
  padding: 60px 0;
  background-color: var(--page-background-dark);
}

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

.page-payment-methods__tip-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--page-primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--page-text-color-light);
}

.page-payment-methods__tip-item strong {
  color: var(--page-primary-color);
}

/* --- FAQ Section --- */
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-primary-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-secondary-color);
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-text-color-light);
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- CTA Section --- */
.page-payment-methods__cta-section {
  padding: 80px 0;
  background-color: var(--page-primary-color);
  text-align: center;
  color: var(--page-secondary-color);
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: var(--page-secondary-color);
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
  color: var(--page-secondary-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    height: 500px;
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__card-description,
  .page-payment-methods__step-description,
  .page-payment-methods__feature-description,
  .page-payment-methods__tip-item,
  .page-payment-methods__faq-answer p {
    font-size: 0.95em;
  }

  /* Images responsive on mobile */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon {
    height: auto !important; /* Allow height to adjust naturally */
    max-height: 200px; /* Cap max height for smaller screens */
    object-fit: contain;
  }
  .page-payment-methods__withdrawal-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Containers for mobile overflow prevention */
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction-section,
  .page-payment-methods__options-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section,
  .page-payment-methods__options-grid,
  .page-payment-methods__steps,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for hero to respect header offset */
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Adjust card padding for mobile */
  .page-payment-methods__card,
  .page-payment-methods__step-item,
  .page-payment-methods__feature-item,
  .page-payment-methods__faq-item {
    padding: 20px;
  }

  .page-payment-methods__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 0.9em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__card-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.3em;
  }
  .page-payment-methods__faq-item summary {
    font-size: 1em;
  }
}