/* style/payment-methods.css */

/* Custom properties from color scheme */
:root {
    --page-payment-methods-bg: #08160F;
    --page-payment-methods-card-bg: #11271B;
    --page-payment-methods-text-main: #F2FFF6;
    --page-payment-methods-text-secondary: #A7D9B8;
    --page-payment-methods-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-payment-methods-border: #2E7A4E;
    --page-payment-methods-glow: #57E38D;
    --page-payment-methods-gold: #F2C14E;
    --page-payment-methods-divider: #1E3A2A;
    --page-payment-methods-deep-green: #0A4B2C;
}

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

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

.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--page-payment-methods-deep-green); /* Fallback background if image fails */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-payment-methods__hero-content {
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-payment-methods__main-title {
    color: var(--page-payment-methods-text-main);
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-payment-methods__description {
    font-size: 1.15rem;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 30px;
}

.page-payment-methods__cta-button {
    display: inline-block;
    background: var(--page-payment-methods-button-gradient);
    color: var(--page-payment-methods-text-main); /* White text on green button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__section-title {
    color: var(--page-payment-methods-gold);
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-payment-methods__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-payment-methods-glow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-payment-methods__overview-section,
.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__security-policy,
.page-payment-methods__fees-limits,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
    padding: 60px 0;
}

.page-payment-methods__overview-section p {
    color: var(--page-payment-methods-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
}

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

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

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

.page-payment-methods__method-icon {
    width: 100%; /* Ensure images are not small icons */
    height: auto;
    max-width: 300px; /* Example max-width for method icons */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__method-title {
    color: var(--page-payment-methods-text-main);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-payment-methods__method-card p {
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 15px;
}

.page-payment-methods__method-details {
    list-style: none;
    padding: 0;
    text-align: left;
    color: var(--page-payment-methods-text-secondary);
    font-size: 0.95rem;
}

.page-payment-methods__method-details li {
    margin-bottom: 8px;
}

.page-payment-methods__method-details li strong {
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__subtitle {
    color: var(--page-payment-methods-text-main);
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
}

.page-payment-methods__step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-payment-methods__step-list li {
    background-color: var(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 15px;
    color: var(--page-payment-methods-text-secondary);
    font-size: 1.05rem;
    position: relative;
    padding-left: 60px;
}

.page-payment-methods__step-list li strong {
    color: var(--page-payment-methods-text-main);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.page-payment-methods__step-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--page-payment-methods-glow);
    color: var(--page-payment-methods-deep-green);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

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

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

.page-payment-methods__feature-icon {
    width: 100%;
    max-width: 250px; /* Example max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__feature-title {
    color: var(--page-payment-methods-text-main);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-payment-methods__feature-item p {
    color: var(--page-payment-methods-text-secondary);
}

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

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

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

.page-payment-methods__info-card p {
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-payment-methods__faq-item {
    background-color: var(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-payment-methods-text-main);
    background-color: var(--page-payment-methods-deep-green); /* Slightly darker background for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default summary marker */
}

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

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

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-payment-methods-glow);
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--page-payment-methods-text-secondary);
    line-height: 1.6;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-image {
        max-height: 500px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-payment-methods__description {
        font-size: 1rem;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 0 15px; /* Add padding for mobile containers */
    }

    .page-payment-methods__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

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

    .page-payment-methods__hero-content {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .page-payment-methods p,
    .page-payment-methods li {
      font-size: 16px;
      line-height: 1.6;
    }

    .page-payment-methods__cta-button {
        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: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter on mobile */
    }

    .page-payment-methods__method-icon,
    .page-payment-methods__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure minimum size */
    }

    .page-payment-methods__method-card,
    .page-payment-methods__feature-item,
    .page-payment-methods__info-card,
    .page-payment-methods__faq-item,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-methods,
    .page-payment-methods__withdrawal-methods,
    .page-payment-methods__security-policy,
    .page-payment-methods__fees-limits,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__method-grid,
    .page-payment-methods__security-features,
    .page-payment-methods__info-cards {
        grid-template-columns: 1fr;
    }
}

/* FAQ specific CSS for details tag */
.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    content: '−';
}

/* Ensure images meet minimum size requirements */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No filter on images */
.page-payment-methods img {
    filter: none !important;
}

/* Content area images CSS dimensions */
.page-payment-methods__method-icon,
.page-payment-methods__feature-icon {
    width: 100%; /* Ensure it's not smaller than 200px implicitly */
    height: auto;
    max-width: 400px; /* Example to ensure it's not tiny */
    margin: 0 auto 20px;
    display: block;
}