/* ==========================================================
   Zen Hospital AI — UX layer (banner, scroll, Revolut, popups)
   Mobile-first. Loaded after index.css / zen-fixes.css
   ========================================================== */

/* ── 1. Subtle “Află cât trăiești” chip — right of subtitle, light (no black) ── */
.zh-hero-copy{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  width:100%;max-width:1220px;margin:0 auto 10px;
}
.hero-outer .zh-hero-copy .hero-subtitle{
  flex:1 1 auto;min-width:0;margin:0!important;
}
.zh-life-banner{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;
  width:auto!important;max-width:none!important;margin:0!important;padding:6px 10px 6px 12px;
  border-radius:999px;text-decoration:none;position:relative;
  isolation:isolate;min-height:0!important;white-space:nowrap;
  background:linear-gradient(180deg,#fff,#fff7fb)!important;
  border:1px solid #f9c5e4!important;
  box-shadow:0 4px 12px rgba(233,30,140,.10)!important;
  animation:none!important;
  -webkit-tap-highlight-color:transparent;
}
.zh-life-banner-glow{display:none}
.zh-life-banner-text{
  position:relative;z-index:1;font-weight:700;letter-spacing:.02em;text-transform:none;
  font-size:12px;line-height:1.2;color:#c2185b;
  text-shadow:none;animation:none;
}
.zh-life-banner-cta{
  position:relative;z-index:1;font-size:11px;font-weight:700;color:#e91e8c;
  background:#fff;border:1px solid #f3b3d8;
  border-radius:999px;padding:3px 9px;white-space:nowrap;
}
.zh-life-banner:hover{
  border-color:#f48fb1;box-shadow:0 6px 14px rgba(233,30,140,.14);
}
@keyframes zhNeonPulse{0%,100%{opacity:1}50%{opacity:1}}
@keyframes zhNeonText{0%,100%{opacity:1}50%{opacity:1}}
@keyframes zhNeonSpin{to{transform:none}}

@media(min-width:769px){
  .zh-life-banner{padding:7px 12px 7px 14px}
  .zh-life-banner-text{font-size:13px}
  .zh-life-banner-cta{font-size:12px}
}

@media(max-width:768px){
  .zh-hero-copy{display:block;gap:0;margin:0 0 10px}
  .zh-life-banner{display:none!important}
  .hero-outer:has(#mobileCard) .hero-subtitle{-webkit-line-clamp:unset!important;overflow:visible!important}
  .mobile-consult .mc-body{max-height:none;overflow:visible}
  .mc-footer{position:sticky;bottom:0;z-index:6;background:#fff}

  .hero-outer:has(#ms0.active){
    min-height:calc(100dvh - 56px)!important;
  }
  .hero-outer:has(#mobileCard) .hero-title{
    font-size:clamp(22px,6.4vw,28px)!important;line-height:1.16!important;
  }
  .hero-outer:has(#mobileCard) .hero-subtitle{
    font-size:clamp(13px,3.6vw,15px)!important;
  }
  #ms0 #mcObs.mc-obs:not(.mc-obs-expanded){
    min-height:clamp(108px,16vh,148px)!important;
    height:clamp(108px,16vh,148px)!important;
    font-size:16px!important;
  }
  #ms0PlanPicker .mc-plan-title{font-size:clamp(13px,3.6vw,15px)!important}
  .mc-plan-name{font-size:clamp(13px,3.8vw,16px)!important}
  .mc-plan-features li{font-size:clamp(11px,3.1vw,13px)!important}
  .mc-plan-char-hint{font-size:clamp(10px,2.8vw,12px)!important}
  .mc-plan-card{height:100%}
}

/* ── 2. Scrollbar only on mobile card; desktop uses page scroll ── */
@media(max-width:768px){
  .mobile-consult .mc-body,
  #pr2.flow-step.active{
    scrollbar-width:auto;
    scrollbar-color:#3b82f6 #dbeafe;
  }
  .mobile-consult .mc-body::-webkit-scrollbar{
    width:14px;
  }
  .mobile-consult .mc-body::-webkit-scrollbar-track{
    background:#dbeafe;border-radius:8px;border:2px solid #fff;
  }
  .mobile-consult .mc-body::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#2563eb,#7c3aed);
    border-radius:8px;border:2px solid #bfdbfe;min-height:48px;
  }
}
.zh-scroll-hint{
  display:none;align-items:center;justify-content:center;gap:6px;
  margin:2px 0 8px;font-size:11px;font-weight:700;color:#1d4ed8;
  animation:zhBounce 1.2s ease-in-out infinite;
}
.zh-scroll-hint.is-visible{display:flex}
@media(min-width:769px){
  .zh-scroll-hint{display:none!important}
}
.zh-scroll-hint svg{width:14px;height:14px}
@keyframes zhBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

.zh-col-fade{display:none}

/* Desktop: fill first screen; rest of page (clocks etc.) on scroll */
@media(min-width:769px){
  .hero-outer:has(#mainCard){
    min-height:calc(100dvh - 70px);
    display:flex;flex-direction:column;
    padding-top:14px!important;padding-bottom:18px!important;
  }
  .hero-outer:has(#mainCard) .hero-label{
    font-size:13px!important;padding:6px 14px!important;margin-bottom:10px!important;
  }
  .hero-outer:has(#mainCard) .hero-title{
    font-size:clamp(28px,2.6vw,40px)!important;margin-bottom:8px!important;
    line-height:1.15!important;white-space:normal!important;
  }
  .hero-outer:has(#mainCard) .hero-subtitle{
    font-size:clamp(15px,1.2vw,18px)!important;margin-bottom:0!important;line-height:1.5!important;
  }
  .zh-life-banner{padding:8px 14px 8px 16px!important}
  .zh-life-banner-text{font-size:14px!important}
  .zh-life-banner-cta{font-size:13px!important;padding:5px 12px!important}
  .hero-outer:has(#mainCard) .zh-hero-copy{margin-bottom:14px!important}
  .hero-outer:has(#mainCard) > .hero-inner:last-of-type{
    flex:1 1 auto;display:flex;flex-direction:column;min-height:0;padding-bottom:0!important;
  }
  #mainCard.consult-card{
    flex:1 1 auto!important;
    display:flex!important;flex-direction:column!important;
    max-width:100%!important;
    width:100%!important;
    max-height:none!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
  }
  #mainCard .tier-switch{
    flex-shrink:0!important;padding:16px 20px!important;gap:16px!important;
  }
  #mainCard .tier-tab,
  #mainCard .tier-slot .tier-tab{
    min-height:clamp(148px,22vh,200px)!important;padding:16px 18px!important;
  }
  #mainCard .tier-perks li,
  #mainCard .tier-perks-free li{font-size:13px!important;line-height:1.4!important}
  #mainCard .card-split{
    flex:1 1 auto!important;min-height:260px!important;overflow:hidden!important;
  }
  #mainCard .card-split>.card-col{
    min-height:0!important;height:100%!important;overflow:hidden!important;
    max-width:none!important;
  }
  #mainCard .col-body{
    flex:1 1 auto!important;min-height:0!important;
    overflow-y:auto!important;padding:16px 22px!important;
  }
  #mainCard .col-footer{
    flex-shrink:0!important;position:sticky!important;bottom:0!important;
    padding:14px 22px!important;
  }
  #mainCard textarea.fi{
    min-height:clamp(110px,16vh,160px)!important;font-size:16px!important;line-height:1.5!important;
  }
  #mainCard .fi,
  #mainCard select.fi,
  #mainCard input.fi{
    height:48px!important;font-size:15px!important;
  }
  #mainCard .col-footer .btn-primary,
  #mainCard .col-footer .btn-premium{
    height:48px!important;min-width:240px!important;font-size:16px!important;
  }
  #pr2 .upload-zone.active{
    min-height:132px!important;padding:22px 16px!important;margin-top:4px!important;
  }
  #pr2 .upload-zone.active svg{width:32px!important;height:32px!important}
  #pr2 .upload-zone.active p{font-size:14px!important}
  #pr2 #fileList,#pr2 #uploadSummary{min-height:22px}
  #pr2 .prem-base-panel{margin-bottom:8px}
}

/* ── 3. Confirm contact (MVP, no payment) ── */
.zh-rev-brand{
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  margin-bottom:12px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;
}
.zh-rev-brand strong{font-size:13px;color:#0f172a}
.zh-rev-brand span{font-size:11px;color:#64748b;width:100%;text-align:center}
.zh-phone-row label,.zh-pay-email-row label{
  font-size:11px;font-weight:700;color:#475569;display:block;margin-bottom:4px;
}
.zh-phone-input{
  width:100%;height:42px;border:1.5px solid #cbd5e1;border-radius:10px;
  padding:0 12px;font-size:16px;letter-spacing:.08em;font-weight:700;color:#0f172a;
}
.zh-phone-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.zh-phone-hint{font-size:10px;color:#94a3b8;margin:4px 0 10px}
.zh-confirm-btn,.zh-gpay-btn{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  min-height:52px;border:none;border-radius:14px;cursor:pointer;
  background:#2563eb;color:#fff;font-size:15px;font-weight:800;font-family:inherit;
  box-shadow:0 8px 18px rgba(37,99,235,.28);
  -webkit-tap-highlight-color:transparent;
}
.zh-confirm-btn:disabled,.zh-gpay-btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.zh-confirm-btn:not(:disabled):active,.zh-gpay-btn:not(:disabled):active{transform:translateY(1px)}
#premConsent .consent-item{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin:6px 0;color:#334155}
#premConsent input{margin-top:2px;width:16px;height:16px;flex-shrink:0}

/* ── 4. Modals ── */
.zh-modal-backdrop{
  display:none;position:fixed;inset:0;z-index:12000;background:rgba(15,23,42,.55);
  align-items:center;justify-content:center;padding:16px;
}
.zh-modal-backdrop.is-open{display:flex}
.zh-modal{
  background:#fff;border-radius:18px;padding:20px 18px 16px;max-width:420px;width:100%;
  box-shadow:0 20px 50px rgba(0,0,0,.28);text-align:center;
}
.zh-modal h3{margin:0 0 8px;font-size:17px;color:#0f172a}
.zh-modal p{margin:0 0 14px;font-size:13px;color:#475569;line-height:1.5}
.zh-modal-qr{
  width:min(260px,80vw);height:auto;border-radius:16px;background:#fff;
  border:1px solid #e2e8f0;padding:8px;margin:0 auto 12px;display:block;
}
.zh-modal-actions{display:flex;flex-direction:column;gap:8px}
.zh-modal-ok{
  min-height:46px;border:none;border-radius:12px;background:#15803d;color:#fff;
  font-weight:800;cursor:pointer;font-family:inherit;font-size:14px;
}
.zh-modal-ghost{
  min-height:40px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;
  color:#475569;font-weight:700;cursor:pointer;font-family:inherit;font-size:13px;
}

#stripeBuyBtnWrap,#zhMvpTestBanner{display:none!important}

/* ==========================================================
   Full-width UX: less side gap, denser first screen
   ========================================================== */
@media(max-width:768px){
  #siteHeader .hdr{padding-left:8px!important;padding-right:8px!important;max-width:none!important}
  .hero-outer:has(#mobileCard){
    padding-left:0!important;padding-right:0!important;
  }
  .hero-outer:has(#mobileCard) .hero-inner{
    max-width:none!important;width:100%!important;
    padding-left:8px!important;padding-right:8px!important;
  }
  .hero-outer:has(#mobileCard) .zh-hero-copy{max-width:none!important;margin-left:0!important;margin-right:0!important}
  #mobileCard.mobile-consult,
  #mobileCard{
    width:100%!important;max-width:none!important;margin:0!important;border-radius:14px!important;
  }
  .hero-outer:has(#ms0.active) #mobileCard,
  .hero-outer:has(#ms0.active) #ms0.active{
    flex:0 1 auto!important;
  }
  #ms0 .mc-obs-outer{padding:8px 8px 0!important}
  #ms0 .mc-obs-outer:has(.mc-obs-expanded){padding:8px 8px 0!important}
  #ms0PlanPicker{
    padding:4px 8px 8px!important;
    flex:0 0 auto!important;
  }
  .mc-plan-cards{
    gap:8px!important;
    flex:0 0 auto!important;
    align-items:stretch!important;
  }
  .mc-plan-card{
    padding:10px 8px!important;
    height:auto!important;
  }
  .mc-plan-features{flex:0 1 auto!important}
  #mobilePatientPromo{padding-left:8px!important;padding-right:8px!important}
  .footer-inner,.footer-bottom{padding-left:8px!important;padding-right:8px!important;max-width:none!important}
}

@media(min-width:769px){
  :root{--zh-page:min(2200px,calc(100vw - 32px))}
  #siteHeader .hdr,
  .hero-outer:has(#mainCard) .hero-inner,
  .hero-outer:has(#mainCard) .zh-hero-copy,
  footer .footer-inner,
  footer .footer-bottom{
    max-width:var(--zh-page)!important;
    width:100%!important;
  }
  .hero-outer:has(#mainCard) .hero-inner{
    padding-left:18px!important;padding-right:18px!important;
  }
  .hero-outer:has(#mainCard) .zh-hero-copy{max-width:100%!important}
  #mainCard.consult-card,
  .hero-outer:has(#mainCard) .consult-card{
    max-width:100%!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  #mainCard .card-split>.card-col{
    max-width:none!important;width:100%!important;margin:0!important;
  }
  #fs1 .field-group,
  #pr2 .prem-base-panel .field-group{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    max-width:none!important;
    justify-content:stretch!important;
  }
  #fs1 .field-solo,
  #pr2 .prem-base-panel .field-solo{max-width:none!important;width:100%!important}
  #mainCard .tier-switch{padding:18px 22px!important}
  #mainCard .tier-perks,
  #mainCard .tier-perks-free{width:100%!important}
  #mainCard .col-body{padding-left:28px!important;padding-right:28px!important}
  #mainCard .col-footer{padding-left:28px!important;padding-right:28px!important}
}

/* ===== V14 single consultation flow ===== */
body.zh-single-flow #tierSwitch,
body.zh-single-flow .tier-slot,
body.zh-single-flow .badge-premium,
body.zh-single-flow .badge-free,
body.zh-single-flow #zhScrollHint,
body.zh-single-flow #zhScrollHintMobile,
body.zh-single-flow #mcPlanBar,
body.zh-single-flow .zh-pay-email-row,
body.zh-single-flow #premConsent{display:none!important}
body.zh-single-flow .card-col-left{display:none!important}
body.zh-single-flow #ms0Footer{display:block!important}
body.zh-single-flow #premExtras{display:block!important}
body.zh-single-flow .zh-flow-hints{
  list-style:none;margin:0;padding:0 4px 8px;display:flex;flex-direction:column;gap:8px
}
body.zh-single-flow .zh-flow-hints li{
  font-size:13px;line-height:1.45;color:#334155;background:#f8fafc;
  border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px
}
body.zh-single-flow .mc-plan-title{
  text-align:center;font-size:14px;font-weight:800;color:#0f172a;margin:4px 0 10px
}
body.zh-single-flow #zhDeskS2,
body.zh-single-flow #zhDeskS3{display:none!important}
body.zh-single-flow.zh-desk-2 #zhDeskS1,
body.zh-single-flow.zh-desk-2 #zhDeskS3{display:none!important}
body.zh-single-flow.zh-desk-2 #zhDeskS2{display:block!important}
body.zh-single-flow.zh-desk-3 #zhDeskS1,
body.zh-single-flow.zh-desk-3 #zhDeskS2{display:none!important}
body.zh-single-flow.zh-desk-3 #zhDeskS3{display:block!important}
body.zh-single-flow .col-title{font-size:18px}
body.zh-single-flow #mobilePatientPromo{display:none!important}

.zh-inline-acc-promo{
  margin-top:12px;background:linear-gradient(135deg,#111f4d,#2244a2);
  border:1px solid rgba(99,102,241,.35);border-radius:14px;padding:12px 14px;color:#fff;text-align:left
}
.zh-inline-acc-promo-title{font-size:12px;font-weight:800;margin-bottom:4px}
.zh-inline-acc-promo-sub{font-size:11px;opacity:.9;margin-bottom:8px;line-height:1.45}
.zh-inline-acc-btn{
  display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;
  border-radius:9px;background:#fff;color:#1e3a8a;font-size:12px;font-weight:800;border:none;cursor:pointer;font-family:inherit
}
.zh-inline-acc-form{
  margin-top:12px;background:#fff;border:1.5px solid #bfdbfe;border-radius:14px;padding:14px 14px 16px;text-align:left
}
.zh-inline-acc-form-title{font-size:13px;font-weight:800;color:#1e3a8a;margin-bottom:4px}
.zh-inline-acc-form-sub{font-size:11px;color:#475569;margin-bottom:12px;line-height:1.45}
.zh-inline-acc-form label{display:block;font-size:11px;font-weight:700;color:#334155;margin:8px 0 4px}
.zh-inline-acc-form input{
  width:100%;box-sizing:border-box;height:40px;border:1.5px solid #e2e8f0;border-radius:10px;
  padding:0 12px;font-size:14px;font-family:inherit
}
.zh-inline-acc-form input[readonly]{background:#f8fafc;color:#0f172a}
.zh-inline-acc-err{margin-top:8px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:8px;padding:8px 10px;font-size:12px}
.zh-inline-acc-ok{margin-top:8px;background:#f0fdf4;border:1px solid #86efac;color:#15803d;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:700}
.zh-inline-acc-submit{
  margin-top:12px;width:100%;height:42px;border:none;border-radius:10px;background:#1e3a8a;color:#fff;
  font-size:14px;font-weight:800;cursor:pointer;font-family:inherit
}
.zh-wait-title{transition:opacity .35s ease}
.zh-wait-sub{transition:opacity .35s ease}
