/* Helium CTA - loader & embed
 * Self-contained styles scoped under .hcta-root so the WP theme stays out of the way.
 */
.hcta-root{
  --navy:#0b1f3a; --navy2:#15315a; --ink:#1a2332; --muted:#5b6b7f;
  --line:#e3e8ef; --bg:#f6f8fb; --teal:#0fb5a6; --teal-d:#0a8a7e;
  --green:#16a34a; --amber:#b45309;
  font-family:'Segoe UI',Helvetica,Arial,sans-serif;
  color:var(--ink);
  max-width:1100px;
  margin:24px auto;
  padding:0 16px;
}

/* loader card */
.hcta-loader{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:36px 28px;
  box-shadow:0 6px 24px rgba(11,31,58,.06);
  text-align:center;
}
.hcta-loader-inner{ max-width:560px; margin:0 auto; }
.hcta-loader-title{
  font-size:24px; color:var(--navy); margin:0 0 6px; font-weight:800;
}
.hcta-loader-sub{ color:var(--muted); margin:0 0 22px; font-size:14px; }

/* progress bar */
.hcta-bar{
  height:10px; background:#eef2f7; border-radius:999px; overflow:hidden; margin:10px 0 8px;
}
.hcta-bar-fill{
  height:100%;
  background:linear-gradient(90deg, var(--teal-d), var(--teal));
  width:3%;
  transition:width .6s ease;
}
.hcta-stage-label{
  font-size:13px; color:var(--navy2); font-weight:700; margin:6px 0 18px;
}

/* stages list */
.hcta-stages{
  list-style:none; margin:0 auto; padding:0; text-align:left; max-width:380px;
}
.hcta-stages li{
  display:flex; align-items:center; gap:10px;
  padding:8px 0; color:var(--muted); font-size:13px;
}
.hcta-dot{
  display:inline-block; width:12px; height:12px; border-radius:50%;
  background:#dde3ec; flex-shrink:0;
  position:relative;
}
.hcta-stages li.active{ color:var(--navy); font-weight:600; }
.hcta-stages li.active .hcta-dot{
  background:var(--teal);
  box-shadow:0 0 0 4px rgba(15,181,166,.18);
  animation:hcta-pulse 1.4s ease-in-out infinite;
}
.hcta-stages li.done{ color:var(--green); }
.hcta-stages li.done .hcta-dot{
  background:var(--green);
}
.hcta-stages li.done .hcta-dot::after{
  content:""; position:absolute; left:3px; top:1px; width:4px; height:7px;
  border-right:2px solid #fff; border-bottom:2px solid #fff;
  transform:rotate(45deg);
}

@keyframes hcta-pulse{
  0%,100% { box-shadow:0 0 0 4px rgba(15,181,166,.18); }
  50%     { box-shadow:0 0 0 8px rgba(15,181,166,.05); }
}

.hcta-elapsed{
  color:var(--muted); font-size:12px; margin-top:18px;
}

/* error */
.hcta-error{
  background:#fff; border:1px solid #fad7d0; border-left:4px solid #dc2626;
  border-radius:12px; padding:20px 24px;
}
.hcta-error h2{ margin:0 0 6px; color:#7a1d1d; font-size:18px; }

/* result */
.hcta-result{ margin-top:8px; }
.hcta-result-toolbar{
  display:flex; justify-content:flex-end; gap:10px; margin-bottom:12px;
}
.hcta-pdf-btn{
  display:inline-block;
  background:var(--teal-d); color:#fff !important; text-decoration:none;
  padding:9px 16px; border-radius:8px; font-size:13px; font-weight:700;
  letter-spacing:.2px;
}
.hcta-pdf-btn:hover{ background:var(--teal); }

.hcta-report-embed{
  background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:0 6px 24px rgba(11,31,58,.06);
}
.hcta-iframe{
  width:100%; min-height:1200px; border:0; display:block;
}

@media (max-width: 640px){
  .hcta-loader{ padding:24px 18px; }
  .hcta-loader-title{ font-size:20px; }
}
