/* style/payment-methods.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color-page: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color-page);
}

.page-payment-methods__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

/* HERO Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
  background: var(--primary-color);
  color: #ffffff;
  overflow: hidden;
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
  order: 1;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  order: 2;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-payment-methods__description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-payment-methods__intro-section {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

/* Methods Section */
.page-payment-methods__methods-section {
  background-color: var(--background-color-page);
}

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

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

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

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.page-payment-methods__card-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-payment-methods__card-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-main-color);
}

.page-payment-methods__list-icon {
  color: #28a745; /* Green checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-payment-methods__cta-group {
  margin-top: 50px;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Guide Section */
.page-payment-methods__guide-section {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__guide-item {
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__guide-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-payment-methods__guide-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-payment-methods__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  flex-grow: 1;
}

.page-payment-methods__guide-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-payment-methods__list-number {
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  margin-top: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-payment-methods__security-section {
  background: var(--primary-color);
  color: #ffffff;
}

.page-payment-methods__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-payment-methods__security-text {
  flex: 1;
}

.page-payment-methods__security-text .page-payment-methods__text-block {
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.page-payment-methods__security-image {
  flex-shrink: 0;
  width: 45%;
}

.page-payment-methods__security-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: var(--background-color-page);
}

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

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f8f8f8;
}

.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

details.page-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 20px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
}

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

/* Bottom CTA Section */
.page-payment-methods__cta-bottom-section {
  background: var(--button-gradient);
  color: #ffffff;
  padding: 80px 20px;
}

.page-payment-methods__cta-bottom-content {
  max-width: 900px;
  text-align: center;
}

.page-payment-methods__cta-bottom-content .page-payment-methods__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-payment-methods__cta-bottom-content .page-payment-methods__text-block {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-payment-methods__hero-section {
    padding: 50px 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-payment-methods__description {
    font-size: 1.1rem;
  }

  .page-payment-methods__section-title {
    font-size: 30px;
  }

  .page-payment-methods__text-block {
    font-size: 17px;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-payment-methods__security-image {
    width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-image img {
    border-radius: 4px;
  }

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

  .page-payment-methods__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-payment-methods__cta-button,
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px;
  }

  .page-payment-methods__section {
    padding: 40px 15px;
  }

  .page-payment-methods__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-payment-methods__text-block {
    font-size: 16px;
  }

  .page-payment-methods__card,
  .page-payment-methods__guide-item {
    padding: 20px;
    text-align: center;
    align-items: center;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__guide-image {
    height: 180px;
    margin-bottom: 20px;
  }

  .page-payment-methods__card-title,
  .page-payment-methods__guide-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-payment-methods__card-description,
  .page-payment-methods__card-list li,
  .page-payment-methods__guide-list li {
    font-size: 15px;
    text-align: center;
  }

  .page-payment-methods__card-list,
  .page-payment-methods__guide-list {
    text-align: left;
    width: 100%;
  }

  .page-payment-methods__security-image {
    width: 100%;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }

  .page-payment-methods__faq-qtext {
    font-size: 16px;
  }

  .page-payment-methods__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  details.page-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }

  .page-payment-methods__cta-bottom-section {
    padding: 60px 15px;
  }
  
  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}