/* ============================================================
   ERROR PAGES (403 / 404 / 500) — shared styles
   Matches the Jupsoft theme: navy #022b63, amber #f9a825,
   cream backgrounds, DM Sans + Plus Jakarta Sans.
   ============================================================ */
:root{ --nv:#022b63; --cream:#efede7; --amber:#f9a825; --ink:#111827; --muted:#5b6472; --line:#e7e4dc; --radius:18px; }

/* ---------- Simple top bar (403 / 500 standalone pages) ---------- */
.err-topbar{ padding:18px 0; }
.err-topbar .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.err-topbar .err-logo{ display:block; width:120px; }
.err-topbar .err-logo img{ width:100%; height:auto; display:block; }

/* ---------- Hero ---------- */
.errbanner{ padding:50px 0 90px; }
.errbanner .err-grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.errbanner h1{ font-size:42px; }
.errbanner p{ max-width:520px; }
.err-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.err-actions .primarybtn,
.err-actions .loginbtn{ padding:12px 24px; border-radius:10px; font-size:15px; font-family:'DMSans-SemiBold'; cursor:pointer; }
.err-actions .primarybtn svg,
.err-actions .loginbtn svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.err-code-tag{ display:inline-block; margin-top:22px; font-size:13px; color:var(--muted); }
.err-code-tag b{ color:var(--nv); font-family:'DMSans-SemiBold'; font-weight:400; }

/* ---------- Browser-window visual ---------- */
.err-visual{ position:relative; width:100%; max-width:470px; margin-left:auto; padding:28px 22px; }
.err-window{ background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 30px 70px rgba(2,43,99,.12); overflow:hidden; }
.err-window-bar{ display:flex; align-items:center; gap:7px; padding:14px 18px; border-bottom:1px solid var(--line); background:#faf9f6; }
.err-window-bar > span{ width:10px; height:10px; border-radius:50%; background:#e2ded3; flex:none; }
.err-window-bar > span:first-child{ background:var(--amber); }
.err-url{ margin-left:10px; flex:1; min-width:0; height:26px; border-radius:13px; background:#fff; border:1px solid var(--line); font-size:12px; color:var(--muted); display:flex; align-items:center; padding:0 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.err-window-body{ padding:44px 30px 42px; text-align:center; }
.err-code{ font-family:'PlusJakartaSans-Bold'; font-size:120px; line-height:1; color:var(--nv); letter-spacing:-4px; }
.err-code em{ font-style:normal; color:var(--amber); }
.err-lines{ margin:28px auto 0; max-width:250px; display:grid; gap:10px; }
.err-lines i{ display:block; height:9px; border-radius:6px; background:var(--cream); }
.err-lines i:nth-child(2){ width:82%; margin:0 auto; }
.err-lines i:nth-child(3){ width:55%; margin:0 auto; }
.err-chip{ position:absolute; width:54px; height:54px; border-radius:16px; background:#fff; border:1px solid var(--line); box-shadow:0 14px 30px rgba(2,43,99,.12); display:flex; align-items:center; justify-content:center; color:var(--nv); animation:errFloat 5s ease-in-out infinite; }
.err-chip svg{ width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.err-chip.c1{ top:0; right:6px; }
.err-chip.c2{ bottom:4px; left:0; background:#fff4d9; color:#b97a00; animation-delay:-2.5s; }
@keyframes errFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@media (prefers-reduced-motion:reduce){ .err-chip{ animation:none; } }

/* ---------- Link / help cards ---------- */
.err-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.err-card{ display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px 28px; position:relative; overflow:hidden; color:inherit; transition:.35s; }
.err-card::before{ content:''; position:absolute; left:0; top:0; height:3px; width:0; background:linear-gradient(90deg,var(--nv),var(--amber)); transition:width .4s ease; }
a.err-card:hover{ transform:translateY(-6px); box-shadow:0 24px 50px rgba(2,43,99,.10); border-color:#cfd6e2; color:inherit; }
a.err-card:hover::before, .err-card:hover::before{ width:100%; }
.err-card .ic{ width:54px; height:54px; border-radius:15px; background:var(--cream); color:var(--nv); display:inline-flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:18px; transition:.35s; }
.err-card .ic svg{ width:25px; height:25px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
a.err-card:hover .ic{ background:var(--nv); color:#fff; transform:translateY(-3px); }
.err-card h4{ font-family:'DMSans-SemiBold'; font-size:18px; color:var(--ink); margin-bottom:10px; }
.err-card p{ color:var(--muted); font-size:14px; line-height:1.7; margin:0; }
.err-card .go{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-family:'DMSans-Medium'; font-size:14px; color:var(--nv); }
.err-card .go svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:.3s; }
a.err-card:hover .go svg{ transform:translateX(4px); }

/* ---------- Contact band ---------- */
.err-cta{ background:linear-gradient(135deg,#022b63 0%,#043a82 60%,#064aa0 100%); border-radius:22px; padding:38px 44px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; position:relative; overflow:hidden; }
.err-cta::before{ content:''; position:absolute; right:-90px; top:-110px; width:300px; height:300px; border-radius:50%; background:radial-gradient(circle,rgba(249,168,37,.22),transparent 68%); }
.err-cta > *{ position:relative; z-index:1; }
.err-cta h3{ color:#fff; font-family:'PlusJakartaSans-Medium'; font-size:26px; margin-bottom:6px; }
.err-cta p{ color:rgba(255,255,255,.78); margin:0; font-size:15px; }
.err-cbtns{ display:flex; flex-wrap:wrap; gap:12px; }
.err-cbtn{ display:inline-flex; align-items:center; gap:9px; padding:12px 20px; border-radius:10px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.28); color:#fff; font-size:14px; font-family:'DMSans-Medium'; transition:.3s; }
.err-cbtn svg{ width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.err-cbtn:hover{ background:#fff; color:var(--nv); }

/* ---------- Simple footer (403 / 500 standalone pages) ---------- */
.err-footer{ background:#022b63; color:rgba(255,255,255,.8); padding:26px 0; font-size:14px; }
.err-footer .container{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; }
.err-footer p{ margin:0; }
.err-footer a{ color:#fff; }
.err-footer a:hover{ color:var(--amber); }
.err-footer ul{ display:flex; flex-wrap:wrap; gap:8px 22px; margin:0; padding:0; list-style:none; }

/* ---------- Section heading fallback for standalone pages ---------- */
.err-section-head{ text-align:center; margin-bottom:30px; }

/* ---------- Responsive ---------- */
@media (max-width:991px){
  .errbanner{ padding:30px 0 60px; }
  .errbanner .err-grid{ grid-template-columns:1fr; gap:34px; }
  .errbanner h1{ font-size:34px; }
  .err-visual{ margin:0 auto; }
  .err-cards{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .err-cta{ padding:32px 28px; }
}
@media (max-width:575px){
  .errbanner h1{ font-size:28px; }
  .err-code{ font-size:88px; letter-spacing:-3px; }
  .err-window-body{ padding:32px 20px 30px; }
  .err-cards{ grid-template-columns:1fr; }
  .err-cta h3{ font-size:22px; }
  .err-cbtns, .err-cbtn{ width:100%; }
  .err-cbtn{ justify-content:center; }
  .err-actions .primarybtn, .err-actions .loginbtn{ flex:1 1 100%; }
  .err-footer .container{ flex-direction:column; text-align:center; }
  .err-footer ul{ justify-content:center; }
}
