.qhome-whitepaper {
    margin: 0;
    --qhome-whitepaper-green: #76b900;
    --qhome-whitepaper-blue: var(--wp--preset--color--brand-blue, #455dec);
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 8% 15%, rgba(118, 185, 0, .16), transparent 30rem),
        radial-gradient(circle at 88% 10%, rgba(69, 93, 236, .27), transparent 34rem),
        #08090b;
}

.qhome-whitepaper__hero {
    position: relative;
    overflow: clip;
    padding: clamp(72px, 10vw, 110px) 0 clamp(64px, 9vw, 112px);
}

.qhome-whitepaper__hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    content: '';
    pointer-events: none;
}

.qhome-whitepaper__container {
    position: relative;
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.qhome-whitepaper__layout {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(480px, 1.05fr);
    gap: clamp(48px, 6vw, 50px);
    align-items: start;
    margin-top: clamp(48px, 6vw, 55px);
}

.qhome-whitepaper__content,
.qhome-whitepaper__form-card {
    min-width: 0;
}

.qhome-whitepaper__content {
    position: sticky;
    top: 155px;
}

.qhome-whitepaper__sticky-title {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 430;
    line-height: 1.05;
    letter-spacing: -.035em;
    opacity: 0;
    transform: translateY(-18px);
    transition: max-height .45s ease, margin-bottom .45s ease, opacity .3s ease, transform .45s ease;
}

.qhome-whitepaper__sticky-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.qhome-whitepaper__sticky-label::before {
    flex: 0 0 28px;
    width: 28px;
    height: 3px;
    background: var(--qhome-whitepaper-green);
    content: '';
}

.qhome-whitepaper.is-title-docked .qhome-whitepaper__sticky-title {
    max-height: 230px;
    margin-bottom: 28px;
    opacity: 1;
    transform: translateY(0);
}

.qhome-whitepaper__eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.qhome-whitepaper__eyebrow::before {
    width: 34px;
    height: 3px;
    background: var(--qhome-whitepaper-green);
    content: '';
}

.qhome-whitepaper h1 {
    max-width: 1080px;
    margin: 0;
    font-size: clamp(48px, 6.8vw, 70px);
    font-weight: 430;
    line-height: .98;
    letter-spacing: -.045em;
}

.qhome-whitepaper__lead {
    max-width: 690px;
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.35;
}

.qhome-whitepaper__copy {
    max-width: 690px;
    margin-top: 32px;
    color: rgba(255, 255, 255, .68);
    font-size: 17px;
    line-height: 1.7;
}

.qhome-whitepaper__copy p { margin: 0 0 20px; }
.qhome-whitepaper__copy p:last-child { margin-bottom: 0; }

.qhome-whitepaper__form-card {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(20, 22, 27, .92);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .42);
}

.qhome-whitepaper__form-card::before {
    position: absolute;
    top: -1px;
    right: 36px;
    left: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--qhome-whitepaper-blue), var(--qhome-whitepaper-green));
    content: '';
}

.qhome-whitepaper__form-card h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 35px);
    font-weight: 450;
    line-height: 1.15;
}

.qhome-whitepaper__form-intro {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

.qhome-whitepaper-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.qhome-whitepaper-form__location {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qhome-whitepaper-form__field { min-width: 0; }

.qhome-whitepaper-form__field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.qhome-whitepaper-form__field label span { color: var(--qhome-whitepaper-green); }

.qhome-whitepaper-form__field input,
.qhome-whitepaper-form__field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.qhome-whitepaper-form__field select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .72) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, .72) 50%, transparent 50%);
    background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.qhome-whitepaper-form__field select option { background: #14161b; color: #fff; }
.qhome-whitepaper-form__field select:disabled { cursor: not-allowed; opacity: .55; }

.qhome-whitepaper-form__field input:focus,
.qhome-whitepaper-form__field select:focus {
    border-color: var(--qhome-whitepaper-green);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, .16);
}

.qhome-whitepaper-form input[aria-invalid="true"],
.qhome-whitepaper-form select[aria-invalid="true"] { border-color: #ff786b; }

.qhome-whitepaper-form__field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: #ff9187;
    font-size: 12px;
    line-height: 1.4;
}

.qhome-whitepaper-form__consent { margin-top: 24px; }

.qhome-whitepaper-form__consent label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.qhome-whitepaper-form__consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--qhome-whitepaper-blue);
}

.qhome-whitepaper-form__consent label > span { display: block; min-width: 0; }

.qhome-whitepaper-form__consent a { color: #fff; }
.qhome-whitepaper-form__consent a:hover { color: var(--qhome-whitepaper-green); }
.qhome-whitepaper-form__captcha { margin-top: 18px; }

.qhome-whitepaper-form__status {
    min-height: 22px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

.qhome-whitepaper-form__status.is-error { color: #ff9187; }
.qhome-whitepaper-form__status.is-success { color: #a9e75d; }

.qhome-whitepaper-form__submit {
    position: relative;
    width: 100%;
    min-height: 54px;
    padding-inline: 52px !important;
    border: none !important;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--qhome-whitepaper-blue) 0%, #5978e8 48%, var(--qhome-whitepaper-green) 100%);
    background-position: 0 50%;
    background-size: 180% 180%;
    color: #fff;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 650;
    transition: background-position .35s ease, box-shadow .35s ease;
}

.qhome-whitepaper-form__submit::after {
    position: static;
    display: inline-block;
    margin-left: 15px;
    color: #fff;
    content: '\2192';
    font-size: 14px !important;
    line-height: 1;
    opacity: 0;
    top: 16px !important;
    transform: translate(-5px, 2px);
    vertical-align: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.qhome-whitepaper-form__submit:hover:not(:disabled) {
    padding-inline: 52px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--qhome-whitepaper-blue) 0%, #5978e8 48%, var(--qhome-whitepaper-green) 100%);
    background-position: 100% 50%;
    background-size: 180% 180%;
    box-shadow: 0 10px 28px rgba(69, 93, 236, .28);
    color: #fff;
}

.qhome-whitepaper-form__submit:hover:not(:disabled)::after { opacity: 1; transform: translate(0, 2px); }
.qhome-whitepaper-form__submit:focus-visible { outline: 3px solid var(--qhome-whitepaper-green); outline-offset: 3px; }
.qhome-whitepaper-form__submit:disabled { cursor: wait; opacity: .65; }
.qhome-whitepaper-form__submit:disabled::after { opacity: 0; }

.qhome-whitepaper-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.qhome-whitepaper-form__unavailable { color: #ff9187; }

@media (max-width: 980px) {
    .qhome-whitepaper__layout { grid-template-columns: 1fr; }
    .qhome-whitepaper__content { position: static; max-width: 780px; }
    .qhome-whitepaper__sticky-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .qhome-whitepaper__sticky-title { transition: none; }
}

@media (max-width: 600px) {
    .qhome-whitepaper__container { width: min(100% - 32px, 1320px); }
    .qhome-whitepaper__hero { padding-top: 56px; }
    .qhome-whitepaper h1 { font-size: clamp(42px, 14vw, 62px); overflow-wrap: break-word; }
    .qhome-whitepaper__eyebrow { display: flex; align-items: flex-start; font-size: 12px; }
    .qhome-whitepaper__form-card {max-width: 100%; padding: 28px 20px; border-radius: 12px; overflow: hidden; }
    .qhome-whitepaper-form__grid { grid-template-columns: 1fr; gap: 12px; }
    .qhome-whitepaper-form__location { grid-template-columns: 1fr; gap: 12px; }
}
