.rfc-app {
    --rfc-accent: #1167b1;
    --rfc-ink: #172033;
    --rfc-muted: #667085;
    --rfc-line: #d9e1ec;
    --rfc-soft: #f6f8fb;
    color: var(--rfc-ink);
    font-family: inherit;
    max-width: 760px;
    margin: 32px auto;
}

.rfc-app * {
    box-sizing: border-box;
}

.rfc-progress {
    height: 8px;
    background: var(--rfc-line);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.rfc-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--rfc-accent);
    border-radius: inherit;
    transition: width 240ms ease;
}

.rfc-panel {
    background: #fff;
    border: 1px solid var(--rfc-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.rfc-step {
    padding: clamp(24px, 5vw, 44px);
}

.rfc-landing,
.rfc-analysis,
.rfc-result {
    text-align: center;
}

.rfc-kicker {
    color: var(--rfc-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.rfc-step h2 {
    color: var(--rfc-ink);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: 0;
    margin: 0 0 16px;
}

.rfc-step h3 {
    color: var(--rfc-ink);
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 14px;
}

.rfc-subhead,
.rfc-help,
.rfc-step p {
    color: var(--rfc-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.rfc-subhead {
    font-size: 1.08rem;
    margin: 0 auto 26px;
    max-width: 620px;
}

.rfc-label {
    display: block;
    font-weight: 700;
    margin: 22px 0 8px;
}

.rfc-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid #c8d2df;
    border-radius: 8px;
    color: var(--rfc-ink);
    font: inherit;
    font-size: 1rem;
    padding: 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rfc-input:focus {
    border-color: var(--rfc-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rfc-accent) 16%, transparent);
    outline: 0;
}

.rfc-button {
    align-items: center;
    background: var(--rfc-accent);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 56px;
    padding: 15px 24px;
    text-align: center;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
    width: auto;
}

.rfc-button:hover,
.rfc-button:focus {
    color: #fff;
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.rfc-button:focus {
    outline: 3px solid color-mix(in srgb, var(--rfc-accent) 28%, transparent);
    outline-offset: 3px;
}

.rfc-back {
    background: transparent;
    border: 0;
    color: var(--rfc-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin: 0 0 22px;
    padding: 0;
}

.rfc-back:hover,
.rfc-back:focus {
    color: var(--rfc-accent);
}

.rfc-company-results {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rfc-company-card {
    background: var(--rfc-soft);
    border: 1px solid var(--rfc-line);
    border-radius: 8px;
    color: var(--rfc-ink);
    cursor: pointer;
    display: grid;
    gap: 4px;
    font: inherit;
    padding: 16px;
    text-align: left;
    width: 100%;
}

.rfc-company-card:hover,
.rfc-company-card:focus {
    border-color: var(--rfc-accent);
    outline: 0;
}

.rfc-company-card span,
.rfc-company-card small,
.rfc-muted {
    color: var(--rfc-muted);
}

.rfc-choice-grid {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.rfc-choice {
    cursor: pointer;
    display: block;
}

.rfc-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rfc-choice span {
    background: var(--rfc-soft);
    border: 1px solid var(--rfc-line);
    border-radius: 8px;
    display: block;
    font-weight: 700;
    padding: 18px;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.rfc-choice input:checked + span,
.rfc-choice input:focus + span {
    background: color-mix(in srgb, var(--rfc-accent) 10%, #fff);
    border-color: var(--rfc-accent);
    color: var(--rfc-accent);
}

.rfc-error {
    color: #b42318;
    font-weight: 700;
    margin: 14px 0;
}

.rfc-loader {
    animation: rfc-spin 900ms linear infinite;
    border: 5px solid var(--rfc-line);
    border-top-color: var(--rfc-accent);
    border-radius: 50%;
    height: 74px;
    margin: 8px auto 28px;
    width: 74px;
}

.rfc-result-mark {
    align-items: center;
    background: var(--rfc-accent);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 800;
    height: 64px;
    justify-content: center;
    margin-bottom: 20px;
    width: 64px;
}

.rfc-result p {
    margin-left: auto;
    margin-right: auto;
    max-width: 650px;
}

.rfc-cta {
    background: var(--rfc-soft);
    border: 1px solid var(--rfc-line);
    border-radius: 8px;
    margin: 28px auto 18px;
    max-width: 650px;
    padding: 24px;
    text-align: left;
}

.rfc-cta ul {
    color: var(--rfc-ink);
    line-height: 1.55;
    margin: 0 0 22px 20px;
    padding: 0;
}

.rfc-cta li {
    margin: 7px 0;
}

.rfc-disclaimer {
    color: var(--rfc-muted);
    font-size: 0.9rem;
}

@keyframes rfc-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .rfc-app {
        margin: 18px auto;
    }

    .rfc-panel {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .rfc-button {
        width: 100%;
    }
}
