.wwl-quiz-form {
    max-width: 760px;
    margin: 0 auto;
}

#wwl-quiz-message {
    margin-bottom: 16px;
    font-weight: 600;
}

.wwl-user-details {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.wwl-user-details input {
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    font-size: 1rem;
}

.wwl-intro-step {
    margin-bottom: 24px;
}

.wwl-field-error {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #c0392b;
}

.wwl-progress-wrap {
    margin-bottom: 28px;
}

.wwl-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.wwl-progress-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.wwl-progress-fill {
    width: 4%;
    height: 100%;
    background: #222;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.wwl-question-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.wwl-question-number {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wwl-question-text {
    font-size: 1.5rem;
    line-height: 1.45;
    font-weight: 600;
    margin-bottom: 22px;
}

.wwl-scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: #666;
}

.wwl-scale-buttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(52px, 1fr));
    gap: 12px;
}

.wwl-scale-button {
    min-height: 56px;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    background: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wwl-scale-button:hover {
    border-color: #888;
    transform: translateY(-1px);
}

.wwl-scale-button.is-selected {
    border-color: #222;
    background: #222;
    color: #fff;
}

.wwl-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.wwl-nav-button,
.wwl-submit-button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.wwl-nav-button {
    background: #222;
    color: #fff;
}

.wwl-nav-button-secondary {
    background: #efefef;
    color: #222;
}

.wwl-nav-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wwl-submit-button {
    background: #222;
    color: #fff;
    margin-left: auto;
}

.wwl-consent-wrap{
margin-top:18px;
}

.wwl-consent-label{
display:flex;
align-items:flex-start;
gap:12px;
font-size:15px;
line-height:1.5;
cursor:pointer;
}

.wwl-consent-label input[type="checkbox"]{
margin-top:4px;
transform:scale(1.15);
}

.wwl-consent-label a{
color: inherit;
text-decoration: underline;
font-weight:600;
}


/* New category-score styles. Not sure if the ones below this section are still used */

#wwl-category-scores {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 22px !important;
    margin: 20px 24px 0 !important; /* adds left/right breathing room */
}

#wwl-category-scores .wwl-category-dashboard-card {
    flex: 0 0 calc(50% - 11px) !important;
    max-width: calc(50% - 11px) !important;
    width: calc(50% - 11px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.wwl-category-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 20px;
}

.wwl-category-dashboard-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wwl-category-dashboard-title {
    font-size: 1.7rem;
    line-height: 1.15;
    font-weight: 700;
    color: #222;
}

.wwl-category-dashboard-score {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    padding-top: 4px;
}

.wwl-category-dashboard-text {
    margin-bottom: 14px;
    line-height: 1.65;
    color: #444;
}

.wwl-category-dashboard-goal {
    margin-bottom: 14px;
    line-height: 1.55;
    color: #444;
}

.wwl-category-dashboard-nudge {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #D64550;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.wwl-category-dashboard-bar-wrap {
    margin-top: 14px;
}

.wwl-category-dashboard-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wwl-category-dashboard-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
}

.wwl-category-dashboard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.wwl-category-dashboard-meta-pct {
    color: #444;
}

.wwl-category-dashboard-meta-status {
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wwl-category-dashboard-meta-status.needs-work {
    color: #D64550;
}

.wwl-category-dashboard-meta-status.developing {
    color: #E9A44C;
}

.wwl-category-dashboard-meta-status.strong {
    color: #3FAF7D;
}

.wwl-category-dashboard-scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wwl-category-dashboard-scale .needs-work {
    color: #D64550;
}

.wwl-category-dashboard-scale .developing {
    color: #E9A44C;
}

.wwl-category-dashboard-scale .strong {
    color: #3FAF7D;
}

/****************** End of new category styles */

#wwl-category-scores {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.wwl-category-score-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 16px;
}

.wwl-category-score-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.wwl-category-score-label {
    color: #222;
}

.wwl-category-score-value {
    color: #222;
}

.wwl-category-score-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.wwl-category-score-fill {
    height: 100%;
    background: #222;
    border-radius: 999px;
}

#wwl-category-scores {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.wwl-category-score-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 18px;
}

.wwl-category-score-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
    font-weight: 700;
}

.wwl-category-score-label,
.wwl-category-score-value {
    color: #222;
}

.wwl-category-score-status {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #666;
}

.wwl-category-score-description {
    margin-bottom: 12px;
    line-height: 1.6;
}

.wwl-category-score-reframe {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}

.wwl-category-score-nudge {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f5f5;
    font-weight: 600;
}

.wwl-category-score-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.wwl-category-score-fill {
    height: 100%;
    background: #222;
    border-radius: 999px;
}

#wwl-awareness-chart {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 32px;
    overflow: visible;
}

.wwl-awareness-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.wwl-awareness-chart-center-label {
    font-size: 26px;
    font-weight: 700;
    fill: #222;
}

.wwl-awareness-chart-center-score {
    font-size: 52px;
    font-weight: 800;
    fill: #222;
}

.wwl-awareness-chart-label {
    font-size: 22px;
    font-weight: 700;
    fill: #444;
}

.wwl-awareness-chart-label-pct {
    font-size: 22px;
    font-weight: 700;
    fill: #777;
}

.wwl-awareness-chart-line {
    stroke: #999;
    stroke-width: 1.5;
}

.wwl-awareness-chart-segment {
    opacity: 0;
    animation: wwlChartSegmentIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Loading Overlay - added April 11, 2026*/
.wwl-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wwl-loading-content {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.wwl-loading-content p {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
}

/* Spinner */
.wwl-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2a9d8f; /* Brand color */
    border-radius: 50%;
    animation: wwl-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes wwl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wwlChartSegmentIn {
    from {
        opacity: 0;
        transform: scale(0.96);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: scale(1);
        transform-origin: center;
    }
}


@media (max-width: 640px) {
    .wwl-question-card {
        padding: 16px;
        border-radius: 16px;
    }

    .wwl-question-number {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .wwl-question-text {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .wwl-scale-labels {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .wwl-scale-buttons {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 4px;
    }

    .wwl-scale-button {
        min-width: 0;
        width: 100%;
        min-height: 46px;
        padding: 0;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .wwl-nav-buttons {
        gap: 10px;
    }

    .wwl-nav-button,
    .wwl-submit-button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
        padding: 0 12px;
        font-size: 0.95rem;
    }
    
}

@media (max-width: 980px) {
    #wwl-category-scores {
        margin: 20px 16px 0 !important;
    }

    #wwl-category-scores .wwl-category-dashboard-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .wwl-category-dashboard-title {
        font-size: 1.4rem;
    }

    .wwl-category-dashboard-score {
        font-size: 1rem;
    }

    .wwl-category-dashboard-card {
        padding: 18px;
    }
}