/**
 * assets/css/poh-assessment.css
 *
 * All styles for the Power of Habit Assessment plugin.
 * Uses CSS custom properties (variables) so the colour theme can be changed
 * in one place. No external frameworks or fonts required.
 *
 * Colour: #3474af (brand blue) — as requested.
 * Structure:
 *   1. CSS Variables / Reset
 *   2. Wrapper & Layout
 *   3. Hero Banner & Scale
 *   4. Form: Sections, Questions, Radio Buttons
 *   5. Personal Details Fields
 *   6. Submit Button
 *   7. Result: Header, Table, Progress Bar, Cards
 *   8. Utility Classes
 *   9. Responsive (≤ 768 px)
 */

/* ── 1. Variables & Light Reset ──────────────────────────────────────────── */
:root {
    --poh-blue:        #3474af;
    --poh-blue-dark:   #255a8e;
    --poh-blue-light:  #e8f1fa;
    --poh-blue-border: #b8d3ee;

    --poh-red:         #e53e3e;
    --poh-yellow:      #e07b29;
    --poh-orange:      #dd6b20;
    --poh-green:       #38a169;

    --poh-text:        #1a202c;
    --poh-text-muted:  #4a5568;
    --poh-bg:          #ffffff;
    --poh-bg-alt:      #f7fafc;
    --poh-border:      #e2e8f0;

    --poh-radius:      8px;
    --poh-shadow:      0 2px 8px rgba(0, 0, 0, 0.08);
    --poh-shadow-lg:   0 4px 20px rgba(0, 0, 0, 0.12);

    --poh-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scoped reset — only inside our wrapper to avoid clashing with the theme */
.poh-wrap *,
.poh-wrap *::before,
.poh-wrap *::after {
    box-sizing: border-box;
}

.poh-wrap {
    font-family: var(--poh-font);
    color: var(--poh-text);
    line-height: 1.6;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ── 2. Hero Banner ──────────────────────────────────────────────────────── */
.poh-hero {
    background: linear-gradient(135deg, var(--poh-blue) 0%, var(--poh-blue-dark) 100%);
    color: #fff;
    border-radius: var(--poh-radius);
    padding: 40px 32px 32px;
    text-align: center;
    margin-bottom: 32px;
}

.poh-wrap .poh-hero__title,
.poh-hero__title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #ffffff !important;
}

.poh-wrap .poh-hero__subtitle,
.poh-hero__subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
    margin: 0 0 28px;
    color: #ffffff !important;
}

/* ── Scale (1–10 track in hero) ──────────────────────────────────────────── */
.poh-scale {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.poh-scale__label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}

.poh-scale__track {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.poh-scale__pip {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32px;
}

.poh-scale__pip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}

.poh-scale__pip--anchor span {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.7);
}

/* ── 3. Section Heading ──────────────────────────────────────────────────── */
.poh-section-heading {
    background: var(--poh-blue);
    border-radius: var(--poh-radius) var(--poh-radius) 0 0;
    padding: 14px 20px;
    margin-top: 32px;
}

.poh-wrap .poh-section-heading__title,
.poh-section-heading__title {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── 4. Question Cards ───────────────────────────────────────────────────── */
.poh-question {
    background: var(--poh-bg);
    border: 1px solid var(--poh-border);
    border-top: none;
    padding: 20px 20px 16px;
    transition: background 0.15s;
}

.poh-question:last-of-type {
    border-radius: 0 0 var(--poh-radius) var(--poh-radius);
}

.poh-question:hover {
    background: var(--poh-bg-alt);
}

.poh-question__text {
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--poh-text);
    margin: 0 0 14px;
}

.poh-question__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--poh-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Radio Button Group ──────────────────────────────────────────────────── */
.poh-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poh-radio-item {
    cursor: pointer;
}

.poh-radio-input {
    /* Hide native radio; replaced by styled span */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.poh-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--poh-blue-border);
    border-radius: 6px;
    background: var(--poh-bg-alt);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--poh-blue);
    transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
    user-select: none;
}

.poh-radio-label:hover {
    background: var(--poh-blue-light);
    border-color: var(--poh-blue);
}

.poh-radio-input:checked + .poh-radio-label {
    background: var(--poh-blue);
    border-color: var(--poh-blue-dark);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(52,116,175,0.35);
}

.poh-radio-input:focus-visible + .poh-radio-label {
    outline: 3px solid var(--poh-blue);
    outline-offset: 2px;
}

/* ── 5. Personal Details ─────────────────────────────────────────────────── */
.poh-personal {
    background: var(--poh-blue-light);
    border: 1px solid var(--poh-blue-border);
    border-radius: var(--poh-radius);
    padding: 28px 24px;
    margin-top: 40px;
}

.poh-personal__heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--poh-blue-dark);
    margin: 0 0 4px;
}

.poh-personal__note {
    font-size: 0.83rem;
    color: var(--poh-text-muted);
    margin: 0 0 20px;
}

.poh-personal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.poh-field__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--poh-text);
    margin-bottom: 6px;
}

.poh-required {
    color: var(--poh-red);
    margin-left: 2px;
}

.poh-field__input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--poh-blue-border);
    border-radius: var(--poh-radius);
    font-size: 0.92rem;
    background: #fff;
    color: var(--poh-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.poh-field__input:focus {
    outline: none;
    border-color: var(--poh-blue);
    box-shadow: 0 0 0 3px rgba(52,116,175,0.18);
}

.poh-field__input::placeholder {
    color: #a0aec0;
}

/* ── 6. Buttons ──────────────────────────────────────────────────────────── */
.poh-submit-wrap {
    text-align: center;
    margin-top: 32px;
}

.poh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--poh-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    line-height: 1;
}

.poh-btn--primary {
    background: var(--poh-blue);
    color: #fff;
    border-color: var(--poh-blue);
}

.poh-btn--primary:hover {
    background: var(--poh-blue-dark);
    border-color: var(--poh-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--poh-shadow-lg);
}

.poh-btn--secondary {
    background: #fff;
    color: var(--poh-blue);
    border-color: var(--poh-blue);
}

.poh-btn--secondary:hover {
    background: var(--poh-blue-light);
}

.poh-btn--outline {
    background: transparent;
    color: var(--poh-text-muted);
    border-color: var(--poh-border);
}

.poh-btn--outline:hover {
    background: var(--poh-bg-alt);
    color: var(--poh-text);
}

.poh-form__message {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--poh-red);
    min-height: 20px;
}

/* ── 7. Result Page ──────────────────────────────────────────────────────── */

/* Outer wrapper — no horizontal padding here; hero spans full width */
.poh-result-page {
    font-family: var(--poh-font);
    color: var(--poh-text);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ── Hero header — full-width blue gradient ─────────────────────────────── */
.poh-res-hero {
    background: linear-gradient(135deg, var(--poh-blue) 0%, var(--poh-blue-dark) 100%);
    padding: 32px 20px 28px;
    margin-bottom: 0;
     border-radius: var(--poh-radius);
    
}

.poh-res-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.poh-res-hero__content { flex: 1; min-width: 0; }

.poh-res-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0 0 8px;
}

/* Title — 28px, white, bold */
.poh-wrap .poh-res-hero__title,
.poh-res-hero__title {
    font-size: 1.75rem;          /* 28px */
    font-weight: 700;
    color: #ffffff;              /* white as requested */
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.poh-res-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.82);
}

.poh-res-hero__sep { opacity: 0.5; }

.poh-res-hero__name  { font-weight: 600; }
.poh-res-hero__date  { font-weight: 400; }

/* PDF button — white outlined in hero */
.poh-res-hero__actions { flex-shrink: 0; padding-top: 4px; }

.poh-res-hero__pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: var(--poh-radius);
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
}
.poh-res-hero__pdf-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}
.poh-res-hero__pdf-btn svg { flex-shrink: 0; }

/* ── Content body — 1140px centred ─────────────────────────────────────── */
.poh-res-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

/* ── Score strip ─────────────────────────────────────────────────────────── */
.poh-score-strip {
    background: var(--poh-bg-alt);
    border: 1px solid var(--poh-border);
    border-radius: var(--poh-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.poh-score-strip__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
    min-width: 130px;
}

/* Section label row inside each item */
.poh-score-strip__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

.poh-score-strip__tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--poh-blue);
    background: var(--poh-blue-light);
    border: 1px solid var(--poh-blue-border);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.poh-score-strip__num {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--poh-text);
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    line-height: 1;
}
.poh-score-strip__num.poh-badge--red    { color: var(--poh-text); }
.poh-score-strip__num.poh-badge--yellow { color: var(--poh-text); }
.poh-score-strip__num.poh-badge--orange { color: var(--poh-text); }
.poh-score-strip__num.poh-badge--green  { color: var(--poh-text); }
.poh-score-strip__num small {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--poh-text-muted);
    margin-left: 1px;
}

.poh-score-strip__bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--poh-border);
    border-radius: 99px;
    overflow: hidden;
}

.poh-score-strip__bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.7s ease;
    min-width: 3px;
}
.poh-score-strip__bar.poh-badge--red    { background: var(--poh-red); }
.poh-score-strip__bar.poh-badge--yellow { background: var(--poh-yellow); }
.poh-score-strip__bar.poh-badge--orange { background: var(--poh-orange); }
.poh-score-strip__bar.poh-badge--green  { background: var(--poh-green); }

.poh-score-strip__divider {
    width: 1.5px;
    height: 48px;
    background: var(--poh-blue-border);
    flex-shrink: 0;
    align-self: center;
}

.poh-score-strip__overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    min-width: 72px;
}

.poh-score-strip__overall-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--poh-text-muted);
    margin-bottom: 3px;
}

.poh-score-strip__overall-val {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}
.poh-score-strip__overall-val.poh-bar--red    { color: var(--poh-red); }
.poh-score-strip__overall-val.poh-bar--yellow { color: var(--poh-yellow); }
.poh-score-strip__overall-val.poh-bar--orange { color: var(--poh-orange); }
.poh-score-strip__overall-val.poh-bar--green  { color: var(--poh-green); }

/* ── Result Table ────────────────────────────────────────────────────────── */
.poh-table-wrap {
    overflow-x: auto;           /* horizontal scroll on small screens */
    border-radius: var(--poh-radius);
    box-shadow: var(--poh-shadow);
    margin-bottom: 36px;
}

.poh-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--poh-bg);
}

.poh-result-table th,
.poh-result-table td {
    padding: 12px 14px;
    border: 1px solid var(--poh-border);
    vertical-align: middle;
}

.poh-result-table__head-row th {
    background: var(--poh-blue);
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.poh-col--competency  { width: 14%; font-weight: 700; color: var(--poh-blue-dark); }
.poh-col--sub         { width: 36%; }
.poh-col--score       { width: 8%;  text-align: center; }
.poh-col--legend-interp { width: 42%; }

.poh-result-table__competency {
    font-weight: 700;
    color: var(--poh-blue-dark);
    background: var(--poh-blue-light);
    text-align: center;
    font-size: 0.85rem;
}

/* Zebra stripe for sub-competency rows */
.poh-result-table__row:nth-child(even) .poh-result-table__sub {
    background: var(--poh-bg-alt);
}

/* Score badge */
.poh-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.poh-badge--red    { background: var(--poh-red); }
.poh-badge--yellow { background: var(--poh-yellow); }
.poh-badge--orange { background: var(--poh-orange); }
.poh-badge--green  { background: var(--poh-green); }

/* Legend + Interpretation inner table */
.poh-result-table__legend-interp {
    padding: 0 !important;
    vertical-align: top;
}

.poh-legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    table-layout: fixed;
}

.poh-legend-table thead tr {
    background: var(--poh-blue-light);
}

.poh-legend-table thead th {
    padding: 6px 10px;
    font-weight: 700;
    color: var(--poh-blue-dark);
    border-bottom: 1px solid var(--poh-blue-border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    width: 50%;
}

.poh-legend-table tbody tr {
    border-bottom: 1px solid var(--poh-border);
    color: var(--poh-text-muted);
    transition: background 0.1s;
}

.poh-legend-table tbody tr:last-child {
    border-bottom: none;
}

.poh-legend-table tbody td {
    padding: 7px 10px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Active (matching) row — highlighted */
.poh-legend-row--active {
    background: var(--poh-blue-light) !important;
}

.poh-legend-row--active td {
    font-weight: 700;
    color: var(--poh-blue-dark) !important;
}

/* ── Overall Score ───────────────────────────────────────────────────────── */
.poh-overall {
    background: #ffffff;
    border: 1.5px solid var(--poh-border);
    border-radius: var(--poh-radius);
    padding: 22px 28px 20px;
    margin-bottom: 28px;
    box-shadow: var(--poh-shadow);
}

.poh-overall__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.poh-overall__label-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

/* "Overall Score =" label — plain dark text, no box */
.poh-wrap .poh-overall__eyebrow,
.poh-overall__eyebrow {
    font-size: 1rem;
    font-weight: 600;
    color: var(--poh-text);
    text-transform: none;
    letter-spacing: 0;
}

/* The percentage — coloured text only, no background highlight */
.poh-overall__pct {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    background: none !important;
    padding: 0;
    border-radius: 0;
}
.poh-overall__pct.poh-bar--red    { color: var(--poh-red); }
.poh-overall__pct.poh-bar--yellow { color: var(--poh-yellow); }
.poh-overall__pct.poh-bar--orange { color: var(--poh-orange); }
.poh-overall__pct.poh-bar--green  { color: var(--poh-green); }

/* Verdict badge hidden — info conveyed by bar colour + progress labels */
.poh-overall__verdict {
    display: none;
}

/* Shared progress bar (used inside .poh-overall) */
.poh-progress-wrap {
    background: #e9ecef;
    border-radius: 99px;
    height: 18px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Striped fill matching reference screenshot */
.poh-progress-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s ease;
    min-width: 4px;
}

.poh-bar--red    { background: var(--poh-red); }
.poh-bar--yellow { background: var(--poh-yellow); }
.poh-bar--orange { background: var(--poh-orange); }
.poh-bar--green  { background: var(--poh-green); }

.poh-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--poh-text-muted);
    margin-top: 4px;
}


/* ── Summary Cards ───────────────────────────────────────────────────────── */
.poh-summary-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.poh-summary-card {
    background: var(--poh-bg);
    border: 1px solid var(--poh-border);
    border-radius: var(--poh-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--poh-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.poh-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--poh-shadow-lg);
}

.poh-summary-card__score {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.poh-summary-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--poh-text);
}

.poh-summary-card__label {
    font-size: 0.75rem;
    color: var(--poh-text-muted);
    margin: 0 0 8px;
}

.poh-summary-card__bar-wrap {
    background: var(--poh-border);
    border-radius: 99px;
    height: 5px;
    overflow: hidden;
}

.poh-summary-card__bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
}
.poh-summary-card__bar.poh-badge--red    { background: var(--poh-red); }
.poh-summary-card__bar.poh-badge--yellow { background: var(--poh-yellow); }
.poh-summary-card__bar.poh-badge--orange { background: var(--poh-orange); }
.poh-summary-card__bar.poh-badge--green  { background: var(--poh-green); }

/* ── Not Found ───────────────────────────────────────────────────────────── */
.poh-not-found {
    text-align: center;
    padding: 60px 20px;
}

.poh-not-found__inner {
    max-width: 440px;
    margin: 0 auto;
}

.poh-not-found__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.poh-not-found__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--poh-text);
    margin: 0 0 12px;
}

.poh-not-found__text {
    color: var(--poh-text-muted);
    margin: 0 0 24px;
}

/* ── JS-driven question states ───────────────────────────────────────────── */
.poh-question--answered {
    border-left: 4px solid var(--poh-green);
}

.poh-question--highlight {
    animation: poh-shake 0.4s ease;
    border-left: 4px solid var(--poh-red);
    background: #fff5f5;
}

@keyframes poh-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ── 8. Utility ──────────────────────────────────────────────────────────── */
.poh-no-print { /* visible on screen, hidden in print CSS */ }

/* ── 9. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .poh-hero {
        padding: 28px 16px 22px;
    }

    .poh-hero__title {
        font-size: 1rem;
    }

    .poh-scale__track {
        gap: 1px;
    }

    .poh-scale__pip {
        width: 26px;
    }

    .poh-scale__pip span {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .poh-radio-label {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .poh-personal__grid {
        grid-template-columns: 1fr;
    }

    /* Result hero stacks on mobile */
    .poh-res-hero__inner {
        flex-direction: column;
        gap: 16px;
    }

    .poh-res-hero__title {
        font-size: 1.3rem;
    }

    .poh-res-hero__actions {
        width: 100%;
    }

    .poh-res-hero__pdf-btn {
        width: 100%;
        justify-content: center;
    }

    /* Stack table columns on mobile */
    .poh-result-table thead {
        display: none;
    }

    .poh-result-table,
    .poh-result-table tbody,
    .poh-result-table tr,
    .poh-result-table td {
        display: block;
        width: 100%;
    }

    .poh-result-table td {
        text-align: left;
        padding: 8px 14px;
    }

    .poh-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .poh-progress-labels {
        font-size: 0.65rem;
    }

    /* Score strip wraps */
    .poh-score-strip__item {
        min-width: 120px;
    }

    .poh-score-strip__divider {
        display: none;
    }

    .poh-score-strip__overall {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        width: 100%;
        border-top: 1.5px solid var(--poh-blue-border);
        padding-top: 10px;
    }

    /* Overall top row wraps */
    .poh-overall__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .poh-radio-label {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .poh-summary-grid {
        grid-template-columns: 1fr;
    }

    .poh-res-hero {
        padding: 24px 16px 20px;
    }

    .poh-res-hero__title {
        font-size: 1.15rem;
    }
}

/* ── Inline Validation Errors ───────────────────────────────────────────── */
.poh-field__error,
.poh-question__error {
    display: none;
    font-size: 0.78rem;
    color: var(--poh-red);
    margin-top: 5px;
    font-weight: 500;
}

.poh-field__input--error {
    border-color: var(--poh-red) !important;
    background: #fff5f5 !important;
}

.poh-question--error {
    border-left: 3px solid var(--poh-red);
    padding-left: 10px;
}

.poh-question--error .poh-question__text {
    color: var(--poh-red);
}
/* ─── Course logo bar ──────────────────────────────────────────────────── */
.poh-logo-bar {
    text-align: center;
    padding: 0px 0 0px !important;
}
.poh-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    display: inline-block;
}
@media (max-width: 600px) {
    .poh-logo { width: 160px; height: 160px; }
}