/* =========================================
   PCL Audit Paged — question + results styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

.pcl-paged-wrapper {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Lora', Georgia, serif;
    background: #f5f0e8;
    min-height: 100vh;
}

/* ── Intro screen ─────────────────────────────────────────────────────────── */

.pcl-intro-screen {
    padding: 48px 28px 60px;
}

.pcl-intro-brand {
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    color: #7a4521;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
}

.pcl-intro-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    margin: 0 0 22px;
}

.pcl-intro-sub {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    margin: 0 0 18px;
}

.pcl-intro-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin: 0 0 18px;
}

.pcl-intro-body strong {
    color: #222;
    font-weight: 600;
}

/* Response scale */
.pcl-intro-scale {
    border-top: 1px solid #d8d0c4;
    padding-top: 20px;
    margin: 28px 0 36px;
}

.pcl-intro-scale-label {
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.pcl-intro-scale-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid #e8e2d8;
}

.pcl-intro-scale-row:last-child {
    border-bottom: none;
}

.pcl-intro-scale-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    color: #333;
}

.pcl-intro-scale-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    color: #444;
}

/* Begin button */
.pcl-intro-begin-btn {
    display: inline-block;
    background: #7a4521;
    color: #fff;
    border: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pcl-intro-begin-btn:hover {
    background: #5e3318;
}

/* ── Progress header ──────────────────────────────────────────────────────── */

.pcl-paged-progress-header {
    background: #f5f0e8;
    padding: 16px 20px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pcl-paged-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pcl-paged-range-label,
.pcl-paged-pct-label {
    font-size: 13px;
    color: #666;
}

.pcl-paged-progress-track {
    width: 100%;
    height: 5px;
    background: #ddd8ce;
    border-radius: 999px;
    overflow: hidden;
}

.pcl-paged-progress-bar {
    width: 0;
    height: 100%;
    background: #5a5a5a;
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ── Question pages ───────────────────────────────────────────────────────── */

.pcl-paged-page {
    display: none;
    padding: 16px 16px 100px;
}

.pcl-paged-page.active {
    display: block;
}

/* Question cards */
.pcl-paged-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px 24px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.pcl-paged-q-counter {
    font-size: 12px;
    color: #999;
    margin: 0 0 10px;
}

.pcl-paged-question {
    font-size: 15px;
    line-height: 1.55;
    color: #111;
    margin: 0 0 20px;
    font-weight: 500;
}

/* Scale */
.pcl-paged-scale-options {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.pcl-paged-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.pcl-paged-opt input[type="radio"] {
    display: none;
}

.pcl-paged-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.pcl-paged-opt input:checked + .pcl-paged-circle {
    background: #3a3a3a;
    border-color: #3a3a3a;
    color: #fff;
}

.pcl-paged-opt:hover .pcl-paged-circle {
    border-color: #888;
}

.pcl-paged-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.pcl-paged-scale-labels span {
    font-size: 11px;
    color: #888;
}

/* ── Navigation bar ───────────────────────────────────────────────────────── */

.pcl-paged-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 20;
}

.pcl-paged-btn-back {
    background: transparent;
    color: #555;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: color 0.2s;
}

.pcl-paged-btn-back:hover {
    color: #111;
}

.pcl-paged-btn-back.hidden {
    visibility: hidden;
    pointer-events: none;
}

.pcl-paged-btn-next,
.pcl-paged-btn-submit {
    background: #3a3a3a;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 8px;
    transition: background 0.2s;
}

.pcl-paged-btn-next:hover,
.pcl-paged-btn-submit:hover {
    background: #111;
}

.pcl-paged-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Details step ─────────────────────────────────────────────────────────── */

#pcl-paged-details {
    padding: 24px 16px 100px;
}

#pcl-paged-details h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

#pcl-paged-details p {
    color: #555;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

#pcl-paged-details input[type="text"],
#pcl-paged-details input[type="email"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

#pcl-paged-details input:focus {
    outline: none;
    border-color: #888;
}

.pcl-paged-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 8px;
}

.pcl-paged-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #3a3a3a;
    cursor: pointer;
}

/* ── Results: outer wrapper ───────────────────────────────────────────────── */

.pcl-paged-results-outer {
    background: #f5f0e8;
    padding-bottom: 40px;
}

/* ── Results: persona top ─────────────────────────────────────────────────── */

.pcl-result-top-section {
    padding: 28px 20px 4px;
}

.pcl-result-profile-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8b6914;
    margin: 0 0 10px;
}

.pcl-result-persona-name {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.15;
}

.pcl-result-tagline {
    font-size: 15px;
    font-style: italic;
    color: #555;
    margin: 0 0 20px;
    line-height: 1.65;
}

/* ── Results: content sections (white cards) ─────────────────────────────── */

.pcl-result-section {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    margin: 0 12px 10px;
}

.pcl-result-section h3 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8b6914;
    margin: 0 0 14px;
}

.pcl-result-section p {
    font-size: 14px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 10px;
}

.pcl-result-section p:last-child {
    margin-bottom: 0;
}

.pcl-result-section em {
    font-style: italic;
}

/* Sub-sections within a card (multiple advantages / constraints) */
.pcl-result-sub-section + .pcl-result-sub-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0ece4;
}

.pcl-result-sub-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #666 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px !important;
}

/* ── Results: donut charts ────────────────────────────────────────────────── */

.pcl-donut-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
}

.pcl-donut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.pcl-donut-svg {
    width: 70px;
    height: 70px;
    overflow: visible;
}

.pcl-donut-label {
    font-size: 10px;
    text-align: center;
    color: #555;
    font-weight: 600;
    line-height: 1.3;
}

.pcl-overall-note {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ── Results: "can't tell" beige box ─────────────────────────────────────── */

.pcl-result-cant-tell {
    background: #ede7d5;
    border-radius: 14px;
    padding: 22px 20px;
    margin: 0 12px 10px;
}

.pcl-result-cant-tell h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.4;
}

.pcl-result-cant-tell p {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    margin: 0 0 10px;
}

.pcl-result-cant-tell p:last-child {
    margin-bottom: 0;
}

/* ── Results: CTA ─────────────────────────────────────────────────────────── */

.pcl-result-cta {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    margin: 0 12px 0;
}

.pcl-result-cta h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.pcl-result-cta p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 10px;
}

.pcl-result-cta ul {
    padding-left: 18px;
    margin: 0 0 14px;
}

.pcl-result-cta li {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 6px;
}

.pcl-cta-price {
    font-size: 14px !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

.pcl-result-cta .pcl-cta-btn {
    display: block;
    text-align: center;
    background: #111;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 4px;
}

.pcl-result-cta .pcl-cta-btn:hover {
    background: #333;
    color: #fff;
}

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

@media (max-width: 400px) {
    .pcl-paged-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pcl-paged-question {
        font-size: 14px;
    }

    .pcl-donut-svg {
        width: 58px;
        height: 58px;
    }

    .pcl-donut-label {
        font-size: 9px;
    }

    .pcl-result-persona-name {
        font-size: 24px;
    }
}
