/* style/payment-methods.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font: #FFFF00;
    --background-light: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light);
}

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

.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.page-payment-methods__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background-color: var(--button-register);
    color: var(--button-font);
    border: 2px solid var(--button-register);
}

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

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__security-info,
.page-payment-methods__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__how-to-guide,
.page-payment-methods__faq-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-payment-methods__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: inherit;
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

.page-payment-methods__feature-item,
.page-payment-methods__method-card,
.page-payment-methods__security-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.page-payment-methods__method-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-payment-methods__method-card .page-payment-methods__method-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-payment-methods__feature-item:hover,
.page-payment-methods__method-card:hover,
.page-payment-methods__security-item:hover {
    transform: translateY(-5px);
}

.page-payment-methods__feature-icon,
.page-payment-methods__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__feature-title,
.page-payment-methods__method-title,
.page-payment-methods__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-payment-methods__method-card .page-payment-methods__method-title {
    color: var(--primary-color);
}

.page-payment-methods__feature-text,
.page-payment-methods__method-text,
.page-payment-methods__security-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.page-payment-methods__method-list {
    list-style: none;
    padding: 0;
    margin-top: auto; /* Push list to bottom */
}

.page-payment-methods__method-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95em;
    color: #555;
}

.page-payment-methods__list-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.page-payment-methods__cta-bottom {
    margin-top: 50px;
}

.page-payment-methods__how-to-guide .page-payment-methods__section-title,
.page-payment-methods__how-to-guide .page-payment-methods__section-description {
    color: var(--text-light);
}

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

.page-payment-methods__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-payment-methods__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-payment-methods__step-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-payment-methods__text-link {
    color: var(--button-font); /* Yellow for register/login font */
    text-decoration: underline;
}

.page-payment-methods__text-link:hover {
    color: var(--secondary-color);
}

.page-payment-methods__important-notes {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: left;
    color: var(--text-light);
}

.page-payment-methods__notes-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-payment-methods__notes-list {
    list-style: none;
    padding: 0;
}

.page-payment-methods__notes-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-payment-methods__notes-list li strong {
    color: var(--secondary-color);
}

.page-payment-methods__faq-section .page-payment-methods__section-title {
    color: var(--text-light);
}

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

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-light);
}

.page-payment-methods__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

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

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

.page-payment-methods__cta-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-payment-methods__cta-section .page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-payment-methods__cta-section .page-payment-methods__btn-primary:hover {
    background-color: #005f2f;
    border-color: #005f2f;
}

/* Color contrast classes */
.page-payment-methods__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-payment-methods__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

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

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

    .page-payment-methods__features-grid,
    .page-payment-methods__method-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-payment-methods__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

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

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

    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-methods,
    .page-payment-methods__withdrawal-methods,
    .page-payment-methods__how-to-guide,
    .page-payment-methods__security-info,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-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__features-grid,
    .page-payment-methods__method-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods__feature-item,
    .page-payment-methods__method-card,
    .page-payment-methods__security-item,
    .page-payment-methods__step-item {
        padding: 25px;
    }

    .page-payment-methods__method-card .page-payment-methods__method-image {
        height: 180px;
    }

    .page-payment-methods__feature-icon,
    .page-payment-methods__security-icon {
        width: 60px;
        height: 60px;
    }

    .page-payment-methods__feature-title,
    .page-payment-methods__method-title,
    .page-payment-methods__security-title {
        font-size: 1.3em;
    }

    .page-payment-methods__step-number {
        font-size: 2em;
    }

    .page-payment-methods__step-title {
        font-size: 1.2em;
    }

    .page-payment-methods__important-notes {
        padding: 25px;
    }

    .page-payment-methods__notes-title {
        font-size: 1.4em;
    }

    .page-payment-methods__faq-list {
        margin-top: 30px;
    }

    .page-payment-methods__faq-question {
        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: 10px 20px 20px 20px;
    }

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

    .page-payment-methods video,
    .page-payment-methods__video {
        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__video-section,
    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-payment-methods__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
    }
}