:root{
  --bg1:#0b63c9;
  --bg2:#79c6ff;
  --card:#ffffff;
  --text:#0b1b2b;
  --muted:#5b6b7a;

  --shadow: 0 18px 45px rgba(0,0,0,.18);
  --shadowBtn: 0 10px 22px rgba(0,0,0,.22);
  --radius: 18px;
  --controlH: 54px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(1200px 800px at 30% 20%, rgba(255,255,255,.25), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  padding-bottom:90px;
}

/* loader */
#w-load{
  position:fixed;
  z-index:10000;
  left:0;
  top:0;
  background:url("../images/load.gif") no-repeat 50% 50% #fff;
  width:100%;
  height:100%;
}

/* page wrap */
#wrap{padding:28px;}

@media (max-width:520px){
  #wrap{padding:12px;}
}

/* topbar */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:calc(var(--radius) + 10px);
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 8px 25px rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
  margin-bottom:18px;
}

.logo-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.logo-img{
  height:54px;
  width:auto;
  display:block;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.20));
}

.topbar-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.topbar-btn{
  text-decoration:none;
  color:rgba(255,255,255,.95);
  font-weight:700;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  transition:transform .12s ease, filter .12s ease;
  user-select:none;
  white-space:nowrap;
}

.topbar-btn:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

/* hero */
.hero{
  border-radius:calc(var(--radius) + 10px);
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  padding:22px;
}

.hero-head{
  text-align:center;
  margin-bottom:18px;
  color:white;
}

.hero-head h1{
  margin:0 0 6px;
  font-size:clamp(32px, 4.4vw, 52px);
  line-height:1.05;
  text-shadow:0 10px 22px rgba(0,0,0,.25);
  letter-spacing:.2px;
}

.hero-head .desc{
  font-size:16px;
  opacity:.92;
  max-width:65ch;
  margin:0 auto;
}

/* grid */
.grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  align-items:stretch;
}

@media (max-width:900px){
  .grid{grid-template-columns:1fr;}
}

.panel{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}

/* forms */
.tip{
  margin:10px 0 14px;
  font-size:13px;
  color:var(--muted);
}

.form-check{
  margin:0 0 14px;
}

.form-check:last-child{
  margin-bottom:0;
}

.form-item{
  flex:1 1 auto;
  min-width:0;
}

.form-item label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  color:#17324a;
  text-transform:uppercase;
  margin-bottom:6px;
}

.form-element .form-text{
  width:100%;
  border:1px solid #d8e2ee;
  border-radius:14px;
  padding:0 14px;
  height:var(--controlH);
  font-size:16px;
  outline:none;
}

.form-element .form-text:focus{
  border-color:#86bfff;
  box-shadow:0 0 0 4px rgba(31,123,255,.15);
}

.form-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:nowrap;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  flex:0 0 auto;
}

.btn-2{
  width:auto;
  min-width:128px;
  height:var(--controlH);
  border:none;
  cursor:pointer;
  padding:0 18px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:18px;
  font-weight:900;
  color:white;
  box-shadow:var(--shadowBtn);
  position:relative;
  transition:transform .12s ease, filter .12s ease;
  user-select:none;
  white-space:nowrap;
  background:#ff8c00 !important;
}

.btn-2:active{
  transform:translateY(2px);
}

.btn-2:hover{
  filter:brightness(1.03);
}

.btn-2::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:14px;
  border:2px solid rgba(255,255,255,.18);
  pointer-events:none;
}

/* right panel */
.rightTitle{
  font-weight:950;
  font-size:24px;
  margin:4px 0 10px;
  color:#17324a;
}

.list{
  margin:0;
  padding-left:18px;
  color:#335067;
  font-size:18px;
  line-height:1.55;
}

.note{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#f5f9ff;
  border:1px solid #e1eeff;
  color:#2a4662;
  font-size:16px;
  line-height:1.45;
}

.pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.pill{
  font-size:16px;
  padding:8px 10px;
  border-radius:999px;
  background:#eef6ff;
  border:1px solid #d8ebff;
  color:#184c78;
  font-weight:700;
}

/* brief result flash */
.result-card{
  display:none;
  margin-top:16px;
  padding:20px;
  border-radius:var(--radius);
  background:linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border:2px solid #0ea5e9;
  box-shadow:0 12px 35px rgba(14,165,233,.25);
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%,100%{box-shadow:0 12px 35px rgba(14,165,233,.25);}
  50%{box-shadow:0 12px 45px rgba(14,165,233,.4);}
}

/* footer bar */
.site-footer{
  position:fixed;
  left:0;
  bottom:0;
  width:100%;
  z-index:100;
}

.footer-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.footer-btn{
  text-decoration:none;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  color:#fff;
  font-size:14px;
  box-shadow:0 8px 25px rgba(0,0,0,.25);
  transition:.2s;
}

.footer-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.1);
}

.footer-btn.telegram{background:#0088cc;}
.footer-btn.whatsapp{background:#25D366;}

/* popup / loader for all devices */
.page-loader{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.92);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
}

.page-loader.show{
  display:flex !important;
}

.loader-box{
  text-align:center;
  background:#fff;
  padding:28px 24px;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
  min-width:280px;
  max-width:90%;
}

.spinner{
  width:54px;
  height:54px;
  margin:0 auto 16px;
  border:5px solid #e5e7eb;
  border-top:5px solid #0b63c9;
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}

.loader-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:8px;
}

.loader-text{
  font-size:14px;
  color:#64748b;
}

.form-actions .btn-2.loading{
  opacity:0.7;
  pointer-events:none;
}

.loading-box{
  text-align:center;
  padding:30px;
  font-family:Arial,sans-serif;
}

.loader{
  border:6px solid #f3f3f3;
  border-top:6px solid #0b63c9;
  border-radius:50%;
  width:50px;
  height:50px;
  animation:spin 1s linear infinite;
  margin:auto;
  margin-bottom:15px;
}

.loading-text{
  font-size:16px;
  font-weight:600;
  color:#333;
}

#loadingPopup{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  background:rgba(255,255,255,0.75);
}

#colorbox{
  z-index:9999 !important;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* tablet/mobile */
@media (max-width:768px){
  .hero{padding:16px;}
  .panel{padding:14px;}
  .hero-head h1{font-size:clamp(26px, 8vw, 40px);}
  .hero-head .desc{font-size:14px;}
  .rightTitle{font-size:22px;}
  .list{font-size:16px;}
  .note{font-size:15px;}
  .pill{font-size:14px;}
}

/* mobile only */
@media (max-width:520px){
  .topbar{
    justify-content:center;
    padding:12px;
  }

  .topbar-links{
    display:none;
  }

  .logo-link{
    justify-content:center;
    width:100%;
  }

  .logo-img{
    height:46px;
  }

  .form-row{
    flex-wrap:nowrap;
    align-items:center;
    gap:10px;
  }

  .form-item{
    flex:1 1 auto;
  }

  .form-actions{
    flex:0 0 auto;
  }

  .btn-2{
    min-width:110px;
    padding:0 14px;
    font-size:16px;
  }

  .form-element .form-text{
    font-size:15px;
  }

  .site-footer{
    padding:10px 12px;
  }

  .footer-buttons{
    gap:8px;
  }

  .footer-btn{
    font-size:12px;
    padding:10px 12px;
  }
  
  .g-recaptcha,
  .cf-turnstile,
  .h-captcha {
      position: relative;
      z-index: 9999 !important;
  }

}