/* style/payment-guide.css */

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

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

/* Hero Section */
.page-payment-guide__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand main color for hero */
    color: #ffffff;
}

.page-payment-guide__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-payment-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-payment-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-payment-guide__btn-primary,
.page-payment-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't exceed container */
    text-align: center;
}

.page-payment-guide__btn-primary {
    background-color: #C30808; /* Specific color for action buttons */
    color: #FFFF00; /* Specific font color for action buttons */
    border: 2px solid #C30808;
}

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

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

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

/* Content Sections */
.page-payment-guide__content-section {
    padding: 60px 0;
}

.page-payment-guide__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-payment-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-guide__list {
    list-style: disc;
    padding-left: 20px;
    max-width: 900px;
    margin: 20px auto;
}

.page-payment-guide__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    max-width: 900px;
    margin: 20px auto;
}

.page-payment-guide__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-payment-guide__image {
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Color schemes for sections */
.page-payment-guide__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body #121212 */
    color: #ffffff;
}

.page-payment-guide__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-payment-guide__light-bg .page-payment-guide__section-title,
.page-payment-guide__light-bg .page-payment-guide__text-block,
.page-payment-guide__light-bg .page-payment-guide__list-item {
    color: #333333;
}
.page-payment-guide__light-bg a {
    color: #017439; /* Link color on light background */
    text-decoration: underline;
}
.page-payment-guide__light-bg a:hover {
    text-decoration: underline;
}


/* FAQ Section */
.page-payment-guide__faq-section {
    padding: 60px 0;
}

.page-payment-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-payment-guide__faq-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Text color for FAQ item */
}

.page-payment-guide__faq-item[open] {
    background-color: #e0e0e0;
}

.page-payment-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    color: #333333; /* Question text color */
}

.page-payment-guide__faq-item[open] .page-payment-guide__faq-question {
    border-bottom: 1px solid transparent; /* No border when open */
}

.page-payment-guide__faq-question::-webkit-details-marker {
    display: none;
}
.page-payment-guide__faq-question::marker {
    display: none;
}

.page-payment-guide__faq-qtext {
    flex-grow: 1;
}

.page-payment-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-payment-guide__faq-item[open] .page-payment-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-payment-guide__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #555555; /* Answer text color */
}

/* CTA Section at bottom */
.page-payment-guide__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}

/* Links within text blocks on dark backgrounds */
.page-payment-guide__dark-bg .page-payment-guide__text-block a,
.page-payment-guide__dark-bg .page-payment-guide__list-item a {
    color: #FFFF00; /* Highlight links in text for dark background */
    text-decoration: underline;
}

.page-payment-guide__dark-bg .page-payment-guide__text-block a:hover,
.page-payment-guide__dark-bg .page-payment-guide__list-item a:hover {
    color: #ffcc00;
}


/* Responsive styles */
@media (max-width: 768px) {
    .page-payment-guide__container {
        padding: 0 15px;
    }

    .page-payment-guide__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-payment-guide__hero-title {
        font-size: 2em;
    }

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

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

    .page-payment-guide__btn-primary,
    .page-payment-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-payment-guide__section-title {
        font-size: 1.5em;
    }

    .page-payment-guide__text-block,
    .page-payment-guide__list-item,
    .page-payment-guide__faq-question,
    .page-payment-guide__faq-answer p {
        font-size: 0.95em;
    }

    /* Image responsive enforcement */
    .page-payment-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-guide__hero-section,
    .page-payment-guide__content-section,
    .page-payment-guide__faq-section,
    .page-payment-guide__cta-section,
    .page-payment-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Adding padding to prevent content touching edges on mobile */
        padding-left: 15px; 
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure list items and text blocks respect container width */
    .page-payment-guide__list,
    .page-payment-guide__numbered-list {
        padding-left: 15px; /* Adjust padding for mobile lists */
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
}