/* style/phuong-thuc-thanh-toan.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --card-bg-color: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

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

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

.page-phuong-thuc-thanh-toan__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    color: var(--gold-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-phuong-thuc-thanh-toan__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-phuong-thuc-thanh-toan__section-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.page-phuong-thuc-thanh-toan__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.page-phuong-thuc-thanh-toan__description {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-phuong-thuc-thanh-toan__hero-section {
    padding-top: 10px; /* Rely on body padding for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background-color: var(--deep-navy);
}

.page-phuong-thuc-thanh-toan__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-phuong-thuc-thanh-toan__hero-content {
    padding: 0 15px 60px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.page-phuong-thuc-thanh-toan__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-phuong-thuc-thanh-toan__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-phuong-thuc-thanh-toan__method-grid,
.page-phuong-thuc-thanh-toan__info-block,
.page-phuong-thuc-thanh-toan__note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.page-phuong-thuc-thanh-toan__method-card,
.page-phuong-thuc-thanh-toan__info-card,
.page-phuong-thuc-thanh-toan__note-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
}

.page-phuong-thuc-thanh-toan__method-card:hover,
.page-phuong-thuc-thanh-toan__info-card:hover,
.page-phuong-thuc-thanh-toan__note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-phuong-thuc-thanh-toan__method-image,
.page-phuong-thuc-thanh-toan__info-image,
.page-phuong-thuc-thanh-toan__note-image {
    width: 100%;
    height: 200px; /* Min height for content images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-phuong-thuc-thanh-toan__method-title,
.page-phuong-thuc-thanh-toan__info-title,
.page-phuong-thuc-thanh-toan__note-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    flex-grow: 0;
}

.page-phuong-thuc-thanh-toan__method-description,
.page-phuong-thuc-thanh-toan__info-description,
.page-phuong-thuc-thanh-toan__note-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-phuong-thuc-thanh-toan__method-steps h4,
.page-phuong-thuc-thanh-toan__info-steps h4,
.page-phuong-thuc-thanh-toan__info-list h4,
.page-phuong-thuc-thanh-toan__note-card h4 {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-phuong-thuc-thanh-toan__method-steps ul,
.page-phuong-thuc-thanh-toan__info-steps ul,
.page-phuong-thuc-thanh-toan__info-list ul,
.page-phuong-thuc-thanh-toan__note-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.page-phuong-thuc-thanh-toan__method-steps li,
.page-phuong-thuc-thanh-toan__info-steps li,
.page-phuong-thuc-thanh-toan__info-list li,
.page-phuong-thuc-thanh-toan__note-card li {
    margin-bottom: 8px;
    color: var(--text-main-color);
    font-size: 0.95em;
    position: relative;
    padding-left: 20px;
}

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

.page-phuong-thuc-thanh-toan__faq-section {
    background-color: var(--deep-navy);
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-phuong-thuc-thanh-toan__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-phuong-thuc-thanh-toan__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    outline: none;
    list-style: none;
}

.page-phuong-thuc-thanh-toan__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-phuong-thuc-thanh-toan__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-phuong-thuc-thanh-toan__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-phuong-thuc-thanh-toan__faq-item[open] .page-phuong-thuc-thanh-toan__faq-toggle {
    transform: rotate(45deg);
}

.page-phuong-thuc-thanh-toan__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-phuong-thuc-thanh-toan__faq-item[open] .page-phuong-thuc-thanh-toan__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

.page-phuong-thuc-thanh-toan__support-button {
    margin-top: 20px;
}

.page-phuong-thuc-thanh-toan__conclusion {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-phuong-thuc-thanh-toan__conclusion .page-phuong-thuc-thanh-toan__cta-button {
    margin-top: 30px;
}

/* General image responsiveness */
.page-phuong-thuc-thanh-toan img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General button responsiveness */
.page-phuong-thuc-thanh-toan a[class*="button"],
.page-phuong-thuc-thanh-toan a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-phuong-thuc-thanh-toan__cta-buttons,
.page-phuong-thuc-thanh-toan__button-group,
.page-phuong-thuc-thanh-toan__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-phuong-thuc-thanh-toan__main-title {
        font-size: 2.8em;
    }

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

    .page-phuong-thuc-thanh-toan__method-grid,
    .page-phuong-thuc-thanh-toan__info-block,
    .page-phuong-thuc-thanh-toan__note-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-phuong-thuc-thanh-toan__hero-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-phuong-thuc-thanh-toan {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-phuong-thuc-thanh-toan__hero-section {
        padding-top: 10px !important;
    }

    .page-phuong-thuc-thanh-toan__main-title {
        font-size: 2em;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .page-phuong-thuc-thanh-toan__description {
        font-size: 1em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .page-phuong-thuc-thanh-toan__hero-image-wrapper {
        margin-bottom: 25px;
    }

    .page-phuong-thuc-thanh-toan__hero-image {
        height: auto !important;
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    }

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

    .page-phuong-thuc-thanh-toan__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-phuong-thuc-thanh-toan__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .page-phuong-thuc-thanh-toan__method-grid,
    .page-phuong-thuc-thanh-toan__info-block,
    .page-phuong-thuc-thanh-toan__note-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-phuong-thuc-thanh-toan__method-card,
    .page-phuong-thuc-thanh-toan__info-card,
    .page-phuong-thuc-thanh-toan__note-card {
        padding: 20px;
    }

    .page-phuong-thuc-thanh-toan__method-image,
    .page-phuong-thuc-thanh-toan__info-image,
    .page-phuong-thuc-thanh-toan__note-image {
        height: auto !important; /* Allow image to scale */
        min-height: 200px;
        object-fit: cover;
    }

    .page-phuong-thuc-thanh-toan__method-title,
    .page-phuong-thuc-thanh-toan__info-title,
    .page-phuong-thuc-thanh-toan__note-title {
        font-size: 1.5em;
    }

    .page-phuong-thuc-thanh-toan__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-phuong-thuc-thanh-toan__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    .page-phuong-thuc-thanh-toan__section,
    .page-phuong-thuc-thanh-toan__method-card,
    .page-phuong-thuc-thanh-toan__info-card,
    .page-phuong-thuc-thanh-toan__note-card,
    .page-phuong-thuc-thanh-toan__faq-list,
    .page-phuong-thuc-thanh-toan__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-phuong-thuc-thanh-toan img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-phuong-thuc-thanh-toan a[class*="button"],
    .page-phuong-thuc-thanh-toan a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
      
    .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;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-phuong-thuc-thanh-toan__main-title {
        font-size: 1.8em;
    }

    .page-phuong-thuc-thanh-toan__section-title {
        font-size: 1.5em;
    }
}