/* Inspiring Champions inspired theme (purple + gold) */

:root{
  --bg0: #12081e;
  --bg1: #2a0f44;
  --bg2: #3a165e;
  --card: rgba(255,255,255,0.96);
  --ink: #1a1422;
  --muted: #5a5366;
  --line: rgba(22, 10, 36, 0.12);

  --gold: #d4af37;
  --gold2: #b8942c;

  --accent: #5b2a87;
  --accent2: #7a3bb0;

  --ok: #2f9e44;
  --warn: #f08c00;
  --bad: #c92a2a;

  --shadow: 0 18px 44px rgba(12, 6, 20, 0.35);
  --radius: 18px;

  --font-sans: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% 10%, #3b1b5a 0%, #1a0b2b 55%, #0d0615 100%);
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.hero{
  padding: 34px 18px 26px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto -120px;
  height: 420px;
  background:
    radial-gradient(360px 220px at 15% 20%, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.0) 70%),
    radial-gradient(380px 240px at 75% 25%, rgba(122,59,176,0.35) 0%, rgba(122,59,176,0.0) 70%);
  pointer-events:none;
}

.hero__inner{
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}
.brand__logo{
  width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  object-fit: contain;
}
.brand__fallback{
  display: flex;
  flex-direction: column;
}
.brand__name{
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.brand__tag{
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  margin-top: 4px;
}

.hero__kicker{
  display:inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
}
.hero__title{
  margin: 10px 0 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
}
.hero__sub{
  margin: 0;
  color: rgba(255,255,255,0.82);
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.55;
}
.hero__meta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill{
  border: 1px solid rgba(212,175,55,0.45);
  color: rgba(255,255,255,0.92);
  background: rgba(12,6,20,0.35);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.page{
  padding: 0 16px 40px;
}
.card{
  max-width: 1040px;
  margin: 0 auto 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,0.35);
}
.card__title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.card__hint{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field{ display:flex; flex-direction:column; gap: 6px; }
.field--full{ grid-column: 1 / -1; }
.field--checkbox{
  margin-top: 8px;
  grid-column: 1 / -1;
}
label{
  font-size: 12px;
  color: #3b3446;
  font-weight: 600;
}
.checkbox-label{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}
.checkbox-label input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid rgba(22,10,36,0.2);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
  z-index: 1;
}
.checkbox-label input[type="checkbox"]:hover{
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked{
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked::after{
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.checkbox-label input[type="checkbox"]:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(110, 86, 207, 0.15);
}
.checkbox-label span{
  flex: 1;
}
input, select{
  width: 100%;
  border: 1px solid rgba(22,10,36,0.18);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
input:focus, select:focus{
  border-color: rgba(122,59,176,0.55);
  box-shadow: 0 0 0 4px rgba(122,59,176,0.12);
}
.divider{
  border:0;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.quiz__header{
  display:flex;
  flex-direction:column;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  margin: 0 -16px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.progress{
  width: 100%;
  height: 10px;
  background: rgba(22,10,36,0.10);
  border-radius: 999px;
  overflow:hidden;
}
.progress__bar{
  height:100%;
  background: linear-gradient(90deg, var(--gold), var(--accent2));
  width: 0%;
  transition: width 180ms ease;
}
.progress__label{
  font-size: 12px;
  color: var(--muted);
}

.questions{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 14px;
}

.q{
  border: 1px solid rgba(22,10,36,0.10);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}
.q__top{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content: space-between;
}
.q__num{
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
}
.q__text{
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 2px;
}
.opts{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.opt{
  border: 1px solid rgba(22,10,36,0.14);
  border-radius: 14px;
  padding: 10px;
  cursor:pointer;
  display:flex;
  gap: 10px;
  align-items: center;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  user-select:none;
}
.opt:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(22,10,36,0.08);
}
.opt input{ display:none; }
.opt__mark{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(22,10,36,0.28);
  background: transparent;
  flex: 0 0 auto;
}
.opt__label{
  font-size: 14px;
  font-weight: 700;
  color:#2b2336;
}

.opt[data-v="1"] .opt__mark{ border-color: rgba(47,158,68,0.55); }
.opt[data-v="0"] .opt__mark{ border-color: rgba(201,42,42,0.55); }

.opt.is-selected{
  border-color: rgba(122,59,176,0.55);
  box-shadow: 0 0 0 4px rgba(122,59,176,0.12);
}
.opt.is-selected .opt__mark{
  background: radial-gradient(circle at 40% 35%, #fff 0%, rgba(255,255,255,0.0) 55%),
              linear-gradient(180deg, var(--gold), var(--accent2));
  border-color: rgba(122,59,176,0.65);
}

.actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn{
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  cursor:pointer;
  color: #12081e;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  box-shadow: 0 14px 22px rgba(18,8,30,0.20);
}
.btn:hover{ filter: brightness(1.02); }
.btn:active{ transform: translateY(1px); }
.btn--ghost{
  background: transparent;
  border: 1px solid rgba(22,10,36,0.18);
  color: #2b2336;
  box-shadow: none;
}
.btn--ghost:hover{
  background: rgba(122,59,176,0.06);
}

.formMsg{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.formMsg.is-error{ color: #9c2b2b; font-weight: 700; }
.formMsg.is-ok{ color: #1f7a35; font-weight: 700; }

.card--results{
  padding: 18px 16px 16px;
}
.results__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.badge{
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  color: #12081e;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
}
.score{
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(122,59,176,0.08), rgba(212,175,55,0.06));
  border: 1px solid rgba(22,10,36,0.08);
}
.score__big{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.score__num{
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
}
.score__small{
  color: var(--muted);
  font-size: 13px;
}
.score__bar{
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  background: rgba(22,10,36,0.10);
  overflow:hidden;
}
.score__fill{
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent2));
  width: 0%;
  transition: width 240ms ease;
}
.score__notes{
  margin-top: 10px;
  color: #2b2336;
  font-size: 13px;
  line-height: 1.45;
}
.panel{
  border: 1px solid rgba(22,10,36,0.10);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.panel--full{ margin-top: 12px; }
.panel__title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #2b2336;
}

.review{ display:flex; flex-direction:column; gap: 10px; }
.review__item{
  border: 1px solid rgba(22,10,36,0.10);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.review__q{
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 6px;
  color: #2b2336;
}
.review__a{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.review__pill{
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #12081e;
  background: rgba(212,175,55,0.25);
  border: 1px solid rgba(212,175,55,0.35);
}
.review__pill.is-yes{
  background: rgba(47,158,68,0.18);
  border-color: rgba(47,158,68,0.35);
  color: #1f7a35;
}
.review__pill.is-no{
  background: rgba(201,42,42,0.12);
  border-color: rgba(201,42,42,0.30);
  color: #9c2b2b;
}
.actions--results{
  justify-content: space-between;
  margin-top: 14px;
}

.footer{
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 6px 30px;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.footer__inner{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 16px;
}
.footer__left{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 2px;
}
.footer__promise{
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.footer__right{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
}
.footer__cta{
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  color: #12081e;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(18,8,30,0.25);
  transition: filter 120ms ease, transform 120ms ease;
}
.footer__cta:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.footer__link{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,175,55,0.45);
}

@media (max-width: 860px){
  .hero__inner{ grid-template-columns: 1fr; }
  .brand__logo{ width: 190px; }
  .grid{ grid-template-columns: 1fr; }
}
