/* style/payment-methods.css */

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

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

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

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

/* Hero Section */
.page-payment-methods__hero-section {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: center; /* Centers content horizontally */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--page-payment-methods-card-bg); /* A base color for the section */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-payment-methods__hero-image {
    width: 100%; /* Image takes full width of its wrapper */
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
    border-radius: 12px; /* Soften edges */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--page-payment-methods-text-main);
    padding: 0 20px; /* Add padding to sides */
    box-sizing: border-box;
    text-align: center; /* Center text */
}

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

.page-payment-methods__intro-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-payment-methods__cta-button {
    display: inline-block;
    background: var(--page-payment-methods-btn-gradient);
    color: var(--page-payment-methods-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-payment-methods__section-description {
    font-size: 1.1rem;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.page-payment-methods__cards-grid,
.page-payment-methods__steps-grid,
.page-payment-methods__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-payment-methods__card,
.page-payment-methods__step-card,
.page-payment-methods__security-item {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-payment-methods-border-color);
    box-sizing: border-box;
}

.page-payment-methods__card:hover,
.page-payment-methods__step-card:hover,
.page-payment-methods__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-payment-methods__card-image,
.page-payment-methods__step-image,
.page-payment-methods__security-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 400px; /* Example max-width, adjust as needed */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    display: block; /* For proper spacing */
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__security-icon {
    width: 200px;
    height: 200px;
    object-fit: contain; /* Icons might be better contained */
}


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

.page-payment-methods__card-text,
.page-payment-methods__step-text,
.page-payment-methods__security-text {
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 20px;
}

.page-payment-methods__btn-secondary {
    display: inline-block;
    background: var(--page-payment-methods-deep-green);
    color: var(--page-payment-methods-text-main);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    border: 1px solid var(--page-payment-methods-primary-color);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-payment-methods__call-to-action {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--page-payment-methods-deep-green);
    border-radius: 12px;
    border: 1px solid var(--page-payment-methods-border-color);
}

.page-payment-methods__call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--page-payment-methods-text-main);
}

/* Dark Section */
.page-payment-methods__dark-section {
    background-color: var(--page-payment-methods-deep-green);
    color: var(--page-payment-methods-text-main);
}

/* Tips List */
.page-payment-methods__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-payment-methods__tips-list li {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--page-payment-methods-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__tips-list p {
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__support-link {
    color: var(--page-payment-methods-secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-payment-methods__support-link:hover {
    color: var(--page-payment-methods-gold-color);
}

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

.page-payment-methods__faq-item {
    background-color: var(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    color: var(--page-payment-methods-gold-color);
}

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

.page-payment-methods__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
    line-height: 1.7;
    background-color: var(--page-payment-methods-card-bg);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Ensure details open state is styled correctly */
.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--page-payment-methods-primary-color); /* Highlight open FAQ */
}

/* Conclusion CTA */
.page-payment-methods__conclusion-cta {
    padding: 80px 0;
    background-color: var(--page-payment-methods-deep-green);
    border-top: 1px solid var(--page-payment-methods-border-color);
}

/* Image responsiveness and min size */
.page-payment-methods img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Default to cover for content images */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        max-width: 90%;
    }
    .page-payment-methods__cards-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-payment-methods__container {
        padding: 0 15px; /* Add padding to prevent content from touching edges */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero section adjustments */
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

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

    .page-payment-methods__intro-description {
        font-size: 1rem;
    }

    .page-payment-methods__cta-button,
    .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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    
    .page-payment-methods__call-to-action .page-payment-methods__cta-button {
        margin-left: 0;
        margin-right: 0;
    }

    .page-payment-methods__cards-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-payment-methods__card,
    .page-payment-methods__step-card,
    .page-payment-methods__security-item {
        padding: 20px;
    }

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

    .page-payment-methods__video-section {
        padding-top: 10px !important;
    }

    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-content {
        padding: 15px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    .page-payment-methods__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-payment-methods__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-payment-methods__faq-toggle {
        font-size: 1.5rem;
    }
}