/**
 * Chamspace Bao Gia Thiet Ke — CSS v2
 * Dùng chung style giống Trọn gói, không có cấu trúc công trình
 */

/* ═══ Loại hình & Phong cách — Grid (giống Trọn gói) ═══ */
.tg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:768px){.tg-grid{grid-template-columns:repeat(2,1fr);gap:10px}}
@media(max-width:480px){.tg-grid{grid-template-columns:1fr}}

.tg-style-card{background:#fff;border:2px solid #e8e8e8;border-radius:16px;padding:12px;text-align:center;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:10px;position:relative;overflow:hidden}
.tg-style-card:hover{border-color:#ccc;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.08)}
.tg-style-active{border-color:#E20612!important;box-shadow:0 0 0 4px rgba(226,6,18,0.1)}
.tg-style-thumb{width:100%;aspect-ratio:16/9;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f5f5f5}
.tg-style-thumb img{width:100%;height:100%;object-fit:cover}
.tg-style-fallback{display:flex;flex-direction:column;align-items:center;gap:6px;color:#aaa;font-size:12px}
.tg-style-fallback svg{width:32px;height:32px;stroke:#ccc}
.tg-style-name{font-size:13px;font-weight:700;color:#1a1a1a}

/* ═══ 3 Gói D&B Cards (giống Trọn gói) ═══ */
.tg-db-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tg-db-card{position:relative;background:#fff;border:2px solid #e5e5e5;border-radius:16px;overflow:hidden;cursor:pointer;transition:transform .3s,box-shadow .3s,border-color .3s;display:flex;flex-direction:column}
.tg-db-card:hover{transform:translateY(-4px);box-shadow:0 16px 48px rgba(0,0,0,0.08)}
.tg-db-card--featured{background:#1a1a1a;border-color:#1a1a1a}
.tg-db-card--featured:hover{box-shadow:0 20px 56px rgba(0,0,0,0.25)}
.tg-db-card--premium{background:linear-gradient(160deg,#faf8f5 0%,#f5f0e8 40%,#faf8f5 100%);border:2px solid #d4af37}
.tg-db-card--premium:hover{transform:translateY(-6px);box-shadow:0 24px 64px rgba(0,0,0,0.12),0 8px 24px rgba(212,175,55,0.15)}
.tg-db-card--premium.tg-db-card--active{border-color:#d4af37!important;box-shadow:0 0 0 4px rgba(212,175,55,0.25)!important}
.tg-db-card--active{border-color:#E20612!important;box-shadow:0 0 0 4px rgba(226,6,18,0.12)!important}
.tg-db-card--featured.tg-db-card--active{border-color:#E20612!important}

.tg-db-card-head{padding:28px 24px 0;text-align:center}
.tg-db-card-icon{font-size:28px;margin:0 0 10px;line-height:1;color:#E20612}
.tg-db-card-name{font-size:clamp(22px,2.5vw,28px);font-weight:800;color:#1a1a1a;margin:0 0 2px;letter-spacing:-0.02em}
.tg-db-card--featured .tg-db-card-name{color:#fff}
.tg-db-card--premium .tg-db-card-name{background:linear-gradient(135deg,#c9a84c 0%,#8b6914 50%,#b8941e 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.tg-db-card-tag{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;padding:3px 12px;border-radius:100px;margin:8px 0 4px;color:#999;background:#f0f0f0}
.tg-db-card--featured .tg-db-card-tag{color:#E20612;background:rgba(226,6,18,0.14)}
.tg-db-card--premium .tg-db-card-tag{color:#8b6914;background:rgba(201,168,76,0.15);border:1px solid rgba(201,168,76,0.3)}

.tg-db-card-div{width:32px;height:2px;background:#E20612;margin:16px auto;border-radius:2px;opacity:0.3}
.tg-db-card--featured .tg-db-card-div{opacity:0.5}
.tg-db-card--premium .tg-db-card-div{background:linear-gradient(90deg,#c9a84c,#f0d78c,#c9a84c);width:48px;opacity:0.8}

.tg-db-checklist{list-style:none;margin:0;padding:0 24px;flex:1}
.tg-db-checklist li{font-size:12px;color:#555;padding:8px 0;display:flex;align-items:flex-start;gap:10px;line-height:1.5;border-bottom:1px solid #f0f0f0}
.tg-db-checklist li:last-child{border-bottom:none}
.tg-db-card--featured .tg-db-checklist li{color:rgba(255,255,255,0.7);border-bottom-color:rgba(255,255,255,0.1)}
.tg-db-card--premium .tg-db-checklist li{color:#4a4a4a;border-bottom-color:rgba(0,0,0,0.06)}

.tg-db-checklist .chk-wrap{flex-shrink:0;width:16px;height:16px;margin-top:2px;border-radius:50%;background:#1a1a1a;display:inline-flex;align-items:center;justify-content:center}
.tg-db-checklist .chk-wrap svg{width:10px;height:10px;stroke:#fff}
.tg-db-card--featured .tg-db-checklist .chk-wrap{background:#E20612}
.tg-db-checklist .crs-wrap{flex-shrink:0;width:16px;height:16px;margin-top:2px;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center}
.tg-db-checklist .crs-wrap svg{width:8px;height:8px;stroke:#ccc}
.tg-db-card--featured .tg-db-checklist .crs-wrap svg{stroke:rgba(255,255,255,0.2)}
.tg-db-card--premium .tg-db-checklist .crs-wrap svg{stroke:#ccc}

.tg-db-card-foot{text-align:center;padding:16px 24px 24px}
.tg-db-card-price{font-size:16px;font-weight:700;color:#E20612;line-height:1.4}
.tg-db-card--premium .tg-db-card-price{color:#8b6914!important}

/* ═══ Mobile: compact 3 gói ═══ */
@media(max-width:900px){.tg-db-cards{grid-template-columns:repeat(2,1fr);gap:12px}.tg-db-card--featured{grid-column:1/-1}}
@media(max-width:768px){
  .tg-db-cards{display:flex;flex-direction:column;gap:8px}
  .tg-db-card--featured{grid-column:auto;order:0}
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-checklist,
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-div,
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-foot{display:none}
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-head{padding:14px 16px;display:flex;align-items:center;gap:12px;text-align:left}
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-icon{font-size:18px;margin:0}
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-name{font-size:16px;margin:0}
  .tg-db-card:not(.tg-db-card--expanded) .tg-db-card-tag{margin:0 0 0 auto}
  .tg-db-card.tg-db-card--expanded .tg-db-card-head{padding:20px 24px 0}
  .tg-db-card.tg-db-card--expanded .tg-db-card-name{font-size:20px}
}
@media(max-width:560px){.tg-db-card-name{font-size:20px}}

/* ═══ Checks ═══ */
.tk-check-row{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px}
.tk-check-label{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;cursor:pointer;color:#555;padding:12px 20px;border:1.5px solid #e0e0e0;border-radius:12px;transition:all .15s;user-select:none;font-family:'Plus Jakarta Sans',sans-serif}
.tk-check-label:has(input:checked){border-color:#E20612;background:#fff8f8;color:#1a1a1a}
.tk-check-label input[type=checkbox]{accent-color:#E20612;width:18px;height:18px;cursor:pointer;margin:0}
@media(max-width:600px){.tk-check-row{flex-direction:column;gap:12px}.tk-check-label{font-size:13px;padding:10px 14px}}

/* ═══ Readonly ═══ */
.tk-readonly{width:100%;padding:14px 16px;background:#f8f8f8;border:1.5px solid #e8e8e8;border-radius:12px;font-size:18px;font-weight:700;text-align:center;color:#1a1a1a;box-sizing:border-box;font-family:'Plus Jakarta Sans',sans-serif}
