/* ==========================================================================
   MediPay — B2B extension sections (value, integrate, case, deploy, faq, contact)
   ========================================================================== */

/* ---- Shared heads ---- */
.b2b-h { font-size: clamp(26px,3.2vw,36px); font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.b2b-p { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 440px; }

/* ---- Browser frame (dashboard mockup) ---- */
.browser { border-radius: 16px; overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); background: #fff; }
.browser .bar { height: 38px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #E7D8CF; display: inline-block; }
.browser .bar i:nth-child(1){ background:#FF6A5E } .browser .bar i:nth-child(2){ background:#FEBC2E } .browser .bar i:nth-child(3){ background:#2ACB42 }
.browser .bar .u { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.browser img { width: 100%; display: block; }

/* ---- A. Value for hospitals ---- */
.value { position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,42,76,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,42,76,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(115% 85% at 80% 46%, #000 0%, rgba(0,0,0,.55) 44%, transparent 76%);
  mask-image: radial-gradient(115% 85% at 80% 46%, #000 0%, rgba(0,0,0,.55) 44%, transparent 76%); }
.value::after { content: ""; position: absolute; width: 340px; height: 340px; right: 6%; top: 12%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,106,46,.10), transparent 66%); }
.value > .container { position: relative; z-index: 1; }
.value .grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 40px; align-items: center; }
.vgroups { display: grid; gap: 22px; }
.vgroup .glabel { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--nav-font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 13px; border-radius: var(--r-pill); margin-bottom: 14px; }
.vgroup.ops .glabel { color: var(--brand-600); background: var(--bg-tint); }
.vgroup.fin .glabel { color: #0F7A57; background: #E5F5EE; }
.vgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.vgroup li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--body); }
.vgroup li svg { width: 21px; height: 21px; flex: none; margin-top: 1px; }
.vgroup.ops li svg { color: var(--brand-600); } .vgroup.fin li svg { color: #17A56E; }
.value .visual { position: relative; }
.value .visual .cap { position: absolute; left: -34px; top: 50%; transform: translateY(-50%); z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); padding: 12px 17px; display: flex; align-items: center; gap: 10px; animation: cap-float 3.4s ease-in-out infinite; }
@keyframes cap-float { 0%,100% { transform: translate(0, -50%); } 50% { transform: translate(0, calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .value .visual .cap { animation: none; } }
.value .visual .cap .d { width: 9px; height: 9px; border-radius: 50%; background: #17A56E; box-shadow: 0 0 0 4px rgba(23,165,110,.18); }
.value .visual .cap b { font: 700 13px/1.2 var(--body-font); color: var(--ink); }
.value .visual .cap span { display:block; font-size: 11.5px; color: var(--muted); }

/* ---- B. Integration & compliance (dark) ---- */
.integrate { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #050A18 0%, #070F22 100%); }
.integrate::before { content: ""; position: absolute; inset: 0; background: url(../assets/bg/network.webp) center/cover no-repeat; opacity: .26; z-index: 0; }
.integrate::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(160deg, rgba(4,8,18,.45) 0%, rgba(4,8,18,.68) 100%); }
.integrate .container { position: relative; z-index: 1; }
.integrate .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.integrate .kicker { color: #FF9A5A; }
.integrate h2 { color: #fff; font-size: clamp(26px,3.2vw,36px); font-weight: 800; margin-top: 14px; }
.integrate .lead { margin-top: 16px; color: #B9C6DE; font-size: 16px; max-width: 440px; }
.comp-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comp-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #E4EAF6; }
.comp-list li svg { width: 20px; height: 20px; color: #FF9A5A; flex: none; }

.hub { position: relative; aspect-ratio: 1/0.86; max-width: 520px; margin: 0 auto; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hub svg.lines g { stroke: rgba(255,255,255,.32); }
.hub .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 20px 44px -16px rgba(4,10,28,.65), inset 0 1px 0 rgba(255,255,255,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; }
.hub .core::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.hub .core img { width: 62px; height: auto; display: block; }
.hub .core span { margin-top: -2px; font-size: 10.5px; font-weight: 600; color: #E9EEF9; letter-spacing: .02em; }
.hub .node { position: absolute; z-index: 2; transform: translate(-50%,-50%); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 13px; padding: 10px 13px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.hub .node .ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(91,180,239,.18); color: #7CC0FF; display: grid; place-items: center; flex: none; }
.hub .node .ic svg { width: 16px; height: 16px; }
.hub .node b { font: 700 12.5px/1.1 var(--body-font); color: #fff; }
.hub .node span { display: block; font-size: 10px; color: #9FB2D0; }
.hub .n1 { left: 22%; top: 12%; } .hub .n2 { left: 80%; top: 14%; } .hub .n3 { left: 92%; top: 50%; }
.hub .n4 { left: 78%; top: 88%; } .hub .n5 { left: 22%; top: 88%; } .hub .n6 { left: 8%; top: 50%; }

/* ---- C. Case study ---- */
.case .grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 46px; align-items: center; }
.case .photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); }
.case .photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.case .photo .tag { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 60px; padding: 8px 15px; font: 700 12px/1 var(--nav-font); color: var(--brand-600); display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--sh-sm); }
.case .photo .tag::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--brand-600); }
.case .metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.case .metrics .m { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; box-shadow: var(--sh-xs); }
.case .metrics .m .v { font: 800 26px/1 var(--nav-font); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case .metrics .m .k { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.quote { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 24px; }
.quote .mark { font: 800 54px/0.6 Georgia, serif; color: var(--brand-400); }
.quote p { font-size: 17px; color: var(--ink); line-height: 1.55; margin: 6px 0 18px; font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .who b { font-size: 14.5px; color: var(--ink); font-weight: 800; }
.quote .who span { display: block; font-size: 12.5px; color: var(--muted); }

/* ---- D. Deploy roadmap + pricing ---- */
.deploy .road { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; position: relative; margin-bottom: 58px; }
.deploy .road::before { content: ""; position: absolute; top: 23px; left: 9%; right: 9%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-400) 0 8px, transparent 8px 16px); }
.rstep { text-align: center; position: relative; }
.rstep .dot { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); color: var(--brand-600); display: grid; place-items: center; font: 800 15px/1 var(--nav-font); box-shadow: var(--sh-sm); position: relative; z-index: 1; }
.rstep h4 { font-size: 15px; font-weight: 800; }
.rstep p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pricing { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; align-items: stretch; max-width: 880px; margin: 0 auto; }
.plan { position: relative; background: linear-gradient(135deg, rgba(255,106,46,.14) 0%, rgba(255,106,46,.035) 20%, rgba(255,106,46,0) 44%), #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px 32px; box-shadow: var(--sh-md); display: flex; flex-direction: column; overflow: hidden; transition: transform .24s, box-shadow .24s; }
.plan::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); opacity: 0; transition: opacity .24s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.plan:hover::after { opacity: 1; }
.plan .pi { position: relative; width: 90px; height: 90px; display: grid; place-items: center; margin: 0 0 14px; }
.plan .pi img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; filter: drop-shadow(0 12px 18px rgba(245,54,31,.3)); }
.plan.featured .pi img { filter: drop-shadow(0 14px 24px rgba(245,54,31,.55)); }
.plan .ptag { align-self: flex-start; font: 700 11px/1 var(--nav-font); letter-spacing: .07em; text-transform: uppercase; padding: 7px 12px; border-radius: 60px; background: var(--bg-tint); color: var(--brand-600); margin-bottom: 12px; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.plan .phi { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 12px 15px; border-radius: 13px; background: var(--bg-soft); font-size: 13px; font-weight: 700; color: var(--ink); }
.plan .phi svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--body); }
.plan li svg { width: 18px; height: 18px; color: var(--brand-500); flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; width: 100%; }
/* Featured — dark premium card */
.plan.featured { background:
   linear-gradient(135deg, rgba(255,106,46,.45) 0%, rgba(255,90,36,.16) 20%, rgba(255,90,36,0) 46%),
   radial-gradient(130% 110% at 100% 0%, #1A2A4C 0%, #101B36 52%, #0C1428 100%);
   border-color: transparent; }
.plan.featured::after { display: none; }
.plan.featured::before { content: "Phổ biến"; position: absolute; top: 24px; right: 24px; font: 700 11px/1 var(--nav-font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad-brand); padding: 7px 12px; border-radius: 60px; box-shadow: var(--sh-brand); }
.plan.featured h3 { color: #fff; }
.plan.featured .sub { color: #AEBBD3; }
.plan.featured .ptag { background: rgba(255,154,90,.16); color: #FF9A5A; }
.plan.featured .phi { background: rgba(255,255,255,.08); color: #fff; }
.plan.featured .phi svg { color: #FF9A5A; }
.plan.featured ul { border-top-color: rgba(255,255,255,.14); }
.plan.featured li { color: #CDD6E6; }
.plan.featured li svg { color: #FF9A5A; }

/* ---- E. FAQ ---- */
.faq .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 16px/1.4 var(--body-font); color: var(--ink); }
.qa button::after { content: ""; position: absolute; right: 6px; top: 24px; width: 11px; height: 11px; border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: rotate(45deg); transition: transform .25s; }
.qa.open button::after { transform: rotate(-135deg); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.qa.open .a { max-height: 260px; padding-bottom: 20px; }
.qa .a p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---- F. Contact ---- */
.contact .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact .info h2 { font-size: clamp(24px,2.8vw,32px); font-weight: 800; margin-top: 14px; }
.contact .info p { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 360px; }
.cinfo { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.cinfo li { display: flex; align-items: center; gap: 14px; }
.cinfo .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--bg-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.cinfo .ic svg { width: 22px; height: 22px; }
.cinfo b { font-size: 15px; color: var(--ink); font-weight: 700; }
.cinfo span { display: block; font-size: 13px; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 30px 30px 32px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; font: 500 14.5px var(--body-font); color: var(--ink); padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(245,54,31,.12); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #b3a79f; }
.field textarea { resize: none; min-height: 96px; scrollbar-width: thin; scrollbar-color: var(--brand-400) transparent; }
.field textarea::-webkit-scrollbar { width: 8px; }

/* Custom select (no native dropdown) */
.cselect { position: relative; }
.cselect-btn { width: 100%; text-align: left; font: 500 14.5px var(--body-font); color: var(--ink); padding: 13px 42px 13px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg-soft); cursor: pointer; position: relative; transition: border-color .2s, box-shadow .2s, background .2s; }
.cselect-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s, border-color .2s; }
.cselect.open .cselect-btn { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(245,54,31,.12); background: #fff; }
.cselect.open .cselect-btn::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--brand-600); }
.cselect-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-md); max-height: 210px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; scrollbar-width: thin; scrollbar-color: var(--brand-400) transparent; }
.cselect-list::-webkit-scrollbar { width: 8px; }
.cselect.open .cselect-list { opacity: 1; visibility: visible; transform: none; }
.cselect-list li { padding: 11px 12px; border-radius: 8px; font-size: 14px; color: var(--body); cursor: pointer; transition: background .15s, color .15s; }
.cselect-list li:hover { background: var(--bg-soft); color: var(--ink); }
.cselect-list li.sel { background: var(--bg-tint); color: var(--brand-600); font-weight: 700; }
.form .btn { width: 100%; }
.form .note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.zalo-card { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-sm); max-width: 400px; }
.zalo-card .qr { width: 108px; height: 108px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.zalo-card .zt { font: 700 11px/1 var(--nav-font); letter-spacing: .08em; text-transform: uppercase; color: #0068FF; }
.zalo-card b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.4; margin: 7px 0 12px; }
.zalo-card .btn-zalo { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--nav-font); color: #fff; background: #0068FF; padding: 11px 16px; border-radius: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.zalo-card .btn-zalo:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(0,104,255,.55); }
.zalo-card .btn-zalo svg { width: 15px; height: 15px; }
@media (max-width: 420px){ .zalo-card { flex-direction: column; text-align: center; } }

/* ---- Responsive ---- */
@media (max-width: 940px){
  .value .grid, .integrate .grid, .case .grid, .contact .grid { grid-template-columns: 1fr; gap: 34px; }
  .value .visual, .case .photo { max-width: 560px; }
  .hub { max-width: 420px; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .faq .grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .deploy .road { grid-template-columns: 1fr 1fr; gap: 26px 10px; }
  .deploy .road::before { display: none; }
  .case .metrics { grid-template-columns: 1fr 1fr; }
  .comp-list { grid-template-columns: 1fr; }
  .contact .form .row2 { grid-template-columns: 1fr; }
  .hub { aspect-ratio: 1/1.15; }
  .hub .node span { display: none; }
}
