/* style/payment-methods.css */

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

/* Base styles for the page content */
.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--hl8-text-main); /* Default text color for the main content area */
    background-color: var(--hl8-background); /* Overall page background */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--hl8-deep-green); /* Fallback background for hero */
}

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

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-payment-methods__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
    color: var(--hl8-text-main);
}

.page-payment-methods__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--hl8-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__description-text {
    font-size: 1.1em;
    color: var(--hl8-text-secondary);
    margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px;
    margin: 0 auto;
}

.page-payment-methods__cta-buttons--center {
    margin-top: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background: var(--hl8-button-gradient);
    color: var(--hl8-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-payment-methods__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
    transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--hl8-gold);
    border: 2px solid var(--hl8-gold);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-payment-methods__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    color: var(--hl8-text-main);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.3);
    transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-payment-methods__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--hl8-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-payment-methods__section-description {
    font-size: 1em;
    color: var(--hl8-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Intro Section */
.page-payment-methods__intro-section {
    padding: 60px 0;
    background-color: var(--hl8-deep-green);
}

.page-payment-methods__dark-section {
    background-color: var(--hl8-deep-green);
    color: var(--hl8-text-main);
}

/* Methods Section */
.page-payment-methods__methods-section {
    padding: 60px 0;
    background-color: var(--hl8-background);
}

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

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

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

.page-payment-methods__method-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Ensure images are not too wide */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 150px; /* Adjusted to maintain aspect ratio with min-width */
}

.page-payment-methods__method-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--hl8-gold);
    margin-bottom: 10px;
}

.page-payment-methods__method-description {
    font-size: 0.95em;
    color: var(--hl8-text-secondary);
}

/* Guide Section */
.page-payment-methods__guide-section {
    padding: 60px 0;
    background-color: var(--hl8-background);
}

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

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

.page-payment-methods__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--hl8-gold);
    background-color: var(--hl8-deep-green);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--hl8-gold);
}

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

.page-payment-methods__step-description {
    font-size: 0.95em;
    color: var(--hl8-text-secondary);
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 60px 0;
    background-color: var(--hl8-background);
}

.page-payment-methods__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-payment-methods__faq-item {
    background-color: var(--hl8-card-bg);
    border: 1px solid var(--hl8-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--hl8-text-main);
    overflow: hidden;
}

.page-payment-methods__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--hl8-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-item summary:hover {
    background-color: rgba(var(--hl8-green-main), 0.1);
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--hl8-text-secondary);
}

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

/* Final CTA Section */
.page-payment-methods__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--hl8-deep-green);
}

/* Image specific styles to ensure min-size and no filters */
.page-payment-methods img {
    min-width: 200px;
    min- /* Example, adjust based on aspect ratio */
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure no filters are applied */
    filter: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        padding: 30px 15px;
    }

    .page-payment-methods__section-title {
        font-size: clamp(1.6em, 3vw, 2.2em);
    }

    .page-payment-methods__method-grid,
    .page-payment-methods__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

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

    .page-payment-methods__hero-section,
    .page-payment-methods__intro-section,
    .page-payment-methods__methods-section,
    .page-payment-methods__guide-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__final-cta {
        padding: 40px 0;
    }

    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__hero-image,
    .page-payment-methods__method-card,
    .page-payment-methods__method-icon,
    .page-payment-methods__guide-step,
    .page-payment-methods__faq-item,
    .page-payment-methods__cta-buttons,
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Buttons */
    .page-payment-methods__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 0.95em !important;
        margin: 0 auto; /* Center buttons if they are not full width */
    }

    /* Content sections padding */
    .page-payment-methods__intro-section .page-payment-methods__container,
    .page-payment-methods__methods-section .page-payment-methods__container,
    .page-payment-methods__guide-section .page-payment-methods__container,
    .page-payment-methods__faq-section .page-payment-methods__container,
    .page-payment-methods__final-cta .page-payment-methods__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ toggle rotation for better visibility */
    .page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
        transform: rotate(45deg) !important;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-payment-methods__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

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

/* Ensure content areas do not cause horizontal scroll */
.page-payment-methods__hero-section,
.page-payment-methods__intro-section,
.page-payment-methods__methods-section,
.page-payment-methods__guide-section,
.page-payment-methods__faq-section,
.page-payment-methods__final-cta {
    overflow: hidden;
    box-sizing: border-box;
}

/* Specific content area image sizes check */
/* This rule ensures no img within page-payment-methods is smaller than 200px */
.page-payment-methods img {
    min-width: 200px;
    min- /* Adjusted for common aspect ratios, can be dynamic or set to auto if height is not critical */
}