/* TP61 FINAL — Mobile footer + fixed bottom navigation.
   Header is controlled only by TP56 + TP70. Experimental TP61/TP63 header/menu layers removed. */
:root{
  --tp61-navy:#0b2947;
  --tp61-blue:#123a67;
  --tp61-orange:#e98312;
  --tp61-orange-dark:#d66b06;
  --tp61-ink:#173346;
  --tp61-muted:#6f818c;
  --tp61-line:#e2e9ed;
  --tp61-soft:#f5f8fa;
}
.tp61-mobile-status,.tp61-mobile-footer{display:none}
:root{
  --tp63-blue:#123a67;
  --tp63-blue-deep:#0b2947;
  --tp63-blue-soft:#eef4f8;
  --tp63-orange:#e98312;
  --tp63-orange-dark:#d66b06;
  --tp63-ink:#213b4c;
  --tp63-muted:#6f818d;
  --tp63-line:#dce5ea;
  --tp63-bg:#f6f8f9;
}

@media(max-width:860px){
  .tp61-mobile-footer{display:block}

  .tp45-footer__cta-wrap,
  .tp45-footer__main,
  .tp45-footer__bottom{display:none!important}

  .tp45-footer{
    overflow:visible;
    background:linear-gradient(145deg,#082e49,#061f33);
  }
  .tp61-mobile-footer{
    position:relative;overflow:hidden;
    padding:30px 16px calc(90px + env(safe-area-inset-bottom));
    color:#fff;
    background:
      radial-gradient(circle at 100% 8%,rgba(31,111,157,.22),transparent 26%),
      linear-gradient(145deg,#082f4b 0%,#061f33 100%);
  }
  .tp61-mobile-footer:before{
    content:"THIÊN PHÚ";position:absolute;right:-7px;bottom:112px;
    color:rgba(232,130,28,.09);
    font:800 72px/.82 "Saira Semi Condensed",sans-serif;
    letter-spacing:-.055em;white-space:nowrap;pointer-events:none;
  }

  .tp61-mobile-footer__brand{
    position:relative;z-index:1;
    display:grid;grid-template-columns:116px 1fr;gap:14px;align-items:center;
    padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.11);
  }
  .tp61-mobile-footer__logo{
    min-height:66px;padding:8px 10px;display:flex;align-items:center;justify-content:center;
    border-radius:13px;background:#fff;box-shadow:0 11px 30px rgba(0,0,0,.16);
  }
  .tp61-mobile-footer__logo img{display:block;width:100px!important;height:auto!important;max-height:52px!important;object-fit:contain}
  .tp61-mobile-footer__brand>div>span{
    display:block;color:#f3ad5d;font-size:8px;font-weight:850;letter-spacing:.09em;
  }
  .tp61-mobile-footer__brand>div>strong{
    display:block;margin-top:6px;color:#fff;font:700 15px/1.35 "Be Vietnam Pro",sans-serif;
  }

  .tp61-mobile-footer__contact{
    position:relative;z-index:1;margin-top:18px;padding:17px;
    border:1px solid rgba(255,255,255,.12);border-radius:16px;
    background:rgba(255,255,255,.055);box-shadow:0 12px 32px rgba(0,0,0,.09);
  }
  .tp61-mobile-footer__contact-head span{
    display:block;color:#f5b56f;font-size:8px;font-weight:850;letter-spacing:.1em;
  }
  .tp61-mobile-footer__contact-head strong{
    display:block;margin-top:5px;color:#fff;font-size:15px;line-height:1.35;
  }
  .tp61-mobile-footer__phone,
  .tp61-mobile-footer__map{
    min-height:58px;margin-top:11px;padding:10px 11px;
    display:flex;align-items:center;gap:10px;
    border-radius:12px;border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.055);color:#fff!important;
  }
  .tp61-mobile-footer__phone{justify-content:space-between;background:rgba(232,130,28,.11);border-color:rgba(245,171,91,.22)}
  .tp61-mobile-footer__phone span,.tp61-mobile-footer__map span{display:block;min-width:0}
  .tp61-mobile-footer__phone small,.tp61-mobile-footer__map small{
    display:block;color:#91acbb;font-size:7px;font-weight:850;letter-spacing:.08em;
  }
  .tp61-mobile-footer__phone strong,.tp61-mobile-footer__map strong{
    display:block;margin-top:3px;color:#fff;font-size:12.5px;line-height:1.35;
  }
  .tp61-mobile-footer__phone>b{
    flex:0 0 auto;padding:6px 9px;border-radius:8px;background:var(--tp61-orange);
    color:#fff;font-size:9px;letter-spacing:.06em;
  }
  .tp61-mobile-footer__map svg{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:#f5ae62;stroke-width:1.7}
  .tp61-mobile-footer__map>b{margin-left:auto;color:#f5ae62;font-size:17px}

  .tp61-mobile-footer__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
  .tp61-mobile-footer__actions>a{
    min-height:44px;padding:9px 10px;display:flex;align-items:center;justify-content:center;gap:7px;
    border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);
    color:#fff!important;font-size:10px;font-weight:800;
  }
  .tp61-mobile-footer__actions>a:first-child span{
    display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#1477c9;color:#fff;font-size:10px;font-weight:900;
  }
  .tp61-mobile-footer__actions>a:last-child{background:#fff;color:var(--tp61-blue)!important}

  .tp61-mobile-footer__nav{position:relative;z-index:1;margin-top:21px;border-top:1px solid rgba(255,255,255,.11)}
  .tp61-mobile-footer__nav details{border-bottom:1px solid rgba(255,255,255,.11)}
  .tp61-mobile-footer__nav summary{
    list-style:none;min-height:54px;display:grid;grid-template-columns:30px 1fr 24px;gap:8px;align-items:center;
    cursor:pointer;color:#fff;
  }
  .tp61-mobile-footer__nav summary::-webkit-details-marker{display:none}
  .tp61-mobile-footer__nav summary>span{color:#f3ad5d;font-size:9px;font-weight:850}
  .tp61-mobile-footer__nav summary>strong{font-size:12.5px;font-weight:750}
  .tp61-mobile-footer__nav summary>b{justify-self:end;color:#f3ad5d;font-size:17px;font-weight:500}
  .tp61-mobile-footer__nav details[open] summary>b{transform:rotate(45deg)}
  .tp61-mobile-footer__nav details>div{padding:0 0 12px 30px}
  .tp61-mobile-footer__nav details>div a{
    min-height:38px;display:flex;align-items:center;color:#b8cad4!important;font-size:11px;
  }

  .tp61-mobile-footer__trust{
    position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;
    margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.11);
  }
  .tp61-mobile-footer__trust span{color:#91aebb;font-size:7.5px;font-weight:850;letter-spacing:.08em}
  .tp61-mobile-footer__trust i{width:14px;height:1px;background:rgba(255,255,255,.18)}
  .tp61-mobile-footer__legal{
    position:relative;z-index:1;margin-top:14px;text-align:center;
  }
  .tp61-mobile-footer__legal strong{display:block;color:#dce8ed;font-size:9px;line-height:1.45}
  .tp61-mobile-footer__legal span{display:block;margin-top:4px;color:#7897a7;font-size:8px}

  .tp45-mobile-dock{
    z-index:1300!important;
    height:68px!important;
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.97)!important;
    border-top:1px solid #d8e3e8!important;
    box-shadow:0 -10px 28px rgba(5,35,55,.13)!important;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  }
  .tp45-mobile-dock>a{position:relative;min-height:68px!important;gap:4px!important;color:#536d7b!important}
  .tp45-mobile-dock svg{width:19px!important;height:19px!important}
  .tp45-mobile-dock small{font-size:8px!important;font-weight:750!important}
  .tp45-mobile-dock .tp31-mobile-dock__primary>span{
    width:46px!important;height:46px!important;margin-top:-25px!important;
    border:4px solid #fff!important;border-radius:15px!important;
    background:linear-gradient(135deg,var(--tp61-orange),#f5a149)!important;
    box-shadow:0 9px 20px rgba(222,113,8,.32)!important;
    font-size:24px!important;
  }
  .tp45-mobile-dock .tp31-mobile-dock__primary small{color:#a34f05!important;font-weight:850!important}
}

@media(max-width:860px){
  /* Footer: simpler corporate mobile treatment */
  .tp45-footer__cta-wrap,
  .tp45-footer__main,
  .tp45-footer__bottom{display:none!important}
  .tp45-footer{overflow:visible!important;background:var(--tp63-blue-deep)!important}
  .tp61-mobile-footer{
    display:block!important;position:relative!important;overflow:hidden!important;
    padding:30px 15px calc(88px + env(safe-area-inset-bottom))!important;
    background:linear-gradient(155deg,#0b3150 0%,#08263f 100%)!important;color:#fff!important;
  }
  .tp61-mobile-footer:before{
    content:"THIÊN PHÚ";position:absolute;right:-10px;bottom:105px;
    color:rgba(233,131,18,.07);font:800 64px/.82 "Saira Semi Condensed",sans-serif;white-space:nowrap;pointer-events:none;
  }
  .tp61-mobile-footer:after{display:none!important}
  .tp61-mobile-footer__brand{
    position:relative;z-index:2;
    display:grid!important;grid-template-columns:108px 1fr!important;gap:13px!important;align-items:center!important;
    padding:0 0 19px!important;border-bottom:1px solid rgba(255,255,255,.11)!important;
  }
  .tp61-mobile-footer__logo{
    width:108px!important;min-height:58px!important;padding:7px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    border-radius:11px!important;background:#fff!important;box-shadow:none!important;
  }
  .tp61-mobile-footer__logo img{width:94px!important;max-height:44px!important}
  .tp61-mobile-footer__brand>div{margin:0!important;max-width:none!important}
  .tp61-mobile-footer__brand>div>span{color:#f1aa5b!important;font-size:7px!important;font-weight:850!important;letter-spacing:.09em!important}
  .tp61-mobile-footer__brand>div>strong{margin-top:5px!important;color:#fff!important;font:700 14px/1.35 "Be Vietnam Pro",sans-serif!important}

  .tp61-mobile-footer__contact{
    position:relative;z-index:2;margin-top:17px!important;padding:13px!important;
    border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;
    background:rgba(255,255,255,.045)!important;box-shadow:none!important;
  }
  .tp61-mobile-footer__contact-head{display:block!important;padding:0!important}
  .tp61-mobile-footer__contact-head span{color:#f1aa5b!important;font-size:7px!important;font-weight:850!important;letter-spacing:.09em!important}
  .tp61-mobile-footer__contact-head strong{max-width:none!important;margin-top:4px!important;text-align:left!important;color:#fff!important;font-size:12px!important}
  .tp61-mobile-footer__phone{
    min-height:62px!important;margin-top:10px!important;padding:10px 11px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    border:1px solid rgba(255,255,255,.11)!important;border-radius:10px!important;
    background:rgba(255,255,255,.055)!important;
  }
  .tp61-mobile-footer__phone small{color:#91aebb!important;font-size:7px!important}
  .tp61-mobile-footer__phone strong{margin-top:3px!important;color:#fff!important;font:800 20px/1 "Saira Semi Condensed",sans-serif!important}
  .tp61-mobile-footer__phone>b{padding:6px 9px!important;border-radius:8px!important;background:var(--tp63-orange)!important;color:#fff!important;font-size:8px!important}
  .tp61-mobile-footer__map{
    min-height:56px!important;margin-top:8px!important;padding:9px 10px!important;
    display:flex!important;align-items:center!important;gap:9px!important;
    border:1px solid rgba(255,255,255,.10)!important;border-radius:10px!important;background:transparent!important;
  }
  .tp61-mobile-footer__map svg{width:20px!important;height:20px!important;stroke:#f0a75c!important}
  .tp61-mobile-footer__map small{color:#87a2b1!important;font-size:7px!important}
  .tp61-mobile-footer__map strong{margin-top:2px!important;color:#fff!important;font-size:10.5px!important}
  .tp61-mobile-footer__map>b{margin-left:auto!important;color:#f0a75c!important}
  .tp61-mobile-footer__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:8px!important}
  .tp61-mobile-footer__actions>a{min-height:43px!important;border-radius:9px!important;font-size:9px!important}

  .tp61-mobile-footer__nav{position:relative;z-index:2;margin-top:18px!important;border-top:1px solid rgba(255,255,255,.11)!important}
  .tp61-mobile-footer__nav details{border-bottom:1px solid rgba(255,255,255,.11)!important}
  .tp61-mobile-footer__nav summary{min-height:52px!important}
  .tp61-mobile-footer__trust{position:relative;z-index:2;margin-top:18px!important;padding-top:14px!important}
  .tp61-mobile-footer__legal{position:relative;z-index:2;margin-top:12px!important}

  /* Bottom nav: same fast-access logic as CST, with Quote retained as Thiên Phú's primary action */
  .tp63-bottom-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:1700!important;
    width:100%!important;height:64px!important;padding:0!important;
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;
    border:0!important;border-top:1px solid #d8e3e8!important;border-radius:0!important;
    background:rgba(255,255,255,.98)!important;box-shadow:0 -7px 22px rgba(8,43,66,.10)!important;
    backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  }
  .tp63-bottom-nav>a,
  .tp63-bottom-nav>button{
    min-height:64px!important;padding:0!important;margin:0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    border:0!important;border-radius:0!important;background:transparent!important;color:#526d7b!important;
    font-family:"Be Vietnam Pro",sans-serif!important;
  }
  .tp63-bottom-nav svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  .tp63-bottom-nav small{font-size:7px!important;font-weight:750!important}
  .tp63-bottom-nav .tp31-mobile-dock__primary>span{
    width:42px!important;height:42px!important;margin-top:-22px!important;
    display:grid!important;place-items:center!important;
    border:4px solid #fff!important;border-radius:50%!important;
    background:linear-gradient(135deg,var(--tp63-orange),#f2a04a)!important;color:#fff!important;
    box-shadow:0 7px 16px rgba(219,109,7,.28)!important;font-size:22px!important;
  }
  .tp63-bottom-nav .tp31-mobile-dock__primary small{color:#a65205!important;font-weight:850!important}
  .tp63-bottom-nav .tp31-mobile-dock__z{font-size:15px!important;font-weight:900!important;color:#1477c9!important}
}

@media(max-width:390px){
  .tp61-mobile-footer__brand{grid-template-columns:104px 1fr}
  .tp61-mobile-footer__logo img{width:90px!important}
}
