/**
 * CORE Certification Platform — Front-end Styles
 * Applies to registration, activation, and dashboard pages.
 * Namespace: .cc- (core-cert)
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */

.cc-wrap {
    width: 100%;
    padding: 48px 0 80px;
    box-sizing: border-box;
}

.cc-dashboard {
    width: 100%;
    padding: 48px 0 80px;
    box-sizing: border-box;
}

/* ── Notices ──────────────────────────────────────────────────────────────── */

.cc-notice {
    padding: 20px 24px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid transparent;
}

.cc-notice--success {
    background-color: #f0faf4;
    border-color: #2e9e6b;
    color: #1a5e3c;
}

.cc-notice--error {
    background-color: #fff5f5;
    border-color: #c0392b;
    color: #7b2020;
}

.cc-notice--info {
    background-color: #f0f7ff;
    border-color: #0097b2;
    color: #1E3A5F;
}

.cc-notice__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}

.cc-error-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.cc-error-list li {
    margin-bottom: 4px;
}

/* ── Form layout ──────────────────────────────────────────────────────────── */

.cc-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cc-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cc-label {
    font-size: 14px;
    font-weight: 700;
    color: #1E3A5F;
}

.cc-required {
    color: #0097b2;
    margin-left: 2px;
}

.cc-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d0cdc6;
    background-color: #ffffff;
    color: #333333;
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.cc-input:focus {
    border-color: #0097b2;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.12);
}

.cc-hint {
    font-size: 12px;
    color: #999999;
}

/* ── Radio group ──────────────────────────────────────────────────────────── */

.cc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d0cdc6;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
}

.cc-radio-option:hover,
.cc-radio-option.is-selected {
    border-color: #0097b2;
    background-color: rgba(0, 151, 178, 0.04);
}

.cc-radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #0097b2;
    flex-shrink: 0;
}

.cc-radio-label {
    color: #1E3A5F;
    font-weight: 600;
}

.cc-cert-meta {
    font-weight: 400;
    color: #888888;
    font-size: 13px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.cc-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-family: inherit;
    border-radius: 0;
}

.cc-btn--primary {
    background-color: #0097b2;
    color: #ffffff;
}

.cc-btn--primary:hover {
    background-color: #007a90;
    color: #ffffff;
}

.cc-form-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
}

.cc-form-note {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

.cc-form-note a {
    color: #0097b2;
}

/* ── Activation ───────────────────────────────────────────────────────────── */

.cc-activate-greeting {
    margin-bottom: 28px;
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.cc-dashboard-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid #E8E3D8;
}

.cc-dashboard-greeting {
    font-size: 28px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 8px;
}

.cc-dashboard-cert {
    font-size: 15px;
    color: #666666;
    margin: 0;
}

/* ── Progress tracker ─────────────────────────────────────────────────────── */

/* ── Stepper ──────────────────────────────────────────────────────────────── */

.cc-stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.cc-stepper__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;
}

/* Horizontal connector line between steps */
.cc-stepper__connector {
    position: absolute;
    top: 16px;
    right: calc(50% + 16px);
    left: calc(-50% + 16px);
    height: 2px;
    background: #E8E3D8;
    transition: background 0.3s ease;
    z-index: 0;
}

.cc-stepper__connector.is-filled {
    background: #0097b2;
}

/* Node (the circle) */
.cc-stepper__node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background: #F3F1EC;
    border: 2px solid #D8D4CC;
}

/* Done */
.cc-stepper__step.is-done .cc-stepper__node {
    background: #0097b2;
    border-color: #0097b2;
    color: #ffffff;
}

.cc-stepper__step.is-done .cc-stepper__node svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
}

/* Active */
.cc-stepper__step.is-active .cc-stepper__node {
    background: #1E3A5F;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.12);
}

.cc-stepper__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    display: block;
}

/* Future */
.cc-stepper__step.is-future .cc-stepper__node {
    background: #F3F1EC;
    border-color: #D8D4CC;
}

.cc-stepper__num {
    font-size: 11px;
    font-weight: 700;
    color: #BBBBBB;
}

/* Labels */
.cc-stepper__label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 8px;
    line-height: 1.3;
    padding: 0 2px;
    color: #BBBBBB;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cc-stepper__step.is-active .cc-stepper__label {
    color: #1E3A5F;
    font-weight: 700;
}

.cc-stepper__step.is-done .cc-stepper__label {
    color: #0097b2;
}

/* ── Stepper: tablet (≤ 640px) — shrink nodes, hide labels on done/future ── */
@media (max-width: 640px) {
    .cc-stepper {
        margin-bottom: 28px;
    }

    .cc-stepper__node {
        width: 26px;
        height: 26px;
    }

    .cc-stepper__connector {
        top: 13px;
        right: calc(50% + 13px);
        left: calc(-50% + 13px);
    }

    /* Hide labels for non-active steps to reduce clutter */
    .cc-stepper__step.is-done .cc-stepper__label,
    .cc-stepper__step.is-future .cc-stepper__label {
        display: none;
    }

    .cc-stepper__label {
        font-size: 9px;
    }

    .cc-stepper__num {
        font-size: 10px;
    }

    .cc-stepper__step.is-done .cc-stepper__node svg {
        width: 12px;
        height: 12px;
    }
}

/* ── Stepper: mobile (≤ 480px) — collapse to progress bar + step label ─── */
@media (max-width: 480px) {
    /*
     * On small screens the 7-step horizontal row becomes unreadable.
     * We render a slim progress bar (filled track) with a single
     * "Step N of 7 — Label" caption below it instead.
     *
     * The bar width is driven by a CSS custom property --cc-step-pct
     * written by inline style on .cc-stepper (set in PHP below).
     */
    .cc-stepper {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 24px;
        position: relative;
    }

    /* Hide all individual step circles */
    .cc-stepper__step {
        display: none;
    }

    /* But show the active step's label as the caption */
    .cc-stepper__step.is-active {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .cc-stepper__step.is-active .cc-stepper__connector {
        display: none;
    }

    .cc-stepper__step.is-active .cc-stepper__node {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .cc-stepper__step.is-active .cc-stepper__label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #1E3A5F;
        margin-top: 0;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    /* Progress bar track — sits above the active step caption */
    .cc-stepper::before {
        content: '';
        display: block;
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #E8E3D8;
        position: relative;
        overflow: hidden;
    }

    /* Filled portion of bar — width driven by --cc-step-pct custom property */
    .cc-stepper::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        height: 6px;
        border-radius: 3px;
        background: #0097b2;
        width: var(--cc-step-pct, 14%);
        transition: width 0.4s ease;
    }
}

/* ── Next step panel ──────────────────────────────────────────────────────── */

.cc-next-step {
    margin-bottom: 48px;
}

.cc-next-step__panel {
    padding: 32px 36px;
    background-color: #F7F4EE;
    border-left: 4px solid #1E3A5F;
}

.cc-next-step__panel--success {
    border-left-color: #2e9e6b;
    background-color: #f0faf4;
}

/* Post-submission congratulations panel */
.cc-congrats-panel {
    text-align: center;
    border-left: none !important;
    border-top: 4px solid #2e9e6b;
    background: linear-gradient(135deg, #f0faf4 0%, #e8f8f0 100%) !important;
}

.cc-congrats-panel__icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.cc-congrats-panel .cc-next-step__eyebrow {
    color: #2e9e6b;
}

.cc-congrats-panel .cc-info-box {
    text-align: left;
    margin-top: 24px;
}

.cc-next-step__panel--info {
    border-left-color: #0097b2;
    background-color: #f0f9fc;
}

.cc-next-step__eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0097b2;
    margin-bottom: 8px;
}

.cc-next-step__title {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 12px;
}

.cc-next-step__body {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Dashboard meta ───────────────────────────────────────────────────────── */

.cc-dashboard-meta {
    border: 1px solid #E8E3D8;
    margin-bottom: 32px;
}

.cc-meta-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid #E8E3D8;
    font-size: 14px;
}

.cc-meta-row:last-child {
    border-bottom: none;
}

.cc-meta-key {
    font-weight: 700;
    color: #1E3A5F;
    min-width: 160px;
}

.cc-meta-val {
    color: #555555;
}

.cc-status {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-status--active {
    background-color: #0097b2;
    color: #ffffff;
}

/* ── Misc ─────────────────────────────────────────────────────────────────── */

.cc-link-muted {
    font-size: 13px;
    color: #999999;
    text-decoration: none;
}

.cc-link-muted:hover {
    color: #0097b2;
}

.cc-dashboard-footer {
    text-align: right;
    padding-top: 8px;
}


/* ── Exam: one-per-page question navigation ────────────────────────────────── */

.cc-exam-question__header {
    margin-bottom: 6px;
}

.cc-exam-question__number {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0097b2;
}

.cc-exam-question__of {
    color: #999;
    font-weight: 400;
}

.cc-exam-question__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #E8E3D8;
}

.cc-exam-question__nav .cc-btn {
    min-width: 120px;
}

.cc-review-summary {
    border: 1px solid #E8E3D8;
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
}

/* ── Responsive question nav ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .cc-exam-question__nav {
        flex-direction: column;
        gap: 10px;
    }
    .cc-exam-question__nav .cc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* Tablet / narrow desktop */
@media (max-width: 900px) {
    .cc-dashboard {
        max-width: 100%;
        padding: 32px 20px 64px;
    }
    .cc-wrap {
        max-width: 100%;
        padding: 32px 20px 64px;
    }
}

/* Mobile — 480px to 640px */
@media (max-width: 640px) {

    .cc-wrap {
        padding: 24px 0 48px;
    }

    .cc-dashboard {
        padding: 20px 0 48px;
    }

    .cc-form-row--2col {
        grid-template-columns: 1fr;
    }

    /* Progress tracker */
    .cc-progress {
        gap: 0;
        padding-bottom: 8px;
        margin-bottom: 28px;
        overflow-x: visible;
    }

    .cc-progress-num {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 3px;
    }

    .cc-progress-num svg {
        width: 12px;
        height: 12px;
    }

    .cc-progress-step::before {
        top: 14px;
    }

    .cc-progress-label {
        font-size: 8px;
        letter-spacing: 0;
        margin-top: 5px;
    }

    /* Next step panel */
    .cc-next-step__panel {
        padding: 20px 16px;
    }

    .cc-next-step__title {
        font-size: 19px;
    }

    .cc-next-step__body {
        font-size: 14px;
    }

    .cc-next-step {
        margin-bottom: 28px;
    }

    /* Dashboard header */
    .cc-dashboard-greeting {
        font-size: 22px;
    }

    .cc-dashboard-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    /* Meta table — stack key/value on very small screens */
    .cc-meta-row {
        padding: 11px 14px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .cc-meta-key {
        min-width: 100%;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #0097b2;
        margin-bottom: 2px;
    }

    .cc-meta-val {
        font-size: 14px;
        width: 100%;
    }

    .cc-dashboard-meta {
        margin-bottom: 24px;
    }

    /* Form footer */
    .cc-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Buttons full width on mobile */
    .cc-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* Radio options */
    .cc-radio-group--delivery {
        gap: 10px;
    }

    .cc-radio-option {
        padding: 14px 12px;
    }

    /* Notices */
    .cc-notice {
        padding: 16px 14px;
        font-size: 14px;
    }

    /* Booked session summary */
    .cc-booked-session-summary {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* Small mobile — under 400px */
@media (max-width: 400px) {

    .cc-wrap,
    .cc-dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cc-progress-label {
        display: none; /* hide labels on very small screens */
    }

    .cc-dashboard-greeting {
        font-size: 20px;
    }

    .cc-next-step__title {
        font-size: 17px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 4 — Study, Exam, Assessment & Exam Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Status badge ─────────────────────────────────────────────────────────── */

.cc-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.cc-status-badge--pending {
    background-color: #FFF8E1;
    color: #B45309;
    border: 1px solid #F59E0B;
}

/* ── Info box ─────────────────────────────────────────────────────────────── */

.cc-info-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #F0FCFE;
    border-left: 3px solid #0097b2;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.cc-info-box__icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #0097b2;
    margin-top: 1px;
}

/* ── Study block ─────────────────────────────────────────────────────────── */

.cc-study-block {
    background: #F7F4EE;
    border: 1px solid #DDD8CC;
    padding: 20px 24px;
    margin-top: 24px;
}

.cc-study-block__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 10px;
    color: #1E3A5F;
}

.cc-study-block__icon {
    font-size: 18px;
}

.cc-study-block__desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.6;
}

.cc-study-block__desc--pending {
    font-style: italic;
    color: #888;
}

.cc-downloaded-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #0097b2;
    margin-left: 8px;
}

/* ── Exam block ───────────────────────────────────────────────────────────── */

.cc-exam-block {
    background: #ffffff;
    border: 1.5px solid #DDD8CC;
    border-top: 3px solid #1E3A5F;
    padding: 20px 24px;
    margin-top: 16px;
}

.cc-exam-block__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 10px;
    color: #1E3A5F;
}

.cc-exam-block__icon {
    font-size: 18px;
}

.cc-exam-block__desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.6;
}

.cc-exam-attempt-info {
    font-size: 13px;
    color: #666;
    background: #F7F4EE;
    padding: 8px 12px;
    border-left: 3px solid #0097b2;
    margin-bottom: 16px;
}

/* ── Exam page layout ─────────────────────────────────────────────────────── */

.cc-exam-page body,
body.cc-exam-page {
    background: #F7F4EE;
    margin: 0;
    padding: 0;
}

.cc-exam-page-header {
    background: #ffffff;
    border-bottom: 3px solid #1E3A5F;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cc-exam-page-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-exam-page-header__logo {
    height: 36px;
    width: auto;
}

.cc-exam-page-header__logo-link {
    display: flex;
    align-items: center;
}

.cc-exam-page-header__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0097b2;
}

.cc-exam-page-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.cc-exam-page-footer {
    background: #1E3A5F;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

.cc-exam-page-footer a {
    color: #0097b2;
    text-decoration: none;
}

/* ── Exam wrap ───────────────────────────────────────────────────────────── */

.cc-exam-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.cc-exam-header {
    background: #ffffff;
    border-top: 4px solid #1E3A5F;
    padding: 28px 32px 0;
    margin-bottom: 0;
}

.cc-exam-header__inner {
    padding-bottom: 20px;
}

.cc-exam-title {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 8px;
}

.cc-exam-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-exam-meta-sep {
    color: #ccc;
}

/* Progress bar */
.cc-exam-progress-bar {
    height: 4px;
    background: #E8E3D8;
    margin: 0 -32px;
}

.cc-exam-progress-bar__fill {
    height: 100%;
    background: #0097b2;
    transition: width 0.3s ease;
}

/* ── Exam questions ──────────────────────────────────────────────────────── */

.cc-exam-questions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cc-exam-question {
    background: #ffffff;
    border: 1px solid #E8E3D8;
    border-top: none;
    padding: 28px 32px;
    transition: background 0.15s ease;
}

.cc-exam-question:first-child {
    border-top: 1px solid #E8E3D8;
}

.cc-exam-question--unanswered {
    background: #FFF8F8;
    border-color: #c0392b;
    border-left: 3px solid #c0392b;
}

.cc-exam-question__number {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0097b2;
    margin-bottom: 10px;
}

.cc-exam-question__text {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ── Answer options ──────────────────────────────────────────────────────── */

.cc-exam-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-exam-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #DDD8CC;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.5;
}

.cc-exam-option:hover {
    border-color: #0097b2;
    background: #F0FCFE;
}

.cc-exam-option.is-selected {
    border-color: #0097b2;
    background: #F0FCFE;
}

.cc-exam-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cc-exam-option__letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #DDD8CC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cc-exam-option.is-selected .cc-exam-option__letter {
    background: #0097b2;
    border-color: #0097b2;
    color: #ffffff;
}

.cc-exam-option__text {
    font-size: 14px;
    color: #111827;
    flex: 1;
    padding-top: 4px;
}

/* ── Exam footer ──────────────────────────────────────────────────────────── */

.cc-exam-footer {
    background: #ffffff;
    border: 1px solid #E8E3D8;
    border-top: none;
    padding: 28px 32px;
}

.cc-exam-footer__note {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

.cc-exam-footer__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Large button modifier ─────────────────────────────────────────────────── */

.cc-btn--large {
    padding: 16px 40px !important;
    font-size: 15px !important;
}

/* ── Exam result ─────────────────────────────────────────────────────────── */

.cc-exam-result {
    padding: 48px 0 80px;
}

.cc-exam-result__score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #E8E3D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.cc-exam-result__score-ring.is-pass {
    border-color: #0097b2;
}

.cc-exam-result__score-ring.is-fail {
    border-color: #c0392b;
}

.cc-exam-result__score-number {
    font-size: 32px;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1;
}

.cc-exam-result__score-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.is-pass .cc-exam-result__score-label { color: #0097b2; }
.is-fail .cc-exam-result__score-label { color: #c0392b; }

.cc-exam-result__title {
    font-size: 24px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 16px;
    text-align: center;
}

.cc-exam-result__detail {
    text-align: center;
}

.cc-exam-result__stat {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {

    .cc-exam-page-header__inner {
        padding: 14px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cc-exam-header,
    .cc-exam-question,
    .cc-exam-footer {
        padding: 20px;
    }

    .cc-exam-progress-bar {
        margin: 0 -20px;
    }

    .cc-exam-footer__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-exam-footer__actions .cc-btn {
        text-align: center;
    }

    .cc-study-block,
    .cc-exam-block {
        padding: 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 5 ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Founding Cohort Banner ────────────────────────────────────────────────── */

.cc-cohort-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #553C9A 0%, #6B4DB5 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    box-shadow: 0 4px 14px rgba(85, 60, 154, 0.35);
}

.cc-cohort-banner__icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.cc-cohort-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.cc-cohort-banner__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cc-cohort-banner__text {
    opacity: 0.92;
}

.cc-cohort-banner__text strong {
    font-weight: 700;
    opacity: 1;
}


/* ── Exam Timer ───────────────────────────────────────────────────────────── */

.cc-exam-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cc-exam-timer__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.cc-exam-timer__display {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    min-width: 64px;
    letter-spacing: 1px;
}

/* ≤ 5 minutes remaining: amber */
.cc-exam-timer--urgent .cc-exam-timer__display {
    color: #b45309;
}
.cc-exam-timer--urgent {
    background: #fffbeb;
    border-color: #fcd34d;
}

/* ≤ 60 seconds remaining: red pulse */
.cc-exam-timer--critical .cc-exam-timer__display {
    color: #b91c1c;
    animation: cc-timer-pulse 1s ease-in-out infinite;
}
.cc-exam-timer--critical {
    background: #fff5f5;
    border-color: #f87171;
}

/* Expired: red static */
.cc-exam-timer--expired .cc-exam-timer__display,
.cc-timer--expired {
    color: #b91c1c;
}

@keyframes cc-timer-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}


/* ── Exam No-Exit Warning Banner ─────────────────────────────────────────── */

.cc-exam-noexit-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 20px;
    background: #f0f7ff;
    border-left: 4px solid #0097b2;
    color: #1e3a5f;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.cc-exam-noexit-banner--locked {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
}

.cc-exam-noexit-banner__icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}


/* ── Disabled Delivery Options ───────────────────────────────────────────── */

.cc-radio-option--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.cc-radio-option--disabled input[type="radio"] {
    cursor: not-allowed;
}

.cc-delivery-unavailable {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}


/* ── Webinar Session List ─────────────────────────────────────────────────── */

.cc-webinar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.cc-webinar-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
}

.cc-webinar-option:hover {
    border-color: #0097b2;
    background: #f0fafd;
}

.cc-webinar-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #0097b2;
    width: 18px;
    height: 18px;
}

.cc-webinar-option:has(input:checked) {
    border-color: #0097b2;
    background: #f0fafd;
}

.cc-webinar-option--full {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f9fafb;
}

.cc-webinar-option__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-webinar-option__date {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.cc-webinar-option__time {
    font-size: 14px;
    color: #475569;
}

.cc-webinar-option__platform {
    font-weight: 600;
    color: #0097b2;
}

.cc-webinar-option__spaces {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.cc-webinar-option__full-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* ── Booked Session Summary ───────────────────────────────────────────────── */

.cc-booked-session-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 15px;
    color: #1e3a5f;
    margin-top: 12px;
}

.cc-booked-session-summary__icon {
    font-size: 18px;
    flex-shrink: 0;
}


/* ── Responsive: Phase 5 additions ───────────────────────────────────────── */

@media (max-width: 600px) {
    .cc-cohort-banner {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .cc-exam-timer {
        padding: 10px 16px;
    }

    .cc-exam-timer__display {
        font-size: 18px;
    }

    .cc-webinar-option {
        padding: 14px 16px;
    }
}

/* ── Training session card (shown while locked) ─────────────── */
.cc-session-card {
    border: 1px solid #DDD8CC;
    border-top: 4px solid #1E3A5F;
    background: #ffffff;
    margin-top: 16px;
    overflow: hidden;
}

.cc-session-card__header {
    background: #1E3A5F;
    padding: 20px 24px;
}

.cc-session-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #71dbed;
    margin-bottom: 4px;
}

.cc-session-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cc-session-card__details {
    padding: 0 24px;
}

.cc-session-card__row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #F0EDE8;
}

.cc-session-card__row:last-child {
    border-bottom: none;
}

.cc-session-card__row--link {
    align-items: flex-start;
}

.cc-session-card__row-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    line-height: 1.3;
}

.cc-session-card__row-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.cc-session-card__row-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1E3A5F;
    line-height: 1.4;
}

.cc-session-card__row-value--pending {
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
    font-style: italic;
}

.cc-session-card__join-btn {
    display: inline-block !important;
    margin-top: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
}

.cc-session-card__link-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin: 8px 0 0;
}

.cc-session-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F7F4EE;
    padding: 14px 24px;
    font-size: 13px;
    color: #6B7280;
    border-top: 1px solid #E8E3D8;
}

.cc-session-card__lock-icon {
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cc-session-card__details {
        padding: 0 16px;
    }
    .cc-session-card__header {
        padding: 16px;
    }
    .cc-session-card__footer {
        padding: 12px 16px;
    }
    .cc-session-card__join-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ── Session joining link box ──────────────────────────────── */
.cc-session-link-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #EFF9FC;
    border: 1px solid #0097b2;
    border-left: 4px solid #0097b2;
    padding: 16px 20px;
    margin-top: 16px;
}

.cc-session-link-box--prominent {
    margin-top: 20px;
    padding: 20px 24px;
}

.cc-session-link-box__icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.cc-session-link-box strong {
    display: block;
    font-size: 14px;
    color: #1E3A5F;
    margin-bottom: 4px;
}

.cc-session-link-box__note {
    font-size: 13px;
    color: #374151;
    margin: 0 0 12px;
    line-height: 1.5;
}

.cc-btn--sm {
    padding: 9px 18px !important;
    font-size: 12px !important;
}

@media (max-width: 480px) {
    .cc-session-link-box {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
    .cc-session-link-box--prominent {
        padding: 16px;
    }
}

/* ── Cancel booking ──────────────────────────────────────────────────────── */

.cc-cancel-booking-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Danger ghost variant — red outline, no fill */
.cc-btn--danger {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background: transparent !important;
}

.cc-btn--danger:hover {
    background: #fef2f2 !important;
    border-color: #b91c1c !important;
    color: #b91c1c !important;
}

/* Small muted note under the post-payment session card */
.cc-session-cancel-note {
    font-size: 13px;
    color: #6b7280;
    margin: 12px 0 0;
    text-align: center;
}

.cc-session-cancel-note .cc-link-muted {
    color: #0097b2;
    text-decoration: none;
}

.cc-session-cancel-note .cc-link-muted:hover {
    text-decoration: underline;
}

/* ── Spaces badge (inline on each session option) ──────────────────────── */

.cc-spaces-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cc-spaces-badge--low {
    background: #dcfce7;
    color: #166534;
}

.cc-spaces-badge--medium {
    background: #fef9c3;
    color: #854d0e;
}

.cc-spaces-badge--high {
    background: #fee2e2;
    color: #991b1b;
}

.cc-spaces-badge--open {
    background: #e0f2fe;
    color: #075985;
}

/* ── Live spaces panel ─────────────────────────────────────────────────── */

.cc-session-spaces-panel {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.cc-session-spaces-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cc-session-spaces-panel__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

.cc-session-spaces-panel__count {
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.cc-session-spaces-panel__count.is-low    { background: #dcfce7; color: #166534; }
.cc-session-spaces-panel__count.is-medium { background: #fef9c3; color: #854d0e; }
.cc-session-spaces-panel__count.is-high   { background: #fee2e2; color: #991b1b; }
.cc-session-spaces-panel__count.is-open   { background: #e0f2fe; color: #075985; }

/* Capacity bar */

.cc-capacity-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cc-capacity-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.cc-capacity-bar__fill.is-low    { background: #22c55e; }
.cc-capacity-bar__fill.is-medium { background: #eab308; }
.cc-capacity-bar__fill.is-high   { background: #ef4444; }
.cc-capacity-bar__fill.is-open   { background: #38bdf8; width: 15% !important; }

.cc-session-spaces-panel__note {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .cc-session-spaces-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 7 — Assessment Form, Certificate Badge & Certificate Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Assessment form panel ────────────────────────────────────────────────── */

.cc-assessment-form-panel {
    padding: 32px 36px;
}

.cc-assessment-question {
    margin-bottom: 32px;
}

.cc-assessment-label {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 4px;
    display: block;
}

.cc-assessment-q-num {
    display: inline-block;
    background-color: #1E3A5F;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.cc-assessment-hint {
    display: block;
    font-size: 13px;
    color: #888888;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cc-assessment-textarea {
    resize: vertical;
    min-height: 120px;
    font-size: 14px;
    line-height: 1.7;
}

.cc-assessment-char-count {
    font-size: 12px;
    color: #aaaaaa;
    text-align: right;
    margin-top: 4px;
}

.cc-assessment-char-count.is-ok    { color: #2e9e6b; }
.cc-assessment-char-count.is-short { color: #d97706; }

.cc-char-min-note {
    color: #bbbbbb;
}

.cc-assessment-declaration {
    background-color: #F7F4EE;
    border: 1px solid #E8E3D8;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
}

.cc-assessment-declaration-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #1E3A5F;
    line-height: 1.5;
}

.cc-assessment-declaration input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0097b2;
    width: 16px;
    height: 16px;
}

.cc-assessment-submit-btn {
    min-width: 220px;
}

/* Status badge — failed state */
.cc-status-badge--failed {
    background-color: #fff5f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ── Certificate badge (dashboard) ────────────────────────────────────────── */

/* ── Certification achievement count ──────────────────────────────────────── */

.cc-cert-achievement {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0faf4;
    border: 2px solid #2e9e6b;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.cc-cert-achievement__count {
    font-size: 48px;
    font-weight: 800;
    color: #2e9e6b;
    line-height: 1;
    flex-shrink: 0;
}

.cc-cert-achievement__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2e9e6b;
    margin-bottom: 3px;
}

.cc-cert-achievement__name {
    font-size: 16px;
    font-weight: 700;
    color: #1E3A5F;
}

/* ── Certificate dispatch status ──────────────────────────────────────────── */

.cc-cert-sent-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cc-cert-sent-status--sent {
    background: #f0faf4;
    border: 1px solid #2e9e6b;
    color: #1a5e3c;
}

.cc-cert-sent-status--pending {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #78350f;
}

.cc-cert-sent-status__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cc-certificate-badge {
    background: linear-gradient(135deg, #1E3A5F 0%, #0097b2 100%);
    border-radius: 4px;
    padding: 2px;
    margin: 24px 0;
    max-width: 480px;
}

.cc-certificate-badge__inner {
    background: #ffffff;
    padding: 28px 32px;
    text-align: center;
    border-radius: 3px;
}

.cc-certificate-badge__logo {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1E3A5F;
    margin-bottom: 16px;
}

.cc-certificate-badge__logo span {
    color: #0097b2;
}

.cc-certificate-badge__name {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 6px;
}

.cc-certificate-badge__programme {
    font-size: 14px;
    color: #0097b2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.cc-certificate-badge__meta {
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 0.3px;
}

.cc-cert-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Certificate page (screen) ────────────────────────────────────────────── */

.cc-certificate-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.cc-certificate-toolbar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.cc-certificate-print-btn {
    padding: 12px 28px;
    font-size: 14px;
}

.cc-certificate {
    border: 1px solid #E8E3D8;
    background: #ffffff;
    padding: 8px;
}

.cc-cert-border {
    border: 3px solid #1E3A5F;
    padding: 56px 64px;
    position: relative;
}

.cc-cert-border::before,
.cc-cert-border::after {
    content: '';
    position: absolute;
    border: 1px solid #0097b2;
    inset: 8px;
    pointer-events: none;
}

.cc-cert-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #E8E3D8;
}

.cc-cert-logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1E3A5F;
    margin-bottom: 8px;
}

.cc-cert-logo-text span {
    color: #0097b2;
}

.cc-cert-tagline {
    font-size: 13px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cc-cert-body {
    text-align: center;
    margin-bottom: 48px;
}

.cc-cert-preamble {
    font-size: 15px;
    color: #888888;
    margin: 0 0 12px;
    font-style: italic;
}

.cc-cert-name {
    font-size: 38px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 20px;
    line-height: 1.2;
    font-style: italic;
}

.cc-cert-programme {
    font-size: 18px;
    font-weight: 700;
    color: #0097b2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 24px;
}

.cc-cert-body-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.cc-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 32px;
    border-top: 2px solid #E8E3D8;
}

.cc-cert-sig-block {
    flex: 1;
}

.cc-cert-sig-line {
    width: 180px;
    height: 1px;
    background-color: #333333;
    margin-bottom: 8px;
}

.cc-cert-sig-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cc-cert-meta-block {
    text-align: right;
}

.cc-cert-date {
    font-size: 13px;
    color: #888888;
    margin-bottom: 4px;
}

.cc-cert-number {
    font-size: 11px;
    color: #aaaaaa;
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* ── Certificate page — print / PDF ──────────────────────────────────────── */

@media print {
    body * { visibility: hidden; }
    .cc-certificate, .cc-certificate * { visibility: visible; }
    .cc-certificate { position: fixed; inset: 0; margin: 0; padding: 0; border: none; }
    .cc-cert-border { padding: 40px 48px; }
    .cc-certificate-toolbar { display: none !important; }

    /* Force teal/navy colours even in print */
    .cc-cert-logo-text     { color: #1E3A5F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cc-cert-logo-text span,
    .cc-cert-programme      { color: #0097b2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cc-cert-border         { border-color: #1E3A5F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cc-cert-border::before,
    .cc-cert-border::after  { border-color: #0097b2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Assessment form — responsive ────────────────────────────────────────── */

@media (max-width: 640px) {
    .cc-assessment-form-panel {
        padding: 20px 14px;
    }
    .cc-cert-border {
        padding: 32px 24px;
    }
    .cc-cert-name {
        font-size: 26px;
    }
    .cc-cert-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .cc-cert-meta-block {
        text-align: left;
    }
    .cc-cert-actions {
        flex-direction: column;
    }
    .cc-certificate-badge__inner {
        padding: 20px 16px;
    }
    .cc-certificate-badge__name {
        font-size: 18px;
    }
}

/* ── Candidate number ─────────────────────────────────────────────────────── */

.cc-candidate-number {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #1E3A5F;
    font-weight: 700;
}

/* ── Assessment deadline indicator ───────────────────────────────────────── */

.cc-deadline-normal {
    color: #2e9e6b;
    font-weight: 600;
}

.cc-deadline-urgent {
    color: #c0392b;
    font-weight: 700;
}

/* ── Add to Calendar CTA ──────────────────────────────────────────────────── */

.cc-calendar-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}

.cc-btn--calendar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #553C9A;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.cc-btn--calendar:hover {
    background: #44307c;
    color: #fff;
    text-decoration: none;
}

.cc-calendar-cta__hint {
    font-size: 13px;
    color: #6B7280;
}
