.psbfc-check {
    --psbfc-surface: #ffffff;
    --psbfc-surface-soft: #f8fafc;
    --psbfc-text: #17212b;
    --psbfc-muted: #5b6672;
    --psbfc-border: #d8e0e8;
    --psbfc-shadow: 0 20px 50px rgba(23, 33, 43, 0.08);
    --psbfc-chart-equity: var(--psbfc-accent);
    --psbfc-chart-loan: var(--psbfc-progress);
    --psbfc-chart-closing: #7d8a98;
    --psbfc-chart-modernization: #d9b26c;
    background: linear-gradient(180deg, #ffffff 0%, var(--psbfc-surface-soft) 100%);
    border: 1px solid var(--psbfc-border);
    border-radius: 5px;
    box-shadow: var(--psbfc-shadow);
    color: var(--psbfc-text);
    margin: 0 0 24px;
    padding: 24px;
}

.psbfc-check [hidden] {
    display: none !important;
}

.psbfc-check__inner,
.psbfc-check__app,
.psbfc-check__screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.psbfc-check__question {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.psbfc-check__eyebrow {
    color: var(--psbfc-progress);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.psbfc-check__headline,
.psbfc-check__question-title {
    color: var(--psbfc-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin: 0;
}

.psbfc-check__question-title {
    font-size: var(--psbfc-headline-size, 34px) !important;
    line-height: 1.3 !important;
}

.psbfc-check__subheadline,
.psbfc-check__question-hint,
.psbfc-check__field-label,
.psbfc-check__group-label {
    color: var(--psbfc-muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

.psbfc-check__progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psbfc-check__progress-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.psbfc-check__progress-label,
.psbfc-check__progress-percent {
    color: var(--psbfc-muted);
    font-size: 14px;
    font-weight: 600;
}

.psbfc-check__progress-track {
    background: #e9eef4;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.psbfc-check__progress-bar {
    background: var(--psbfc-progress);
    border-radius: 999px;
    height: 100%;
    transition: width 0.2s ease;
    width: 0;
}

.psbfc-check__question-meta {
    align-items: center;
    display: flex;
    gap: 12px;
}

.psbfc-check__icon {
    align-items: center;
    background: var(--psbfc-active-bg);
    border-radius: 16px;
    color: var(--psbfc-icon-color);
    display: inline-flex;
    flex: 0 0 72px;
    height: 72px;
    justify-content: center;
    margin-bottom: 14px;
    width: 72px;
}

.psbfc-check__icon svg {
    display: block;
    fill: none;
    height: 52px;
    max-height: 64px;
    max-width: 64px;
    overflow: visible;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
    width: 52px;
}

.psbfc-check__question-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.psbfc-check__question-label {
    color: var(--psbfc-progress);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.psbfc-check__options {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

@media (min-width: 721px) {
    .psbfc-check__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.psbfc-check__choice-group {
    border: 0;
    margin: 0;
    padding: 0;
}

.psbfc-check__option {
    background: var(--psbfc-surface);
    border: 1px solid var(--psbfc-border);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    gap: 16px;
    padding: 18px;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.psbfc-check__option-input {
    height: 1px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 1px;
}

.psbfc-check__option:hover {
    border-color: var(--psbfc-accent);
}

.psbfc-check__option:focus-within {
    border-color: var(--psbfc-progress);
    box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.14);
    outline: none;
}

.psbfc-check__option.is-selected {
    background: var(--psbfc-active-bg);
    border-color: var(--psbfc-accent);
    box-shadow: 0 10px 30px rgba(226, 143, 0, 0.12);
}

.psbfc-check__option-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 0;
}

.psbfc-check__option-title {
    color: var(--psbfc-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.psbfc-check__radio {
    align-items: center;
    align-self: center;
    border: 2px solid #c1ccd8;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    margin-left: auto;
    width: 24px;
}

.psbfc-check__radio::after {
    background: var(--psbfc-accent);
    border-radius: 999px;
    content: '';
    display: block;
    height: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 10px;
}

.psbfc-check__option.is-selected .psbfc-check__radio {
    border-color: var(--psbfc-accent);
}

.psbfc-check__option.is-selected .psbfc-check__radio::after {
    opacity: 1;
}

.psbfc-check__field-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.psbfc-check__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.psbfc-check__field--full {
    grid-column: 1 / -1;
}

.psbfc-check__input,
.psbfc-check__select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 5px;
    color: var(--psbfc-text);
    font-size: 16px;
    min-height: 54px;
    padding: 0 16px;
    width: 100%;
}

.psbfc-check__select {
    padding-right: 44px;
}

.psbfc-check__input:focus,
.psbfc-check__select:focus {
    border-color: var(--psbfc-accent);
    box-shadow: 0 0 0 3px rgba(226, 143, 0, 0.15);
    outline: none;
}

.psbfc-check__validation {
    background: #fff5f5;
    border: 1px solid #f3c9c9;
    border-radius: 14px;
    color: #9f2f2f;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 12px 14px;
}

.psbfc-check__actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 8px;
}

.psbfc-check__button {
    align-items: center;
    align-self: flex-start;
    background: var(--psbfc-accent);
    border: 1px solid var(--psbfc-accent);
    border-radius: 5px;
    color: var(--psbfc-button-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;
    padding: 0 24px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.psbfc-check__button:hover,
.psbfc-check__button:focus {
    background: var(--psbfc-accent-hover);
    border-color: var(--psbfc-accent-hover);
}

.psbfc-check__button:focus {
    outline: 2px solid var(--psbfc-progress);
    outline-offset: 2px;
}

.psbfc-check__button:active {
    transform: translateY(1px);
}

.psbfc-check__button--secondary {
    background: transparent;
    border-color: var(--psbfc-border);
    color: var(--psbfc-text);
}

.psbfc-check__button--secondary:hover,
.psbfc-check__button--secondary:focus {
    background: #eef3f8;
    border-color: #c5d1dd;
}

.psbfc-check__button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.psbfc-check__result,
.psbfc-check__result-header,
.psbfc-check__stats,
.psbfc-check__structure,
.psbfc-check__legend,
.psbfc-check__cta {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.psbfc-check__result-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
}

.psbfc-check__score-card {
    background: linear-gradient(180deg, #fffdf8 0%, #fff4e4 100%);
    border: 1px solid var(--psbfc-border);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
}

.psbfc-check__score-card.is-very-solid {
    border-color: var(--psbfc-accent);
}

.psbfc-check__score-card.is-good {
    border-color: #c8a45a;
}

.psbfc-check__score-card.is-review {
    border-color: #d7a04a;
}

.psbfc-check__score-card.is-detailed {
    border-color: #d18d8d;
}

.psbfc-check__score-value {
    color: var(--psbfc-text);
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 700;
    line-height: 1;
}

.psbfc-check__score-value span {
    color: var(--psbfc-muted);
    font-size: 20px;
    font-weight: 600;
}

.psbfc-check__score-label {
    color: var(--psbfc-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.psbfc-check__stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psbfc-check__stat-card {
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 116px;
    padding: 18px;
}

.psbfc-check__stat-label {
    color: var(--psbfc-muted);
    font-size: 14px;
    line-height: 1.5;
}

.psbfc-check__stat-value {
    color: var(--psbfc-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.psbfc-check__structure {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
}

.psbfc-check__structure-chart {
    display: flex;
    justify-content: center;
}

.psbfc-check__donut {
    align-items: center;
    background: var(--psbfc-donut-gradient);
    border-radius: 999px;
    display: flex;
    height: 240px;
    justify-content: center;
    position: relative;
    width: 240px;
}

.psbfc-check__donut::after {
    background: #fff;
    border-radius: 999px;
    content: '';
    height: 138px;
    position: absolute;
    width: 138px;
}

.psbfc-check__donut-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.psbfc-check__donut-inner span {
    color: var(--psbfc-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.psbfc-check__donut-inner strong {
    color: var(--psbfc-text);
    font-size: 22px;
    line-height: 1.3;
}

.psbfc-check__legend {
    display: grid;
    gap: 12px;
}

.psbfc-check__legend-item {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.psbfc-check__legend-swatch {
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 14px;
    height: 14px;
    margin-top: 4px;
    width: 14px;
}

.psbfc-check__legend-swatch--equity {
    background: var(--psbfc-chart-equity);
}

.psbfc-check__legend-swatch--loan {
    background: var(--psbfc-chart-loan);
}

.psbfc-check__legend-swatch--closing {
    background: var(--psbfc-chart-closing);
}

.psbfc-check__legend-swatch--modernization {
    background: var(--psbfc-chart-modernization);
}

.psbfc-check__legend-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psbfc-check__legend-label,
.psbfc-check__structure-note {
    color: var(--psbfc-muted);
    font-size: 14px;
    line-height: 1.6;
}

.psbfc-check__legend-value {
    color: var(--psbfc-text);
    font-size: 16px;
    line-height: 1.5;
}

.psbfc-check__result-notes {
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 16px;
    color: var(--psbfc-muted);
    margin: 0;
    padding: 16px 20px 16px 34px;
}

.psbfc-check__result-notes li + li {
    margin-top: 8px;
}

.psbfc-check__disclaimer {
    background: var(--psbfc-active-bg);
    border: 1px solid #efdbb9;
    border-radius: 18px;
    color: var(--psbfc-text);
    font-size: 14px;
    line-height: 1.7;
    padding: 18px;
}

.psbfc-check__cta {
    align-items: flex-start;
}

.psbfc-check__contact-title {
    color: var(--psbfc-text);
    font-size: calc(var(--psbfc-headline-size, 34px) * 0.82);
    line-height: 1.3;
    margin: 0;
}

.psbfc-check .psbfc-check__question-title.fusion-responsive-typography-calculated,
.psbfc-check .fusion-responsive-typography-calculated.psbfc-check__question-title {
    font-size: var(--psbfc-headline-size, 34px) !important;
    line-height: 1.3 !important;
}

.psbfc-check__cta-note {
    color: var(--psbfc-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.psbfc-advisor-card {
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.psbfc-advisor-card__intro {
    color: var(--psbfc-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.psbfc-advisor-card__inner {
    align-items: center;
    display: flex;
    gap: 20px;
}

.psbfc-advisor-card__photo {
    flex: 0 0 100px;
    height: 100px;
    width: 100px;
}

.psbfc-advisor-card__photo img {
    border-radius: 999px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.psbfc-advisor-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.psbfc-advisor-card__name {
    color: var(--psbfc-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.psbfc-advisor-card__role {
    color: var(--psbfc-muted);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.psbfc-advisor-card__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.psbfc-advisor-card__link,
.psbfc-advisor-card__contact {
    color: var(--psbfc-text);
    font-size: 15px;
    line-height: 1.6;
}

.psbfc-advisor-card__link {
    text-decoration: none;
}

.psbfc-advisor-card__link:hover {
    color: var(--psbfc-progress);
    text-decoration: none;
}

.psbfc-advisor-card__link:focus-visible {
    outline: 2px solid var(--psbfc-progress);
    outline-offset: 2px;
    text-decoration: none;
}

.psbfc-check__contact-panel {
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.psbfc-check__contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psbfc-check__textarea {
    background: #fff;
    border: 1px solid var(--psbfc-border);
    border-radius: 5px;
    color: var(--psbfc-text);
    font-family: inherit;
    font-size: 16px;
    min-height: 140px;
    padding: 14px 16px;
    resize: vertical;
    width: 100%;
}

.psbfc-check__textarea:focus {
    border-color: var(--psbfc-accent);
    box-shadow: 0 0 0 3px rgba(226, 143, 0, 0.15);
    outline: none;
}

.psbfc-check__field-help {
    color: var(--psbfc-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.psbfc-check__required {
    color: var(--psbfc-accent);
}

.psbfc-check__field-error {
    color: #9f2f2f;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.psbfc-check__checkbox-box {
    align-items: flex-start;
    background: var(--psbfc-active-bg);
    border: 1px solid #efdbb9;
    border-radius: 5px;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.psbfc-check__checkbox-box input {
    accent-color: var(--psbfc-accent);
    margin-top: 3px;
}

.psbfc-check__checkbox-box span {
    color: var(--psbfc-text);
    font-size: 14px;
    line-height: 1.7;
}

.psbfc-check__checkbox-box a {
    color: var(--psbfc-progress);
    text-decoration: none;
}

.psbfc-check__checkbox-box a:hover {
    text-decoration: none;
}

.psbfc-check__checkbox-box a:focus-visible {
    outline: 2px solid var(--psbfc-progress);
    outline-offset: 2px;
    text-decoration: none;
}

.psbfc-check__submit-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psbfc-check__submit-feedback {
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 14px;
}

.psbfc-check__submit-feedback--success {
    background: #eef8ef;
    border: 1px solid #b7dbb9;
    color: #22622d;
}

.psbfc-check__submit-feedback--error {
    background: #fff5f5;
    border: 1px solid #f3c9c9;
    color: #9f2f2f;
}

.psbfc-check__honeypot {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.psbfc-check__footer-links {
    color: var(--psbfc-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 12px;
    justify-content: center;
    padding-top: 8px;
    text-align: center;
}

.psbfc-check__footer-links a {
    color: var(--psbfc-progress);
    text-decoration: none;
}

.psbfc-check__footer-links a:hover {
    text-decoration: none;
}

.psbfc-check__footer-links a:focus-visible {
    outline: 2px solid var(--psbfc-progress);
    outline-offset: 2px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .psbfc-check {
        border-radius: 5px;
        padding: 20px;
    }

    .psbfc-check__question-title {
        font-size: max(24px, calc(var(--psbfc-headline-size, 34px) - 6px)) !important;
    }

    .psbfc-check__contact-title {
        font-size: max(22px, calc((var(--psbfc-headline-size, 34px) * 0.82) - 4px));
    }

    .psbfc-check__subheadline,
    .psbfc-check__question-hint,
    .psbfc-check__field-label,
    .psbfc-check__group-label {
        font-size: 16px;
    }

    .psbfc-check__progress-meta,
    .psbfc-check__question-meta,
    .psbfc-check__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .psbfc-check__option {
        align-items: flex-start;
        padding: 16px;
    }

    .psbfc-check__field-grid {
        grid-template-columns: 1fr;
    }

    .psbfc-check__result-grid,
    .psbfc-check__structure,
    .psbfc-check__stats,
    .psbfc-check__contact-grid {
        grid-template-columns: 1fr;
    }

    .psbfc-advisor-card__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .psbfc-check__score-card {
        min-height: 0;
    }

    .psbfc-check__donut {
        height: 220px;
        width: 220px;
    }

    .psbfc-check__donut::after {
        height: 128px;
        width: 128px;
    }

    .psbfc-check__button {
        align-self: stretch;
        width: 100%;
    }
}
