/* =========================================================================
   Trang "Bảng giá" — namespace .bgw-* (chỉ tải trên trang này)
   Dùng lại token màu của app.css. Mobile first.
   ========================================================================= */

.bgw-hero, .bgw-tpl, .bgw-host, .bgw-dom, .bgw-edit, .bgw-faq, .bgw-lead { scroll-margin-top: 96px; }

/* Heading — thắng rule .vs-scope hN của theme cha */
.mwd-main .bgw-h2 { color: #12233d; font-weight: 700; }
.mwd-main .bgw-h3 { font-size: 1.1rem; line-height: 1.4; margin: 0 0 14px; color: #12233d; font-weight: 700; }
.bgw-lead { font-size: 1.04rem; line-height: 1.75; color: #3a4a61; }

/* ---------------- HERO ---------------- */
.bgw-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 4.5vw, 60px) 0 clamp(34px, 5vw, 68px);
    background: linear-gradient(160deg, #0f2c55 0%, #1e5aa8 62%, #2f6fbf 100%); }
.bgw-hero__bg { position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(620px 320px at 92% 0%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(520px 300px at 0% 100%, rgba(71,144,205,.35), transparent 60%); }
.bgw-hero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(26px, 3.4vw, 48px); align-items: center; }
.bgw-crumb { font-size: .84rem; color: #bcd6f2; margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.bgw-crumb a { color: #dbe8f7; text-decoration: none; }
.bgw-crumb a:hover { color: #fff; text-decoration: underline; }
.mwd-main .bgw-hero .bgw-eyebrow { color: #ffd561; }
.mwd-main .bgw-hero__title { font-size: clamp(1.65rem, 4.2vw, 2.7rem); line-height: 1.18; font-weight: 800; color: #fff; margin: 0 0 14px; letter-spacing: -.01em; }
.bgw-hero__desc { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.7; color: #eef5fe; margin: 0 0 24px; max-width: 600px; }
.bgw-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.bgw-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bgw-jump__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 16px; text-decoration: none;
    background: #fff; color: var(--mwd-text); box-shadow: 0 16px 36px rgba(6,20,45,.28); transition: transform .18s, box-shadow .18s; }
.bgw-jump__item:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(6,20,45,.34); }
.bgw-jump__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--mwd-bg-soft); color: var(--mwd-primary); margin-bottom: 4px; }
.bgw-jump__ico .mwd-ico { width: 22px; height: 22px; }
.bgw-jump__label { font-weight: 700; color: #12233d; font-size: 1rem; }
.bgw-jump__from { font-size: .86rem; color: var(--mwd-muted); line-height: 1.4; }
.bgw-jump__from strong { display: block; font-size: 1.22rem; font-weight: 800; color: var(--mwd-primary); letter-spacing: -.01em; }

/* ---------------- GIÁ (dùng chung) ---------------- */
.bgw-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; color: #12233d; line-height: 1; }
.bgw-price__from { font-size: .95rem; font-weight: 600; color: var(--mwd-muted); margin-right: 6px; }
.bgw-price__num { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.bgw-price__cur { font-size: 1.2rem; font-weight: 800; margin-left: 1px; align-self: flex-start; padding-top: 4px; }
.bgw-price__unit { font-size: .95rem; font-weight: 600; color: var(--mwd-muted); margin-left: 6px; }
.bgw-badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--mwd-cta-text); background: var(--mwd-cta); padding: 5px 12px; border-radius: 999px; }

.bgw-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.bgw-checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: #26364d; line-height: 1.5; }
.bgw-checks .mwd-ico { width: 21px; height: 21px; color: #2fa96a; flex: 0 0 auto; margin-top: 1px; }
.mwd-main .bgw-aside { margin: 22px 0 0; color: var(--mwd-muted); font-size: .95rem; }
.bgw-aside a { color: var(--mwd-primary); font-weight: 700; }

/* ---------------- MẪU WEBSITE ---------------- */
.bgw-tpl__grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.bgw-tplcard { position: relative; background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--mwd-border); box-shadow: var(--mwd-shadow); }
.bgw-tplcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--mwd-primary), var(--mwd-secondary)); }
.bgw-tplcard__label { margin: 18px 0 8px; color: var(--mwd-muted); font-weight: 600; font-size: .95rem; }
.bgw-tplcard__actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------------- HOSTING ---------------- */
.bgw-plans { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.bgw-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; padding: 26px 22px 22px; box-shadow: var(--mwd-shadow-sm); transition: transform .18s, box-shadow .18s; }
.bgw-plan:hover { transform: translateY(-3px); box-shadow: var(--mwd-shadow); }
.bgw-plan.is-featured { border: 2px solid var(--mwd-primary); box-shadow: 0 18px 40px rgba(30, 90, 168, .18); }
.bgw-plan__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .78rem; font-weight: 700; color: #fff; background: var(--mwd-primary); padding: 5px 14px; border-radius: 999px; }
.mwd-main .bgw-plan__name { font-size: 1.2rem; margin: 0 0 4px; color: #12233d; font-weight: 800; }
.bgw-plan__for { margin: 0 0 18px; color: var(--mwd-muted); font-size: .92rem; line-height: 1.5; min-height: 2.8em; }
.bgw-price--plan { flex-wrap: nowrap; }
.bgw-price--plan .bgw-price__num { font-size: clamp(2rem, 3.2vw, 2.4rem); }
.bgw-plan.is-featured .bgw-price__num { color: var(--mwd-primary); }
.bgw-plan__vat { margin: 8px 0 18px; font-size: .82rem; color: var(--mwd-muted); }
.bgw-plan__specs { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px dashed var(--mwd-border); display: grid; gap: 10px; flex: 1 1 auto; }
.bgw-plan__specs li { display: flex; align-items: flex-start; gap: 9px; font-size: .93rem; line-height: 1.45; color: #3a4a61; }
.bgw-plan__specs .mwd-ico { width: 18px; height: 18px; color: #2fa96a; flex: 0 0 auto; margin-top: 1px; }
.bgw-plan__specs li.is-key { color: #12233d; }
.bgw-plan__specs li.is-key .mwd-ico { color: var(--mwd-primary); }
.bgw-plan__btn { margin-top: auto; }

/* ---------------- TÊN MIỀN ---------------- */
.bgw-dom__groups { display: grid; grid-template-columns: 1fr; gap: 22px; }
.bgw-dom__group { background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; padding: 22px; box-shadow: var(--mwd-shadow-sm); }
.bgw-dom__list { list-style: none; margin: 0; padding: 0; }
.bgw-dom__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tld btn" "price btn"; align-items: center; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--mwd-border); }
.bgw-dom__row:first-child { border-top: 0; padding-top: 4px; }
.bgw-dom__tld { grid-area: tld; font-size: 1.3rem; font-weight: 800; color: #12233d; letter-spacing: -.01em; }
.bgw-dom__price { grid-area: price; font-size: .92rem; color: var(--mwd-muted); }
.bgw-dom__price strong { color: var(--mwd-primary); font-size: 1.02rem; }
.bgw-dom__btn { grid-area: btn; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--mwd-primary); color: var(--mwd-primary); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.bgw-dom__btn:hover { background: var(--mwd-primary); color: #fff; }
.bgw-dom__btn .mwd-ico { width: 16px; height: 16px; }

/* ---------------- CHỈNH SỬA ---------------- */
.bgw-table { background: #fff; border: 1px solid var(--mwd-border); border-radius: 16px; overflow: hidden; box-shadow: var(--mwd-shadow-sm); }
.bgw-table__head { display: flex; justify-content: space-between; padding: 13px 20px; background: var(--mwd-bg-soft); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mwd-primary); }
.bgw-table__body { list-style: none; margin: 0; padding: 0; }
.bgw-table__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--mwd-border); }
.bgw-table__row:first-child { border-top: 0; }
.bgw-table__name { font-weight: 600; color: #12233d; }
.bgw-table__price { color: var(--mwd-muted); white-space: nowrap; }
.bgw-table__price strong { color: var(--mwd-primary); font-size: 1.05rem; }
.bgw-table__row.is-quote .bgw-table__price { color: var(--mwd-gold-ink); font-weight: 700; }
.bgw-ctarow { display: flex; justify-content: center; margin-top: 26px; }

/* ---------------- FAQ ---------------- */
.bgw-faq__list { display: grid; gap: 10px; }
.bgw-faq__item { background: #fff; border: 1px solid var(--mwd-border); border-radius: 12px; overflow: hidden; }
.bgw-faq__q { margin: 0; }
.mwd-main .bgw-faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 16px 18px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; color: #12233d; text-align: left; min-height: 48px; }
.bgw-faq__sign { transition: transform .25s; color: var(--mwd-primary); flex: 0 0 auto; }
.bgw-faq__btn[aria-expanded="true"] .bgw-faq__sign { transform: rotate(45deg); }
.bgw-faq__a { padding: 0 18px 16px; color: var(--mwd-muted); line-height: 1.7; }
.bgw-faq__a p { margin: 0; }

/* ---------------- FORM ---------------- */
.bgw-lead__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.bgw-lead__intro > p { line-height: 1.7; color: var(--mwd-muted); }
.bgw-lead__contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.bgw-lead__contact li { display: flex; align-items: center; gap: 10px; }
.bgw-lead__contact .mwd-ico { width: 20px; height: 20px; color: var(--mwd-primary); flex: 0 0 auto; }
.bgw-lead__contact a { color: #12233d; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bgw-lead__contact a:hover { color: var(--mwd-primary); }
.bgw-lead__formwrap { background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; box-shadow: var(--mwd-shadow); padding: clamp(20px, 3vw, 30px); }
.bgw-form__row { display: grid; grid-template-columns: 1fr; }
.bgw-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bgw-field label { font-size: .9rem; font-weight: 600; color: #33415a; }
.bgw-field .req { color: var(--mwd-danger); }
.bgw-field input, .bgw-field select, .bgw-field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--mwd-border); border-radius: 10px; background: #fbfdff; color: var(--mwd-text); width: 100%; min-height: 46px; }
.bgw-field input:focus, .bgw-field select:focus, .bgw-field textarea:focus { outline: none; border-color: var(--mwd-primary); box-shadow: var(--mwd-ring); }
.bgw-consent label { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; font-size: .9rem; color: var(--mwd-muted); cursor: pointer; }
.bgw-consent input { width: auto; min-height: 0; margin-top: 3px; flex: 0 0 auto; }
.bgw-consent a { color: var(--mwd-primary); }
.bgw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bgw-form__status { display: none; padding: 10px 13px; border-radius: 9px; font-size: .92rem; margin-bottom: 12px; }
.bgw-form__status.is-pending { display: block; background: #eef4fc; color: #24476f; }
.bgw-form__status.is-ok { display: block; background: #e7f7ee; color: #176c3a; border: 1px solid #b6e6c8; }
.bgw-form__status.is-error { display: block; background: #fdecec; color: #b4242a; border: 1px solid #f3c2c4; }
.bgw-form__note { display: flex; align-items: flex-start; gap: 7px; font-size: .8rem; color: var(--mwd-muted); margin: 12px 0 0; }
.bgw-form__note .mwd-ico { width: 14px; height: 14px; margin-top: 2px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 600px) {
    .bgw-plans { grid-template-columns: 1fr 1fr; gap: 22px; }
    .bgw-form__row { grid-template-columns: 1fr 1fr; gap: 14px; }
    .bgw-tplcard__actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .bgw-hero__inner { grid-template-columns: 1.05fr .95fr; }
    .bgw-tpl__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .bgw-tplcard__actions { grid-template-columns: 1fr; }
    .bgw-plans { grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 6px; }
    /* 4 cột ~260px: thu nhỏ số để "199.000đ / tháng" nằm một dòng */
    .bgw-price--plan .bgw-price__num { font-size: 2rem; }
    .bgw-price--plan .bgw-price__unit { font-size: .85rem; margin-left: 4px; }
    .bgw-plan { padding: 26px 20px 20px; }
    .bgw-dom__groups { grid-template-columns: 1fr 1fr; }
    .bgw-lead__grid { grid-template-columns: .85fr 1.15fr; gap: 48px; }
}

/* Mobile: chữ nội dung >= 16px, vùng bấm >= 44px */
@media (max-width: 599px) {
    .bgw-hero__cta .mwd-btn { flex: 1 1 100%; }
    .bgw-jump { gap: 10px; }
    .bgw-jump__item { padding: 14px 12px; }
    .bgw-jump__from strong { font-size: 1.08rem; }
    .bgw-plan__specs li, .bgw-faq__a, .bgw-dom__price, .bgw-plan__for, .bgw-aside, .bgw-table__price { font-size: 1rem; }
    .bgw-plan__for { min-height: 0; }
    .bgw-table__row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .bgw-table__price { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .bgw-jump__item, .bgw-plan, .bgw-faq__sign { transition: none !important; }
}
