/* ==========================================================================
   iGOV Cán bộ - trang Bảng giá (Báo giá)
   Figma: Website-iGOV / node 6000:83193 (tab Khởi tạo) + 6001:85021 (tab Gia hạn)
   ========================================================================== */

/* @font-face cho Inter đã khai báo đầy đủ ở library/css/fonts.css + base.css
   (mỗi weight = một family named, font-weight: normal).
   Trang này chỉ dùng font-family named, không re-declare. */

.igov-baogia {
    font-family: Inter, sans-serif;
    color: #181d27;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    background: url(/sites/igov/images/pages/igov-can-bo-bao-gia/bg.webp) no-repeat center top/cover;
}

.igov-baogia *,
.igov-baogia *::before,
.igov-baogia *::after {
    box-sizing: border-box;
}

.igov-baogia h1,
.igov-baogia h2,
.igov-baogia h3,
.igov-baogia p,
.igov-baogia ul,
.igov-baogia li {
    margin: 0;
}

.igov-baogia img {
    display: block;
    max-width: 100%;
    height: auto;
}

.baogia-container {
    width: 100%;
    max-width: 1328px;
    /* 1280 nội dung + 24 padding 2 bên, đúng tỉ lệ 1280/1920 trên Figma */
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Hero - tiêu đề 1 dòng
   -------------------------------------------------------------------------- */

.baogia-hero {
    padding-top: 64px;
}

.igov-baogia .baogia-hero__title {
    display: block;
    width: 100%;
    font-size: 40px;
    line-height: 52px;
    font-family: Inter Bold;
    letter-spacing: 0;
    text-align: center;
    color: #181d27;
}

/* --------------------------------------------------------------------------
   Tab bảng giá
   -------------------------------------------------------------------------- */

.baogia-pricing {
    margin-top: 64px;
}

.baogia-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.igov-baogia .baogia-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: #fff;
    border: 1px solid #d5d7da;
    border-radius: 9999px;
    font-family: Inter Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #252b37;
    cursor: pointer;
}

.igov-baogia .baogia-tab img {
    flex: none;
    width: 24px;
    height: 24px;
}

.igov-baogia .baogia-tab .baogia-tab__icon {
    display: none;
}

.igov-baogia .baogia-tab .baogia-tab__icon-gray {
    display: block;
}

.igov-baogia .baogia-tab.is-active {
    border: 2px solid #1b49f5;
    font-family: Inter SemiBold;
    box-shadow: 0 8px 30px -6px rgba(116, 135, 255, 0.05), 0 8px 30px -4px rgba(10, 27, 137, 0.03);
}

.igov-baogia .baogia-tab.is-active .baogia-tab__label {
    background: linear-gradient(180deg, #7c86ff 0%, #4f39f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4f39f6;
}

.igov-baogia .baogia-tab.is-active .baogia-tab__icon {
    display: block;
}

.igov-baogia .baogia-tab.is-active .baogia-tab__icon-gray {
    display: none;
}

.baogia-panel {
    display: none;
}

.baogia-panel.is-active {
    display: block;
}

/* --------------------------------------------------------------------------
   Card bảng giá
   -------------------------------------------------------------------------- */

.baogia-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

.baogia-cards--3>.baogia-card {
    flex: 1 1 calc((100% - 48px) / 3);
}

.igov-baogia .baogia-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(116, 135, 255, 0.05), 0 8px 30px rgba(10, 27, 137, 0.03);
}

.baogia-card__head {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.baogia-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(124, 134, 255, 0.1) 0%, rgba(79, 57, 246, 0.1) 100%);
    border-radius: 12px;
}

.baogia-card__icon img {
    width: 24px;
    height: 24px;
}

.igov-baogia .baogia-card__name {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 28px;
    font-family: Inter SemiBold;
    letter-spacing: 0;
    color: #252b37;
}

/* Figma reserve 112px (4 dòng 28px) cho tên gói để 3 card thẳng hàng */
.baogia-card__head .baogia-card__name {
    min-height: 112px;
}

.baogia-card__head .baogia-card__money {
    margin-top: 16px;
}

.baogia-card__money {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.igov-baogia .baogia-card__price {
    font-size: 32px;
    line-height: 40px;
    font-family: Inter Bold;
    letter-spacing: -0.2px;
    color: #252b37;
    white-space: nowrap;
}

.igov-baogia .baogia-card__unit {
    font-size: 20px;
    line-height: 28px;
    font-family: Inter SemiBold;
    letter-spacing: 0;
    color: #a4a7ae;
    white-space: nowrap;
}

.baogia-card__breakdown {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
    width: 100%;
}

.igov-baogia .baogia-card__bd-line {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.igov-baogia .baogia-card__bd-strong {
    font-family: Inter Bold;
    color: #535862;
}

.igov-baogia .baogia-card__desc {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.baogia-check {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0;
    list-style: none;
}

.igov-baogia .baogia-check li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.igov-baogia .baogia-check li img {
    flex: none;
    width: 24px;
    height: 24px;
}

/* --------------------------------------------------------------------------
   Đào tạo triển khai - group box 2 cột
   -------------------------------------------------------------------------- */

.baogia-training {
    margin-top: 24px;
}

.baogia-training .baogia-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 64px 0;
}

.igov-baogia .baogia-group {
    background: #fff;
    border: 1px solid #e9eaeb;
    border-radius: 24px;
    box-shadow: 0 8px 30px -6px rgba(116, 135, 255, 0.05), 0 8px 30px -4px rgba(10, 27, 137, 0.03);
    overflow: hidden;
}

.igov-baogia .baogia-group__title {
    display: block;
    padding: 13px 24px;
    font-size: 24px;
    line-height: 32px;
    font-family: Inter Bold;
    letter-spacing: -0.2px;
    text-align: center;
    color: #252b37;
}

.baogia-group__body {
    display: flex;
    border-top: 1px solid #e9eaeb;
}

.baogia-group__col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
    padding: 24px;
}

.baogia-group__col+.baogia-group__col {
    border-left: 1px solid #e9eaeb;
}

/* checklist trong cột đào tạo gap 12 theo Figma */
.baogia-group__col .baogia-check {
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Lưu ý
   -------------------------------------------------------------------------- */

.baogia-note {
    padding: 24px 0 96px;
}

.baogia-note__box {
    padding: 24px;
    background: #fff;
    border: 1px solid #f8aa0a;
    border-radius: 24px;
}

.igov-baogia .baogia-note__content {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.igov-baogia .baogia-note__label {
    font-family: Inter Bold;
}

.igov-baogia .baogia-note__content ul {
    padding-left: 24px;
    list-style: disc;
}

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

@media (max-width: 1199px) {
    .baogia-hero {
        padding-top: 96px;
    }

    .igov-baogia .baogia-hero__title {
        font-size: 34px;
        line-height: 44px;
    }

    .igov-baogia .baogia-card__price {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 1024px) {
    .baogia-pricing {
        margin-top: 48px;
    }

    .baogia-card__head .baogia-card__name {
        min-height: 0;
    }

    .baogia-cards--3>.baogia-card {
        flex: 1 1 calc((100% - 24px) / 2);
    }

    .baogia-group__body {
        flex-direction: column;
    }

    .baogia-group__col+.baogia-group__col {
        border-left: none;
        border-top: 1px solid #e9eaeb;
    }

    .baogia-note {
        padding-bottom: 72px;
    }
}

@media (max-width: 767px) {
    .baogia-container {
        padding: 0 16px;
    }

    .baogia-hero {
        padding-top: 56px;
    }

    .igov-baogia .baogia-hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .baogia-pricing {
        margin-top: 32px;
    }

    .baogia-tabs {
        gap: 12px;
    }

    .igov-baogia .baogia-tab {
        width: 100%;
    }

    .baogia-cards--3>.baogia-card {
        flex: 1 1 100%;
    }

    .igov-baogia .baogia-card {
        gap: 20px;
        padding: 20px;
    }

    .igov-baogia .baogia-card__name,
    .igov-baogia .baogia-card__unit {
        font-size: 18px;
        line-height: 26px;
    }

    .igov-baogia .baogia-card__price {
        font-size: 26px;
        line-height: 34px;
    }

    .igov-baogia .baogia-group__title {
        font-size: 20px;
        line-height: 28px;
    }

    .baogia-group__col {
        padding: 20px;
    }

    .baogia-note {
        padding-bottom: 56px;
    }

    .baogia-note__box {
        padding: 16px;
    }

    .igov-baogia .baogia-note__content ul {
        padding-left: 20px;
    }
}
