/* style/payment-methods.css */

/* Biến CSS từ shared.css để đảm bảo màu sắc nhất quán */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-1: var(--dark-bg-1, #0d0d0d); /* Fallback nếu shared.css không định nghĩa */
    --bg-light-1: #f8f9fa;
    --border-color: #e0e0e0;
}

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-payment-methods {
    padding-top: 120px; /* Khoảng cách cho desktop */
    color: var(--text-light); /* Mặc định chữ sáng trên nền tối của body */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* HERO Banner Section */
.page-payment-methods__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 215, 0, 0.5));
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-payment-methods__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-payment-methods__hero-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-payment-methods__btn--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-payment-methods__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

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

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

.page-payment-methods__btn--center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

/* General Section Styling */
.page-payment-methods__section {
    padding: 60px 20px;
    background-color: var(--bg-dark-1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-payment-methods__section-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Deposit Methods Grid */
.page-payment-methods__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-payment-methods__method-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-payment-methods__method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__method-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-payment-methods__method-icon img {
    max-width: 80%;
    max-height: 80%;
    height: auto;
    display: block;
    object-fit: contain;
}

.page-payment-methods__method-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-payment-methods__method-description {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-payment-methods__method-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-payment-methods__method-list li {
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95em;
}

.page-payment-methods__list-icon {
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* Withdrawal Steps */
.page-payment-methods__withdrawal-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-payment-methods__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-top: 80px;
}

.page-payment-methods__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 5px solid var(--bg-dark-1);
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-payment-methods__step-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-payment-methods__step-description {
    font-size: 1em;
    color: var(--text-light);
}

.page-payment-methods__notes-block {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-payment-methods__notes-list li {
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 1em;
}

.page-payment-methods__notes-list .page-payment-methods__list-icon {
    color: #ff4d4d; /* Màu đỏ cho biểu tượng cảnh báo */
    font-size: 1.3em;
    line-height: 1;
}

/* Security Section */
.page-payment-methods__section--security {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-payment-methods__section--security .page-payment-methods__section-title {
    color: var(--secondary-color);
}

.page-payment-methods__section--security .page-payment-methods__section-subtitle {
    color: var(--text-light);
}

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

.page-payment-methods__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-payment-methods__feature-icon img {
    max-width: 60%;
    max-height: 60%;
    height: auto;
    display: block;
    object-fit: contain;
}

.page-payment-methods__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__feature-description {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-payment-methods__section--faq {
    background-color: var(--bg-dark-1);
}

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

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

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08);
    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: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-payment-methods__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu cộng */
}

.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 25px;
    opacity: 0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* Đảm bảo đủ cao cho mọi nội dung */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

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

/* Call to Action Section */
.page-payment-methods__section--cta {
    background: linear-gradient(90deg, var(--primary-color), var(--bg-dark-1));
    padding: 80px 20px;
    text-align: center;
}

.page-payment-methods__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-payment-methods__cta-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-payment-methods__cta-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-payment-methods {
        padding-top: 100px !important; /* Khoảng cách cho mobile */
        font-size: 15px;
        line-height: 1.6;
    }

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-payment-methods__section,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__step-item,
    .page-payment-methods__feature-item,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__hero-banner {
        padding: 40px 15px;
    }
    .page-payment-methods__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-payment-methods__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-payment-methods__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-payment-methods__method-grid,
    .page-payment-methods__withdrawal-steps,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods__method-card,
    .page-payment-methods__step-item,
    .page-payment-methods__feature-item {
        padding: 25px;
    }
    .page-payment-methods__method-icon,
    .page-payment-methods__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    .page-payment-methods__method-title,
    .page-payment-methods__step-title,
    .page-payment-methods__feature-title {
        font-size: 1.3em;
    }
    .page-payment-methods__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        top: -20px;
    }
    .page-payment-methods__notes-block {
        padding: 20px;
    }
    .page-payment-methods__notes-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-payment-methods__faq-question {
        padding: 15px 20px;
    }
    .page-payment-methods__faq-question h3 {
        font-size: 1em;
    }
    .page-payment-methods__faq-toggle {
        font-size: 1.8em;
        width: 25px;
        height: 25px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px 20px !important;
    }

    .page-payment-methods__section--cta {
        padding: 50px 15px;
    }
    .page-payment-methods__cta-title {
        font-size: 2em;
    }
    .page-payment-methods__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.6em;
    }
    .page-payment-methods__cta-title {
        font-size: 1.8em;
    }
    .page-payment-methods__method-card,
    .page-payment-methods__step-item,
    .page-payment-methods__feature-item {
        padding: 20px;
    }
    .page-payment-methods__method-icon,
    .page-payment-methods__feature-icon {
        width: 70px;
        height: 70px;
    }
    .page-payment-methods__step-number {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        top: -18px;
    }
}