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

:root {
    --tt88-primary-color: #C91F17;
    --tt88-secondary-color: #E53935;
    --tt88-text-main-color: #FFF5E1;
    --tt88-background-color: #B71C1C;
    --tt88-card-bg-color: #D32F2F;
    --tt88-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --tt88-border-color: #F2B544;
    --tt88-glow-color: #FFCC66;
    --tt88-gold-color: #F4D34D;
    --tt88-deep-red-color: #7A0E0E;
}

.page-phuong-thuc-thanh-toan {
    background-color: var(--tt88-background-color);
    color: var(--tt88-text-main-color); /* Body background is dark, so text should be light */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-phuong-thuc-thanh-toan__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-phuong-thuc-thanh-toan__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background: var(--tt88-deep-red-color);
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--tt88-gold-color);
    line-height: 1.2;
}

.page-phuong-thuc-thanh-toan__description {
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-phuong-thuc-thanh-toan__btn--primary {
    background: var(--tt88-button-gradient);
    color: var(--tt88-deep-red-color);
    border: 2px solid var(--tt88-gold-color);
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

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

.page-phuong-thuc-thanh-toan__btn--secondary {
    background: var(--tt88-primary-color);
    color: var(--tt88-text-main-color);
    border: 2px solid var(--tt88-border-color);
}

.page-phuong-thuc-thanh-toan__btn--secondary:hover {
    background: var(--tt88-secondary-color);
    transform: translateY(-2px);
}

.page-phuong-thuc-thanh-toan__section {
    padding: 60px 0;
}

.page-phuong-thuc-thanh-toan__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--tt88-gold-color);
}

.page-phuong-thuc-thanh-toan__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__dark-bg {
    background-color: var(--tt88-deep-red-color);
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__light-bg {
    background-color: #fff;
    color: #333333;
}

.page-phuong-thuc-thanh-toan__light-bg .page-phuong-thuc-thanh-toan__section-title {
    color: var(--tt88-primary-color);
}

.page-phuong-thuc-thanh-toan__light-bg .page-phuong-thuc-thanh-toan__section-intro {
    color: #555555;
}

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

.page-phuong-thuc-thanh-toan__card {
    background-color: var(--tt88-card-bg-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tt88-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__card-figure {
    margin: 0 0 20px 0;
    overflow: hidden;
    border-radius: 8px;
}

.page-phuong-thuc-thanh-toan__card-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.page-phuong-thuc-thanh-toan__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-phuong-thuc-thanh-toan__btn--small {
    padding: 10px 20px;
    font-size: 1em;
    margin-top: auto;
}

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

.page-phuong-thuc-thanh-toan__step-card {
    background-color: var(--tt88-card-bg-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--tt88-border-color);
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tt88-gold-color);
    color: var(--tt88-deep-red-color);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    border: 2px solid var(--tt88-border-color);
}

.page-phuong-thuc-thanh-toan__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tt88-gold-color);
}

.page-phuong-thuc-thanh-toan__step-text {
    font-size: 0.95em;
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__image-full-width {
    margin: 40px 0;
    text-align: center;
}

.page-phuong-thuc-thanh-toan__image-full-width img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-phuong-thuc-thanh-toan__image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.page-phuong-thuc-thanh-toan__light-bg .page-phuong-thuc-thanh-toan__image-caption {
    color: #555;
}

.page-phuong-thuc-thanh-toan__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-phuong-thuc-thanh-toan__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(242, 181, 68, 0.5);
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tt88-gold-color);
}

.page-phuong-thuc-thanh-toan__feature-text {
    font-size: 0.95em;
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__faq-list {
    margin-top: 30px;
}

.page-phuong-thuc-thanh-toan__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-phuong-thuc-thanh-toan__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    padding: 18px 25px;
    background-color: var(--tt88-primary-color);
    color: var(--tt88-text-main-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-phuong-thuc-thanh-toan__faq-question:hover {
    background-color: var(--tt88-secondary-color);
}

.page-phuong-thuc-thanh-toan__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fff;
    color: #333333;
}

.page-phuong-thuc-thanh-toan__faq-answer p {
    padding: 15px 0;
    margin: 0;
}

/* Active state for FAQ (JS will add this class) */
.page-phuong-thuc-thanh-toan__faq-item.active .page-phuong-thuc-thanh-toan__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 15px 25px;
}

.page-phuong-thuc-thanh-toan__promo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tt88-deep-red-color) 0%, var(--tt88-primary-color) 100%);
    color: var(--tt88-text-main-color);
    text-align: center;
}

.page-phuong-thuc-thanh-toan__flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-phuong-thuc-thanh-toan__promo-content {
    max-width: 600px;
    text-align: left;
}

.page-phuong-thuc-thanh-toan__promo-title {
    font-size: clamp(2em, 3.8vw, 2.8em);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tt88-gold-color);
}

.page-phuong-thuc-thuc-thanh-toan__promo-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--tt88-text-main-color);
}

.page-phuong-thuc-thanh-toan__promo-figure {
    flex-shrink: 0;
    margin: 0;
}

.page-phuong-thuc-thanh-toan__promo-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

@media (max-width: 1024px) {
    .page-phuong-thuc-thanh-toan__container {
        padding: 15px;
    }

    .page-phuong-thuc-thanh-toan__hero-section {
        padding-bottom: 30px;
    }

    .page-phuong-thuc-thanh-toan__main-title {
        font-size: 2.8em;
    }

    .page-phuong-thuc-thanh-toan__section {
        padding: 50px 0;
    }

    .page-phuong-thuc-thanh-toan__cards-grid,
    .page-phuong-thuc-thanh-toan__steps-grid,
    .page-phuong-thuc-thanh-toan__features-grid {
        gap: 20px;
    }

    .page-phuong-thuc-thanh-toan__card,
    .page-phuong-thuc-thanh-toan__step-card,
    .page-phuong-thuc-thanh-toan__feature-item {
        padding: 20px;
    }

    .page-phuong-thuc-thanh-toan__promo-section {
        padding: 60px 0;
    }

    .page-phuong-thuc-thanh-toan__flex-center {
        flex-direction: column;
        gap: 30px;
    }

    .page-phuong-thuc-thanh-toan__promo-content {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* 1. Top section/CTA */
    .page-phuong-thuc-thanh-toan__hero-section {
        padding-top: 10px !important;
        padding-bottom: 25px;
    }
    .page-phuong-thuc-thanh-toan__main-title {
        font-size: 2em;
    }
    .page-phuong-thuc-thanh-toan__description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-phuong-thuc-thanh-toan__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-phuong-thuc-thanh-toan__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Single column long text container */
    .page-phuong-thuc-thanh-toan__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-phuong-thuc-thanh-toan__section {
        padding: 40px 0;
    }
    .page-phuong-thuc-thanh-toan__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-phuong-thuc-thanh-toan__section-intro {
        font-size: 0.95em;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .page-phuong-thuc-thanh-toan__cards-grid,
    .page-phuong-thuc-thanh-toan__steps-grid,
    .page-phuong-thuc-thanh-toan__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-phuong-thuc-thanh-toan__card,
    .page-phuong-thuc-thanh-toan__step-card,
    .page-phuong-thuc-thanh-toan__feature-item {
        padding: 20px;
        margin: 0 15px;
    }

    /* 3. General images/figure */
    .page-phuong-thuc-thanh-toan img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-phuong-thuc-thanh-toan__card-figure img,
    .page-phuong-thuc-thanh-toan__image-full-width img,
    .page-phuong-thuc-thanh-toan__promo-figure img {
        border-radius: 8px !important;
    }
    .page-phuong-thuc-thanh-toan__image-caption {
        font-size: 0.85em;
        padding: 0 15px;
    }

    /* 4. Buttons and button containers (already covered by .page-phuong-thuc-thanh-toan__btn) */
    .page-phuong-thuc-thanh-toan__cta-buttons,
    .page-phuong-thuc-thanh-toan__button-group,
    .page-phuong-thuc-thanh-toan__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
    .page-phuong-thuc-thanh-toan__btn--small {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 5. FAQ blocks */
    .page-phuong-thuc-thanh-toan__faq-item {
        margin: 0 15px 15px 15px;
    }
    .page-phuong-thuc-thanh-toan__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-phuong-thuc-thanh-toan__faq-answer {
        padding: 0 20px;
    }
    .page-phuong-thuc-thanh-toan__faq-answer p {
        padding: 10px 0;
    }
    .page-phuong-thuc-thanh-toan__faq-item.active .page-phuong-thuc-thanh-toan__faq-answer {
        padding: 10px 20px !important;
    }

    .page-phuong-thuc-thanh-toan__promo-content {
        text-align: center;
        padding: 0 15px;
    }
    .page-phuong-thuc-thanh-toan__promo-title {
        font-size: 1.8em;
    }
    .page-phuong-thuc-thanh-toan__promo-text {
        font-size: 1em;
    }
    .page-phuong-thuc-thanh-toan__promo-figure {
        padding: 0 15px;
    }
}