/* ===== ASC Quiz (vanilla CSS) ===== */
:root{
  --asc-primary:#03B4D7;
  --asc-primary-200:#CAF7FC;
  --asc-primary-300:#96D8E9;
  --asc-primary-400:#C3E5FE;
  --asc-deep:#203368;
  --asc-text:#2d2a2a;
  --asc-bg:#f0f7ff; /* subtle page bg if you want */ 
}
.asc-quiz, .asc-quiz * {
  box-sizing: border-box; 
}
.asc-quiz{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--asc-deep);
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.asc-quiz__progress{
  height: 6px;
  background: rgba(150,216,233,.25);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 16px;
}
.asc-quiz__progress-bar{
  width: 0%;
  height: 100%;
  background: var(--asc-primary);
  transition: width .35s ease;
}

.asc-quiz__viewport{
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(3,180,215,.15);
}
.asc-quiz__track{
  display: flex;
  width: 100%;
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.asc-quiz__slide{
  flex: 0 0 100%;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  place-items: center;
}

.asc-card{
  width: 100%;
  background: #fff;
  border: 2px solid var(--asc-primary);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
}

.asc-pill{
  display:inline-block;
  background: var(--asc-primary);
  color:#fff;
  border-radius:999px;
  padding:.4rem .9rem;
  font-weight:700;
  letter-spacing:.02em;
  margin-bottom:.8rem;
  font-size:.9rem;
}
.asc-h1{ font-size: clamp(1.35rem, 3.8vw, 2.1rem); line-height:1.2; margin: 0 0 .6rem; color:#4b4545;}
.asc-h2{ font-size: clamp(1.2rem, 3.3vw, 1.6rem); line-height:1.25; margin: 0; color:#25304a;}
.asc-sub{ opacity:.85; margin:.25rem 0 1rem; }

.qhead{ display:flex; align-items:center; gap:.6rem; margin-bottom:.8rem;}
.qbadge{ width:40px; height:40px; display:grid; place-items:center; background:var(--asc-primary-300); color:#0a2a3a; border-radius:999px; font-weight:800; flex-shrink: 0;}

.answers{
  display:grid;
  gap:12px;
  margin-top:.75rem;
}
.answer{
  text-align:left;
  border:1.5px solid var(--asc-primary-400);
  background:#fff;
  color:#2d2a2a;
  padding:14px 16px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.answer:hover{ transform: translateY(-1px); box-shadow: 0 6px 18px rgba(3,180,215,.15); }
.answer:focus-visible{ outline:3px solid var(--asc-primary); outline-offset:2px; }
.answer.selected{ background: var(--asc-primary-200); border-color: var(--asc-primary); }

.asc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; border:1px solid var(--asc-primary);
  padding:12px 18px; font-weight:800; cursor:pointer; background:#fff; color:var(--asc-deep);
}
.asc-btn--primary{ background:var(--asc-primary); color:#fff; border-color:var(--asc-primary);}
.asc-btn--primary:hover{ filter:brightness(.96); }

.result-title{ font-weight:800; margin:.6rem 0 .25rem; font-size:1.1rem;}
.result-body{ opacity:.9; margin-bottom:1rem; }
.result-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }

.asc-quiz__nav{
  display:flex; justify-content:space-between; padding:8px 4px; margin-top:10px;
}
.asc-nav{
  width:42px; height:42px; border-radius:999px; border:1px solid var(--asc-primary-400);
  background:#fff; cursor:pointer; font-size:20px; font-weight:900; color:#356;
}
.asc-nav[disabled]{ opacity:.4; cursor:not-allowed; }

/* Responsive polish */
@media (max-width:480px){
  .answers{ gap:10px; }
  .answer{ padding:12px 14px; }
}

/* Live results layout */
.live-results { margin-top: .5rem; display: grid; gap: 18px; }
.result-group { border:1px solid var(--asc-primary-400); border-radius:16px; padding:12px; background: #fff; }
.rg-head { display:flex; align-items:center; gap:.5rem; margin-bottom:8px; }
.rg-head h3 { margin:0; font-size:1rem; color:#22304a; }

.rg-rows { display:grid; gap:10px; }
.rg-row { display:grid; grid-template-columns: 26px 1fr 48px; align-items:center; gap:10px; }
.rg-label { font-weight:800; color:#0a2a3a; }
.rg-bar { height:10px; background: rgba(150,216,233,.35); border-radius:999px; overflow:hidden; }
.rg-fill { display:block; height:100%; background: var(--asc-primary); transition: width .35s ease; }
.rg-pct { text-align:right; font-variant-numeric: tabular-nums; color:#203368; font-weight:700; }

.result-actions { margin-top: 18px; }

/* Shorter overall canvas */
.asc-quiz { max-width: 720px; margin: 12px auto 24px; }
.elementor-widget-shortcode .asc-quiz { min-height: auto !important; }
.asc-card { padding: clamp(14px, 2.5vw, 24px); border-radius: 18px; }

/* Badge on intro (optional cosmetic) */
.asc-badge {
  display:inline-block; background: var(--asc-primary); color:#fff;
  border-radius: 999px; padding:.35rem .75rem; font-weight:700; font-size:.9rem;
  margin-bottom:.5rem;
}

/* Start button: white text, no color change on hover */
.asc-btn--primary { background: var(--asc-primary); color:#fff; border:none; font-weight:700; }
.asc-btn--primary:hover { background: var(--asc-primary); color:#fff; filter: brightness(.95); }

.elementor-kit-1 .elementor-shortcode .asc-btn--primary,
.elementor-kit-1 .elementor-shortcode .asc-btn--primary:hover,
.elementor-kit-1 .elementor-shortcode .asc-btn--primary:focus,
.elementor-kit-1 .elementor-shortcode .asc-btn--primary:visited {
  color: #fff;
}

.asc-btn, 
a.asc-btn {
    text-decoration: none !important;
}

.asc-btn:hover, 
a.asc-btn:hover {
    text-decoration: none !important;
}

/* 2-column grid on larger screens */
@media (min-width: 700px){ .live-results { grid-template-columns: 1fr 1fr; } }

.result-group { border:1px solid var(--asc-primary-400); border-radius:14px; padding:10px; background:#fff; }
.rg-head { display:flex; align-items:center; gap:.45rem; margin-bottom:10px; }
.rg-head h3 { margin:0; font-size:.95rem; color:#22304a; font-weight:700; line-height: 1.3; }

.rg-rows { display:grid; gap:8px; }

/* The Row Container */
.rg-row { 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px; /* Fixed height for the bar look */
  background: #f0f4f8; /* Light gray/blue empty state background */
  border-radius: 6px;
  overflow: hidden;
  padding: 0 12px;
  box-sizing: border-box;
}

/* The Background Bar (Fill) */
.rg-fill { 
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%; /* JS updates this */
  background: var(--asc-primary-300); /* The fill color */
  z-index: 1; /* Sits behind text */
  transition: width .6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The Option Text */
.rg-text {
  position: relative;
  z-index: 2; /* Sits on top of bar */
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--asc-deep); /* Dark color for contrast */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

/* The Percentage */
.rg-pct { 
  position: relative;
  z-index: 2; /* Sits on top of bar */
  font-variant-numeric: tabular-nums; 
  color: var(--asc-deep); 
  font-weight: 800; 
  font-size: .85rem; 
  flex-shrink: 0;
}

/* Hide labels/grid stuff from old layout if they exist */
.rg-label { display: none; }
.rg-bar { display: none; } /* We don't use the wrapper wrapper anymore */


.result-actions { margin-top: 14px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* Make sure no pseudo icon hides the text */
.js-start::before,
.js-start::after { content:none !important; }

/* Ensure the button isn’t forced to a fixed square by other styles */
.js-start {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding:12px 22px !important;
  min-width: 180px;
  height:auto !important;
  line-height:1.2 !important;
  border-radius:999px;
  white-space:nowrap;
  font-size:1rem;
}
