/* ==========================================================================
   DV26 · Công cụ Tính chi phí làm website
   Figma jynpBqG3TaeX4weAd28GoP, page tinh-chi-phi-website: Desktop 212:1792, Mobile 214:2251, Motion 217:2592.
   Lớp riêng: .dv26-tcp-*. Token: page-pricing-2026.css + page-dv26.css.
   ========================================================================== */

/* ---------- hero gọn ---------- */
.dv26-tcp-hero { padding: 56px 24px 48px; background: var(--bg-surface); }
.dv26-tcp-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.dv26-tcp-hero__badge { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.dv26-tcp-hero__lead { max-width: 720px; }
.dv26-tcp-hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.dv26-tcp-hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.dv26-tcp-hero__trust .pg26-ico { flex: none; color: var(--text-success); }

/* ---------- khung công cụ ---------- */
.dv26-tcp { padding: 48px 24px 96px; background: var(--bg-canvas); }
.dv26-tcp__layout { display: flex; align-items: flex-start; gap: 32px; }
.dv26-tcp__form { flex: 1 1 760px; min-width: 0; margin: 0; }
.dv26-tcp__steps { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.dv26-tcp-step { padding: 32px; border: 1px solid var(--border-default); border-radius: 20px; background: #fff; }
.dv26-tcp-step fieldset { display: flex; flex-direction: column; gap: 24px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dv26-tcp-step__head { display: flex; gap: 14px; width: 100%; padding: 0; float: left; }
.dv26-tcp-step__head + * { clear: both; }
.dv26-tcp-step__num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-brand); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.dv26-tcp-step__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dv26-tcp-step__title { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-step__txt small { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* input thật nhưng ẩn, dùng label làm thẻ chọn */
.dv26-tcp input[type="radio"], .dv26-tcp input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* bước 1: thẻ chọn loại */
.dv26-tcp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dv26-tcp-opt { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border-default); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--dv26-ease-out); }
.dv26-tcp-opt:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dv26-tcp-opt__top { display: flex; align-items: flex-start; justify-content: space-between; }
.dv26-tcp-opt__radio { position: relative; width: 20px; height: 20px; border: 1.5px solid var(--border-strong); border-radius: 50%; background: #fff; transition: border-color .2s; }
.dv26-tcp-opt__radio::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--bg-brand); transform: scale(0); transition: transform .3s var(--dv26-spring); }
.dv26-tcp-opt b { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-opt__desc { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dv26-tcp-opt__from { margin-top: auto; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-brand); }
.dv26-tcp-opt:has(input:checked) { border-color: var(--bg-brand); box-shadow: inset 0 0 0 1px var(--bg-brand); background: var(--bg-brand-subtle); }
.dv26-tcp-opt:has(input:checked) .dv26-iconbox { background: #fff; }
.dv26-tcp-opt:has(input:checked) .dv26-tcp-opt__radio { border-color: var(--bg-brand); }
.dv26-tcp-opt:has(input:checked) .dv26-tcp-opt__radio::after { transform: scale(1); }
.dv26-tcp-opt:has(input:focus-visible), .dv26-tcp-chip:has(input:focus-visible), .dv26-tcp-row:has(input:focus-visible), .dv26-tcp-size:has(input:focus-visible) { outline: 2px solid var(--bg-brand); outline-offset: 2px; }

/* bước 2: chip ngành */
.dv26-tcp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dv26-tcp-chip { position: relative; cursor: pointer; }
.dv26-tcp-chip span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--border-default); border-radius: 999px; background: #fff; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--dv26-spring); }
.dv26-tcp-chip:hover span { border-color: var(--border-strong); }
.dv26-tcp-chip input:checked + span { border-color: var(--bg-brand); background: var(--bg-brand); color: #fff; }
.dv26-tcp-chip:active span { transform: scale(.96); }

/* bước 3, 4: dòng chọn nhiều */
.dv26-tcp-rows { display: flex; flex-direction: column; gap: 12px; }
.dv26-tcp-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border-default); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.dv26-tcp-row:hover { border-color: var(--border-strong); }
.dv26-tcp-row__box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid var(--border-strong); border-radius: 6px; background: #fff; color: #fff; transition: background-color .2s, border-color .2s; }
.dv26-tcp-row__tick { transform: scale(0); transition: transform .3s var(--dv26-spring); }
.dv26-tcp-row__icon { background: var(--bg-subtle); }
.dv26-tcp-row__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv26-tcp-row__txt b { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-row__txt small { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dv26-tcp-row__tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--bg-brand-subtle); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .02em; color: var(--text-brand); white-space: nowrap; }
.dv26-tcp-row:has(input:checked) { border-color: var(--bg-brand); box-shadow: inset 0 0 0 .5px var(--bg-brand); background: var(--bg-brand-subtle); }
.dv26-tcp-row:has(input:checked) .dv26-tcp-row__box { border-color: var(--bg-brand); background: var(--bg-brand); }
.dv26-tcp-row:has(input:checked) .dv26-tcp-row__tick { transform: scale(1); }
.dv26-tcp-row:has(input:checked) .dv26-tcp-row__icon, .dv26-tcp-row:has(input:checked) .dv26-tcp-row__tag { background: #fff; }
.dv26-tcp-row:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.dv26-tcp-step.is-landing .dv26-tcp-rows { display: none; }

/* dung lượng hosting */
.dv26-tcp-host { display: flex; flex-direction: column; gap: 12px; }
.dv26-tcp-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-left: 58px; transition: opacity .2s; }
.dv26-tcp-sizes.is-off { opacity: .55; }
.dv26-tcp-size { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--border-default); border-radius: 10px; background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.dv26-tcp-size b { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-size small { font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.dv26-tcp-size:hover { border-color: var(--border-strong); }
.dv26-tcp-size:has(input:checked) { border-color: var(--bg-brand); background: var(--bg-brand); }
.dv26-tcp-size:has(input:checked) b { color: #fff; }
.dv26-tcp-size:has(input:checked) small { color: var(--text-inverse-secondary); }

.dv26-tcp-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-subtle); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dv26-tcp-note .pg26-ico { flex: none; color: var(--text-brand); }
.dv26-tcp-note a { color: var(--text-brand) !important; font-weight: 600; text-decoration: none; }
.dv26-tcp-note a:hover { text-decoration: underline; }
.dv26-tcp-note--brand { background: var(--bg-brand-subtle); color: var(--text-primary); }
.dv26-tcp-note[hidden] { display: none; }

/* ---------- khung kết quả (dính khi cuộn trên desktop) ---------- */
.dv26-tcp-result { flex: 0 0 408px; position: sticky; top: calc(var(--c26-header-h, 72px) + 24px); overflow: hidden; border: 1px solid var(--border-default); border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(0, 20, 54, .08); }
.admin-bar .dv26-tcp-result { top: calc(var(--c26-header-h, 72px) + 56px); }
.dv26-tcp-result__sum { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--dv26-navy); }
.dv26-tcp-result__sum .dv26-overline { color: var(--text-inverse-secondary); }
.dv26-tcp-result__plan { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: #fff; }
.dv26-tcp-result__hot { padding: 4px 10px; border-radius: 999px; background: var(--dv26-lime); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--dv26-navy); }
.dv26-tcp-result__hot[hidden] { display: none; }
.dv26-tcp-result__hot.is-pop { animation: dv26-tcp-pop .45s var(--dv26-spring) both; }
.dv26-tcp-result__price { margin: 0; font-size: 40px; line-height: 48px; font-weight: 700; color: #fff; }
.dv26-tcp-result__sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-inverse-secondary); }
.dv26-tcp-result__why { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 6px 0 0; list-style: none; }
.dv26-tcp-result__why[hidden] { display: none; }
.dv26-tcp-result__why li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--dv26-navy-2); font-size: 12px; line-height: 16px; color: #fff; }
.dv26-tcp-result__why svg { color: var(--bg-accent); }
.dv26-tcp-result__why li.is-new { animation: dv26-tcp-chip .4s var(--dv26-spring) both; }
.dv26-tcp-result__body { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px 28px; }
.dv26-tcp-lines { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--border-default); }
.dv26-tcp-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dv26-tcp-lines li.is-new { animation: dv26-tcp-line .35s var(--dv26-ease-out) both; }
.dv26-tcp-lines span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv26-tcp-lines b { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--text-primary); }
.dv26-tcp-lines small { font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.dv26-tcp-lines strong { flex: none; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); text-align: right; }
.dv26-tcp-lines strong.is-gift { display: flex; align-items: baseline; gap: 8px; color: var(--text-success); }
.dv26-tcp-lines strong.is-gift s { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
.dv26-tcp-row__tag--gift { background: #E8F6EE; color: var(--text-success); }
.dv26-tcp-row:has(input:checked) .dv26-tcp-row__tag--gift { background: #fff; }
.dv26-tcp-total { display: flex; flex-direction: column; gap: 4px; }
.dv26-tcp-total > span:first-child { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-total__v { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--text-brand); }
.dv26-tcp-result__next { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.dv26-tcp-facts { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border-radius: 12px; background: var(--bg-canvas); list-style: none; }
.dv26-tcp-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.dv26-tcp-facts .pg26-ico { flex: none; margin-top: 1px; color: var(--text-brand); }
.dv26-tcp-facts a { color: var(--text-brand) !important; font-weight: 600; text-decoration: none; }
.dv26-tcp-facts a:hover { text-decoration: underline; }
.dv26-tcp-result__actions { display: flex; flex-direction: column; gap: 12px; }
.dv26-tcp-quote .pg26-ico { transition: transform .25s var(--dv26-ease-out); }
.dv26-tcp-quote:hover { transform: scale(1.02); }
.dv26-tcp-quote:hover .pg26-ico { transform: translateX(5px); }
.dv26-tcp-quote { transition: background-color .15s, transform .25s var(--dv26-ease-out); }
.dv26-tcp-result__fine { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-secondary); text-align: center; }
.dv26-tcp-result__fine a { display: block; margin-top: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-brand) !important; text-decoration: underline; text-underline-offset: 2px; }

/* số lăn dọc (frame Motion: 0,45s ease-out-back) */
.dv26-roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.dv26-roll > .dv26-roll__v { grid-area: 1 / 1; white-space: nowrap; }
.dv26-roll__v.is-enter { animation: dv26-roll-in .45s cubic-bezier(.34, 1.4, .64, 1) both; }
.dv26-roll__v.is-leave { animation: dv26-roll-out .3s var(--dv26-ease-out) both; }
.dv26-roll.is-down .dv26-roll__v.is-enter { animation-name: dv26-roll-in-down; }
.dv26-roll.is-down .dv26-roll__v.is-leave { animation-name: dv26-roll-out-down; }
@keyframes dv26-roll-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dv26-roll-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes dv26-roll-in-down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes dv26-roll-out-down { to { transform: translateY(100%); opacity: 0; } }
.dv26-tcp-result__price.is-bump, .dv26-tcp-total.is-bump .dv26-tcp-total__v { animation: dv26-tcp-bump .5s var(--dv26-ease-out) both; }
@keyframes dv26-tcp-bump { 0% { transform: none; } 35% { transform: translateY(-5px); } 70% { transform: translateY(1px); } 100% { transform: none; } }
@keyframes dv26-tcp-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes dv26-tcp-chip { from { opacity: 0; transform: translateY(8px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dv26-tcp-line { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* vào trang: các bước trượt lên lần lượt (data-dv26-reveal trên <ol>), khung kết quả trượt từ phải 48px */
.dv26-js .dv26-tcp__steps[data-dv26-reveal] > li { transition-duration: .6s, .7s, .2s, .2s; transition-delay: calc(var(--i, 0) * 120ms); }
.dv26-js .dv26-tcp__steps[data-dv26-reveal]:not(.is-in) > li { transform: translateY(28px); }
.dv26-js .dv26-tcp-result[data-dv26-reveal] { transition: opacity .6s var(--dv26-ease-out) .2s, transform .75s var(--dv26-ease-out) .2s; }
.dv26-js .dv26-tcp-result[data-dv26-reveal]:not(.is-in) { transform: translateX(48px); }

/* thanh kết quả dính đáy (mobile/tablet) */
.dv26-tcp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9970; display: none; align-items: center; gap: 12px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 16px; background: var(--dv26-navy); box-shadow: 0 -6px 20px rgba(0, 20, 54, .2); transform: translateY(110%); transition: transform .3s var(--dv26-ease-out); }
.dv26-tcp-bar.is-show { transform: none; }
.dv26-tcp-bar__txt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.dv26-tcp-bar__txt small { font-size: 12px; line-height: 16px; color: var(--text-inverse-secondary); }
.dv26-tcp-bar .dv26-roll { font-size: 16px; line-height: 24px; font-weight: 600; color: #fff; }
.dv26-tcp-bar .dv26-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; line-height: 20px; }
body:has(.dv26-tcp-bar.is-show) .c26-cw { bottom: 92px; transition: bottom .3s; }

/* ---------- chi phí gồm những gì ---------- */
.dv26-tcp-cost__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.dv26-tcp-cost__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border-default); border-radius: 20px; background: var(--bg-canvas); }
.dv26-tcp-cost__top { display: flex; flex-direction: column; gap: 14px; }
.dv26-tcp-cost__top > div { display: flex; flex-direction: column; gap: 10px; }
.dv26-tcp-cost__card h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-primary); }
.dv26-tcp-cost__text { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.dv26-tcp-cost__note { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1199px) {
  .dv26-tcp-result { flex-basis: 360px; }
  .dv26-tcp-opts { grid-template-columns: 1fr; }
  .dv26-tcp-opt { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon title radio" "icon desc radio" "icon from radio"; column-gap: 16px; row-gap: 2px; align-items: start; }
  .dv26-tcp-opt__top { display: contents; }
  .dv26-tcp-opt .dv26-iconbox { grid-area: icon; }
  .dv26-tcp-opt__radio { grid-area: radio; }
  .dv26-tcp-opt b { grid-area: title; }
  .dv26-tcp-opt__desc { grid-area: desc; }
  .dv26-tcp-opt__from { grid-area: from; margin-top: 4px; }
}
@media (max-width: 1023px) {
  .dv26-tcp__layout { flex-direction: column; align-items: stretch; }
  .dv26-tcp__form { flex-basis: auto; }
  .dv26-tcp-result { position: static; flex-basis: auto; max-width: 640px; width: 100%; align-self: center; }
  .dv26-tcp-bar { display: flex; }
  .dv26-js .dv26-tcp-result[data-dv26-reveal]:not(.is-in) { transform: translateY(16px); }
  .dv26-tcp-cost__grid { grid-template-columns: 1fr; max-width: 640px; }
}

/* ==========================================================================
   Mobile (Figma Mobile 390)
   ========================================================================== */
@media (max-width: 767px) {
  .dv26-tcp-hero { padding: 28px 24px 32px; }
  .dv26-tcp-hero__copy { gap: 16px; }
  .dv26-tcp-hero__trust { flex-direction: column; gap: 10px; }
  .dv26-tcp { padding: 24px 16px 48px; }
  .dv26-tcp__steps { gap: 16px; }
  .dv26-tcp-step { padding: 20px 16px; border-radius: 16px; }
  .dv26-tcp-step fieldset { gap: 20px; }
  .dv26-tcp-step__title { font-size: 20px; line-height: 28px; }
  .dv26-tcp-opt { padding: 16px; }
  .dv26-tcp-opt__desc { display: none; }
  .dv26-tcp-chips { gap: 8px; }
  .dv26-tcp-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; padding: 14px; }
  .dv26-tcp-row__box { grid-row: 1 / span 2; margin-top: 1px; }
  .dv26-tcp-row__icon { display: none; }
  .dv26-tcp-row__tag { grid-column: 2; justify-self: start; }
  .dv26-tcp-row__txt b { font-size: 15px; line-height: 22px; }
  .dv26-tcp-row__txt small { font-size: 13px; line-height: 18px; }
  .dv26-tcp-row__tag { padding: 3px 8px; font-size: 12px; line-height: 16px; letter-spacing: 0; }
  .dv26-tcp-sizes { gap: 8px; padding-left: 0; }
  .dv26-tcp-size { padding: 10px 12px; }
  .dv26-tcp-size small { font-size: 11px; }
  .dv26-tcp-note { align-items: flex-start; padding: 12px 14px; }
  .dv26-tcp-result { border-radius: 20px; }
  .dv26-tcp-result__sum { gap: 8px; padding: 24px 20px; }
  .dv26-tcp-result__plan { font-size: 20px; line-height: 28px; }
  .dv26-tcp-result__body { gap: 14px; padding: 20px 20px 24px; }
  .dv26-tcp-cost__card { gap: 10px; padding: 20px; border-radius: 16px; }
  .dv26-tcp-cost__top { flex-direction: row; align-items: center; gap: 12px; }
  .dv26-tcp-cost__top > div { gap: 2px; }
  .dv26-tcp-cost__top .dv26-iconbox { width: 40px; height: 40px; border-radius: 10px; }
  .dv26-tcp-cost__card h3 { font-size: 20px; line-height: 28px; }
  .dv26-tcp-cost__text { font-size: 14px; line-height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .dv26-tcp *, .dv26-tcp *::after { animation: none !important; transition: none !important; }
  .dv26-js .dv26-tcp__steps[data-dv26-reveal]:not(.is-in) > li, .dv26-js .dv26-tcp-result[data-dv26-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
