/* ==========================================================================
   BẢNG PHÍ DỊCH VỤ / PHÍ KẾT NỐI - CHỢ THUÊ TẤT
   ========================================================================== */

:root {
    --bp-primary: #0c62bb;
    --bp-primary-dark: #08488e;
    --bp-primary-light: #eaf4fc;
    --bp-border-blue: #238cd8;
    --bp-text-dark: #0c3d78;
    --bp-text-body: #27486e;
    --bp-text-muted: #526f92;
    --bp-yellow: #fede49;
    --bp-yellow-dark: #f0cb24;
    --bp-row-border: #d9e9f8;
    --bp-card-radius: 22px;
}

/* Page Wrapper */
.bangphi-page-wrapper {
    background-color: #f5f9fc;
    min-height: 100vh;
    padding-bottom: 70px;
    font-family: inherit;
}

/* Hero Section */
.bangphi-hero-section {
    background: linear-gradient(135deg, #094a96 0%, #0c62bb 50%, #1582e2 100%);
    position: relative;
    padding: 38px 0 46px;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 35px;
}

.bangphi-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 222, 73, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.bangphi-hero-section::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.bangphi-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bangphi-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.bangphi-breadcrumb a:hover {
    color: #fede49;
}

.bangphi-breadcrumb .divider {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.bangphi-breadcrumb .current {
    color: #fede49;
    font-weight: 600;
}

.bangphi-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.bangphi-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254, 222, 73, 0.2);
    border: 1px solid rgba(254, 222, 73, 0.5);
    color: #fede49;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.bangphi-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bangphi-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 20px;
    max-width: 680px;
    line-height: 1.6;
}

.bangphi-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-calc {
    background-color: #fede49;
    color: #0c3d78;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-hero-calc:hover {
    background-color: #ffd829;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #082952;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: #ffffff;
}

/* ==========================================================================
   MAIN FEE TABLE CARD (Theo thiết kế chuẩn)
   ========================================================================== */

.fee-table-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fee-table-card {
    background: #ffffff;
    border: 2.5px solid var(--bp-border-blue);
    border-radius: var(--bp-card-radius);
    box-shadow: 0 16px 40px rgba(12, 98, 187, 0.09);
    position: relative;
    overflow: hidden;
}

/* Decorative corner swooshes */
.card-swoosh-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.card-swoosh-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

/* Table Header Row */
.fee-table-header {
    background: linear-gradient(180deg, #106ec9 0%, #0c62bb 100%);
    color: #ffffff;
    display: grid;
    grid-template-columns: 31% 20% 21% 28%;
    padding: 16px 20px;
    align-items: center;
}

.header-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-col.col-fee {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 2px;
}

.header-col.col-fee .col-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.header-col.col-time {
    justify-content: center;
    text-align: center;
}

.header-col.col-notes {
    justify-content: flex-start;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.header-subtitle {
    font-size: 11.5px;
    font-weight: 400;
    color: #d8ebfd;
    line-height: 1.2;
}

/* Table Body */
.fee-table-body {
    background: #ffffff;
}

.fee-table-row {
    display: grid;
    grid-template-columns: 31% 20% 21% 28%;
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid var(--bp-row-border);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.fee-table-row:last-child {
    border-bottom: none;
}

.fee-table-row:hover {
    background-color: #f3f8fd;
}

/* Column 1: Category */
.row-col.col-category {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cat-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bp-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(12, 98, 187, 0.25);
    transition: transform 0.25s ease;
}

.fee-table-row:hover .cat-icon-badge {
    transform: scale(1.08);
}

.cat-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--bp-text-dark);
    line-height: 1.25;
}

.cat-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--bp-text-muted);
    line-height: 1.35;
}

/* Column 2: Fee */
.row-col.col-fee {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fee-brush-pill {
    background: #fede49;
    border-radius: 999px;
    padding: 6px 18px;
    min-width: 140px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(254, 222, 73, 0.45);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fee-table-row:hover .fee-brush-pill {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(254, 222, 73, 0.6);
}

.fee-percent {
    font-size: 27px;
    font-weight: 900;
    color: var(--bp-text-dark);
    line-height: 1;
    letter-spacing: -0.5px;
}

.fee-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bp-text-dark);
    margin-top: 3px;
    white-space: nowrap;
}

/* Column 3: Time */
.row-col.col-time {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.apply-time-text {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--bp-text-body);
    line-height: 1.4;
    text-align: center;
}

/* Column 4: Notes */
.row-col.col-notes {
    font-size: 14px;
    color: var(--bp-text-body);
    line-height: 1.5;
    padding-right: 8px;
}

.note-bullet {
    color: var(--bp-text-dark);
    font-weight: 700;
    margin-right: 4px;
}

.note-prefix {
    font-weight: 700;
    color: var(--bp-text-dark);
}

/* Notice Box */
.fee-notice-box {
    background-color: var(--bp-primary-light);
    border: 1px solid #cce5fb;
    border-radius: 14px;
    margin: 22px 24px 18px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notice-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bp-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: bold;
    font-style: italic;
    box-shadow: 0 3px 8px rgba(12, 98, 187, 0.2);
}

.notice-text {
    font-size: 14.5px;
    color: var(--bp-text-dark);
    line-height: 1.6;
    margin: 0;
}

.notice-text strong {
    font-weight: 800;
    color: var(--bp-text-dark);
}

/* Bottom Commitments / Benefits Row */
.fee-commitments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 12px 24px 24px;
    position: relative;
    z-index: 2;
}

.commit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
}

.commit-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bp-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(12, 98, 187, 0.2);
    transition: transform 0.2s ease;
}

.commit-card:hover .commit-icon-wrap {
    transform: scale(1.1);
}

.commit-body {
    display: flex;
    flex-direction: column;
}

.commit-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--bp-text-dark);
    margin: 0 0 2px;
    line-height: 1.25;
}

.commit-desc {
    font-size: 13px;
    color: var(--bp-text-muted);
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   INTERACTIVE FEE ESTIMATOR (CÔNG CỤ TÍNH PHÍ THỰC TẾ)
   ========================================================================== */

.bangphi-calculator-section {
    max-width: 1200px;
    margin: 40px auto 0;
}

.calc-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(12, 98, 187, 0.08);
    border: 1px solid #e1eef9;
    padding: 30px;
    overflow: hidden;
}

.calc-header {
    text-align: center;
    margin-bottom: 25px;
}

.calc-badge {
    display: inline-block;
    background: #eaf4fc;
    color: var(--bp-primary);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.calc-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--bp-text-dark);
    margin: 0 0 6px;
}

.calc-subtitle {
    font-size: 14.5px;
    color: var(--bp-text-muted);
    margin: 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: stretch;
}

.calc-inputs-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--bp-text-dark);
}

.calc-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d1e3f5;
    border-radius: 12px;
    padding: 0 50px 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: #0c3d78;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f9fcff;
}

.calc-input:focus {
    border-color: var(--bp-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 98, 187, 0.15);
}

.calc-unit {
    position: absolute;
    right: 16px;
    font-weight: 700;
    color: #526f92;
    font-size: 15px;
    pointer-events: none;
}

.calc-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d1e3f5;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #0c3d78;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f9fcff;
    cursor: pointer;
}

.calc-select:focus {
    border-color: var(--bp-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 98, 187, 0.15);
}

.calc-quick-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.quick-pill-btn {
    border: 1px solid #d5e5f5;
    background: #ffffff;
    color: #3b5a82;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-pill-btn:hover {
    background: #eaf4fc;
    color: var(--bp-primary);
    border-color: #beddfa;
}

/* Calc Result Box */
.calc-result-box {
    background: linear-gradient(145deg, #0c62bb 0%, #09478c 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(12, 98, 187, 0.25);
    position: relative;
    overflow: hidden;
}

.calc-result-box::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(254, 222, 73, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.res-header {
    margin-bottom: 16px;
}

.res-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.res-rate-badge {
    display: inline-block;
    background: #fede49;
    color: #0c3d78;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 6px;
}

.res-fee-main {
    margin: 12px 0 16px;
}

.res-fee-amount {
    font-size: 34px;
    font-weight: 900;
    color: #fede49;
    line-height: 1.1;
    word-break: break-all;
}

.res-fee-note {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
    line-height: 1.4;
}

.res-action-btn {
    background: #ffffff;
    color: #0c62bb;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.res-action-btn:hover {
    background: #fede49;
    color: #0c3d78;
    transform: translateY(-2px);
}

/* ==========================================================================
   FAQ & POLICY SECTION
   ========================================================================== */

.bangphi-faq-section {
    max-width: 1200px;
    margin: 40px auto 0;
}

.faq-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(12, 98, 187, 0.08);
    border: 1px solid #e1eef9;
}

.faq-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--bp-text-dark);
    margin: 0 0 6px;
}

.faq-desc {
    font-size: 14.5px;
    color: var(--bp-text-muted);
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e3eef8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.is-open {
    border-color: #beddfa;
    background-color: #fafcff;
}

.faq-question {
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--bp-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--bp-primary);
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: var(--bp-primary);
}

.faq-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 14.5px;
    color: var(--bp-text-body);
    line-height: 1.6;
    display: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
    .fee-table-header {
        grid-template-columns: 29% 22% 21% 28%;
        padding: 14px 16px;
    }

    .fee-table-row {
        grid-template-columns: 29% 22% 21% 28%;
        padding: 16px;
    }

    .fee-commitments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 20px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bangphi-hero-title {
        font-size: 24px;
    }

    .bangphi-hero-desc {
        font-size: 14.5px;
    }

    /* Wrap table for mobile with smooth scroll */
    .fee-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }

    .fee-table-card {
        min-width: 700px;
        border-radius: 16px;
    }

    .fee-notice-box {
        margin: 16px;
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .fee-commitments-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px 20px;
        gap: 14px;
    }

    .calc-card,
    .faq-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .calc-title,
    .faq-title {
        font-size: 20px;
    }

    .res-fee-amount {
        font-size: 28px;
    }
}
