
/*Form Section*/
.eas-exam-form-section{
  --eas-navy:#00305f;
  --eas-navy-deep:#001c3b;
  --eas-blue:#0b7fc4;
  --eas-blue-soft:#3aa9ea;
  --eas-sky:#eaf5fc;
  --eas-line:#d8e7f1;
  --eas-ink:#12303f;
  --eas-muted:#6b8495;
  --eas-gold:#f8b900;
  --eas-gold-deep:#8a5f00;
  --eas-field:#f7fbfe;
  font-family:"Quicksand","Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:14px;
  line-height:1.5;
  color:var(--eas-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ===== SCOPED RESET ===== */
.eas-exam-form-section,
.eas-exam-form-section *,
.eas-exam-form-section *::before,
.eas-exam-form-section *::after{box-sizing:border-box}
.eas-exam-form-section h1,
.eas-exam-form-section h2,
.eas-exam-form-section p,
.eas-exam-form-section ol,
.eas-exam-form-section li,
.eas-exam-form-section form,
.eas-exam-form-section img,
.eas-exam-form-section figure{margin:0;padding:0}
.eas-exam-form-section img{max-width:100%;display:block}
.eas-exam-form-section button,
.eas-exam-form-section input,
.eas-exam-form-section textarea{font-family:inherit;font-size:inherit;color:inherit}
.eas-exam-form-section :focus-visible{outline:2px solid var(--eas-gold);outline-offset:2px;border-radius:4px}

/* ===== PAGE SHELL + BACKGROUND (moved off body, now on the section) ===== */
main.eas-page-shell{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  min-width:320px;
  margin:0;
  padding:clamp(28px,5vw,56px) clamp(14px,4vw,32px) 30px;
  background:linear-gradient(135deg,#01468e 0%,#0288d1 100%);
}
main.eas-page-shell::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(115% 75% at 50% 0,#000 18%,transparent 76%);
          mask-image:radial-gradient(115% 75% at 50% 0,#000 18%,transparent 76%);
}
main.eas-page-shell::after{
  content:"";position:absolute;z-index:-1;top:-190px;right:-130px;
  width:540px;height:540px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(248,185,0,.20),transparent 62%);
}
.eas-exam-form-section .eas-hero,
.eas-exam-form-section .eas-form-card,
.eas-exam-form-section .eas-footer{max-width:1060px;margin-left:auto;margin-right:auto}

/* ===== HERO ===== */
.eas-exam-form-section .eas-hero{text-align:center;color:#fff;padding:0 8px 30px}
.eas-exam-form-section .eas-brand-row{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:58px;margin-bottom:34px}
.eas-exam-form-section .eas-logo{width:auto;height:56px;object-fit:contain;background:#fff;border-radius:10px;padding:6px 11px;box-shadow:0 8px 22px rgba(0,24,52,.28)}
.eas-exam-form-section .eas-logo-left{max-width:150px}
.eas-exam-form-section .eas-logo-right{max-width:210px}
.eas-exam-form-section .eas-hero h1{
  font-size:clamp(2.05rem,5.2vw,3.25rem);
  font-weight:700;line-height:1.02;letter-spacing:-1px;
  text-shadow:0 3px 18px rgba(0,26,56,.35);
}
.eas-exam-form-section .eas-hero h1 em{
  display:block;font-style:normal;font-weight:500;
  font-size:.62em;letter-spacing:.4px;margin-top:8px;color:#cfeaff;
}
.eas-exam-form-section .eas-hero-copy{max-width:560px;margin:18px auto 18px;color:#cfe8fa;font-size:.88rem;line-height:1.65}
.eas-exam-form-section .eas-hero-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.eas-exam-form-section .eas-hero-pills span{
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.11);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border-radius:99px;color:#f0faff;font-size:.7rem;font-weight:500;padding:6px 13px;
}
.eas-exam-form-section .eas-hero-pills span:first-child{border-color:rgba(248,185,0,.55);background:rgba(248,185,0,.16);color:#ffe9a8}

/* ===== FORM CARD ===== */
.eas-exam-form-section .eas-form-card{
  position:relative;background:#fff;border-radius:18px;overflow:hidden;
  border-top:4px solid var(--eas-gold);
  box-shadow:0 30px 70px rgba(0,20,50,.34);
}

/* ===== INSTRUCTIONS ===== */
.eas-exam-form-section .eas-instructions{
  margin:26px clamp(18px,4vw,36px) 6px;
  padding:20px 22px;
  border:1px solid #dceefa;border-left:4px solid var(--eas-blue);
  border-radius:4px 12px 12px 4px;
  background:linear-gradient(180deg,#f4fafe,#eef7fd);
  color:#42606f;font-size:.79rem;line-height:1.6;
}
.eas-exam-form-section .eas-instructions h2{font-size:.98rem;font-weight:700;line-height:1.2;color:var(--eas-navy);margin-bottom:9px}
.eas-exam-form-section .eas-instructions ol{padding-left:19px;margin-bottom:12px}
.eas-exam-form-section .eas-instructions li{padding:2px 0}
.eas-exam-form-section .eas-instructions a{color:var(--eas-blue);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.eas-exam-form-section .eas-instructions a:hover{color:var(--eas-navy)}
.eas-exam-form-section .eas-instructions strong{
  display:inline-block;background:var(--eas-gold);border-radius:6px;
  color:#5a3f00;font-size:.72rem;font-weight:700;padding:6px 12px;
  box-shadow:0 3px 10px rgba(248,185,0,.35);
}

/* ===== NUMBERED SECTIONS (a real 1-6 sequence) ===== */
.eas-exam-form-section .eas-section{
  position:relative;
  padding:28px clamp(18px,4vw,36px) 32px;
  border-top:1px solid #e8f1f7;
  transition:background .25s;
}
.eas-exam-form-section .eas-section:first-of-type{border-top:0}
.eas-exam-form-section .eas-section::before{
  content:"";position:absolute;left:0;top:-1px;bottom:0;width:3px;
  background:var(--eas-gold);opacity:0;transition:opacity .25s;
}
.eas-exam-form-section .eas-section:focus-within::before{opacity:1}
.eas-exam-form-section .eas-section:focus-within{background:#fcfeff}
.eas-exam-form-section .eas-section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}
.eas-exam-form-section .eas-section-heading>span{
  display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;
  background:linear-gradient(140deg,var(--eas-navy),var(--eas-blue));
  color:#fff;font-weight:700;font-size:.85rem;
  box-shadow:0 5px 12px rgba(0,86,145,.32),0 0 0 3px rgba(11,127,196,.1);
}
.eas-exam-form-section .eas-section-heading h2{font-size:1.14rem;font-weight:700;line-height:1.15;color:var(--eas-navy);letter-spacing:-.2px}
.eas-exam-form-section .eas-section-heading p{color:#78909f;font-size:.75rem;margin-top:5px;line-height:1.45}

/* ===== FIELDS ===== */
.eas-exam-form-section .eas-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:minmax(80px,auto);gap:16px 18px;
}
.eas-exam-form-section .eas-grid label{
  flex-direction:column;position:relative;height:100%;
  color:#2f5165;font-size:.83rem;font-weight:700;line-height:1.25;
}
.eas-exam-form-section .eas-grid label b{color:var(--eas-gold-deep);font-weight:700}
.eas-exam-form-section .eas-grid label small{
  display:block;color:#7d97a7;font-size:.65rem;font-weight:500;margin-top:5px;line-height:1.3;
}
.eas-exam-form-section .eas-grid label>input,
.eas-exam-form-section .eas-grid label>textarea{margin-top:auto}
.eas-span-two{grid-column:span 2}
.eas-exam-form-section .eas-grid input,
.eas-exam-form-section .eas-grid textarea,
.eas-exam-form-section .eas-exam-cards textarea{
  width:100%;border:1px solid #cde1ee;border-radius:9px;
  background:var(--eas-field);color:var(--eas-ink);
  padding:10px 12px;font-size:.8rem;font-weight:600;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.eas-exam-form-section .eas-grid input{height:42px}
.eas-exam-form-section .eas-grid input::placeholder,
.eas-exam-form-section .eas-exam-cards textarea::placeholder{color:#a2b8c5;font-weight:500}
.eas-exam-form-section .eas-grid input:hover,
.eas-exam-form-section .eas-exam-cards textarea:hover{border-color:#a9cde3}
.eas-exam-form-section .eas-grid input:focus,
.eas-exam-form-section .eas-grid textarea:focus,
.eas-exam-form-section .eas-exam-cards textarea:focus,
.eas-exam-form-section #easCaptchaA:focus{
  outline:0;border-color:var(--eas-blue);background:#fff;
  box-shadow:0 0 0 4px rgba(11,127,196,.14);
}

/* ===== PAYMENT ===== */
.eas-exam-form-section .eas-payment-layout{
  display:grid;grid-template-columns:288px minmax(0,1fr);gap:24px;align-items:stretch;
}
.eas-exam-form-section .eas-qr-panel{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  min-height:100%;padding:20px 14px;text-align:center;
  border:1px solid var(--eas-line);border-radius:14px;
  background:linear-gradient(180deg,#ffffff,#eef7fc);
  box-shadow:inset 0 1px 0 #fff;
}
.eas-exam-form-section .eas-qr-panel p{color:var(--eas-navy);font-size:.85rem;font-weight:700}
.eas-exam-form-section .eas-qr{
  width:100%;max-width:200px;object-fit:contain;
  border:1px solid #e2eef6;border-radius:10px;background:#fff;padding:8px;
}
.eas-exam-form-section .eas-qr-panel small{max-width:180px;color:#7b95a5;font-size:.67rem;font-weight:500;line-height:1.5}
.eas-exam-form-section .eas-upload{position:relative;min-height:80px}
.eas-exam-form-section .eas-upload input{
  position:absolute;left:0;right:0;bottom:0;width:100%;height:46px;
  opacity:0;cursor:pointer;z-index:2;
}
.eas-exam-form-section .eas-upload>span{
  display:flex;align-items:center;justify-content:center;text-align:center;
  margin-top:auto;min-height:46px;padding:8px 12px;
  border:1.5px dashed #93c2d9;border-radius:10px;background:#f4fbfe;
  color:var(--eas-blue);font-size:.74rem;font-weight:700;line-height:1.35;
  transition:border-color .2s,background .2s,color .2s;
}
.eas-exam-form-section .eas-upload:hover>span{border-color:var(--eas-blue);background:#e9f6fd}
.eas-exam-form-section .eas-upload input:focus-visible+span{border-color:var(--eas-gold);background:#fffaeb}
.eas-exam-form-section .eas-upload>span small{display:block;color:#96abb7;font-size:.62rem;font-weight:500;margin-top:2px}

/* ===== EXAM CARDS ===== */
.eas-exam-form-section .eas-exam-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.eas-exam-form-section .eas-exam-cards>div{
  padding:15px;border:1px solid var(--eas-line);border-radius:12px;
  background:linear-gradient(180deg,#fff,#f8fcff);
}
.eas-exam-form-section .eas-exam-cards strong{display:block;color:var(--eas-navy);font-size:.82rem;font-weight:700}
.eas-exam-form-section .eas-exam-cards small{
  display:inline-block;margin:6px 0 10px;padding:3px 9px;border-radius:99px;
  background:#fff6dd;color:var(--eas-gold-deep);font-size:.64rem;font-weight:700;
}
.eas-exam-form-section .eas-exam-cards textarea{min-height:84px;resize:vertical;line-height:1.5}

/* ===== CHECKBOX LISTS ===== */
.eas-exam-form-section .eas-check-list{display:flex;flex-direction:column;gap:9px}
.eas-exam-form-section .eas-check-list label{
  display:flex;align-items:flex-start;gap:11px;padding:12px 14px;
  border:1px solid var(--eas-line);border-radius:11px;background:#fbfdff;
  color:#4f6d80;font-size:.76rem;font-weight:500;line-height:1.55;cursor:pointer;
  transition:border-color .2s,background .2s,color .2s,box-shadow .2s;
}
.eas-exam-form-section .eas-check-list label:hover{border-color:#a3cde2;background:#f3faff}
.eas-exam-form-section .eas-check-list label:has(input:checked){
  border-color:var(--eas-blue);background:#eff8ff;color:var(--eas-navy);font-weight:600;
  box-shadow:0 3px 10px rgba(11,127,196,.12);
}
.eas-exam-form-section .eas-check-list label:focus-within{border-color:var(--eas-gold);box-shadow:0 0 0 3px rgba(248,185,0,.22)}
.eas-exam-form-section .eas-check-list input{
  flex:0 0 auto;margin-top:2px;width:17px;height:17px;accent-color:var(--eas-blue);cursor:pointer;
}

/* ===== CAPTCHA ===== */
.eas-exam-form-section .eas-security-section{padding-bottom:24px}
.eas-exam-form-section .eas-captcha{
  display:flex;align-items:center;flex-wrap:wrap;gap:11px;
  width:max-content;max-width:100%;padding:14px 18px;
  border:1px solid var(--eas-line);border-radius:12px;
  background:linear-gradient(135deg,#f2f9fd,#e9f4fb);color:var(--eas-navy);
}
.eas-exam-form-section #easCaptchaQ{font-size:1.15rem;font-weight:700;letter-spacing:.6px}
.eas-exam-form-section .eas-captcha>span{font-size:1.05rem;font-weight:700;color:#7fa0b4}
.eas-exam-form-section #easCaptchaA{
  width:86px;height:38px;border:1px solid #cde1ee;border-radius:9px;
  padding:6px 10px;background:#fff;color:var(--eas-ink);font-weight:700;
}
.eas-exam-form-section .eas-captcha-error{display:none;width:100%;color:#c62828;font-size:.72rem;font-weight:700}
.eas-exam-form-section .eas-captcha-error.eas-show{display:block}

/* ===== SUBMIT ===== */
.eas-exam-form-section .eas-submit-area{
  padding:26px clamp(18px,4vw,36px) 30px;text-align:center;
  border-top:1px solid #e8f1f7;
  background:linear-gradient(180deg,#f5fafd,#eaf4fa);
}
.eas-exam-form-section .eas-submit{
  min-width:210px;border:0;border-radius:10px;
  background:linear-gradient(140deg,#ffcc3d,#f0a500);
  color:#4a3300;padding:13px 28px;cursor:pointer;
  font-size:.83rem;font-weight:700;letter-spacing:.2px;
  box-shadow:0 8px 18px rgba(214,146,0,.34);
  transition:transform .18s,box-shadow .18s,opacity .18s;
}
.eas-exam-form-section .eas-submit:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(214,146,0,.42)}
.eas-exam-form-section .eas-submit:active{transform:translateY(0);box-shadow:0 5px 12px rgba(214,146,0,.34)}
.eas-exam-form-section .eas-submit:disabled{opacity:.62;cursor:not-allowed;transform:none;box-shadow:none}
.eas-exam-form-section .eas-form-status{min-height:20px;margin-top:11px;font-size:.78rem;font-weight:700}
.eas-exam-form-section .eas-form-status.eas-ok{color:#1b873f}
.eas-exam-form-section .eas-form-status.eas-err{color:#c62828}
.eas-exam-form-section .eas-footer{text-align:center;padding:22px 0 0;color:#c9e6fa;font-size:.72rem;font-weight:500}

/* ===== RESPONSIVE ===== */
@media (max-width:760px){
  .eas-exam-form-section .eas-brand-row{margin-bottom:24px}
  .eas-exam-form-section .eas-logo{height:46px;max-width:132px}
  .eas-exam-form-section .eas-logo-right{max-width:170px}
  .eas-exam-form-section .eas-payment-layout{grid-template-columns:180px minmax(0,1fr);gap:16px}
  .eas-exam-form-section .eas-qr{max-width:150px}
}
@media (max-width:560px){
  .eas-exam-form-section{font-size:13px}
  .eas-exam-form-section .eas-form-card{border-radius:14px}
  .eas-exam-form-section .eas-hero h1{font-size:2.05rem}
  .eas-exam-form-section .eas-hero-copy{font-size:.8rem}
  .eas-exam-form-section .eas-grid,
  .eas-exam-form-section .eas-exam-cards,
  .eas-exam-form-section .eas-payment-layout{grid-template-columns:1fr}
  .eas-span-two{grid-column:auto}
  .eas-exam-form-section .eas-qr-panel{width:100%;min-height:0}
  .eas-exam-form-section .eas-qr{max-width:180px}
  .eas-exam-form-section .eas-captcha{width:100%}
  .eas-exam-form-section .eas-brand-row{align-items:center}
  .eas-exam-form-section .eas-logo{height:38px;max-width:112px}
  .eas-exam-form-section .eas-submit{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .eas-exam-form-section *{transition:none!important;animation:none!important}
}

/*Sidebar Button*/
.sidebar-button{position:fixed;top:50%;right:0;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl;background:#e63946;color:#fff;padding:14px 10px;font-size:15px;font-weight:600;text-decoration:none;border-radius:0px 6px 8px 0px;box-shadow:0 2px 8px rgba(0,0,0,.2);z-index:9999;transition:background .3s,padding .3s}
.sidebar-button:hover{background:#d62839;padding-right:16px}