/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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(--dark-bg-1) */
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-payment-methods__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-payment-methods__hero-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* General Section Styles */
.page-payment-methods__section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color for titles */
    font-weight: bold;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
    color: #ffffff; /* White for titles on dark background */
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default text color for dark body background */
}

.page-payment-methods__overview-section .page-payment-methods__text-block {
    color: #ffffff; /* Ensure text is white on dark body background */
}

/* Image styles */
.page-payment-methods__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__card-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

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

.page-payment-methods__card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
}

/* List styles */
.page-payment-methods__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-payment-methods__list-item {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 1em;
}

.page-payment-methods__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0; /* Brand color for checkmarks */
}

/* Call to Action Buttons */
.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box; /* For button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-payment-methods__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-payment-methods__btn-primary:hover {
    background-color: #1a7fb0;
    border-color: #1a7fb0;
    transform: translateY(-2px);
}

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

.page-payment-methods__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a7fb0;
    border-color: #1a7fb0;
    transform: translateY(-2px);
}

.page-payment-methods__call-to-action-box {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-payment-methods__call-to-action-box p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Notes Box */
.page-payment-methods__notes-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: left;
    color: #ffffff;
}

.page-payment-methods__box-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
    color: #ffffff;
}

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

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-payment-methods__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.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;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px;
}

.page-payment-methods__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Conclusion Section */
.page-payment-methods__conclusion-section {
    padding-bottom: 80px;
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
    color: #ffffff;
}

.page-payment-methods__conclusion-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #ffffff;
}

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

@media (max-width: 768px) {
    /* Mobile Fixed Header Spacing */
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 400px;
    }

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

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

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

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

    .page-payment-methods__text-block {
        font-size: 0.95em;
    }

    .page-payment-methods__cards-grid {
        grid-template-columns: 1fr;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-payment-methods__card {
        padding: 20px;
    }

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

    .page-payment-methods__list-item {
        font-size: 0.9em;
    }

    .page-payment-methods__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Ensure full width */
        max-width: 100% !important; /* Ensure full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Button containers */
    .page-payment-methods__call-to-action-box {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-payment-methods__faq-title {
        font-size: 1.1em;
    }

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

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

    .page-payment-methods__content-wrapper {
        padding: 0 15px; /* Ensure content doesn't overflow */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images or other elements */
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__hero-content,
    .page-payment-methods__faq-list,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections to prevent content from touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override padding for specific elements that already have it */
    .page-payment-methods__hero-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__conclusion-section {
      padding-left: 0;
      padding-right: 0;
    }
    .page-payment-methods__hero-content,
    .page-payment-methods__faq-question,
    .page-payment-methods__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
      padding-left: 20px;
      padding-right: 20px;
    }
}