/* style/payment-methods.css */

/* Variables and Base Styles */
:root {
    --primary-color: #1A2B4C; /* Deep Tech Blue / Navy Blue */
    --secondary-color: #FFD700; /* Bright Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8; /* Body background from shared.css */
    --border-light: #e0e0e0;
}

.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--bg-light); /* Ensure consistency with body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-payment-methods__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-payment-methods__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-payment-methods__subsection-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-payment-methods__section-text {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__numbered-list,
.page-payment-methods__bullet-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-payment-methods__bullet-list {
    list-style-type: disc;
}

.page-payment-methods__numbered-list {
    list-style-type: decimal;
}

.page-payment-methods__list-item {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.page-payment-methods__list-item strong {
    color: var(--primary-color);
}

.page-payment-methods a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-payment-methods a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a4c6e 100%); /* Slightly lighter gradient for hero */
    color: var(--text-light);
}

.page-payment-methods__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-payment-methods__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-payment-methods__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--secondary-color); /* Gold for striking title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-payment-methods__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
}

.page-payment-methods__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color); /* Dark text on gold */
    border: 2px solid var(--secondary-color);
}

.page-payment-methods__btn-primary:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Image Wrappers for content images */
.page-payment-methods__image-wrapper {
    margin: 30px auto;
    max-width: 800px; /* Example max-width for content images */
    text-align: center;
}

.page-payment-methods__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

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

.page-payment-methods__dark-bg .page-payment-methods__section-title,
.page-payment-methods__dark-bg .page-payment-methods__subsection-title {
    color: var(--secondary-color);
}

.page-payment-methods__dark-bg .page-payment-methods__list-item strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-payment-methods__faq-section {
    background-color: #f0f2f5;
    padding: 80px 0;
}

/* FAQ container styles */
.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #ffffff; /* Consistent background */
    color: var(--text-dark);
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* ⚠️ Use!important ensure priority, value large enough to accommodate any content */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-light);
}

/* Question style */
.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-payment-methods__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-payment-methods__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-payment-methods__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: color 0.3s ease; /* Only color change */
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 40px;
    }
    .page-payment-methods__section-title {
        font-size: 30px;
    }
    .page-payment-methods__subsection-title {
        font-size: 24px;
    }
    .page-payment-methods__section-text,
    .page-payment-methods__list-item {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }

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

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

    .page-payment-methods__hero-section {
        padding: 40px 15px;
    }

    .page-payment-methods__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-payment-methods__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-payment-methods__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-payment-methods__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-payment-methods__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .page-payment-methods__subsection-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Images responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-payment-methods__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-payment-methods__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-payment-methods__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-payment-methods__faq-answer {
        padding: 0 15px;
    }
    
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 28px;
    }
    .page-payment-methods__section-title {
        font-size: 24px;
    }
    .page-payment-methods__subsection-title {
        font-size: 20px;
    }
    .page-payment-methods__section-text,
    .page-payment-methods__list-item {
        font-size: 15px;
    }
}