/* style/payment-methods.css */

/* Base Styles for .page-payment-methods */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background #0a0a0a */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-payment-methods__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Section Styling */
.page-payment-methods__section {
    padding: 60px 0;
    text-align: center;
    background-color: transparent; /* Inherit body background */
}

.page-payment-methods__dark-bg {
    background-color: #0a0a0a; /* Dark background for sections */
    color: #ffffff;
}

.page-payment-methods__light-bg {
    background-color: #ffffff; /* Light background for cards/steps */
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__section-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff; /* Main titles should be white on dark background */
    font-weight: bold;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
}

.page-payment-methods__hero-section .page-payment-methods__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.page-payment-methods__hero-content {
    flex: 1;
}

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

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

.page-payment-methods__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.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: all 0.3s ease;
    cursor: pointer;
}

.page-payment-methods__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-payment-methods__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-payment-methods__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-payment-methods__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.page-payment-methods__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__card {
    padding: 30px;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min image size */
    min-height: 150px; /* Ensure min image size */
}

.page-payment-methods__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
}

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

/* Process Steps */
.page-payment-methods__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-payment-methods__step-item {
    padding: 30px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-payment-methods__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-payment-methods__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #017439;
}

.page-payment-methods__step-description {
    font-size: 1em;
    color: #555555;
}

.page-payment-methods__inline-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-payment-methods__inline-link:hover {
    color: #005f2c;
}

.page-payment-methods__note-text {
    margin-top: 30px;
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Security List */
.page-payment-methods__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-payment-methods__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-payment-methods__security-title {
    font-size: 1.7em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-payment-methods__security-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Tips List */
.page-payment-methods__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-payment-methods__tips-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-payment-methods__tips-title {
    font-size: 1.7em;
    margin-bottom: 10px;
    color: #017439;
}

.page-payment-methods__tips-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-payment-methods__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark body */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
}

.page-payment-methods__faq-title {
    margin: 0;
    font-size: 1.2em; /* Keep it consistent with question font size */
    color: #ffffff;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Change to 'x' or rotate for '−' */
    color: #C30808; /* Red for active state */
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 20px;
}

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


/* CTA Section at the bottom */
.page-payment-methods__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 2.8em;
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Image specific styles to meet min size requirements */
.page-payment-methods img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images cover their area without distortion */
}

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

    .page-payment-methods__hero-content {
        order: 2;
    }

    .page-payment-methods__hero-image-wrapper {
        order: 1;
        margin-bottom: 40px;
        justify-content: center;
    }

    .page-payment-methods__main-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-payment-methods__container {
        padding: 0 15px;
    }

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

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

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

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

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

    .page-payment-methods__btn-primary,
    .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;
    }
    
    .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;
    }

    .page-payment-methods__grid,
    .page-payment-methods__process-steps,
    .page-payment-methods__security-list,
    .page-payment-methods__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}