/* style/payment-methods.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --accent-color: #EA7C07; /* For login/CTA if needed */
    --border-color: #e0e0e0;
    --background-light: #f9f9f9; /* Light background for sections */
    --background-white: #ffffff;
}

/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--background-white); /* Assuming body background is white */
}

/* Fixed header offset - apply to the first main content section or the main itself */
.page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Using brand colors */
    color: var(--text-color-dark); /* Text on mixed background */
    text-align: center;
    overflow: hidden; /* For images */
    padding-bottom: 60px; /* Add some bottom padding */
}

.page-payment-methods__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__hero-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-payment-methods__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--text-color-dark); /* Dark text on light background */
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark); /* Dark text on light background */
}

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-payment-methods__cta-button:hover {
    background: #1e87b7; /* Slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__cta-button--secondary {
    background: var(--accent-color); /* Use accent color for secondary CTA */
}

.page-payment-methods__cta-button--secondary:hover {
    background: #c26505; /* Slightly darker accent */
}

/* General section styling */
.page-payment-methods__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-payment-methods__text-block {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-color-dark);
}

.page-payment-methods__light-bg {
    background-color: var(--background-white);
    color: var(--text-color-dark);
}

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

.page-payment-methods__dark-bg .page-payment-methods__section-title,
.page-payment-methods__dark-bg .page-payment-methods__text-block {
    color: var(--text-color-light);
}

/* Payment options cards */
.page-payment-methods__payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-payment-methods__card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-color-dark); /* Ensure dark text on light card */
}

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

.page-payment-methods__card img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it takes full width */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-payment-methods__card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-payment-methods__card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-payment-methods__card-features li {
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--text-color-dark);
}

.page-payment-methods__icon-check {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.page-payment-methods__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
}

.page-payment-methods__btn-primary:hover {
    background: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    margin-top: auto;
}

.page-payment-methods__btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Dark background cards */
.page-payment-methods__card--dark {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color-light);
}

.page-payment-methods__card--dark .page-payment-methods__card-title,
.page-payment-methods__card--dark .page-payment-methods__card-description,
.page-payment-methods__card--dark .page-payment-methods__card-features li {
    color: var(--text-color-light);
}

.page-payment-methods__card--dark .page-payment-methods__icon-check {
    color: var(--secondary-color); /* White checkmark */
}

/* Security features section */
.page-payment-methods__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.page-payment-methods__feature-item {
    padding: 25px;
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-color-dark);
}

.page-payment-methods__feature-item img {
    max-width: 100%;
    height: 250px;
    object-fit: contain; /* Use contain for icon-like images */
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-payment-methods__feature-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__feature-description {
    font-size: 0.95em;
    color: var(--text-color-dark);
}

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

.page-payment-methods__tips-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start;
    color: var(--text-color-dark);
}

.page-payment-methods__icon-bullet {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2em;
    line-height: 1.6; /* Align with text */
    flex-shrink: 0;
}

/* FAQ section */
.page-payment-methods__faq-section {
    padding-bottom: 60px;
}

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

/* FAQ container style */
.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough for any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--background-light); /* Light background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

/* Question style */
.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark);
}

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

.page-payment-methods__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-color-dark);
}

/* Toggle icon */
.page-payment-methods__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: var(--primary-color); /* Primary color for active toggle */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-payment-methods__contact-cta {
    text-align: center;
    margin-top: 50px;
}

/* Final CTA section */
.page-payment-methods__final-cta {
    padding: 60px 20px;
    text-align: center;
}

.page-payment-methods__final-cta .page-payment-methods__section-title,
.page-payment-methods__final-cta .page-payment-methods__text-block {
    color: var(--text-color-light);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.4em;
    }
    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__container {
        padding: 30px 15px;
    }
    .page-payment-methods__card img {
        height: 200px; /* Adjust card image height */
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding-top for hero section */
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-payment-methods__hero-title {
        font-size: 2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important; /* Button responsive */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* All images responsive for mobile */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important;
    }

    /* Ensure containers for images and buttons are responsive */
    .page-payment-methods__container,
    .page-payment-methods__payment-options,
    .page-payment-methods__security-features,
    .page-payment-methods__faq-list,
    .page-payment-methods__card,
    .page-payment-methods__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-payment-methods__payment-options {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

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

    .page-payment-methods__card img,
    .page-payment-methods__feature-item img {
        height: auto !important; /* Auto height for mobile images */
        max-height: 250px; /* Max height for feature images */
    }

    .page-payment-methods__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-payment-methods__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-payment-methods__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-payment-methods__faq-answer {
        padding: 0 15px;
    }
    
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px !important;
    }
    
    .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;
        margin-left: 0;
        margin-right: 0;
    }

    .page-payment-methods__tips-list {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__tips-list li {
        font-size: 0.95em;
    }
}