/* style/payment-methods.css */

/* --- Base Styles --- */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--dark-bg, #0d0d0d); /* Assuming shared.css defines --dark-bg, fallback to a dark color */
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand green */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-payment-methods__section-title--white {
    color: #FFFFFF;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333; /* Default for light background */
}

.page-payment-methods__text-block--white {
    color: #FFFFFF; /* For dark background sections */
}

.page-payment-methods__highlight {
    color: #017439;
    font-weight: bold;
}

.page-payment-methods__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-payment-methods__dark-bg {
    background-color: #017439; /* Brand green */
    color: #FFFFFF;
    padding: 60px 0;
}

/* --- Hero Section --- */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    color: #FFFFFF;
    background-color: #017439; /* Fallback, image will cover */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the image for text readability */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.page-payment-methods__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for highlight */
    font-weight: bold;
    line-height: 1.2;
}

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

.page-payment-methods__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Buttons --- */
.page-payment-methods__btn-register,
.page-payment-methods__btn-login,
.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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Important for mobile responsiveness */
}

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

.page-payment-methods__btn-register:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-payment-methods__btn-login:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-payment-methods__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

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

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

/* --- Content Images --- */
.page-payment-methods__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-payment-methods__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-payment-methods__card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-payment-methods__card-text {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-payment-methods__guide-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    color: #333333;
    display: flex;
    flex-direction: column;
}

.page-payment-methods__guide-card-title {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-payment-methods__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.page-payment-methods__guide-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-payment-methods__guide-list li::before {
    content: "✔️"; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #017439;
    font-weight: bold;
}

.page-payment-methods__guide-card .page-payment-methods__btn-secondary {
    align-self: center;
    margin-top: auto; /* Push button to bottom */
}


/* --- Security Section --- */
.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-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-payment-methods__security-item-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-payment-methods__security-item-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-payment-methods__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    color: #333333;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    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); /* Plus to X (minus if using minus sign) */
}

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

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

.page-payment-methods__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
}

/* --- CTA Section --- */
.page-payment-methods__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF;
}

.page-payment-methods__cta-container {
    max-width: 900px;
}

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* --- Global Image/Video/Button Responsive Rules for Mobile --- */
@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-payment-methods__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .page-payment-methods__hero-section {
        min-height: 450px;
        padding: 60px 0;
    }

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

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

    .page-payment-methods__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-payment-methods__btn-register,
    .page-payment-methods__btn-login,
    .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;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-payment-methods__cards-grid,
    .page-payment-methods__guide-steps,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-payment-methods__card-title,
    .page-payment-methods__guide-card-title,
    .page-payment-methods__security-item-title {
        font-size: 1.4em;
    }

    /* Images responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content containers to prevent edge-to-edge content */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Videos responsiveness (if any) */
    .page-payment-methods video,
    .page-payment-methods__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods__video-section,
    .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;
    }

    /* CTA buttons responsiveness */
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* FAQ */
    .page-payment-methods__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-payment-methods__faq-answer {
        padding: 0 20px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}