/* Trang Mũi v2 — bổ sung trên lp.css: hero tràn ảnh, form 1 ô SĐT, nút nổi, trước–sau, chat, chọn tình trạng */
:root { --cta1: #f26a5b; --cta2: #e8467c; --cta-shadow: rgba(232, 70, 124, .38); }

/* Nút chuyển đổi chính */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 12px 20px; border: 0; border-radius: 16px; text-decoration: none; text-align: center;
  font-weight: 800; font-size: 17.5px; line-height: 1.25; color: #fff; letter-spacing: .1px;
  background: linear-gradient(135deg, var(--cta1) 0%, var(--cta2) 100%); box-shadow: 0 10px 24px var(--cta-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3.2s ease-in-out infinite; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px var(--cta-shadow); }
.cta:active { transform: translateY(1px); }
.cta .arrow { font-size: 20px; }
.cta.inline { width: auto; display: inline-flex; padding: 12px 26px; border-radius: 999px; }
.cta[disabled] { opacity: .75; pointer-events: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Hero tràn ảnh */
.hero2 { position: relative; background: #fff; }
.hero2-media { position: relative; margin: 0; height: min(48vh, 460px); min-height: 300px; overflow: hidden; background: #e9eef0; }
.hero2-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.hero2-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 70%, #fff 100%); }
.hero2 .chip { position: absolute; z-index: 2; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--deep); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ba-badge { position: absolute; z-index: 2; right: 12px; top: 40%; display: flex; flex-direction: column; width: 148px; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.ba-badge img { width: 100%; height: 74px; object-fit: cover; }
.ba-badge span { font-size: 12px; padding: 6px 9px 8px; line-height: 1.35; }
.ba-badge b { color: var(--cta2); }
.ba-badge .tag { position: absolute; top: 6px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; }
.hero2-body { position: relative; z-index: 3; margin-top: -70px; padding-bottom: 34px; }
.hero2 h1 { font-size: clamp(29px, 8vw, 50px); margin-bottom: 10px; }
.hero2 .lead { font-size: 16px; margin-bottom: 12px; color: #3f5b62; }

/* Form 1 ô SĐT */
.lf { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.lf .lf-title { font-weight: 700; font-size: 15.5px; margin: 2px 2px 10px; }
.lf input[type="tel"], .lf input[type="text"] { width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 18px; border: 2px solid #bfdde1; border-radius: 14px; color: var(--ink); background: #fbfeff; margin-bottom: 10px; }
.lf input:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 4px rgba(25,194,211,.18); background: #fff; }
.lf.invalid input[type="tel"] { border-color: #b42318; }
.lf .err { display: none; color: #b42318; font-size: 14px; margin: -4px 2px 8px; }
.lf.invalid .err { display: block; }
.lf .send-error { margin: 10px 2px 0; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 2px 0; font-size: 13.5px; color: var(--muted); }
.assure li::before { content: "✓ "; color: #16a34a; font-weight: 800; }
.or-call { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
.or-call a { color: var(--deep); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Trước – sau */
.ba-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 14px; margin: 22px -18px 0; scrollbar-width: none; }
.ba-grid::-webkit-scrollbar { display: none; }
.ba { position: relative; margin: 0; scroll-snap-align: center; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 60, 70, .12); }
.ba img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; }
.ba.sq img { aspect-ratio: 1 / 1; }
.ba .l, .ba .r { position: absolute; top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding: 4px 9px; border-radius: 8px; }
.ba .l { left: 10px; background: rgba(18, 51, 59, .72); }
.ba .r { right: 10px; background: linear-gradient(135deg, var(--cta1), var(--cta2)); }
.ba figcaption { padding: 10px 14px 13px; font-size: 14px; color: var(--muted); }
.ba figcaption b { color: var(--ink); display: block; font-size: 15px; }
.dots { text-align: center; font-size: 13px; color: var(--muted); margin: 2px 0 0; }

/* Chat tin nhắn khách */
.chat { max-width: 520px; margin: 22px auto 0; display: grid; gap: 9px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.bubble.kh { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.sw { background: linear-gradient(135deg, #12b3c5, var(--deep)); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.bubble small { display: block; font-size: 11.5px; opacity: .7; margin-top: 3px; }

/* Chọn tình trạng mũi */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pick { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 12px; font-weight: 700; font-size: 15px; line-height: 1.3; min-height: 86px; transition: border-color .15s, box-shadow .15s; }
.pick .e { display: block; font-size: 24px; margin-bottom: 6px; }
.pick[aria-pressed="true"] { border-color: var(--cta2); box-shadow: 0 0 0 3px rgba(232,70,124,.15); }
.answer { display: none; margin-top: 14px; background: #fff; border-radius: 18px; padding: 16px; border-left: 5px solid var(--cta2); box-shadow: var(--shadow); }
.answer.show { display: block; animation: fade .25s ease; }
.answer p { margin: 0 0 12px; color: #3f5b62; }

/* So sánh */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 20px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.compare th, .compare td { padding: 12px 12px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--deep); color: #fff; font-size: 14px; }
.compare thead th.bs { background: linear-gradient(135deg, var(--cta1), var(--cta2)); }
.compare td:first-child { font-weight: 700; color: var(--deep); width: 26%; }
.compare tr:last-child td { border-bottom: 0; }
.quote-box { margin-top: 18px; background: #fff; border-radius: 18px; padding: 16px 18px; font-size: 16px; border-left: 5px solid var(--brand); }
.quote-box cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Video bấm để xem */
.vplay { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; }
.vplay span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--cta2); font-size: 28px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.video-card.played .vplay { display: none; }

/* Nhắc nhẹ */
.nudge { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: 0 14px 34px rgba(0,0,0,.22); transform: translateY(30px); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s .3s; }
.nudge.show { transform: none; opacity: 1; visibility: visible; transition: transform .3s ease, opacity .3s ease; }
.nudge p { margin: 0; font-size: 14px; line-height: 1.35; flex: 1; }
.nudge .cta { width: auto; min-height: 44px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.nudge .x { border: 0; background: none; font-size: 22px; color: var(--muted); padding: 0 4px; }

/* Sheet: bước bổ sung */
.qgroup { margin-top: 12px; }
.qgroup .group-label { margin: 0 0 2px; font-size: 15px; }
.qgroup .opt { min-height: 46px; padding: 9px 14px; font-size: 15px; margin-top: 7px; }
.got { display: flex; gap: 10px; align-items: center; background: #e7f8ee; color: #166534; border-radius: 14px; padding: 10px 12px; font-size: 14.5px; margin-bottom: 8px; }
.got b { white-space: nowrap; }
.skip { display: block; width: 100%; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 12px 0 0; }

@media (min-width: 760px) {
  .hero2 .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 40px 18px 60px; }
  .hero2-media { height: auto; aspect-ratio: 4 / 5; min-height: 0; border-radius: 28px; order: 2; }
  .ba-badge { top: auto; bottom: 18px; }
  .hero2-media::after { display: none; }
  .hero2-body { margin-top: 0; }
  .ba-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 26px 0 0; padding: 0; }
  .dots { display: none; }
  .picker { grid-template-columns: repeat(4, 1fr); }
  .lf .row { display: flex; gap: 10px; }
  .lf .row input { margin-bottom: 0; flex: 1; }
  .lf .row .cta { width: auto; white-space: nowrap; }
  .nudge { left: auto; right: 24px; bottom: 24px; width: 380px; }
}
@media (prefers-reduced-motion: reduce) { .cta::after { animation: none; display: none; } }
