/* style/payment-methods.css */

/* Custom Colors */
:root {
  --luck8-primary: #11A84E;
  --luck8-secondary: #22C768;
  --luck8-card-bg: #11271B;
  --luck8-background: #08160F;
  --luck8-text-main: #F2FFF6;
  --luck8-text-secondary: #A7D9B8;
  --luck8-border: #2E7A4E;
  --luck8-glow: #57E38D;
  --luck8-gold: #F2C14E;
  --luck8-divider: #1E3A2A;
  --luck8-deep-green: #0A4B2C;
  --luck8-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--luck8-text-main); /* Default text color for dark backgrounds */
  background-color: var(--luck8-background); /* Default background color */
}

/* Sections */
.page-payment-methods__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-payment-methods__dark-bg {
  background-color: var(--luck8-background);
  color: var(--luck8-text-main);
}

.page-payment-methods__light-bg {
  background-color: var(--luck8-text-main);
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-payment-methods__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  padding: 20px;
  z-index: 10;
  text-align: center;
  color: var(--luck8-text-main);
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--luck8-gold);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__description {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--luck8-text-secondary);
}

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

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 180px;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: var(--luck8-button-gradient);
  color: #ffffff;
  border: 2px solid var(--luck8-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--luck8-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-payment-methods__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Section Titles */
.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
  color: var(--luck8-gold);
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: var(--luck8-primary);
}

/* Text Blocks */
.page-payment-methods__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-payment-methods__highlight {
  color: var(--luck8-gold);
  font-weight: bold;
}

.page-payment-methods__light-bg .page-payment-methods__highlight {
  color: var(--luck8-primary);
}

.page-payment-methods__text-block a {
  color: var(--luck8-glow);
  text-decoration: underline;
}

.page-payment-methods__text-block a:hover {
  color: var(--luck8-secondary);
}

/* Grid Layout for Payment Methods */
.page-payment-methods__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

/* Card Styles */
.page-payment-methods__card {
  background-color: var(--luck8-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--luck8-text-main);
  border: 1px solid var(--luck8-border);
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card--light {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: brightness(0.95);
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--luck8-gold);
}

.page-payment-methods__card--light .page-payment-methods__card-title {
  color: var(--luck8-deep-green);
}

.page-payment-methods__card-text {
  font-size: 1rem;
  margin-bottom: 15px;
  flex-grow: 1;
  color: inherit;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.page-payment-methods__card-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: inherit;
}

.page-payment-methods__card-list li:last-child {
  margin-bottom: 0;
}

/* Withdrawal CTA Block */
.page-payment-methods__cta-block {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--luck8-divider);
}

.page-payment-methods__light-bg .page-payment-methods__cta-block {
  border-color: #ddd;
}

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

.page-payment-methods__step-card {
  background-color: var(--luck8-deep-green);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--luck8-text-main);
}

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

.page-payment-methods__step-text {
  font-size: 1rem;
  color: var(--luck8-text-secondary);
}

.page-payment-methods__note {
  margin-top: 40px;
  font-style: italic;
  color: var(--luck8-text-secondary);
}

/* Security Policy */
.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-payment-methods__security-list li {
  background-color: var(--luck8-deep-green);
  border-left: 5px solid var(--luck8-glow);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--luck8-text-main);
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: grayscale(0.1);
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-payment-methods__faq-item {
  background-color: var(--luck8-card-bg);
  border: 1px solid var(--luck8-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-payment-methods__faq-item summary {
  list-style: none;
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--luck8-gold);
  cursor: pointer;
  background-color: var(--luck8-deep-green);
  border-bottom: 1px solid var(--luck8-divider);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: var(--luck8-primary);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  color: var(--luck8-text-main);
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  margin-left: 15px;
  color: var(--luck8-gold);
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  color: var(--luck8-text-main);
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  color: var(--luck8-text-secondary);
  text-align: left;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 10px;
}

.page-payment-methods__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact Support */
.page-payment-methods__contact-support {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    max-width: 90%;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-payment-methods__description {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 40px 15px;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image-wrapper {
    max-height: 400px;
  }

  .page-payment-methods__hero-content {
    position: static;
    transform: none;
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-payment-methods__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .page-payment-methods__btn-primary--large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block {
    font-size: 1rem;
  }

  .page-payment-methods__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__card {
    padding: 25px;
  }

  .page-payment-methods__card-image {
    height: 180px;
  }

  .page-payment-methods__card-title {
    font-size: 1.3rem;
  }

  .page-payment-methods__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__security-list li {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-payment-methods__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-payment-methods__faq-toggle {
    font-size: 1.5rem;
  }

  .page-payment-methods__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  /* Mobile image, video, and container overrides */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__process-steps,
  .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;
  }
  
  .page-payment-methods__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure no filter on images */
.page-payment-methods img {
  filter: none; /* Reset any potential filters */
}

/* Specific filter for hero image for better contrast */
.page-payment-methods__hero-image {
  filter: brightness(0.7); /* Only hero image for text contrast */
}