/* style/phuong-thuc-thanh-toan.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --bg-color-dark: #140C0C;
    --card-bg-color: #2A1212;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-phuong-thuc-thanh-toan {
    background-color: var(--bg-color-dark); /* Assuming body background is dark, main content will also be dark */
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-main-color);
}

.page-phuong-thuc-thanh-toan__hero-image-wrapper {
    width: 100%;
    max-height: 450px; /* Limit height for visual appeal */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-phuong-thuc-thanh-toan__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-phuong-thuc-thanh-toan__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-phuong-thuc-thanh-toan__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-phuong-thuc-thanh-toan__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-phuong-thuc-thanh-toan__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-phuong-thuc-thanh-toan__btn--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.3);
}

.page-phuong-thuc-thuc-thanh-toan__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.5);
}

.page-phuong-thuc-thanh-toan__btn--secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 2px 10px rgba(243, 197, 77, 0.2);
}

.page-phuong-thuc-thanh-toan__btn--secondary:hover {
    background-color: rgba(243, 197, 77, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 197, 77, 0.4);
}

.page-phuong-thuc-thanh-toan__content-section {
    padding: 40px 0;
    background-color: var(--bg-color-dark);
}

.page-phuong-thuc-thanh-toan__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-phuong-thuc-thanh-toan__section-title {
    font-size: 2.2rem;
    color: var(--gold-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    padding-top: 20px;
    border-bottom: 2px solid var(--deep-red-color);
    padding-bottom: 10px;
}

.page-phuong-thuc-thanh-toan__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-main-color);
    opacity: 0.9;
    text-align: justify;
}

.page-phuong-thuc-thanh-toan__payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
}

.page-phuong-thuc-thanh-toan__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-phuong-thuc-thanh-toan__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-phuong-thuc-thanh-toan__card-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-phuong-thuc-thanh-toan__card-description {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.85;
    flex-grow: 1;
    text-align: justify;
}

.page-phuong-thuc-thanh-toan__card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    width: 100%;
}

.page-phuong-thuc-thanh-toan__card-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-main-color);
    padding-left: 20px;
    position: relative;
}

.page-phuong-thuc-thanh-toan__card-list li::before {
    content: '•';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-phuong-thuc-thanh-toan__btn--card {
    margin-top: auto; /* Push button to the bottom */
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(255, 176, 74, 0.2);
    width: calc(100% - 20px); /* Adjust for padding if needed */
    max-width: 250px;
}

.page-phuong-thuc-thanh-toan__btn--card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-phuong-thuc-thanh-toan__instruction-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-phuong-thuc-thanh-toan__instruction-list li {
    background-color: var(--card-bg-color);
    border-left: 5px solid var(--gold-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--text-main-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-phuong-thuc-thanh-toan__instruction-list li strong {
    color: var(--gold-color);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 5px;
}

.page-phuong-thuc-thanh-toan__cta-box {
    background-color: var(--deep-red-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-phuong-thuc-thanh-toan__cta-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
}

.page-phuong-thuc-thanh-toan__info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-phuong-thuc-thanh-toan__info-list li {
    background-color: var(--card-bg-color);
    border-left: 4px solid var(--secondary-color);
    padding: 12px 20px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-main-color);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.page-phuong-thuc-thanh-toan__info-list li strong {
    color: var(--gold-color);
    margin-right: 5px;
}

.page-phuong-thuc-thanh-toan__faq-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-phuong-thuc-thanh-toan__faq-question {
    font-size: 1.3rem;
    color: var(--gold-color);
    background-color: var(--card-bg-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.page-phuong-thuc-thanh-toan__faq-question:hover {
    background-color: rgba(42, 18, 18, 0.8);
}

.page-phuong-thuc-thanh-toan__faq-answer {
    font-size: 1rem;
    color: var(--text-main-color);
    padding: 10px 20px 20px;
    background-color: rgba(42, 18, 18, 0.5);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: justify;
}

.page-phuong-thuc-thanh-toan__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 20px;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-phuong-thuc-thanh-toan__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-phuong-thuc-thanh-toan__hero-description {
        font-size: 1rem;
    }

    .page-phuong-thuc-thanh-toan__section-title {
        font-size: 2rem;
    }

    .page-phuong-thuc-thanh-toan__card {
        padding: 20px;
    }

    .page-phuong-thuc-thanh-toan__card-title {
        font-size: 1.4rem;
    }

    .page-phuong-thuc-thanh-toan__cta-title {
        font-size: 1.8rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-phuong-thuc-thanh-toan__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }

    .page-phuong-thuc-thanh-toan__hero-content {
        padding: 0 15px;
    }

    .page-phuong-thuc-thanh-toan__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-phuong-thuc-thanh-toan__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-phuong-thuc-thanh-toan__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px; /* Constrain buttons for better stacking */
        margin: 0 auto;
    }

    .page-phuong-thuc-thanh-toan__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        font-size: 1rem !important;
    }

    /* 2. 单栏长文容器 */
    .page-phuong-thuc-thanh-toan__container {
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-phuong-thuc-thanh-toan__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-top: 15px;
    }

    .page-phuong-thuc-thanh-toan__text-block {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .page-phuong-thuc-thanh-toan__payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-phuong-thuc-thanh-toan__card {
        padding: 20px;
    }

    .page-phuong-thuc-thanh-toan__card-title {
        font-size: 1.3rem;
    }

    .page-phuong-thuc-thanh-toan__card-description {
        font-size: 0.9rem;
    }

    .page-phuong-thuc-thanh-toan__card-list li {
        font-size: 0.9rem;
    }

    .page-phuong-thuc-thanh-toan__btn--card {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-phuong-thuc-thanh-toan__instruction-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-phuong-thuc-thanh-toan__instruction-list li strong {
        font-size: 1.05rem;
    }

    .page-phuong-thuc-thanh-toan__cta-box {
        padding: 25px 15px;
        margin: 30px auto;
    }

    .page-phuong-thuc-thanh-toan__cta-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .page-phuong-thuc-thanh-toan__info-list li {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    /* 3. 通用图片与 figure */
    .page-phuong-thuc-thanh-toan img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-phuong-thuc-thanh-toan__hero-image-wrapper {
        max-height: 250px;
    }

    .page-phuong-thuc-thanh-toan__card-image {
        height: auto; /* Allow auto height for card images on mobile */
        max-height: 150px; /* Cap max height to keep cards compact */
    }

    /* 4. 按钮与按钮容器 (already covered by .page-phuong-thuc-thanh-toan__cta-buttons and .page-phuong-thuc-thanh-toan__btn rules above) */
    .page-phuong-thuc-thanh-toan__cta-buttons--bottom {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px; /* Constrain buttons for better stacking */
        margin: 50px auto 20px auto;
    }

    /* 5. FAQ 区块 */
    .page-phuong-thuc-thanh-toan__faq-question {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .page-phuong-thuc-thanh-toan__faq-answer {
        font-size: 0.95rem;
        padding: 8px 15px 15px;
    }
}