/* ============================================================
   Compliance Self-Assessment Wizard — wizard.css
   ============================================================ */

/* ---------- Wizard header (heading + progress unified) ---------- */
.cc-wizard-header {
    background: linear-gradient(180deg, #eefaf4 0%, #f7faf8 100%);
    border-bottom: 1px solid #c9e8d8;
    padding: 22px 0 18px;
}

.cc-progress-heading {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-progress-heading i {
    color: #2D6A4F;
    font-size: 22px;
    flex-shrink: 0;
}

.cc-wizard-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cc-step-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-step-pill {
    display: inline-flex;
    align-items: center;
    background: #2D6A4F;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cc-step-domain-label {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.cc-step-pct {
    font-size: 13px;
    font-weight: 700;
    color: #2D6A4F;
    white-space: nowrap;
}

.cc-progress-bar {
    height: 8px;
    background: rgba(45, 106, 79, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.cc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2D6A4F, #52B788);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.cc-section-header {
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 12px;
}

/* Legacy class — keep for other templates that still use it */
.cc-heading-wrap {
    padding: 16px 0 10px;
}

.cc-progress-wrap {
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 0;
}

.cc-step-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* ---------- Wizard card ---------- */
.cc-wizard-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cc-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EEF8F4;
    color: #2D6A4F;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
}

.cc-domain-badge i {
    font-size: 16px;
}

/* ---------- Parameter rows ---------- */
.cc-param-row {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #FAFAFA;
    transition: border-color 0.15s;
}

.cc-param-row.cc-answered {
    border-color: #2D6A4F;
    background: #F0FBF6;
}

.cc-param-id {
    font-family: monospace;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 600;
}

.cc-param-text {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin: 4px 0 6px;
}

.cc-param-hint {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

/* ---------- Pill buttons ---------- */
.cc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 99px;
    border: 1.5px solid #D1D5DB;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

/* Default icon colours — give each button a visual hint */
.cc-pill--yes i { color: #2D6A4F; }
.cc-pill--no  i { color: #A32D2D; }
.cc-pill--na  i { color: #9CA3AF; }

.cc-pill--yes:hover { border-color: #2D6A4F; color: #2D6A4F; background: #F0FBF6; }
.cc-pill--no:hover  { border-color: #A32D2D; color: #A32D2D; background: #FEF2F2; }
.cc-pill--na:hover  { border-color: #6B7280; color: #6B7280; background: #F9FAFB; }

.cc-pill.cc-pill--yes.cc-pill--active {
    background: #2D6A4F;
    border-color: #2D6A4F;
    color: #fff;
}
.cc-pill.cc-pill--yes.cc-pill--active i { color: #fff; }

.cc-pill.cc-pill--no.cc-pill--active {
    background: #A32D2D;
    border-color: #A32D2D;
    color: #fff;
}
.cc-pill.cc-pill--no.cc-pill--active i { color: #fff; }

.cc-pill.cc-pill--na.cc-pill--active {
    background: #6B7280;
    border-color: #6B7280;
    color: #fff;
}
.cc-pill.cc-pill--na.cc-pill--active i { color: #fff; }

/* ---------- Answer counter badge ---------- */
.cc-counter {
    font-size: 15px;
    color: #6B7280;
    font-weight: 600;
}

.cc-counter-num {
    font-weight: 800;
    color: #2D6A4F;
}

/* ---------- Action bar ---------- */
.cc-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.cc-btn-back,
.cc-btn-save-exit,
.cc-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s, box-shadow 0.12s;
    border: 1.5px solid transparent;
    line-height: 1.2;
}

.cc-action-bar--no-back {
    justify-content: flex-end;
}

/* Back — neutral ghost */
.cc-btn-back {
    background: #fff;
    color: #6B7280;
    border-color: #D1D5DB;
}
.cc-btn-back:hover {
    background: #F3F4F6;
    color: #374151;
    border-color: #9CA3AF;
    transform: translateY(-1px);
}

/* Save & Exit — slate outline */
.cc-btn-save-exit {
    background: #fff;
    color: #374151;
    border-color: #D1D5DB;
}
.cc-btn-save-exit:hover {
    background: #F3F4F6;
    color: #111827;
    border-color: #6B7280;
    transform: translateY(-1px);
}

/* Save & Continue — wizard green */
.cc-btn-continue {
    background: #2D6A4F;
    color: #fff;
    border-color: #2D6A4F;
}
.cc-btn-continue:hover:not(:disabled) {
    background: #245C43;
    border-color: #245C43;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

/* Submit button disabled state */
.cc-btn-continue:disabled {
    background: #A8C5B8;
    border-color: #A8C5B8;
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- Severity badges ---------- */
.cc-sev-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.cc-sev-badge--critical { background: #FCEBEB; color: #A32D2D; }
.cc-sev-badge--high     { background: #FAEEDA; color: #854F0B; }
.cc-sev-badge--medium   { background: #FDF5D0; color: #7A6200; }
.cc-sev-badge--low      { background: #F5F5F5; color: #6B7280; }

/* ---------- Score dial (SVG-based) ---------- */
.cc-dial-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-dial-score {
    font-size: 28px;
    font-weight: 700;
    fill: #111827;
}

.cc-dial-label {
    font-size: 11px;
    fill: #6B7280;
}

/* ---------- Domain scorecard grid ---------- */
.cc-scorecard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.cc-scorecard {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px 16px;
    background: #FAFAFA;
}

.cc-scorecard-domain {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.cc-scorecard-score {
    font-size: 22px;
    font-weight: 700;
}

.cc-scorecard-score--green { color: #2D6A4F; }
.cc-scorecard-score--amber { color: #854F0B; }
.cc-scorecard-score--red   { color: #A32D2D; }
.cc-scorecard-score--na    { color: #9CA3AF; }

.cc-scorecard-pills-row {
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
}

/* ---------- Gap list ---------- */
.cc-gap-domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #F3F4F6;
    border-radius: 8px 8px 0 0;
    border: 1px solid #E5E7EB;
    border-bottom: none;
}

.cc-gap-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-top: none;
    background: #fff;
}

.cc-gap-item:last-child {
    border-radius: 0 0 8px 8px;
}

.cc-gap-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.5;
}

/* ---------- Report priority cards ---------- */
.cc-priority-card {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    height: 100%;
}

.cc-priority-card .cc-sev-badge {
    margin-bottom: 10px;
}

/* ---------- Score band header ---------- */
.cc-score-header {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
}

.cc-score-header--green { background: #EEF8F4; }
.cc-score-header--amber { background: #FEF6EB; }
.cc-score-header--red   { background: #FCEBEB; }

.cc-score-pct {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.cc-score-pct--green { color: #2D6A4F; }
.cc-score-pct--amber { color: #854F0B; }
.cc-score-pct--red   { color: #A32D2D; }

/* ---------- Severity summary row ---------- */
.cc-sev-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.cc-sev-count {
    font-size: 24px;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
}

.cc-sev-count--critical { color: #A32D2D; }
.cc-sev-count--high     { color: #854F0B; }
.cc-sev-count--medium   { color: #7A6200; }
.cc-sev-count--low      { color: #6B7280; }

.cc-sev-desc {
    font-size: 12px;
    color: #6B7280;
}

/* ---------- Step 1 intro ---------- */
.cc-step1-intro {
    padding-bottom: 4px;
}

.cc-step1-heading {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.cc-step1-sub {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.55;
}

/* ---------- Step 1 form ---------- */
.cc-start-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.cc-resume-warning-card {
    background: #FEF6EB;
    border-color: #F59E0B;
}

.cc-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F3F4F6;
}

.cc-radio-group .form-check {
    margin-bottom: 8px;
}

.pt-state-field { display: none; }

/* ---------- Resume form ---------- */
.cc-resume-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- HR skip screen ---------- */
.cc-skip-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    background: #F9FAFB;
    text-align: center;
}

/* ---------- Complete page score dial ---------- */
.cc-complete-dial {
    margin: 0 auto 24px;
}

/* ---------- Print styles ---------- */
@media print {
    .cc-report-cta,
    nav,
    .public-footer,
    .cc-progress-wrap,
    .cc-wizard-header {
        display: none !important;
    }

    .cc-wizard-card,
    .cc-gap-item,
    .cc-scorecard {
        break-inside: avoid;
    }

    body {
        font-family: Georgia, serif;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .cc-wizard-card {
        padding: 20px 16px;
    }

    .cc-start-card {
        padding: 20px 16px;
    }

    .cc-scorecard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Save & Exit — resume code display ---------- */
.cc-resume-code-box {
    background: #F0FBF6;
    border: 2px solid #2D6A4F;
    border-radius: 12px;
    padding: 20px 24px;
}

.cc-resume-code-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2D6A4F;
}

.cc-resume-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #111827;
}

.cc-saved-email-notice {
    background: #F0FBF6;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #374151;
}
