.ccq-wrap {
    --ccq-primary: #00235e;
    --ccq-primary-dark: #001843;
    --ccq-accent: #ffb600;
    --ccq-accent-soft: #fff5d6;
    --ccq-text: #202632;
    --ccq-muted: #667085;
    --ccq-border: #d8dee9;
    --ccq-surface: #ffffff;
    --ccq-soft: #f6f8fb;
    --ccq-primary-soft: #eef3fb;
    --ccq-shadow: 0 12px 34px rgba(0, 35, 94, 0.09);
    max-width: 860px;
    margin: 32px auto;
    color: var(--ccq-text);
}

.ccq-wrap,
.ccq-wrap * {
    box-sizing: border-box;
}

.ccq-wrap [hidden] {
    display: none !important;
}

.ccq-card {
    padding: 28px;
    background: var(--ccq-surface);
    border: 1px solid var(--ccq-border);
    border-radius: 20px;
    box-shadow: var(--ccq-shadow);
}

.ccq-title {
    margin: 0 0 12px;
    color: var(--ccq-primary);
    font-size: clamp(1.65rem, 3vw, 2rem);
    line-height: 1.2;
    text-wrap: balance;
}

.ccq-description {
    max-width: 68ch;
    margin: 0 0 18px;
    color: var(--ccq-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.ccq-note {
    padding: 15px 17px;
    color: var(--ccq-muted);
    background: var(--ccq-soft);
    border: 1px solid var(--ccq-border);
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.ccq-note p {
    margin: 0;
}

.ccq-note p + p {
    margin-top: 7px;
}

.ccq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.ccq-btn,
.ccq-link-btn,
.ccq-answer,
.ccq-result-title a {
    -webkit-tap-highlight-color: transparent;
}

.ccq-btn {
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ccq-btn:hover {
    transform: translateY(-1px);
}

.ccq-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ccq-btn-primary {
    color: #ffffff;
    background: var(--ccq-primary);
}

.ccq-btn-primary:hover {
    background: var(--ccq-primary-dark);
}

.ccq-btn-secondary {
    color: var(--ccq-primary);
    background: var(--ccq-primary-soft);
}

.ccq-btn-secondary:hover {
    background: #e1e9f6;
}

.ccq-link-btn {
    min-height: 40px;
    padding: 5px 2px;
    color: var(--ccq-muted);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ccq-btn:focus-visible,
.ccq-link-btn:focus-visible,
.ccq-answer:focus-visible,
.ccq-result-title a:focus-visible {
    outline: 3px solid var(--ccq-accent);
    outline-offset: 3px;
}

.ccq-progress-row {
    margin-bottom: 24px;
}

.ccq-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ccq-step-label {
    color: var(--ccq-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.ccq-progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: #e9edf4;
    border-radius: 999px;
}

.ccq-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ccq-primary), #285aa7);
    border-radius: inherit;
    transition: width 240ms ease;
}

.ccq-question {
    margin: 0 0 18px;
    color: var(--ccq-text);
    font-size: clamp(1.3rem, 2.6vw, 1.65rem);
    line-height: 1.35;
    text-wrap: balance;
}

.ccq-answers {
    display: grid;
    gap: 12px;
}

.ccq-answer {
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    gap: 14px;
    padding: 14px 17px;
    color: var(--ccq-text);
    text-align: left;
    background: var(--ccq-surface);
    border: 1px solid var(--ccq-border);
    border-radius: 15px;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ccq-answer:hover {
    background: #fbfcfe;
    border-color: #a9b9d3;
    box-shadow: 0 8px 22px rgba(0, 35, 94, 0.08);
    transform: translateY(-1px);
}

.ccq-answer[aria-pressed="true"] {
    background: var(--ccq-primary-soft);
    border-color: var(--ccq-primary);
    box-shadow: 0 8px 24px rgba(0, 35, 94, 0.12);
}

.ccq-answer-key {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    color: var(--ccq-primary);
    background: var(--ccq-accent-soft);
    border-radius: 999px;
    font-weight: 800;
}

.ccq-answer-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.ccq-profile-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 20px;
}

.ccq-profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--ccq-primary);
    background: var(--ccq-accent-soft);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.3;
}

.ccq-result-list {
    display: grid;
    gap: 14px;
}

.ccq-result-item {
    position: relative;
    padding: 16px;
    background: var(--ccq-surface);
    border: 1px solid var(--ccq-border);
    border-radius: 16px;
}

.ccq-result-item.is-top {
    padding-top: 20px;
    background: linear-gradient(135deg, var(--ccq-primary-soft), #ffffff);
    border-color: #b9c8df;
}

.ccq-result-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: var(--ccq-primary);
    background: var(--ccq-accent);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.ccq-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.ccq-result-title {
    color: var(--ccq-primary);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.ccq-result-title a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ccq-result-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--ccq-accent);
}

.ccq-result-subtitle {
    margin-top: 4px;
    color: var(--ccq-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ccq-result-score {
    flex: 0 0 auto;
    color: var(--ccq-primary);
    text-align: right;
}

.ccq-result-score strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
}

.ccq-result-score span {
    display: block;
    margin-top: 3px;
    color: var(--ccq-muted);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
}

.ccq-result-bar {
    width: 100%;
    height: 11px;
    overflow: hidden;
    background: #e9edf4;
    border-radius: 999px;
}

.ccq-result-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ccq-primary), #3a6dba);
    border-radius: inherit;
    transition: width 420ms ease;
}

.ccq-result-explanation {
    margin-top: 20px;
    padding: 16px 17px;
    color: var(--ccq-muted);
    background: var(--ccq-soft);
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.65;
}

.ccq-result-explanation p {
    margin: 0;
}

.ccq-result-explanation p + p {
    margin-top: 8px;
}

.ccq-result-explanation strong {
    color: var(--ccq-text);
}

.ccq-result-note {
    margin: 16px 0 0;
    color: var(--ccq-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ccq-noscript {
    margin: 16px 0 0;
    padding: 12px 14px;
    color: #7a2e00;
    background: #fff4e5;
    border-radius: 10px;
}

.ccq-wrap .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .ccq-wrap {
        margin: 22px auto;
    }

    .ccq-card {
        padding: 18px;
        border-radius: 16px;
    }

    .ccq-progress-meta {
        align-items: flex-start;
    }

    .ccq-answer {
        min-height: 58px;
        padding: 13px 14px;
    }

    .ccq-answer-text {
        font-size: 0.95rem;
    }

    .ccq-result-head {
        flex-direction: column;
        gap: 9px;
    }

    .ccq-result-score {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccq-wrap *,
    .ccq-wrap *::before,
    .ccq-wrap *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
