/* style/payment-methods.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --site-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --header-offset: 122px; /* Default value, shared.css should define this */
}

.page-payment-methods {
    background-color: var(--site-bg);
    color: var(--text-main);
    font-family: Arial, sans-serif;
}

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

/* HERO Section */
.page-payment-methods__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 60px;
    background-color: var(--site-bg);
    position: relative;
    overflow: hidden;
}

.page-payment-methods__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.page-payment-methods__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-payment-methods__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-payment-methods__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.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: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
}

.page-payment-methods__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-payment-methods__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-payment-methods__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

/* General Content Sections */
.page-payment-methods__intro-section,
.page-payment-methods__options-section,
.page-payment-methods__process-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
    padding: 60px 0;
    background-color: var(--site-bg);
}

.page-payment-methods__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-payment-methods__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Options Section - Cards Grid */
.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: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
}

.page-payment-methods__card-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-payment-methods__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-payment-methods__card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-payment-methods__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

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

.page-payment-methods__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

.page-payment-methods__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.page-payment-methods__step-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-payment-methods__step-description a:hover {
    color: var(--secondary-color);
}

/* Security Section */
.page-payment-methods__security-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-payment-methods__security-text-content {
    flex: 1;
    min-width: 300px;
}

.page-payment-methods__security-text-content .page-payment-methods__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-payment-methods__security-text-content .page-payment-methods__text-block {
    text-align: left;
    max-width: none;
}

.page-payment-methods__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

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

.page-payment-methods__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: #1a1c24; /* Slightly darker than card-bg for distinction */
    border-bottom: 1px solid transparent; /* Placeholder for visual separation */
    list-style: none; /* Hide default marker for <summary> */
}

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-question {
    border-bottom-color: var(--border-color);
}

/* Hide default details marker */
.page-payment-methods__faq-item > summary::-webkit-details-marker, 
.page-payment-methods__faq-item > summary::marker {
    display: none;
    content: "";
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-payment-methods__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
    max-height: 500px; /* Arbitrarily large value for smooth transition */
    padding-top: 15px;
}

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

    .page-payment-methods__hero-content {
        text-align: center;
    }

    .page-payment-methods__cta-buttons {
        justify-content: center;
    }

    .page-payment-methods__security-content-wrapper {
        flex-direction: column-reverse;
    }

    .page-payment-methods__security-text-content .page-payment-methods__section-title,
    .page-payment-methods__security-text-content .page-payment-methods__text-block {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

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

    .page-payment-methods__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-payment-methods__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-payment-methods__text-block {
        font-size: 0.95rem;
        line-height: 1.5;
    }

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

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

    .page-payment-methods__card-title {
        font-size: 1.4rem;
    }

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

    .page-payment-methods__security-text-content .page-payment-methods__section-title {
        font-size: 2rem;
        text-align: center;
    }

    .page-payment-methods__security-text-content .page-payment-methods__text-block {
        text-align: center;
    }

    .page-payment-methods__faq-question {
        font-size: 1.05rem;
        padding: 15px;
    }

    .page-payment-methods__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px 15px;
    }

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__hero-image,
    .page-payment-methods__card-media img,
    .page-payment-methods__security-image {
        border-radius: 8px !important;
    }

    .page-payment-methods__intro-section,
    .page-payment-methods__options-section,
    .page-payment-methods__process-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section {
        padding: 40px 0;
    }
}