/*
 * Check My Potential (/my_potential, my-potential.php, template-parts/quick-check/*, MILESTONES #31): the introduction
 * with the two paths, the questions with the list of steps, the result. After the mockup "Amerlink – Check My
 * Potential" in the colours of the new pages: navy bands, the pink call to action, blue for the Student-Athlete path,
 * violet for the International Student path. Fonts, the header and the base of the buttons: home-hero.css
 * (body.amerlink-genesis-home). Prefix qcp-.
 */

.amerlink-genesis-quick-check {
    --qcp-ink: #0b1b3f;
    --qcp-text: #33446a;
    --qcp-muted: #5b6b8c;
    --qcp-line: #dfe7f3;
    --qcp-soft: #eef3fb;
    --qcp-athlete: #0866d0;
    --qcp-athlete-tint: #e8f2fe;
    --qcp-student: #6b48ee;
    --qcp-student-tint: #f1edfe;
    background: var(--qcp-soft);
}

.qcp-page {
    --qcp-path: var(--qcp-athlete);
    --qcp-tint: var(--qcp-athlete-tint);
    color: var(--qcp-text);
    font-size: 16px;
    line-height: 1.55;
}

.qcp-page[data-qcp-path='student'],
.qcp-path-student,
.qcp-badge-student {
    --qcp-path: var(--qcp-student);
    --qcp-tint: var(--qcp-student-tint);
}

.qcp-path-athlete,
.qcp-badge-athlete {
    --qcp-path: var(--qcp-athlete);
    --qcp-tint: var(--qcp-athlete-tint);
}

.qcp-page [hidden] {
    display: none !important;
}

.qcp-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.qcp-inner {
    width: min(100% - 64px, 1180px);
    margin-inline: auto;
}

.qcp-page h1,
.qcp-page h2,
.qcp-page h3 {
    margin: 0;
    padding: 0;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- Navy bands: under the header (it lies over the top of the page), the result, the call to action. */

.qcp-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 90% at 88% 0%, rgba(8, 174, 243, .26) 0%, rgba(8, 174, 243, 0) 60%),
        radial-gradient(40% 70% at 0% 100%, rgba(245, 0, 114, .14) 0%, rgba(245, 0, 114, 0) 70%),
        linear-gradient(100deg, #01216a 0%, var(--amh-navy) 60%, #001a40 100%);
    color: #fff;
}

.qcp-intro,
.qcp-wizard-band,
.qcp-result-band {
    padding: clamp(150px, 13vw, 200px) 0 clamp(48px, 5vw, 76px);
}

.qcp-wizard-band {
    padding-bottom: clamp(28px, 3vw, 44px);
}

.qcp-eyebrow {
    margin: 0 0 14px;
    color: #ff5aa5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.qcp-eyebrow-dark {
    color: var(--qcp-path);
}

.qcp-title {
    color: #fff;
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 800;
    line-height: 1.12;
}

.qcp-title:focus {
    outline: none;
}

.qcp-accent {
    color: #7cc4ff;
}

.qcp-heading {
    color: var(--qcp-ink);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

/* ---------- Introduction. */

.qcp-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.qcp-intro-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qcp-intro-copy .qcp-eyebrow {
    margin: 0;
}

.qcp-lead {
    max-width: 640px;
    margin: 0;
    color: #d5e0f3;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
}

.qcp-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.qcp-ticks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qcp-tick {
    width: 20px;
    height: 20px;
    color: #7cc4ff;
}

.qcp-get {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    color: var(--qcp-ink);
}

.qcp-get-title {
    margin: 0;
    color: var(--qcp-athlete);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qcp-get-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qcp-get-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--qcp-muted);
    font-size: 14px;
    line-height: 1.5;
}

.qcp-get-list strong {
    display: block;
    color: var(--qcp-ink);
    font-size: 16px;
}

.qcp-get-number {
    display: flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--qcp-athlete-tint);
    color: var(--qcp-athlete);
    font-size: 18px;
    font-weight: 800;
}

/* ---------- The two paths. */

.qcp-paths {
    padding: clamp(48px, 5vw, 76px) 0 clamp(56px, 6vw, 88px);
}

.qcp-paths-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    text-align: center;
}

.qcp-paths-head .qcp-eyebrow {
    margin: 0;
    color: var(--qcp-athlete);
}

.qcp-paths-lead {
    max-width: 640px;
    margin: 0;
    color: var(--qcp-muted);
    font-size: 17px;
}

.qcp-noscript {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff1d6;
    color: #8a4e00;
    text-align: center;
}

.qcp-path-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.qcp-path-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10, 29, 63, .08);
    color: var(--qcp-ink);
}

.qcp-path-card-head {
    display: flex;
    gap: 18px;
    align-items: center;
}

.qcp-path-icon {
    display: flex;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--qcp-tint);
    color: var(--qcp-path);
}

.qcp-path-icon .qcp-icon {
    width: 32px;
    height: 32px;
}

.qcp-path-eyebrow {
    margin: 0 0 2px;
    color: var(--qcp-path);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qcp-path-title {
    color: var(--qcp-ink);
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
}

.qcp-path-meta {
    margin: 0;
    color: var(--qcp-muted);
    font-size: 15px;
}

.qcp-path-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
}

.qcp-path-results li {
    position: relative;
    padding-left: 34px;
    line-height: 1.4;
}

.qcp-path-results li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--qcp-path) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
    content: '';
}

/* The path under the pointer or with the focus is the one being chosen: it rises with a ring of its colour. The card
   itself is not a link — only its button starts the path. */
.qcp-path-card,
.qcp-path-icon,
.qcp-start .qcp-arrow {
    transition: translate .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}

.qcp-path-card:focus-within {
    box-shadow: 0 0 0 2px var(--qcp-path), 0 18px 40px rgba(10, 29, 63, .14);
}

@media (hover: hover) {
    .qcp-path-card:hover {
        box-shadow: 0 0 0 2px var(--qcp-path), 0 18px 40px rgba(10, 29, 63, .14);
        translate: 0 -4px;
    }

    .qcp-path-card:hover .qcp-path-icon {
        background: var(--qcp-path);
        color: #fff;
    }

    .qcp-start:hover .qcp-arrow {
        translate: 4px 0;
    }
}

.qcp-disclaimer {
    margin: 32px 0 0;
    color: var(--qcp-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Buttons. */

.qcp-button,
.qcp-button-ghost {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.qcp-button {
    background: var(--qcp-path);
    color: #fff;
}

.qcp-button:hover,
.qcp-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.qcp-button:focus-visible,
.qcp-button-ghost:focus-visible,
.qcp-step:focus-visible,
.qcp-change:focus-visible,
.qcp-match:focus-visible {
    outline: 3px solid var(--qcp-path);
    outline-offset: 2px;
}

.qcp-start {
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    font-size: 17px;
}

.qcp-button-pink {
    background: var(--amh-pink);
}

.qcp-button-pink:hover,
.qcp-button-pink:focus-visible {
    background: #d90063;
}

.qcp-button[disabled] {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.qcp-button-ghost {
    border-color: #c9d4e6;
    background: #fff;
    color: var(--qcp-ink);
}

.qcp-button-ghost:hover {
    border-color: var(--qcp-path);
}

.qcp-button-outline {
    border-color: #fff;
    background: transparent;
}

.qcp-button-outline:hover,
.qcp-button-outline:focus-visible {
    background: rgba(255, 255, 255, .14);
}

.qcp-button-outline:focus-visible {
    outline-color: #fff;
}

.qcp-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* ---------- Questions. */

.qcp-wizard {
    padding: 32px 0 clamp(56px, 6vw, 88px);
}

.qcp-wizard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.qcp-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    padding: clamp(20px, 3vw, 40px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10, 29, 63, .08);
}

.qcp-progress-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: -14px;
}

.qcp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--qcp-tint);
    color: var(--qcp-path);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
}

.qcp-badge-solid {
    background: var(--qcp-path);
    color: #fff;
}

.qcp-step-count {
    color: var(--qcp-muted);
    font-size: 14px;
    font-weight: 600;
}

.qcp-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e9f3;
}

.qcp-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--qcp-path);
    transition: width .3s ease;
}

.qcp-screen {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.qcp-field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.qcp-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--qcp-ink);
}

.qcp-legend:focus {
    outline: none;
}

.qcp-question {
    color: var(--qcp-ink);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.qcp-optional {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--qcp-soft);
    color: var(--qcp-muted);
    font-size: 12px;
    font-weight: 800;
}

.qcp-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.qcp-options-sm {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.qcp-options-xs {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.qcp-option {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #d5deec;
    border-radius: 12px;
    background: #fff;
    color: var(--qcp-ink);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.qcp-option:hover {
    border-color: var(--qcp-path);
}

.qcp-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.qcp-option-dot {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid #a9b6cc;
    border-radius: 50%;
    background: #fff;
}

.qcp-radio:checked + .qcp-option-dot {
    border-color: var(--qcp-path);
    background: var(--qcp-path);
    box-shadow: inset 0 0 0 3px #fff;
}

.qcp-option:has(.qcp-radio:checked) {
    border-color: var(--qcp-path);
    background: var(--qcp-tint);
}

.qcp-radio:focus-visible + .qcp-option-dot {
    outline: 3px solid var(--qcp-path);
    outline-offset: 3px;
}

.qcp-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.qcp-option-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.qcp-option-detail {
    color: var(--qcp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.qcp-label {
    color: var(--qcp-ink);
    font-size: 14px;
    font-weight: 700;
}

.qcp-text,
.qcp-search-input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #c9d4e6;
    border-radius: 12px;
    background: #fff;
    color: var(--qcp-ink);
    font: inherit;
    font-size: 16px;
}

.qcp-text {
    margin-top: -8px;
    padding: 14px 16px;
}

.qcp-text:focus,
.qcp-search-input:focus-within {
    border-color: var(--qcp-path);
    outline: 3px solid var(--qcp-tint);
}

.qcp-search-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qcp-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.qcp-search-input svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--qcp-muted);
}

.qcp-search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--qcp-ink);
    font: inherit;
    font-size: 16px;
}

.qcp-matches {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--qcp-line);
    border-radius: 12px;
    list-style: none;
}

.qcp-matches li + li {
    border-top: 1px solid #eef2f8;
}

.qcp-match {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    padding: 0 16px;
    border: 0;
    background: #fff;
    color: var(--qcp-ink);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.qcp-match:hover,
.qcp-match:focus-visible {
    background: var(--qcp-tint);
}

.qcp-match:focus-visible {
    outline-offset: -3px;
}

.qcp-nomatch {
    margin: 0;
    color: var(--qcp-muted);
    font-size: 14px;
}

.qcp-chosen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid var(--qcp-path);
    border-radius: 12px;
    background: var(--qcp-tint);
    color: var(--qcp-ink);
}

.qcp-chosen .qcp-check {
    width: 22px;
    height: 22px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--qcp-path);
    color: #fff;
}

.qcp-chosen-name {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
}

.qcp-change {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--qcp-path);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qcp-error {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fde7dd;
    color: #a6330a;
    font-size: 15px;
}

.qcp-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #e3e9f3;
}

/* The list of steps and the note beside the questions. */

.qcp-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.qcp-steps {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10, 29, 63, .06);
}

.qcp-steps-title {
    margin: 0 0 12px;
    color: var(--qcp-path);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qcp-steps-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qcp-step {
    display: flex;
    width: calc(100% + 16px);
    min-height: 40px;
    align-items: center;
    gap: 12px;
    margin: 0 -8px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--qcp-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.qcp-step[disabled] {
    color: var(--qcp-muted);
    cursor: default;
}

.qcp-step:not([disabled]):hover {
    background: var(--qcp-soft);
}

.qcp-step.is-current {
    background: var(--qcp-tint);
    font-weight: 700;
}

.qcp-step-num {
    display: flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 2px solid #b7c2d6;
    border-radius: 50%;
    background: #fff;
    color: var(--qcp-muted);
    font-size: 12px;
    font-weight: 700;
}

.qcp-step-num .qcp-check {
    display: none;
    width: 14px;
    height: 14px;
}

.qcp-step.is-current .qcp-step-num {
    border-color: var(--qcp-path);
    color: var(--qcp-path);
}

.qcp-step.is-done .qcp-step-num {
    border-color: var(--qcp-path);
    background: var(--qcp-path);
    color: #fff;
}

.qcp-step.is-done .qcp-step-n {
    display: none;
}

.qcp-step.is-done .qcp-check {
    display: block;
}

.qcp-aside-note {
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--amh-navy);
    color: #c9d6ee;
    font-size: 14px;
    line-height: 1.55;
}

.qcp-aside-note p {
    margin: 0;
}

.qcp-aside-note .qcp-aside-note-title {
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- Result. */

.qcp-result-band {
    padding-bottom: 88px;
}

.qcp-result-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.qcp-result-top .qcp-eyebrow {
    margin: 0;
    color: #7cc4ff;
}

.qcp-result-kicker {
    margin: 0 0 8px;
    color: #c9d6ee;
    font-size: 15px;
}

.qcp-overall {
    max-width: 920px;
    font-size: clamp(28px, 3.4vw, 46px);
}

.qcp-confidence {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 860px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #dce6f8;
    font-size: 14px;
    line-height: 1.55;
}

.qcp-confidence svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #7cc4ff;
}

.qcp-confidence p {
    margin: 0;
}

.qcp-confidence span + span::before {
    content: ' ';
}

.qcp-cards-wrap {
    position: relative;
    margin-top: -48px;
}

.qcp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* The colour of the result runs through the card: the strip on top, a light tint under it, the label and the bar. */
.qcp-card {
    --qcp-tone-fg: #a6330a;
    --qcp-tone-bg: #fde7dd;
    --qcp-tone-bar: #e2602a;
    --qcp-lv: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 26px 22px 22px;
    border-radius: 16px;
    background: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--qcp-tone-bg) 70%, #fff) 0, #fff 64px);
    box-shadow: 0 12px 32px rgba(10, 29, 63, .1);
    color: var(--qcp-ink);
}

.qcp-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--qcp-tone-bar);
    content: '';
    transform-origin: left center;
}

.qcp-card[data-level='2'] {
    --qcp-tone-fg: #8a4e00;
    --qcp-tone-bg: #fff1d6;
    --qcp-tone-bar: #e39b1b;
    --qcp-lv: 2;
}

.qcp-card[data-level='3'] {
    --qcp-tone-fg: #1450b8;
    --qcp-tone-bg: #e5eefd;
    --qcp-tone-bar: #2f74f0;
    --qcp-lv: 3;
}

.qcp-card[data-level='4'] {
    --qcp-tone-fg: #0d6b3f;
    --qcp-tone-bg: #e1f4ea;
    --qcp-tone-bar: #16a05a;
    --qcp-lv: 4;
}

.qcp-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qcp-card-icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--qcp-tint);
    color: var(--qcp-path);
}

.qcp-card-icon .qcp-icon {
    width: 22px;
    height: 22px;
}

.qcp-card-label {
    color: var(--qcp-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.qcp-card-class {
    align-self: flex-start;
    margin: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--qcp-tone-bg);
    color: var(--qcp-tone-fg);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.qcp-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

/* Every step is a grey track; the steps of the result are filled by ::after (scaled, so the fill can grow in). */
.qcp-bar span {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #e3e8f2;
}

.qcp-bar span::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--qcp-tone-bar);
    content: '';
    scale: 0 1;
    transform-origin: left center;
}

.qcp-bar span:nth-child(2) {
    --qcp-n: 1;
}

.qcp-bar span:nth-child(3) {
    --qcp-n: 2;
}

.qcp-bar span:nth-child(4) {
    --qcp-n: 3;
}

.qcp-card .qcp-bar span:nth-child(-n+1)::after,
.qcp-card[data-level='2'] .qcp-bar span:nth-child(-n+2)::after,
.qcp-card[data-level='3'] .qcp-bar span:nth-child(-n+3)::after,
.qcp-card[data-level='4'] .qcp-bar span:nth-child(-n+4)::after {
    scale: 1 1;
}

.qcp-card-basis {
    margin: 0;
    color: var(--qcp-muted);
    font-size: 13px;
    line-height: 1.45;
}

.qcp-next {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(48px, 5vw, 64px) 0 clamp(56px, 6vw, 72px);
}

.qcp-next .qcp-eyebrow {
    margin: 0;
}

.qcp-next-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.qcp-next-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10, 29, 63, .06);
    color: var(--qcp-ink);
}

.qcp-next-no {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--qcp-path);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.qcp-next-text {
    padding-top: 5px;
    font-size: 17px;
    line-height: 1.55;
}

.qcp-cta {
    padding: 56px 0;
}

.qcp-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.qcp-cta-copy {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 12px;
}

.qcp-cta-copy::before {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

.qcp-cta-title {
    color: #fff;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

.qcp-cta-copy p {
    margin: 0;
    color: #c9d6ee;
    font-size: 17px;
}

.qcp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.qcp-cta .qcp-button {
    min-height: 56px;
    font-size: 17px;
}

/* ---------- Result: the parts come in one after another. quick-check.js marks them qcp-rv when the result is shown
   and adds qcp-in as each one comes into view, with its delay in --qcp-d. Inside a card: the strip, the icon, the bar
   step by step, then the label and the basis. Without JS or with reduced motion nothing moves and nothing is hidden;
   lighter on phones. */

@media (prefers-reduced-motion: no-preference) {
    .qcp-motion .qcp-rv:not(.qcp-in) {
        opacity: 0;
    }

    .qcp-motion .qcp-in {
        animation: qcp-rise .6s cubic-bezier(.2, .7, .2, 1) var(--qcp-d, 0ms) both;
    }

    .qcp-motion .qcp-card.qcp-in {
        animation-name: qcp-card-in;
        animation-duration: .7s;
    }

    .qcp-motion .qcp-card.qcp-in::before {
        animation: qcp-grow .8s cubic-bezier(.2, .7, .2, 1) calc(var(--qcp-d, 0ms) + 120ms) both;
    }

    .qcp-motion .qcp-card.qcp-in .qcp-card-icon {
        animation: qcp-pop .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--qcp-d, 0ms) + 160ms) both;
    }

    .qcp-motion .qcp-card.qcp-in .qcp-bar span::after {
        animation: qcp-grow .5s cubic-bezier(.3, .8, .3, 1) calc(var(--qcp-d, 0ms) + 380ms + var(--qcp-n, 0) * 150ms) both;
    }

    .qcp-motion .qcp-card.qcp-in .qcp-card-class {
        animation: qcp-pop .45s cubic-bezier(.3, 1.5, .5, 1) calc(var(--qcp-d, 0ms) + 440ms + var(--qcp-lv) * 150ms) both;
    }

    .qcp-motion .qcp-card.qcp-in .qcp-card-basis {
        animation: qcp-fade .6s ease calc(var(--qcp-d, 0ms) + 560ms + var(--qcp-lv) * 150ms) both;
    }

    .qcp-motion .qcp-next-item.qcp-in {
        animation-name: qcp-slide;
    }

    .qcp-motion .qcp-next-item.qcp-in .qcp-next-no {
        animation: qcp-pop .45s cubic-bezier(.3, 1.5, .5, 1) calc(var(--qcp-d, 0ms) + 180ms) both;
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 780px) {
    .qcp-motion .qcp-card.qcp-in,
    .qcp-motion .qcp-next-item.qcp-in {
        animation-name: qcp-rise;
    }

    .qcp-motion .qcp-card.qcp-in::before,
    .qcp-motion .qcp-card.qcp-in .qcp-card-icon,
    .qcp-motion .qcp-next-item.qcp-in .qcp-next-no {
        animation: none;
    }

    .qcp-motion .qcp-card.qcp-in .qcp-card-class {
        animation-name: qcp-fade;
    }
}

/* ---------- Introduction: the band comes in whenever it is shown (page load, back from the questions, retake) — CSS
   alone, from the first paint. The title and the lead only slide, never fade: one of them is the largest paint of the
   page. The two paths come in as they come into view (quick-check.js, as the result); until the script runs they
   wait under html.qcp-js (intro.php), and they show up after 3 s if it never does. Fill "backwards" only, so nothing
   holds the hover of the path cards. */

@media (prefers-reduced-motion: no-preference) {
    .qcp-intro .qcp-eyebrow {
        animation: qcp-rise .6s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .qcp-intro .qcp-title {
        animation: qcp-lift .8s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .qcp-intro .qcp-lead {
        animation: qcp-lift .8s cubic-bezier(.2, .7, .2, 1) .12s backwards;
    }

    .qcp-ticks li {
        animation: qcp-rise .5s cubic-bezier(.2, .7, .2, 1) calc(300ms + var(--qcp-n, 0) * 100ms) backwards;
    }

    .qcp-ticks .qcp-tick {
        animation: qcp-pop .45s cubic-bezier(.3, 1.5, .5, 1) calc(400ms + var(--qcp-n, 0) * 100ms) backwards;
    }

    .qcp-get {
        animation: qcp-from-right .8s cubic-bezier(.2, .7, .2, 1) .2s backwards;
    }

    .qcp-get-list li {
        animation: qcp-rise .5s cubic-bezier(.2, .7, .2, 1) calc(450ms + var(--qcp-n, 0) * 110ms) backwards;
    }

    .qcp-get-number {
        animation: qcp-pop .45s cubic-bezier(.3, 1.5, .5, 1) calc(550ms + var(--qcp-n, 0) * 110ms) backwards;
    }

    .qcp-js .qcp-paths-head > *:not(.qcp-in),
    .qcp-js .qcp-path-card:not(.qcp-in),
    .qcp-js .qcp-disclaimer:not(.qcp-in) {
        opacity: 0;
    }

    .qcp-js .qcp-page:not(.qcp-ready) .qcp-paths-head > *,
    .qcp-js .qcp-page:not(.qcp-ready) .qcp-path-card,
    .qcp-js .qcp-page:not(.qcp-ready) .qcp-disclaimer {
        animation: qcp-failsafe .4s 3s forwards;
    }

    .qcp-motion .qcp-path-card.qcp-in {
        animation: qcp-card-in .8s cubic-bezier(.2, .7, .2, 1) var(--qcp-d, 0ms) backwards;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-path-icon {
        animation: qcp-pop .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--qcp-d, 0ms) + 180ms) backwards;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-path-results li {
        animation: qcp-slide .5s cubic-bezier(.2, .7, .2, 1) calc(var(--qcp-d, 0ms) + 320ms + var(--qcp-n, 0) * 90ms) backwards;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-path-results li::before {
        animation: qcp-pop .4s cubic-bezier(.3, 1.5, .5, 1) calc(var(--qcp-d, 0ms) + 400ms + var(--qcp-n, 0) * 90ms) backwards;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-start {
        animation: qcp-rise .5s cubic-bezier(.2, .7, .2, 1) calc(var(--qcp-d, 0ms) + 700ms) backwards;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-start .qcp-arrow {
        animation: qcp-nudge 1s ease-in-out calc(var(--qcp-d, 0ms) + 1300ms);
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 780px) {
    .qcp-get,
    .qcp-motion .qcp-path-card.qcp-in {
        animation-name: qcp-rise;
    }

    .qcp-ticks .qcp-tick,
    .qcp-get-number,
    .qcp-motion .qcp-path-card.qcp-in .qcp-path-icon,
    .qcp-motion .qcp-path-card.qcp-in .qcp-path-results li::before,
    .qcp-motion .qcp-path-card.qcp-in .qcp-start .qcp-arrow {
        animation: none;
    }

    .qcp-motion .qcp-path-card.qcp-in .qcp-path-results li {
        animation-name: qcp-fade;
    }
}

.qcp-ticks li:nth-child(2),
.qcp-get-list li:nth-child(2),
.qcp-path-results li:nth-child(2) {
    --qcp-n: 1;
}

.qcp-ticks li:nth-child(3),
.qcp-get-list li:nth-child(3),
.qcp-path-results li:nth-child(3) {
    --qcp-n: 2;
}

.qcp-path-results li:nth-child(4) {
    --qcp-n: 3;
}

@keyframes qcp-lift {
    from {
        translate: 0 22px;
    }
}

@keyframes qcp-from-right {
    from {
        opacity: 0;
        translate: 32px 0;
    }
}

@keyframes qcp-nudge {
    0%,
    60%,
    100% {
        translate: 0 0;
    }

    30% {
        translate: 6px 0;
    }

    80% {
        translate: 3px 0;
    }
}

@keyframes qcp-failsafe {
    to {
        opacity: 1;
    }
}

@keyframes qcp-rise {
    from {
        opacity: 0;
        translate: 0 18px;
    }
}

@keyframes qcp-card-in {
    from {
        opacity: 0;
        translate: 0 26px;
        scale: .96;
    }
}

@keyframes qcp-slide {
    from {
        opacity: 0;
        translate: -22px 0;
    }
}

@keyframes qcp-grow {
    from {
        scale: 0 1;
    }
}

@keyframes qcp-pop {
    from {
        opacity: 0;
        scale: .6;
    }
}

@keyframes qcp-fade {
    from {
        opacity: 0;
    }
}

/* ---------- Narrower screens. */

@media (max-width: 1100px) {
    .qcp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .qcp-intro-inner,
    .qcp-wizard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qcp-get {
        max-width: 560px;
    }
}

@media (max-width: 780px) {
    .qcp-path-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .qcp-inner {
        width: calc(100% - 32px);
    }

    .qcp-intro,
    .qcp-wizard-band,
    .qcp-result-band {
        padding-top: 156px;
    }

    .qcp-result-band {
        padding-bottom: 76px;
    }

    .qcp-path-card,
    .qcp-get {
        padding: 22px;
    }

    .qcp-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .qcp-options,
    .qcp-options-sm {
        grid-template-columns: minmax(0, 1fr);
    }

    .qcp-options-sm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qcp-options-sm .qcp-option {
        gap: 10px;
        padding: 10px 12px;
    }

    .qcp-options-xs {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }

    .qcp-nav .qcp-button {
        flex: 1 1 auto;
    }

    .qcp-next-item {
        gap: 14px;
        padding: 16px;
    }

    .qcp-next-text {
        font-size: 16px;
    }

    .qcp-cta-actions,
    .qcp-cta-actions .qcp-button {
        width: 100%;
    }
}

@media (max-width: 339px) {
    .qcp-options-sm {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qcp-button,
    .qcp-option,
    .qcp-progress-fill,
    .qcp-path-card,
    .qcp-path-icon,
    .qcp-start .qcp-arrow {
        transition: none;
    }

    .qcp-button:hover,
    .qcp-button:focus-visible {
        transform: none;
    }

    .qcp-path-card:hover,
    .qcp-start:hover .qcp-arrow {
        translate: none;
    }
}
