/*
  features.css — Tier 1 additions: trust bar, product comparison, catalogue
  lead modal, Zalo widget panel, B2B project-quote page.
*/

/* ── Trust bar (right under hero on homepage) ── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-bar-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.trust-item svg { color: var(--green); flex-shrink: 0; }
.trust-item .sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* ── Compare checkbox on product card ── */
.compare-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 12px 4px 2px; cursor: pointer; }
.compare-check input { accent-color: var(--green); width: 15px; height: 15px; }

/* ── Floating compare bar ── */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  background: var(--charcoal); color: var(--white);
  padding: 14px 24px; transform: translateY(100%); transition: transform var(--dur-mid) var(--ease);
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.compare-bar-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.compare-bar-items { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.compare-bar-item { display: flex; align-items: center; gap: 8px; background: var(--steel); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.compare-bar-thumb { width: 24px; height: 24px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.compare-bar-item button { background: none; border: none; color: var(--on-dark-muted); cursor: pointer; font-size: 11px; }
.compare-bar-actions { display: flex; gap: 10px; }

/* ── Compare modal table ── */
.compare-table-wrap { overflow-x: auto; }
.compare-table { min-width: 600px; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--white); font-weight: 600; min-width: 140px; }
.compare-table th { background: var(--charcoal); color: var(--white); }
.compare-price { color: var(--green); font-weight: 800; font-size: 16px; }

/* ── Catalogue lead modal ── */
.catalogue-modal-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ── Zalo widget panel ── */
.zalo-widget-panel {
  position: fixed; bottom: 88px; right: 24px; width: 300px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 1000;
  opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none;
  transition: all var(--dur-mid) var(--ease); overflow: hidden; border: 1px solid var(--border);
}
.zalo-widget-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.zalo-widget-header { background: #0068ff; color: var(--white); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.zalo-widget-header strong { display: block; font-size: 14px; }
.zalo-widget-header span { font-size: 12px; opacity: .85; }
.zalo-widget-close { background: rgba(255,255,255,.2); border: none; color: var(--white); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.zalo-widget-body { padding: 18px; }
.zalo-widget-body p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.zalo-widget-qr { width: 100%; aspect-ratio: 1; max-width: 140px; margin: 0 auto 14px; background: var(--soft); border: 1px dashed var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; padding: 10px; }

/* ── B2B project quote page ── */
.quote-hero { background: var(--charcoal); padding: 56px 0; text-align: center; }
.quote-hero h1 { color: var(--white); font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; margin-bottom: 12px; }
.quote-hero p { color: var(--on-dark-muted); max-width: 560px; margin: 0 auto; }
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.quote-benefits { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.quote-benefit { display: flex; gap: 14px; align-items: flex-start; }
.quote-benefit .why-icon { width: 40px; height: 40px; }
.quote-benefit h5 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.quote-benefit p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 28px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.file-drop:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.file-drop input { display: none; }
.file-drop-name { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 13px; }
.budget-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.budget-option { border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; font-size: 13px; cursor: pointer; transition: all var(--dur-fast) var(--ease); }
.budget-option:has(input:checked) { border-color: var(--green); background: var(--green-tint); color: var(--green); font-weight: 700; }
.budget-option input { display: none; }

@media (max-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-benefits { position: static; flex-direction: row; flex-wrap: wrap; }
  .quote-benefit { flex: 1 1 260px; }
}
@media (max-width: 640px) {
  .zalo-widget-panel { right: 12px; left: 12px; width: auto; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; }
}
