.pq-app {
    --pq-ink: #20352d;
    --pq-muted: #64736b;
    --pq-green: #286849;
    --pq-green-dark: #194b34;
    --pq-paper: #fbfaf6;
    --pq-border: #e2e5dc;
    color: var(--pq-ink);
    font-family: inherit;
    width: 100%;
    margin: 24px auto;
    box-sizing: border-box;
}

.pq-app * {
    box-sizing: border-box;
}

.pq-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--pq-paper);
    border: 1px solid var(--pq-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 38px rgba(32, 53, 45, 0.08);
}

.pq-header {
    padding: 38px 42px 28px;
    background: #eef2e9;
    border-bottom: 1px solid var(--pq-border);
}

.pq-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--pq-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.pq-header h2 {
    margin: 0 0 12px;
    color: var(--pq-ink);
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.pq-header p {
    margin: 0;
    color: var(--pq-muted);
    font-size: 16px;
    line-height: 1.6;
}

.pq-privacy {
    margin: 0;
    padding: 10px 42px;
    background: #051e40;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    border: 0;
}

.pq-privacy strong {
    font-weight: inherit;
}

.pq-progress {
    padding: 25px 42px 0;
}

.pq-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--pq-muted);
    font-size: 12px;
    font-weight: 700;
}

.pq-progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: #e3e7df;
}

.pq-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--pq-green);
    transition: width 250ms ease;
}

.pq-content {
    min-height: 340px;
    padding: 30px 42px 38px;
}

.pq-stage h3 {
    margin: 0 0 12px;
    color: var(--pq-ink);
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pq-stage > p {
    margin: 0 0 23px;
    color: var(--pq-muted);
    font-size: 15px;
    line-height: 1.75;
}

.pq-field {
    margin: 0 0 19px;
}

.pq-field label,
.pq-field legend {
    display: block;
    margin-bottom: 7px;
    color: var(--pq-ink);
    font-size: 13px;
    font-weight: 700;
}

.pq-field input,
.pq-field select,
.pq-field textarea {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid #cfd7ce;
    border-radius: 7px;
    background: #fff;
    color: var(--pq-ink);
    font: inherit;
    font-size: 14px;
}

.pq-field textarea {
    min-height: 90px;
    resize: vertical;
}

.pq-field input:focus,
.pq-field select:focus,
.pq-field textarea:focus {
    outline: 2px solid rgba(40, 104, 73, 0.22);
    border-color: var(--pq-green);
}

.pq-field small {
    display: block;
    margin-top: 6px;
    color: var(--pq-muted);
    font-size: 11px;
    line-height: 1.5;
}

.pq-choice-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.pq-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--pq-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.pq-choice:hover {
    border-color: #9bb4a3;
    background: #f5f8f3;
}

.pq-choice input {
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: var(--pq-green);
}

.pq-choice span {
    font-size: 14px;
    line-height: 1.55;
}

.pq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.pq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--pq-green);
    border-radius: 7px;
    background: var(--pq-green);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.pq-button:hover {
    background: var(--pq-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.pq-button:focus-visible,
.pq-reset:focus-visible {
    outline: 3px solid #b8a16a;
    outline-offset: 3px;
}

.pq-button-secondary {
    border-color: #cfd7ce;
    background: transparent;
    color: var(--pq-ink);
}

.pq-button-secondary:hover {
    border-color: #9ba99e;
    background: #edf1ea;
    color: var(--pq-ink);
}

.pq-feedback {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #e4d8b9;
    border-radius: 9px;
    background: #f5f0e3;
    color: #514a39;
}

.pq-feedback h4 {
    margin: 0 0 8px;
    font-size: 17px;
}

.pq-feedback p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}

.pq-result {
    padding: 22px;
    border-radius: 10px;
    background: #eef2e9;
}

.pq-result-label {
    margin-bottom: 9px;
    color: var(--pq-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.pq-result h3 {
    margin-bottom: 13px;
}

.pq-result p {
    font-size: 14px;
    line-height: 1.75;
}

.pq-profile {
    margin-top: 22px;
    padding: 23px;
    border: 1px solid var(--pq-border);
    border-radius: 10px;
    background: #fff;
}

.pq-profile-number {
    color: var(--pq-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.pq-profile h4 {
    margin: 10px 0 15px;
    font-size: 22px;
}

.pq-profile dl {
    display: grid;
    grid-template-columns: minmax(100px, 0.8fr) 1.2fr;
    gap: 11px 15px;
    margin: 0;
    font-size: 13px;
}

.pq-profile dt {
    color: var(--pq-muted);
}

.pq-profile dd {
    margin: 0;
    font-weight: 650;
}

.pq-profile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.pq-profile-nav span {
    color: var(--pq-muted);
    font-size: 12px;
}

.pq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 42px;
    border-top: 1px solid var(--pq-border);
    color: var(--pq-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.pq-reset {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--pq-muted);
    font: inherit;
    font-size: 11px;
    letter-spacing: normal;
    text-decoration: underline;
    cursor: pointer;
}

.pq-hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .pq-app {
        margin: 12px auto;
    }

    .pq-card {
        border-radius: 12px;
    }

    .pq-header {
        padding: 27px 22px 23px;
    }

    .pq-privacy {
        margin: 20px 22px 0;
    }

    .pq-progress {
        padding: 23px 22px 0;
    }

    .pq-content {
        padding: 26px 22px 30px;
        min-height: 300px;
    }

    .pq-footer {
        align-items: flex-start;
        padding: 16px 22px;
    }

    .pq-profile {
        padding: 17px;
    }

    .pq-profile dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pq-profile dd {
        margin-bottom: 9px;
    }

    .pq-actions .pq-button {
        width: 100%;
    }
}
