/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--black-color) */
}

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

/* Sections */
.page-payment-methods__section {
    padding: 60px 0;
}

.page-payment-methods__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* Light text for dark background */
}

.page-payment-methods__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
    font-weight: bold;
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Hero Section */
.page-payment-methods__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    position: relative;
    overflow: hidden;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-payment-methods__hero-section .page-payment-methods__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

.page-payment-methods__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-payment-methods__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-payment-methods__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background-color: #EA7C07; /* Custom login/action color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-payment-methods__btn-primary:hover {
    background-color: #ff9900;
    border-color: #ff9900;
}

.page-payment-methods__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-payment-methods__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-payment-methods__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

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

.page-payment-methods__feature-item {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-payment-methods__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-payment-methods__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Content Blocks & Cards */
.page-payment-methods__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.page-payment-methods__content-block {
    margin-bottom: 30px;
}

.page-payment-methods__content-block-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: bold;
}

.page-payment-methods__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-payment-methods__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #333333;
}

.page-payment-methods__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

.page-payment-methods__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
}

.page-payment-methods__image-spacing {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Table Styles */
.page-payment-methods__table-wrapper {
    overflow-x: auto;
}

.page-payment-methods__table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    text-align: left;
}

.page-payment-methods__table th,
.page-payment-methods__table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.page-payment-methods__table th {
    background-color: #26A9E0;
    color: #ffffff;
    font-weight: bold;
}

.page-payment-methods__table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.page-payment-methods__table tbody tr:hover {
    background-color: #f1f1f1;
}

/* CTA Center */
.page-payment-methods__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-payment-methods__security-features .page-payment-methods__feature-item {
    text-align: left;
}

.page-payment-methods__security-features .page-payment-methods__feature-title {
    color: #26A9E0;
}

.page-payment-methods__security-features .page-payment-methods__feature-text {
    color: #555555;
}

/* FAQ Section */
.page-payment-methods__faq-list {
    margin-top: 40px;
}

.page-payment-methods__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #ffffff;
    color: #333333;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #e0e0e0;
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

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

/* Final CTA Section */
.page-payment-methods__cta-final {
    text-align: center;
    padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 3em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section .page-payment-methods__container {
        flex-direction: column;
        text-align: center;
    }

    .page-payment-methods__hero-content {
        text-align: center;
    }

    .page-payment-methods__hero-title {
        font-size: 2.5em;
    }

    .page-payment-methods__hero-description {
        font-size: 1em;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-payment-methods__section-title {
        font-size: 1.8em;
    }

    .page-payment-methods__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-payment-methods__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__content-block,
    .page-payment-methods__table-wrapper,
    .page-payment-methods__security-features,
    .page-payment-methods__faq-list,
    .page-payment-methods__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-payment-methods__card {
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-payment-methods__faq-question,
    .page-payment-methods__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-payment-methods__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 2em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}