/* ===== Payment Methods (Hình thức thanh toán) — Redesigned ===== */

.pm-section {
    padding: 60px 0 90px;
    background: #f4f8fb;
}

/* ---- Intro Banner ---- */
.pm-intro-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-left: 5px solid var(--primary-color, #0066b3);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 102, 179, 0.08);
}

.pm-intro-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color, #0066b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-top: 2px;
}

.pm-intro-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

/* ---- Methods Grid (2 cards) ---- */
.pm-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

/* ---- Method Card ---- */
.pm-method-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pm-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.1);
}

/* Card header */
.pm-method-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 30px 20px;
}

.pm-method-card--bank .pm-method-header {
    background: linear-gradient(135deg, #0066b3 0%, #0088e0 100%);
    color: white;
}

.pm-method-card--agent .pm-method-header {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
}

.pm-method-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pm-method-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.pm-method-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

/* Channels list */
.pm-method-channels {
    padding: 22px 30px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: #f8fbfe;
    border-radius: 12px;
    transition: background 0.2s;
}

.pm-channel-item:hover {
    background: #eef5fb;
}

.pm-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pm-method-card--bank .pm-channel-icon {
    background: #e0f0ff;
    color: #0066b3;
}

.pm-method-card--agent .pm-channel-icon {
    background: #e0f7fa;
    color: #0891b2;
}

.pm-channel-item span {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
    padding-top: 6px;
}

/* Notes inside card */
.pm-method-notes {
    padding: 0 30px 28px;
    margin-top: auto;
}

.pm-method-notes h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    margin: 18px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pm-method-notes h4 i {
    margin-right: 6px;
    color: #94a3b8;
}

.pm-note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.pm-note-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.pm-method-card--bank .pm-note-dot {
    background: #0066b3;
}

.pm-method-card--agent .pm-note-dot {
    background: #0891b2;
}

.pm-note-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #555;
}

.pm-note-item strong {
    color: #334155;
}

/* ====== TABLE SECTION ====== */
.pm-table-section {
    background: white;
    border-radius: 20px;
    padding: 36px 36px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pm-table-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.pm-table-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0066b3 0%, #0088e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pm-table-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pm-table-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 4px 0 0;
}

/* Partners row */
.pm-partners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf2;
}

.pm-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    background: #eef3f9;
    color: #0066b3;
}

.pm-partner-badge i {
    font-size: 0.72rem;
}

.pm-partner-badge--wallet {
    background: #fef3e2;
    color: #d97706;
}

/* Table */
.pm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pm-table thead th {
    background: linear-gradient(180deg, #0066b3 0%, #005499 100%);
    color: white;
    font-weight: 600;
    padding: 14px 10px;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.pm-table thead th:last-child {
    border-right: none;
}

.pm-table thead th.pm-th-channel {
    background: linear-gradient(180deg, #004a82 0%, #003d6b 100%);
    text-align: left;
    padding-left: 16px;
    min-width: 200px;
}

.pm-table tbody td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f4f8;
    border-right: 1px solid #f0f4f8;
    vertical-align: middle;
    transition: background 0.15s;
}

.pm-table tbody td:last-child {
    border-right: none;
}

.pm-table tbody tr:last-child td {
    border-bottom: none;
}

.pm-table tbody tr:nth-child(even) {
    background: #fafcfe;
}

.pm-table tbody tr:hover td {
    background: #eef5fb;
}

.pm-channel-cell {
    text-align: left !important;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    padding-left: 16px !important;
    background: #f8fbfe;
}

.pm-row-icon {
    color: var(--primary-color, #0066b3);
    width: 22px;
    text-align: center;
    margin-right: 6px;
    font-size: 0.82rem;
    opacity: 0.7;
}

/* Check icon */
.pm-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pm-check i {
    font-size: 1.1rem;
    color: #22c55e;
}

.pm-note-cell {
    font-size: 0.76rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.4;
    white-space: nowrap;
}

.pm-note-cell i {
    color: #d97706;
    margin-right: 4px;
    font-size: 0.72rem;
}

/* Legend */
.pm-legend {
    display: flex;
    gap: 24px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

.pm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
}

.pm-legend-item .pm-check i {
    font-size: 0.9rem;
}

.pm-legend-dash {
    color: #cbd5e1;
    font-weight: 700;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .pm-table thead th,
    .pm-table tbody td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .pm-section {
        padding: 50px 0 60px;
    }

    .pm-methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pm-table-section {
        padding: 24px 16px 20px;
    }

    .pm-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pm-partners-row {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .pm-intro-banner {
        flex-direction: column;
        gap: 14px;
        padding: 22px 20px;
    }

    .pm-method-header {
        padding: 22px 20px 16px;
    }

    .pm-method-channels {
        padding: 16px 20px 6px;
    }

    .pm-method-notes {
        padding: 0 20px 22px;
    }

    .pm-channel-item {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .pm-section {
        padding: 36px 0 48px;
    }

    .pm-method-card {
        border-radius: 16px;
    }

    .pm-method-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .pm-method-header h2 {
        font-size: 1.02rem;
    }

    .pm-table {
        font-size: 0.76rem;
    }

    .pm-table thead th {
        padding: 10px 4px;
        font-size: 0.72rem;
    }

    .pm-table tbody td {
        padding: 8px 4px;
    }

    .pm-channel-cell {
        font-size: 0.76rem;
    }

    .pm-table-section {
        border-radius: 16px;
        padding: 20px 12px 16px;
    }

    .pm-legend {
        flex-direction: column;
        gap: 8px;
    }

    .pm-partners-row {
        display: none;
    }
}
