
/* MDC · Khảo sát 2026 — refreshed UI layer.
   Presentation only. All official question, save, resume and submission logic stays in app.js. */
#root .qa-full {
  --qa-accent:#128c90;
  --qa-accent2:#58c6b8;
  --qa-ink:#183c4b;
  --qa-muted:#63838e;
  --qa-stroke:#dce9e8;
  color:var(--qa-ink);
  min-height:100dvh;
  overflow:visible;
  padding:18px clamp(14px,3.5vw,56px) 38px;
  background:
    radial-gradient(ellipse at 9% 4%,rgba(104,209,196,.18),transparent 38%),
    radial-gradient(ellipse at 96% 23%,rgba(167,206,246,.25),transparent 36%),
    linear-gradient(155deg,#f4fbf9 0%,#f9fcff 53%,#f7f9fe 100%);
  font-family:"Be Vietnam Pro",system-ui,-apple-system,Arial,sans-serif;
}
#root .qa-full::before {
  opacity:.25;
  background-image:radial-gradient(#7ab5b8 0.65px,transparent 0.8px);
  background-size:22px 22px;
}
#root .qa-full.qa-indigo {--qa-accent:#526fb7;--qa-accent2:#6bbeca}
#root .qa-full.qa-cyan   {--qa-accent:#168ca6;--qa-accent2:#58c9bd}
#root .qa-full.qa-green  {--qa-accent:#18866e;--qa-accent2:#8ad2a8}
#root .qa-full.qa-coral  {--qa-accent:#bf6e7a;--qa-accent2:#e8b291}
#root .qa-full.qa-gold   {--qa-accent:#a17b36;--qa-accent2:#dfbf6a}
#root .qa-top,
#root .qa-meter,
#root .qa-map,
#root .qa-board,
#root .qa-portal,
#root .qa-disclaimer{max-width:1220px;margin-left:auto;margin-right:auto}
#root .qa-top {
  height:auto;min-height:70px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
  background:rgba(255,255,255,.94);border:1px solid var(--qa-stroke);
  border-radius:19px;padding:12px 18px;box-shadow:0 7px 27px rgba(19,75,99,.06);
}
#root .qa-quiet {
  display:inline-flex;align-items:center;gap:8px;justify-self:start;
  border:1px solid #cbdfe2;background:#f7fcfc;color:#315f70;
  border-radius:11px;padding:12px 16px;min-height:44px;
  font-size:12px;font-weight:800;letter-spacing:0;
  transition:background .15s,border-color .15s,transform .15s;
}
#root .qa-quiet:hover{background:#e5f5f2;border-color:#99cdc9;transform:translateY(-1px)}
#root .qa-brand {color:#173d50;font-size:clamp(15px,1.45vw,19px);font-weight:850;
  letter-spacing:.15px;text-align:center;font-family:"Be Vietnam Pro",system-ui,sans-serif}
#root .qa-brand strong{color:var(--qa-accent)}
#root .qa-brand span {color:#8aa0ab;font-size:11px;letter-spacing:0}
#root .qa-phase {
  justify-self:end;display:inline-flex;align-items:center;
  border:1px solid #cfece4;background:#edfaf6;border-radius:999px;
  color:#16735f;font-size:11px;letter-spacing:.15px;line-height:1.2;
  font-weight:850;padding:10px 13px;white-space:nowrap;
}
#root .qa-meter{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:17px;
  padding:0 12px;margin-top:22px;margin-bottom:14px;
}
#root .qa-meter>span{
  font-size:12px;font-weight:800;color:#547686;letter-spacing:.3px;
}
#root .qa-meter strong{font-size:15px;color:#256e73;font-family:"Be Vietnam Pro",sans-serif}
#root .qa-meter-track{
  height:11px;border-radius:999px;overflow:hidden;min-width:35px;
  background:#e4eff0;border:1px solid #d3e7e8;
}
#root .qa-meter-track i{
  height:100%;border-radius:999px;background:linear-gradient(90deg,#39ab9d,var(--qa-accent2));
  box-shadow:none;transition:width .28s ease;
}
#root .qa-map{
  display:flex;gap:6px;align-items:stretch;margin-top:0;margin-bottom:20px;
  padding:12px 15px;border-radius:18px;background:rgba(255,255,255,.95);
  border:1px solid var(--qa-stroke);box-shadow:0 8px 24px rgba(24,72,94,.05);
}
#root .qa-map-node{
  min-width:0;min-height:77px;flex:1;display:flex;gap:2px;
  justify-content:center;align-items:center;flex-direction:column;
  color:#7a949d;border-radius:12px;padding:7px 3px;
}
#root .qa-map-node.active{background:#edf8f6;color:#185f66}
#root .qa-map-icon{
  width:33px;height:33px;font-size:17px;color:#426471;
  border-radius:11px;background:#f1f7f8;border:1px solid #e0ecee;filter:none;
}
#root .qa-map-node.active .qa-map-icon{
  background:var(--qa-accent);border-color:var(--qa-accent);
  box-shadow:0 4px 12px rgba(36,126,125,.17);color:white;
  transform:none;
}
#root .qa-map-node.complete .qa-map-icon{background:#d9f4e9;border-color:#91d9b6;color:#13765e}
#root .qa-map-label{
  color:#5f7c87;font-size:11px;font-weight:750;margin-top:3px;
}
#root .qa-map-node.active .qa-map-label{color:#19616d}
#root .qa-map-counter,.qa-map-node.complete .qa-map-counter{color:#829aa5;font-size:10px}
#root .qa-map-link{width:3%;min-width:6px;height:2px;background:#cddfdf;top:25px}
#root .qa-board{
  display:grid;grid-template-columns:minmax(235px,.76fr) minmax(0,1.6fr);
  gap:22px;align-items:start;margin-top:0;margin-bottom:14px;
}
#root .qa-visual{
  min-height:430px;display:flex;flex-direction:column;overflow:hidden;
  border-radius:23px;border:1px solid rgba(48,123,135,.2);
  background:
    radial-gradient(ellipse at 75% 27%,rgba(118,218,192,.3),transparent 55%),
    linear-gradient(146deg,#0d5665 0%,#176b73 52%,#2f8a83 100%);
  color:white;padding:25px 22px;
  box-shadow:0 14px 40px rgba(25,83,88,.13);
}
#root .qa-visual::after{
  pointer-events:none;opacity:.27;
  background:
    radial-gradient(circle at 24% 26%,#e0fff3 1.5px,transparent 2px),
    radial-gradient(circle at 78% 64%,#e0fff3 1.5px,transparent 2px);
  background-size:92px 110px,130px 140px;
}
#root .qa-visual-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
#root .qa-visual .qa-eyebrow{
  font-size:12px;letter-spacing:.5px;line-height:1.6;color:#e8fffa;font-weight:850;
}
#root .qa-online{
  color:#d2fff0;font-size:10px;letter-spacing:0;
  background:#ffffff19;border:1px solid #ffffff35;border-radius:999px;
  padding:6px 9px;
}
#root .qa-visual-center {flex:1;min-height:202px;position:relative}
#root .qa-scanner{border-color:rgba(223,255,244,.34)}
#root .qa-scanner1{width:min(73%,210px);border-style:solid;animation:qaRotate 52s linear infinite}
#root .qa-scanner2{width:min(60%,170px);border-color:#c9f4e38a;animation:qaPulse 5s ease-in-out infinite}
#root .qa-target{
  width:116px;height:116px;display:grid;place-items:center;border-radius:50%;
  background:rgba(255,255,255,.98);
  border:5px solid rgba(239,255,250,.9);
  box-shadow:0 16px 45px #042f3977,0 0 0 14px #ffffff18;
  font-size:0!important;color:transparent!important;
  text-shadow:none;filter:none;animation:qaFloat 5.5s ease-in-out infinite;
}
#root .qa-target::before{
  content:"";display:block;width:92px;height:92px;border-radius:50%;
  background:url("mdc-logo.webp") center/contain no-repeat;
}
#root .qa-dash{color:#dcfff0;font-size:21px}
#root .qa-visual-bottom>b{font-size:17px;font-weight:850;line-height:1.45;color:#fff}
#root .qa-visual-bottom>p{
  color:#d9f1ee;font-size:12px;line-height:1.7;margin:9px 0 0;
}
#root .qa-collect{margin-top:20px;gap:7px}
#root .qa-collect span{
  min-width:24px;text-align:center;padding:5px 7px;
  color:#a8d6d1;background:#ffffff10;border:1px solid #ffffff39;
  border-radius:8px;
}
#root .qa-collect span.filled{background:#dffcf1;color:#12765f;border-color:#dffcf1;box-shadow:none}
#root .qa-question{
  min-width:0;min-height:435px;padding:clamp(22px,2.7vw,38px);
  border:1px solid #dfeceb;border-radius:23px;
  background:#fff;color:var(--qa-ink);
  box-shadow:0 18px 48px rgba(30,83,105,.09);
}
#root .qa-question-top{
  padding-bottom:18px;border-bottom:1px solid #ebf2f1;align-items:center;flex-wrap:wrap;
}
#root .qa-question-number{
  font-size:11px;letter-spacing:.25px;color:#708f9c;font-weight:800;
}
#root .qa-qindex {
  background:#eaf7f5;color:#147a7a;border:1px solid #cceae6;
  border-radius:999px;padding:8px 13px;font-size:11px;font-weight:850;
}
#root .qa-step-label {
  margin:20px 0 9px;font-size:11px;color:var(--qa-accent);
  letter-spacing:.75px;font-weight:850;
}
#root .qa-question h1 {
  color:#163c51;font-size:clamp(22px,2.4vw,31px);font-weight:850;
  letter-spacing:-.45px;line-height:1.48;margin:0 0 23px;
}
#root .qa-choices{margin:13px 0 20px}
#root .qa-full .mdc3-typed {
  border:1px solid #cfe7e5;background:#f5fbfa;border-radius:18px;
  padding:22px 23px;margin:5px 0 4px;
  color:var(--qa-ink);font-size:14px;
  box-shadow:none;
}
#root .qa-full .mdc3-typed>h3{
  margin:0 0 7px;color:#145b63;font-size:17px;letter-spacing:0;font-weight:850;
}
#root .qa-full .mdc3-typed>p:not(.mdc3-error){
  color:#647f89;font-size:13px;line-height:1.65;margin:0 0 15px;
}
#root .qa-full .mdc3-options{
  display:grid;gap:8px;margin:12px 0 17px;
}
#root .qa-full .mdc3-opt{
  background:#fff;border:1px solid #dceae9;border-radius:12px;
  padding:11px 14px;min-height:45px;display:flex;align-items:center;
  color:#315668;font-size:14px;font-weight:650;line-height:1.5;
  box-shadow:0 2px 5px rgba(28,84,99,.025);
}
#root .qa-full .mdc3-typed label{
  color:#185b65;font-weight:850;font-size:13px;margin:17px 0 9px;
}
#root .qa-full .mdc3-typed textarea {
  display:block;min-height:103px;width:100%;
  resize:vertical;border:1.5px solid #bbd6d8;border-radius:13px;
  padding:14px 16px;background:#fff;color:#173b4c;
  font-size:15px;line-height:1.65;box-shadow:inset 0 1px 3px #12475808;
}
#root .qa-full .mdc3-typed textarea:focus{
  outline:3px solid rgba(64,195,174,.17);outline-offset:0;border-color:#21a399;
}
#root .qa-full .mdc3-typed button{
  display:inline-flex;justify-content:center;align-items:center;
  border:0;border-radius:12px;min-height:49px;
  background:linear-gradient(110deg,#0b8988,#0d6f7d);color:#fff;
  padding:12px 21px;font-size:13px;font-weight:850;
  box-shadow:0 8px 18px rgba(17,127,126,.17);
}
#root .qa-full .mdc3-typed button:hover:not(:disabled){filter:brightness(1.08)}
#root .qa-full .mdc3-error{font-size:13px;color:#ad3d52;line-height:1.6;margin:9px 0}
#root .qa-scale-heading{gap:9px;margin:0 0 12px}
#root .qa-scale-heading b{color:#315361;font-size:12px}
#root .qa-level-grid{gap:9px}
#root .qa-level{border:1px solid #dbe9e8;background:#f8fcfb;border-radius:13px}
#root .qa-level.chosen{background:#e9f8f5;border:2px solid #26a396;box-shadow:0 6px 15px #2a968e20}
#root .qa-level-number{color:var(--qa-accent)}
#root .qa-action{background:#f9fcfc;border:1px solid #e0eaea;color:#235364}
#root .qa-action:hover{background:#edf8f7;border-color:#a6d5d0}
#root .qa-action.chosen{border-color:#26a396;background:#e9f8f5}
#root .qa-action-icon{background:#e5f6f2;color:#208c84;border:1px solid #cce8e3}
#root .qa-journal{border:1px solid #d8eae8;background:#f6fcfa}
#root .qa-journal-title{color:#247e79}
#root .qa-journal-input,#root .qa-other input{border-color:#ccdfdf;color:var(--qa-ink)}
#root .qa-journal-input:focus,#root .qa-other input:focus{border-color:#30b0a3;outline:3px solid #75d8c84a}
#root .qa-controls{
  border-top:1px solid #e8f0ef;padding-top:17px;margin-top:23px;
}
#root .qa-btn-back,#root .qa-btn-next{
  min-height:45px;border-radius:12px;font-size:12px;letter-spacing:0;padding:12px 16px;
}
#root .qa-btn-back{background:#edf3f5;color:#46707b}
#root .qa-btn-next{
  background:linear-gradient(110deg,#0f9a94,#117487);
  color:#fff;box-shadow:0 8px 20px #1b8a9030;
}
#root .qa-btn-next:hover{filter:brightness(1.07)}
#root .qa-bottom-note{font-size:11px;color:#7d989e;line-height:1.65}
#root .qa-disclaimer{
  text-align:center;color:#72919c;font-size:11px;
  line-height:1.7;padding:10px 8px 0;
}
#root .qa-portal {
  gap:32px;margin-top:26px;min-height:450px;
}
#root .qa-portal h1{color:#245766;font-size:clamp(33px,4.2vw,54px)}
#root .qa-portal-copy>p{color:#5e8190;font-size:14px;line-height:1.8}
#root .qa-portal .qa-eyebrow{color:var(--qa-accent);font-size:11px}
#root .qa-station-badge{background:#e9f8f5;border-color:#a8d9d1}
#root .qa-station-badge span{color:#306c73}
#root .qa-station-goal>div{background:white;border:1px solid #dcece9}
#root .qa-station-goal b{color:#1d646b}
#root .qa-station-goal span{color:#688893}
#root .qa-portal-illustration .qa-halo{border-color:#83c8bf}
#root .qa-portal-illustration .qa-halo-core{
  background:linear-gradient(135deg,#e5f8f4,#b8e8e3);
  color:#14877f;border-color:#a0d9ce;
  box-shadow:0 15px 55px #268e8b28;
}
#root .qa-puzzle{background:#fff;border-color:#cce4df;color:#335e68}
#root .qa-code{color:#467784}
#root .qa-code b{background:#edf8f6;color:#17616a;border-color:#cce6e1}
#root .qa-symbol{background:linear-gradient(125deg,#e8faf5,#d5ecee);color:#245d67;border-color:#b4ddd7;box-shadow:0 5px 0 #a8cfca}
#root .qa-hint{color:#638b91!important}
#root .qa-enter-station{font-size:13px}
#root .qa-privacy-label{color:#658992!important}
#root .qa-visual-center,#root .qa-target,#root .qa-map-icon{user-select:none}
#root .qa-quiet:focus-visible,#root .qa-full button:focus-visible{
  outline:3px solid #20b2a7;outline-offset:3px;
}
@media(max-width:1050px){
  #root .qa-board{grid-template-columns:1fr;gap:15px;max-width:850px}
  #root .qa-visual{min-height:0;padding:16px 20px}
  #root .qa-visual-center{display:none}
  #root .qa-visual-bottom{margin-top:9px}
  #root .qa-visual-bottom>p{display:none}
  #root .qa-collect{margin-top:10px}
  #root .qa-question{padding:clamp(20px,4vw,33px)}
  #root .qa-portal{grid-template-columns:1fr minmax(180px,230px)}
}
@media(max-width:680px){
  #root .qa-full{padding:10px 11px 30px}
  #root .qa-top{
    min-height:0;grid-template-columns:auto 1fr;gap:8px;
    padding:11px 12px;border-radius:14px;
  }
  #root .qa-brand{display:none}
  #root .qa-phase{font-size:10px;padding:9px 11px}
  #root .qa-quiet{min-height:39px;padding:9px 12px;font-size:11px}
  #root .qa-meter{
    gap:10px;padding:0 4px;margin:16px auto 13px;
    grid-template-columns:1fr auto;
  }
  #root .qa-meter>span{font-size:11px}
  #root .qa-meter strong{font-size:12px}
  #root .qa-meter-track{grid-column:1/-1;grid-row:2;height:9px}
  #root .qa-map{
    gap:5px;padding:8px;overflow-x:auto;scrollbar-width:thin;
    margin-bottom:14px;border-radius:13px;
  }
  #root .qa-map-node{flex:0 0 60px;min-width:60px;min-height:68px}
  #root .qa-map-icon{height:29px;width:29px;font-size:15px}
  #root .qa-map-link{flex:0 0 8px;min-width:8px;width:8px}
  #root .qa-map-label{font-size:10px}
  #root .qa-board{margin:0 auto;gap:12px}
  #root .qa-visual{padding:15px;border-radius:15px;min-height:0}
  #root .qa-visual .qa-eyebrow{font-size:10px}
  #root .qa-online{font-size:9px;padding:5px 7px}
  #root .qa-visual-bottom>b{font-size:13px}
  #root .qa-visual-bottom>p,#root .qa-collect{display:none}
  #root .qa-question{
    border-radius:16px;padding:20px 16px;min-height:0;
  }
  #root .qa-question-top{padding-bottom:13px;gap:8px}
  #root .qa-question-number{font-size:10px}
  #root .qa-qindex{font-size:10px;padding:7px 10px}
  #root .qa-step-label{font-size:10px;margin:17px 0 8px}
  #root .qa-question h1{font-size:clamp(21px,5.6vw,26px);line-height:1.44;margin-bottom:18px}
  #root .qa-full .mdc3-typed{padding:16px 13px;border-radius:14px}
  #root .qa-full .mdc3-typed>h3{font-size:16px}
  #root .qa-full .mdc3-opt{font-size:13px;padding:10px 12px}
  #root .qa-full .mdc3-typed textarea{min-height:94px;font-size:16px}
  #root .qa-full .mdc3-typed button{width:100%;font-size:12px}
  #root .qa-controls{
    position:sticky;bottom:0;z-index:5;margin:17px -2px 0;
    padding:13px 0 calc(7px + env(safe-area-inset-bottom));
    background:#ffffffeb;box-shadow:0 -9px 18px #fff;
  }
  #root .qa-btn-back,#root .qa-btn-next{min-height:45px;font-size:11px;padding:11px 10px}
  #root .qa-btn-next{flex:1}
  #root .qa-portal{grid-template-columns:1fr}
  #root .qa-portal-illustration{display:none}
  #root .qa-station-goal{gap:8px}
  #root .qa-disclaimer{font-size:10px}
}
@media(max-width:370px){
  #root .qa-visual-head{gap:7px}
  #root .qa-online{font-size:8px}
  #root .qa-map-node{flex-basis:54px;min-width:54px}
  #root .qa-question{padding:18px 13px}
  #root .qa-question h1{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
  #root .qa-full *,#root .qa-full *::before,#root .qa-full *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}