/* IT Governance Trial Quiz Styles */
.itg-trial-wrap {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    color: #1f2937;
    position: relative;
}

/* ── Screens ── */
.itg-screen { display: block; }

/* ── Start Card ── */
.itg-start-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(36,147,113,0.12);
    border-top: 5px solid #249371;
}
.itg-badge {
    display: inline-block;
    background: #249371;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.itg-start-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #111827;
}
.itg-tagline {
    color: #6b7280;
    margin: 0 0 32px;
    font-size: 1rem;
}
.itg-trial-specs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}
.itg-spec {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 90px;
}
.itg-spec-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #249371;
    line-height: 1;
}
.itg-spec-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}


/* ── Buttons ── */
.itg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.itg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.itg-btn-primary { background: #249371; color: #fff; }
.itg-btn-primary:hover { background: #1a6b52; transform: translateY(-1px); }
.itg-btn-secondary { background: #f3f4f6; color: #374151; }
.itg-btn-secondary:hover { background: #e5e7eb; }
.itg-btn-ghost { background: transparent; color: #6b7280; border: 1px solid #e5e7eb; }
.itg-btn-ghost:hover { background: #f9fafb; }
.itg-btn-submit { background: #249371; color: #fff; padding: 15px 40px; font-size: 1.05rem; border-radius: 12px; }
.itg-btn-submit:hover { background: #1a6b52; }
.itg-btn-cta {
    background: #249371;
    color: #fff !important;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(36,147,113,0.35);
    text-decoration: none;
    display: block;
}
.itg-btn-cta:hover { background: #1a6b52; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(36,147,113,0.4); }

/* ── Quiz Header ── */
.itg-quiz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.itg-q-progress {
    font-weight: 800;
    font-size: 1rem;
    color: #249371;
    white-space: nowrap;
    min-width: 48px;
}
.itg-q-bar-wrap {
    flex: 1;
    background: #e5e7eb;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.itg-q-bar {
    height: 100%;
    background: #249371;
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 10%;
}
.itg-timer {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}
.itg-timer-warn { color: #dc2626; background: #fef2f2; animation: itg-pulse 1s infinite; }
@keyframes itg-pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ── Question Body ── */
.itg-question-body {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    min-height: 260px;
}
.itg-q-number { font-size: 0.8rem; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.itg-q-statement { font-size: 1.05rem; line-height: 1.7; font-weight: 500; margin-bottom: 24px; color: #111827; }
.itg-q-options { display: flex; flex-direction: column; gap: 10px; }
.itg-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 13px 16px;
    cursor: pointer;
    text-align: left;
    background: #fff;
    transition: all 0.15s;
    width: 100%;
}
.itg-option:hover { border-color: #249371; background: #f0fdf4; }
.itg-option.itg-selected { border-color: #249371; background: #f0fdf4; }
.itg-option.itg-selected .itg-opt-letter { background: #249371; color: #fff; }
.itg-opt-letter {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f3f4f6; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.15s;
}
.itg-opt-text { font-size: 0.95rem; line-height: 1.5; }

/* ── Quiz Footer / Dot Nav ── */
.itg-quiz-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.itg-dot-nav { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.itg-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f3f4f6; border: 2px solid #e5e7eb;
    font-size: 0.7rem; font-weight: 700; color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.itg-dot.answered { background: #249371; border-color: #249371; color: #fff; }
.itg-dot.current { outline: 2px solid #f59e0b; outline-offset: 2px; }

/* ── Results / Slides ── */
#itg-results { background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); overflow: hidden; }
.itg-slide-inner { padding: 36px 32px; }
.itg-slide-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 24px;
    color: #111827;
    text-align: center;
}

/* Score Ring */
.itg-score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}
.itg-score-ring svg { width: 100%; height: 100%; }
.itg-score-ring circle { transition: stroke-dashoffset 1s ease, stroke 0.5s; }
.itg-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
}

/* Stat rows */
.itg-result-stats { margin-bottom: 20px; }
.itg-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}
.itg-stat-label { color: #6b7280; }
.itg-stat-val { font-weight: 700; color: #111827; }

/* Risk box */
.itg-risk-box {
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.55;
}
.itg-risk-high { background: #fef2f2; border: 1px solid #fecaca; }
.itg-risk-med  { background: #fffbeb; border: 1px solid #fde68a; }
.itg-risk-ok   { background: #f0fdf4; border: 1px solid #bbf7d0; }
.itg-risk-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.itg-risk-text { color: #374151; }

/* Slide 2: Projection */
.itg-projection-block { margin-bottom: 20px; }
.itg-proj-row {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 8px;
}
.itg-proj-row.danger { background: #fef2f2; border: 2px solid #fca5a5; }
.itg-proj-row.safe   { background: #f0fdf4; border: 2px solid #86efac; }
.itg-proj-label { font-size: 0.82rem; color: #6b7280; margin-bottom: 4px; }
.itg-proj-score { font-size: 1.6rem; font-weight: 800; color: #111827; }
.safe-score { color: #249371; }
.itg-proj-verdict { font-size: 0.85rem; font-weight: 700; color: #ef4444; margin-top: 2px; }
.safe-text { color: #249371; }
.itg-proj-divider { text-align: center; font-size: 0.8rem; color: #9ca3af; font-weight: 700; margin: 4px 0; }

.itg-proj-bar-wrap { margin-bottom: 16px; }
.itg-proj-bar-bg {
    height: 28px;
    background: #f3f4f6;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.itg-proj-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 1s ease;
    background: #249371;
}
.itg-proj-bar-marker {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: #374151;
    display: flex;
    align-items: center;
}
.itg-proj-bar-marker::after {
    content: '50';
    position: absolute;
    top: -18px;
    left: -8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
}
.itg-proj-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 4px;
}
.itg-gap-msg {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.itg-gap-danger { background: #fff7ed; border: 1px solid #fed7aa; color: #92400e; }
.itg-gap-ok     { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Slide 3: CTA */
.itg-cta-slide { text-align: center; }
.itg-cta-check { font-size: 3rem; margin-bottom: 8px; }
.itg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.itg-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}
.itg-feat-icon { font-size: 1.2rem; }
.itg-cta-area { margin-bottom: 16px; }
.itg-cta-sub { font-size: 0.82rem; color: #9ca3af; margin-top: 10px; }
.itg-retake-wrap { margin-top: 8px; }

/* Loading */
.itg-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.itg-spinner {
    width: 40px; height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #249371;
    border-radius: 50%;
    animation: itg-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes itg-spin { to { transform: rotate(360deg); } }

/* ── Mobile ── */
@media (max-width: 500px) {
    .itg-start-card { padding: 32px 20px; }
    .itg-slide-inner { padding: 24px 18px; }
    .itg-trial-specs { gap: 10px; }
    .itg-spec { padding: 12px 14px; min-width: 72px; }
    .itg-spec-num { font-size: 1.4rem; }
    .itg-quiz-footer { flex-wrap: wrap; justify-content: center; }
}
