/*

LSW — QUALIFY page styles. Additive layer over Spectrum; the kit is untouched.
This page is a form, so it carries its own shape: one column of numbered
questions, chip answers, a read-out band. No second-level page repeats a layout.

Tokens only: --white / --ink #111 / --orange #FF4500 / --green #00FA9A / --magenta #FF00FF.

*/

/* ---- Hero ---- */
.q-hero {
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    padding: 150px 0 46px;
}

.q-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}

.q-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 18ch;
    margin-bottom: 18px;
}

.q-lede {
    max-width: 64ch;
    font-size: 1.08rem;
    line-height: 1.66;
    color: #3a3a3a;
}

.q-lede + .q-lede {
    margin-top: 12px;
}

.q-meta {
    margin-top: 22px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
}

.q-meta a {
    color: var(--ink);
    border-bottom: 2px solid var(--green);
    text-decoration: none;
}

.q-meta a:hover {
    border-bottom-color: var(--magenta);
    color: var(--magenta);
}

/* ---- Shell ---- */
.q-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

.q-form {
    padding: 8px 0 48px;
}

/* ---- Question block ---- */
.q-item {
    border: 0;
    border-top: 2px solid var(--ink);
    margin: 0;
    padding: 30px 0 26px;
    min-width: 0;
}

.q-item:last-of-type {
    border-bottom: 2px solid var(--ink);
}

.q-item legend {
    padding: 0;
    margin-bottom: 18px;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    max-width: 40ch;
}

.q-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--orange);
    margin-bottom: 9px;
}

.q-hint {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #777;
    margin: -8px 0 16px;
    max-width: 60ch;
}

/* ---- Chips ---- */
.q-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.q-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.q-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.q-choice span {
    display: block;
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 11px 14px;
    font-size: 0.94rem;
    line-height: 1.3;
    transition: background 0.12s linear, color 0.12s linear, border-color 0.12s linear;
}

.q-choice:hover span {
    background: rgba(17, 17, 17, 0.05);
}

.q-choice input:checked + span {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.q-choice input:focus-visible + span {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* ---- Optional one-line note per question ---- */
.q-note {
    margin-top: 14px;
}

.q-note summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid var(--green);
    padding-bottom: 1px;
}

.q-note summary::-webkit-details-marker {
    display: none;
}

.q-note[open] summary {
    color: var(--ink);
}

.q-note input {
    margin-top: 10px;
    width: 100%;
    font-family: var(--font);
    font-size: 0.96rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: 11px 14px;
}

.q-note input:focus {
    outline: none;
    border-color: var(--magenta);
    background: rgba(255, 0, 255, 0.05);
}

/* ---- Contact block ---- */
.q-contact {
    border-top: 2px solid var(--ink);
    padding: 32px 0 8px;
    margin-top: 0;
}

.q-contact h2 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.q-contact .q-hint {
    margin: 0 0 22px;
}

.q-opt {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #888;
}

/* honeypot — a field no human sees */
.q-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
}

/* ---- Read-out band ---- */
.q-readout {
    display: none;
    background: var(--ink);
    color: var(--white);
    padding: 50px 0 60px;
    border-top: 2px solid var(--orange);
}

.q-readout.show {
    display: block;
}

.q-ro-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.q-readout h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 20px;
    max-width: 24ch;
}

.q-readout p {
    font-size: 1.04rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 74ch;
    margin-bottom: 14px;
}

.q-readout strong {
    color: var(--white);
}

.q-ro-cta {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    background: var(--green);
    border: 2px solid var(--green);
    border-radius: 999px;
    padding: 13px 30px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.q-ro-cta:hover {
    background: var(--white);
    border-color: var(--white);
}

.q-ro-sent {
    margin-top: 20px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Reply channels ---- */
.q-channels {
    margin-top: 28px;
}

.q-channels-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

/* a channel's contact field appears only when that channel is ticked */
.q-ch-field {
    display: none;
    margin-top: 14px;
}

.q-ch-field.on {
    display: block;
}

.q-ch-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.q-ch-field input {
    width: 100%;
    max-width: 320px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: 12px 14px;
}

.q-ch-field input:focus {
    outline: none;
    border-color: var(--magenta);
    background: rgba(255, 0, 255, 0.05);
}

@media (max-width: 700px) {
    .q-hero {
        padding: 118px 0 34px;
    }
    .q-choices {
        grid-template-columns: 1fr;
    }
}
