/* PiiComm Dynamic Quizzes - Scoped Frontend Styles */

body.pcq-standalone-body {
    margin: 0;
    padding: 0;
    background: var(--pcq-bg, #f8fafc);
}

.pcq-root {
    --pcq-primary: #74bdb0;
    --pcq-accent: #f15928;
    --pcq-accent-hover: #d64e22;
    --pcq-dark: #0e2c3b;
    --pcq-bg: #f8fafc;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--pcq-dark);
    background-color: var(--pcq-bg);
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.pcq-root.pcq-mode-standalone {
    min-height: 100vh;
}

.pcq-root.pcq-mode-embedded {
    min-height: 620px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -15px rgba(14, 44, 59, 0.12);
    margin: 24px auto;
}

.pcq-root *,
.pcq-root *::before,
.pcq-root *::after {
    box-sizing: border-box;
}

.pcq-root h1,
.pcq-root h2,
.pcq-root h3,
.pcq-root p {
    margin: 0;
    font-family: inherit;
    color: inherit;
}

.pcq-root button,
.pcq-root input,
.pcq-root textarea {
    font-family: inherit;
}

.pcq-root ::selection {
    background: rgba(116, 189, 176, 0.3);
}

/* Ambient Background Blobs */
.pcq-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pcq-mode-standalone .pcq-ambient {
    position: fixed;
}

.pcq-blob-teal {
    position: absolute;
    top: 25%;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 9999px;
    background: var(--pcq-primary);
    opacity: 0.06;
    filter: blur(120px);
}

.pcq-blob-orange {
    position: absolute;
    bottom: 25%;
    left: -80px;
    width: 500px;
    height: 500px;
    border-radius: 9999px;
    background: var(--pcq-accent);
    opacity: 0.06;
    filter: blur(120px);
}

.pcq-ambient-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--pcq-bg) 100%);
    opacity: 0.5;
}

/* Navbar */
.pcq-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    z-index: 50;
}

.pcq-mode-standalone .pcq-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.pcq-mode-embedded .pcq-nav {
    position: relative;
}

.pcq-nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pcq-nav-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pcq-nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pcq-nav-divider {
    height: 24px;
    width: 1px;
    background: #e2e8f0;
    margin: 0 8px;
}

.pcq-nav-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.pcq-nav-progress {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (min-width: 640px) {
    .pcq-nav-progress {
        display: flex;
    }
}

.pcq-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pcq-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pcq-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--pcq-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pcq-lang-pill:hover {
    border-color: var(--pcq-primary);
    color: var(--pcq-primary);
}

.pcq-progress-bars {
    display: flex;
    gap: 4px;
}

.pcq-progress-segment {
    height: 6px;
    width: 32px;
    border-radius: 9999px;
    background: #e2e8f0;
    transition: background-color 0.4s ease;
}

.pcq-progress-segment.is-done {
    background: var(--pcq-primary);
}

.pcq-progress-segment.is-current {
    background: var(--pcq-primary);
    opacity: 0.5;
}

.pcq-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 8px;
    letter-spacing: 0.04em;
}

/* Main Stage */
.pcq-main {
    position: relative;
    z-index: 10;
}

.pcq-mode-standalone.pcq-has-navbar .pcq-main {
    padding-top: 80px;
}

/* Animations */
@keyframes pcqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pcqSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pcqSlideQuestion {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pcqPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.96); }
}

@keyframes pcqSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pcqEcgSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Landing Screen */
.pcq-landing {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    animation: pcqFadeIn 0.35s ease both;
}

.pcq-mode-embedded .pcq-landing {
    min-height: 540px;
    padding: 48px 0;
}

.pcq-mode-standalone:not(.pcq-has-navbar) .pcq-landing {
    min-height: 100vh;
}

.pcq-landing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pcq-landing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.2;
    display: block;
}

.pcq-landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95));
}

.pcq-landing-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
    max-width: 896px;
    width: 100%;
}

.pcq-hero-icon {
    margin-bottom: 24px;
    display: flex;
    height: 64px;
    width: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--pcq-dark);
    color: var(--pcq-primary);
    box-shadow: 0 25px 50px -12px rgba(14, 44, 59, 0.35);
    animation: pcqSlideUp 0.38s ease both;
}

.pcq-hero-icon svg {
    animation: pcqPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pcq-landing-title {
    font-size: clamp(2.75rem, 6.5vw, 5.75rem);
    font-weight: 900;
    color: var(--pcq-dark);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    line-height: 1.05;
    animation: pcqSlideUp 0.45s ease 0.12s both;
}

.pcq-landing-subtitle {
    font-size: clamp(1.35rem, 2.8vw, 2.25rem);
    color: #64748b;
    margin-bottom: 48px;
    font-weight: 700;
    line-height: 1.25;
    animation: pcqSlideUp 0.45s ease 0.2s both;
}

.pcq-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: var(--pcq-accent);
    padding: 22px 48px;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 22px 45px -10px rgba(241, 89, 40, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    animation: pcqSlideUp 0.45s ease 0.28s both;
}

.pcq-start-btn:hover {
    background: var(--pcq-accent-hover);
    transform: scale(1.05);
}

.pcq-start-btn:active {
    transform: scale(0.96);
}

.pcq-ecg-wrap {
    margin-top: 72px;
    width: 100%;
    max-width: 672px;
    height: 96px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pcq-ecg-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pcq-ecg-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0.92) 65%, transparent 100%);
    animation: pcqEcgSweep 3s linear infinite;
    pointer-events: none;
}

.pcq-ecg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 0%, transparent 18%, transparent 82%, #ffffff 100%);
    pointer-events: none;
}

/* Quiz Stage */
.pcq-quiz-stage {
    margin: 0 auto;
    max-width: 1024px;
    padding: 32px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    animation: pcqSlideQuestion 0.35s ease both;
}

.pcq-mode-embedded .pcq-quiz-stage {
    min-height: 540px;
}

@media (min-width: 1024px) {
    .pcq-quiz-stage {
        padding: 64px;
    }
}

.pcq-quiz-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pcq-question-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.pcq-question-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    background: rgba(14, 44, 59, 0.05);
    padding: 8px 16px;
}

.pcq-question-pill svg {
    color: var(--pcq-primary);
}

.pcq-question-pill span {
    font-size: 13px;
    font-weight: 900;
    color: var(--pcq-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pcq-question-text {
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 900;
    color: var(--pcq-dark);
    line-height: 1.2;
}

.pcq-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .pcq-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pcq-option-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    animation: pcqSlideUp 0.35s ease both;
}

.pcq-option-btn:not(:disabled):hover {
    border-color: rgba(116, 189, 176, 0.6);
    box-shadow: 0 10px 25px -5px rgba(14, 44, 59, 0.1);
    transform: translateY(-4px) scale(1.015);
}

.pcq-option-btn:not(:disabled):active {
    transform: scale(0.98);
}

.pcq-option-btn:disabled {
    cursor: default;
}

.pcq-option-btn.is-correct {
    border-color: var(--pcq-primary);
    background: rgba(116, 189, 176, 0.1);
    background: color-mix(in srgb, var(--pcq-primary) 11%, #ffffff);
    box-shadow: 0 10px 25px -5px rgba(116, 189, 176, 0.25);
}

.pcq-option-btn.is-wrong {
    border-color: var(--pcq-accent);
    background: rgba(241, 89, 40, 0.1);
    background: color-mix(in srgb, var(--pcq-accent) 11%, #ffffff);
    box-shadow: 0 10px 25px -5px rgba(241, 89, 40, 0.25);
}

.pcq-option-btn.is-dimmed {
    opacity: 0.42;
}

.pcq-option-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pcq-option-letter {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
    background: #f1f5f9;
    color: var(--pcq-dark);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.pcq-option-btn:not(:disabled):hover .pcq-option-letter {
    background: rgba(116, 189, 176, 0.14);
}

.pcq-option-btn.is-correct .pcq-option-letter {
    background: var(--pcq-primary);
    color: #ffffff;
}

.pcq-option-btn.is-wrong .pcq-option-letter {
    background: var(--pcq-accent);
    color: #ffffff;
}

.pcq-option-label {
    flex: 1;
    padding-top: 4px;
    font-weight: 700;
    color: var(--pcq-dark);
    font-size: 18px;
    line-height: 1.5;
}

.pcq-insight {
    padding: 24px;
    border-radius: 16px;
    background: rgba(14, 44, 59, 0.05);
    border-left: 4px solid var(--pcq-primary);
    animation: pcqSlideUp 0.28s ease both;
}

.pcq-insight p {
    color: var(--pcq-dark);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.65;
}

.pcq-next-wrap {
    display: flex;
    justify-content: flex-end;
    animation: pcqSlideUp 0.25s ease both;
}

.pcq-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 16px;
    background: var(--pcq-accent);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(241, 89, 40, 0.35);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pcq-next-btn:hover {
    background: var(--pcq-accent-hover);
    box-shadow: 0 18px 30px -8px rgba(241, 89, 40, 0.45);
}

.pcq-next-btn:active {
    transform: scale(0.98);
}

/* Summary / Gate Stage */
.pcq-summary-stage {
    margin: 0 auto;
    max-width: 1152px;
    padding: 40px 24px 64px;
    animation: pcqSlideUp 0.4s ease both;
}

.pcq-gate-header {
    margin-bottom: 32px;
    text-align: center;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.pcq-gate-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 900;
    color: var(--pcq-dark);
    margin-bottom: 16px;
    line-height: 1.1;
}

.pcq-gate-subtitle {
    font-size: 20px;
    color: #475569;
    line-height: 1.6;
}

.pcq-gate-subtitle .pcq-highlight {
    font-weight: 700;
    color: var(--pcq-primary);
}

.pcq-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 35px -10px rgba(14, 44, 59, 0.08);
}

@media (max-width: 639px) {
    .pcq-card {
        padding: 24px;
    }
}

.pcq-gate-card {
    max-width: 672px;
    margin: 0 auto;
}

.pcq-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pcq-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .pcq-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pcq-field-full {
    grid-column: 1 / -1;
}

.pcq-field-half {
    grid-column: span 1;
}

.pcq-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--pcq-dark);
    margin-bottom: 8px;
}

.pcq-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    color: var(--pcq-dark);
    background: #ffffff;
    transition: border-color 0.2s ease;
    outline: none;
}

.pcq-input:focus {
    border-color: var(--pcq-primary);
}

.pcq-form-error {
    padding: 16px;
    border-radius: 12px;
    background: rgba(241, 89, 40, 0.1);
    border: 1px solid rgba(241, 89, 40, 0.25);
    color: var(--pcq-accent);
    font-size: 14px;
    font-weight: 600;
}

.pcq-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 16px;
    background: var(--pcq-accent);
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 20px 35px -10px rgba(241, 89, 40, 0.4);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pcq-submit-btn:hover:not(:disabled) {
    background: var(--pcq-accent-hover);
}

.pcq-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pcq-spin {
    animation: pcqSpin 1s linear infinite;
}

/* Results View */
.pcq-results-hero {
    margin-bottom: 44px;
    text-align: center;
}

.pcq-score-big {
    font-size: clamp(4rem, 9vw, 6rem);
    font-weight: 900;
    color: var(--pcq-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.pcq-tier-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--pcq-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.pcq-score-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pcq-tier-message {
    font-size: 20px;
    color: #475569;
    line-height: 1.65;
    max-width: 768px;
    margin: 0 auto;
}

.pcq-results-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pcq-report-card-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pcq-report-card-inner h3 {
    font-size: 30px;
    font-weight: 900;
    color: var(--pcq-dark);
}

.pcq-report-desc {
    font-size: 18px;
    color: #475569;
}

.pcq-download-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 16px;
    background: var(--pcq-accent);
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 20px 35px -10px rgba(241, 89, 40, 0.35);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.pcq-download-btn:hover {
    background: var(--pcq-accent-hover);
    transform: translateY(-2px);
}

.pcq-contact-divider {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.pcq-contact-divider p {
    color: #475569;
    margin-bottom: 12px;
    font-size: 16px;
}

.pcq-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pcq-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

.pcq-contact-link:hover {
    text-decoration: underline;
}

.pcq-review-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pcq-dark);
    margin-bottom: 24px;
}

.pcq-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pcq-review-item {
    padding: 16px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.pcq-review-item:hover {
    background: #f8fafc;
}

.pcq-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pcq-review-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}

.pcq-q-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.pcq-q-badge.is-ok {
    background: rgba(116, 189, 176, 0.14);
    color: var(--pcq-primary);
}

.pcq-q-badge.is-bad {
    background: rgba(241, 89, 40, 0.14);
    color: var(--pcq-accent);
}

.pcq-review-answer {
    font-weight: 600;
    color: var(--pcq-dark);
    font-size: 14px;
}

.pcq-status-pill {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.pcq-status-pill.is-ok {
    background: rgba(116, 189, 176, 0.14);
    color: var(--pcq-primary);
}

.pcq-status-pill.is-bad {
    background: rgba(241, 89, 40, 0.14);
    color: var(--pcq-accent);
}

.pcq-correct-hint {
    margin-top: 10px;
    margin-left: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.pcq-correct-hint-label {
    color: #94a3b8;
}

.pcq-correct-hint-val {
    font-weight: 600;
    color: var(--pcq-primary);
}

.pcq-retake-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 16px;
    background: #f1f5f9;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pcq-retake-btn:hover {
    background: #e2e8f0;
}

/* Multipurpose Scorecard Extensions: Multi-choice, Scale, Dimensions, Consultative Review */
.pcq-multi-hint {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-top: -8px;
}

.pcq-option-btn.is-multi-selected {
    border-color: var(--pcq-primary);
    background: rgba(116, 189, 176, 0.1);
    background: color-mix(in srgb, var(--pcq-primary) 11%, #ffffff);
    box-shadow: 0 10px 25px -5px rgba(116, 189, 176, 0.2);
}

.pcq-option-btn.is-multi-selected .pcq-option-letter {
    background: var(--pcq-primary);
    color: #ffffff;
}

.pcq-option-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 2px solid #94a3b8;
    display: inline-block;
}

.pcq-option-btn.is-multi-selected .pcq-option-dot,
.pcq-option-btn.is-correct .pcq-option-dot {
    border-color: #ffffff;
    background: #ffffff;
}

.pcq-scale-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pcq-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 12px;
}

.pcq-scale-btn {
    padding: 20px 12px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 22px;
    font-weight: 900;
    color: var(--pcq-dark);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pcq-scale-btn:not(:disabled):hover {
    border-color: var(--pcq-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(14, 44, 59, 0.12);
}

.pcq-scale-btn.is-selected {
    border-color: var(--pcq-primary);
    background: var(--pcq-primary);
    color: #ffffff;
    box-shadow: 0 12px 24px -6px rgba(116, 189, 176, 0.4);
}

.pcq-scale-btn.is-dimmed {
    opacity: 0.45;
}

.pcq-scale-anchors {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 0 4px;
}

.pcq-dimensions-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pcq-dim-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcq-dim-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--pcq-dark);
}

.pcq-dim-pct {
    color: var(--pcq-primary);
    font-weight: 900;
}

.pcq-dim-bar-track {
    width: 100%;
    height: 12px;
    border-radius: 9999px;
    background: #f1f5f9;
    overflow: hidden;
}

.pcq-dim-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--pcq-primary);
    transition: width 0.6s ease;
}

.pcq-q-badge.is-neutral {
    background: rgba(14, 44, 59, 0.07);
    color: var(--pcq-dark);
}

.pcq-dim-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pcq-primary);
    background: rgba(116, 189, 176, 0.12);
    padding: 3px 10px;
    border-radius: 9999px;
}

.pcq-review-question {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.pcq-review-insight {
    margin-top: 8px;
    margin-left: 52px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.pcq-consent-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.pcq-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}

.pcq-consent-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--pcq-primary);
    flex-shrink: 0;
}

.pcq-thankyou-card {
    text-align: center;
    padding: 40px 32px;
}

.pcq-ty-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pcq-primary) 15%, #ffffff);
    border: 2px solid var(--pcq-primary);
    color: var(--pcq-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.pcq-ty-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pcq-accent);
    margin-bottom: 8px;
}

.pcq-ty-inline-summary {
    margin: 26px auto;
    padding: 24px 20px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    max-width: 520px;
}

.pcq-ty-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 22px auto 0;
}

.pcq-ty-cta-link {
    text-decoration: none;
    justify-content: center;
}

.pcq-ty-secondary-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}



