.result-next-steps {
    width: 100%;
    margin: 34px 0 0;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #f7f9fc;
    color: #1e293b;
}

.result-next-steps[hidden] {
    display: none !important;
}

.result-next-steps__header {
    max-width: 660px;
    margin: 0 0 24px;
}

.result-next-steps__eyebrow,
.result-next-steps__card-eyebrow {
    display: block;
    color: #2e68b5;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-next-steps__eyebrow {
    margin: 0 0 8px;
}

.result-next-steps__header h2 {
    margin: 0 0 8px !important;
    color: #0f2537 !important;
    font: 500 clamp(1.55rem, 3vw, 2rem)/1.18 Lora, Georgia, serif !important;
    letter-spacing: -0.015em;
}

.result-next-steps__header > p:last-child {
    max-width: 620px;
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
}

.result-next-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.result-next-steps__card {
    display: flex;
    min-width: 0;
    min-height: 238px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.result-next-steps__card:hover,
.result-next-steps__card:focus-visible {
    border-color: #7ca6d9;
    background: #f9fbff;
    color: #1e293b;
}

.result-next-steps__card:focus-visible {
    outline: 3px solid rgba(46, 104, 181, 0.22);
    outline-offset: 2px;
}

.result-next-steps__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid #cbd8e8;
    border-radius: 9px;
    background: #f5f8fc;
    color: #2e68b5;
}

.result-next-steps__icon svg {
    width: 20px;
    height: 20px;
}

.result-next-steps__copy {
    display: grid;
    gap: 7px;
}

.result-next-steps__copy strong {
    color: #0f2537;
    font-size: 1rem;
    line-height: 1.35;
}

.result-next-steps__copy > span:last-child {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.result-next-steps__action {
    display: inline-flex;
    margin-top: auto;
    padding-top: 20px;
    align-items: center;
    gap: 5px;
    color: #2e68b5;
    font-size: 0.82rem;
    font-weight: 750;
}

.result-next-steps__action svg {
    width: 16px;
    height: 16px;
    transition: transform 140ms ease;
}

.result-next-steps__card:hover .result-next-steps__action svg,
.result-next-steps__card:focus-visible .result-next-steps__action svg {
    transform: translateX(2px);
}

html[data-theme="dark"] .result-next-steps {
    border-color: rgba(148, 163, 184, 0.24);
    background: #111a28;
    color: #dbe5f0;
}

html[data-theme="dark"] .result-next-steps__header h2,
html[data-theme="dark"] .result-next-steps__copy strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .result-next-steps__header > p:last-child,
html[data-theme="dark"] .result-next-steps__copy > span:last-child {
    color: #aeb9c7;
}

html[data-theme="dark"] .result-next-steps__eyebrow,
html[data-theme="dark"] .result-next-steps__card-eyebrow,
html[data-theme="dark"] .result-next-steps__action {
    color: #78aef0;
}

html[data-theme="dark"] .result-next-steps__card {
    border-color: rgba(148, 163, 184, 0.22);
    background: #0c1522;
    color: #dbe5f0;
}

html[data-theme="dark"] .result-next-steps__card:hover,
html[data-theme="dark"] .result-next-steps__card:focus-visible {
    border-color: #4d7eb9;
    background: #101c2c;
}

html[data-theme="dark"] .result-next-steps__icon {
    border-color: rgba(120, 174, 240, 0.3);
    background: rgba(46, 104, 181, 0.12);
    color: #93c5fd;
}

@media (max-width: 760px) {
    .result-next-steps {
        margin-top: 26px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .result-next-steps__header {
        margin-bottom: 18px;
        text-align: center;
    }

    .result-next-steps__grid {
        grid-template-columns: 1fr;
    }

    .result-next-steps__card {
        display: grid;
        min-height: 0;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px;
        gap: 0 14px;
    }

    .result-next-steps__icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .result-next-steps__action {
        grid-column: 2;
        margin-top: 12px;
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .result-next-steps__card,
    .result-next-steps__action svg {
        transition: none;
    }
}
