/* RJF Business Finance Action Plan */
.rjf-bap,
.rjf-bap-promo {
    --rjf-bap-accent: #f5c400;
    --rjf-bap-ink: #181818;
    --rjf-bap-muted: #666;
    --rjf-bap-border: #e4e4e4;
    --rjf-bap-soft: #f7f7f5;
    --rjf-bap-radius: 16px;
    color: var(--rjf-bap-ink);
    box-sizing: border-box;
}

.rjf-bap *,
.rjf-bap-promo * {
    box-sizing: border-box;
}

.rjf-bap {
    max-width: 1140px;
    margin: 0 auto;
}

.rjf-bap-shell {
    width: 100%;
}

.rjf-bap-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    align-items: start;
}

.rjf-bap-intro {
    padding: 26px 0 18px;
}

.rjf-bap-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rjf-bap-intro .rjf-bap-kicker,
.rjf-bap-result-head .rjf-bap-kicker,
.rjf-bap-promo .rjf-bap-kicker {
    position: relative;
    padding-left: 18px;
}

.rjf-bap-intro .rjf-bap-kicker:before,
.rjf-bap-result-head .rjf-bap-kicker:before,
.rjf-bap-promo .rjf-bap-kicker:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rjf-bap-accent);
    transform: translateY(-50%);
}

.rjf-bap h2,
.rjf-bap h3,
.rjf-bap-promo h3 {
    color: var(--rjf-bap-ink);
    margin-top: 0;
}

.rjf-bap-intro h2,
.rjf-bap-result-head h2 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.01;
    margin: 0 0 16px;
    letter-spacing: -.03em;
}

.rjf-bap-intro > p,
.rjf-bap-result-head > p {
    max-width: 680px;
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
    color: var(--rjf-bap-muted);
}

.rjf-bap-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 800;
}

.rjf-bap-intro-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff8dc;
}

.rjf-bap-intro-meta span:before {
    content: "✓";
    font-weight: 900;
}

.rjf-bap-intro-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.rjf-bap-intro-point {
    padding: 16px 18px;
    border: 1px solid var(--rjf-bap-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.03);
}

.rjf-bap-intro-point strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.3;
}

.rjf-bap-intro-point span {
    display: block;
    color: var(--rjf-bap-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rjf-bap-intro-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.rjf-bap-intro-note {
    max-width: 330px;
    color: var(--rjf-bap-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rjf-bap-form-card {
    background: #fff;
    border: 1px solid var(--rjf-bap-border);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0,0,0,.08);
    overflow: hidden;
}

.rjf-bap-form-head {
    padding: 28px 32px 18px;
    background: linear-gradient(180deg, #fff8dc 0%, #fff 100%);
    border-bottom: 1px solid #efefef;
}

.rjf-bap-form-kicker {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a6d00;
}

.rjf-bap-form-head h3 {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1.08;
}

.rjf-bap-form-head p {
    margin: 0;
    color: var(--rjf-bap-muted);
}

.rjf-bap-form {
    padding: 22px 32px 30px;
}

.rjf-bap-progress-wrap {
    margin: 0 0 26px;
}

.rjf-bap-progress-copy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rjf-bap-muted);
}

.rjf-bap-progress {
    height: 8px;
    background: #ececec;
    border-radius: 99px;
    overflow: hidden;
}

.rjf-bap-progress span {
    display: block;
    height: 100%;
    background: var(--rjf-bap-accent);
    border-radius: 99px;
    transition: width .25s ease;
}

.rjf-bap-step {
    border: 0;
    padding: 0;
    margin: 0;
}

.rjf-bap-step[hidden],
.rjf-bap-results[hidden],
.rjf-bap-conditional[hidden] {
    display: none !important;
}

.rjf-bap-step legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 7px;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.18;
    font-weight: 800;
    color: var(--rjf-bap-ink);
}

.rjf-bap-help {
    margin: 0 0 18px;
    color: var(--rjf-bap-muted);
}

.rjf-bap-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

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

.rjf-bap-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.rjf-bap-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rjf-bap-option-card {
    display: block;
    min-height: 100%;
    padding: 17px 18px;
    border: 1px solid var(--rjf-bap-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.rjf-bap-option:hover .rjf-bap-option-card {
    border-color: #bdbdbd;
    transform: translateY(-1px);
}

.rjf-bap-option > input:focus-visible + .rjf-bap-option-card {
    outline: 3px solid rgba(245,196,0,.28);
    outline-offset: 2px;
}

.rjf-bap-option > input:checked + .rjf-bap-option-card {
    border-color: var(--rjf-bap-accent);
    box-shadow: inset 0 0 0 1px var(--rjf-bap-accent);
    background: color-mix(in srgb, var(--rjf-bap-accent) 10%, white);
}

.rjf-bap-option-title {
    display: block;
    font-weight: 780;
    font-size: 15px;
}

.rjf-bap-option-description {
    display: block;
    margin-top: 5px;
    color: var(--rjf-bap-muted);
    font-size: 13px;
    line-height: 1.45;
}

.rjf-bap-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.rjf-bap-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    font: inherit;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform .16s ease, opacity .16s ease, background .16s ease;
}

.rjf-bap-btn[hidden] {
    display: none !important;
}

.rjf-bap-btn:hover {
    transform: translateY(-1px);
}

.rjf-bap-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.rjf-bap-btn-primary {
    background: var(--rjf-bap-accent) !important;
    border-color: var(--rjf-bap-accent) !important;
    color: #fff !important;
}

.rjf-bap-btn-secondary {
    background: #fff !important;
    border-color: #cfcfcf !important;
    color: #111 !important;
}

.rjf-bap-next,
.rjf-bap-submit {
    margin-left: auto;
}

.rjf-bap-error {
    min-height: 22px;
    margin-top: 14px;
    color: #a62424;
    font-size: 13px;
    font-weight: 700;
}

.rjf-bap-conditional {
    margin-top: 20px;
    padding: 20px;
    background: var(--rjf-bap-soft);
    border-radius: var(--rjf-bap-radius);
}

.rjf-bap-subquestion + .rjf-bap-subquestion {
    margin-top: 22px;
}

.rjf-bap-subquestion-spaced {
    margin-top: 23px;
    padding-top: 23px;
    border-top: 1px solid var(--rjf-bap-border);
}

.rjf-bap-sublegend {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}

.rjf-bap-subquestion select,
.rjf-bap-fields input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfcfcf !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
}

.rjf-bap-inline-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.rjf-bap-inline-radios label,
.rjf-bap-checkline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.rjf-bap-inline-radios input,
.rjf-bap-checkline input {
    margin-top: 3px;
    accent-color: var(--rjf-bap-accent);
}

.rjf-bap-results {
    margin-top: 46px;
    background: #fff;
    border: 1px solid var(--rjf-bap-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0,0,0,.06);
}

.rjf-bap-result-head {
    padding: 42px 48px 30px;
}

.rjf-bap-result-list {
    display: grid;
    gap: 15px;
    padding: 0 48px 42px;
}

.rjf-bap-recommendation {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 25px;
    margin: 0;
    border: 1px solid var(--rjf-bap-border);
    border-radius: var(--rjf-bap-radius);
    background: #fff;
}

.rjf-bap-recommendation-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--rjf-bap-accent);
    font-size: 18px;
    font-weight: 900;
}

.rjf-bap-recommendation-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 7px;
}

.rjf-bap-area {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rjf-bap-muted);
}

.rjf-bap-priority {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 11px;
    font-weight: 800;
}

.rjf-bap-priority-high {
    background: #fff1b8;
}

.rjf-bap-recommendation h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.rjf-bap-recommendation p {
    margin: 0 0 10px;
    color: var(--rjf-bap-muted);
}

.rjf-bap-recommendation .rjf-bap-why {
    color: var(--rjf-bap-ink);
    font-weight: 650;
}

.rjf-bap-recommendation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 17px;
}

.rjf-bap-text-link {
    color: var(--rjf-bap-ink) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rjf-bap-secondary {
    padding: 34px 48px 44px;
    background: var(--rjf-bap-soft);
}

.rjf-bap-secondary h3 {
    margin-bottom: 18px;
    font-size: 23px;
}

.rjf-bap-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rjf-bap-secondary-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--rjf-bap-border);
    border-radius: 12px;
    background: #fff;
    color: var(--rjf-bap-ink) !important;
    text-decoration: none !important;
}

.rjf-bap-secondary-card span {
    margin-bottom: 6px;
    color: var(--rjf-bap-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rjf-bap-secondary-card strong {
    font-size: 16px;
    line-height: 1.35;
}

.rjf-bap-secondary-card em {
    margin-top: auto;
    padding-top: 16px;
    color: var(--rjf-bap-ink);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.rjf-bap-lead-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 34px;
    padding: 45px 48px;
    background: #191919;
    color: #fff;
}

.rjf-bap-lead-panel h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.rjf-bap-lead-panel p {
    color: #d1d1d1;
}

.rjf-bap-lead-panel .rjf-bap-kicker {
    color: var(--rjf-bap-accent);
}

.rjf-bap-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.rjf-bap-fields label {
    margin: 0;
}

.rjf-bap-fields label > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
}

.rjf-bap-fields small {
    opacity: .7;
    font-weight: 500;
}

.rjf-bap-fields input {
    padding: 8px 11px !important;
}

.rjf-bap-checkline {
    margin-top: 14px;
    color: #eee;
}

.rjf-bap-checkline em {
    opacity: .7;
    font-style: normal;
}

.rjf-bap-privacy {
    margin: 14px 0 !important;
    font-size: 11px;
    line-height: 1.5;
}

.rjf-bap-privacy a {
    color: #fff !important;
    text-decoration: underline;
}

.rjf-bap-lead-message {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.rjf-bap-lead-message.is-success {
    color: #b9e7ba;
}

.rjf-bap-lead-message.is-error {
    color: #ffb8b8;
}

.rjf-bap-contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 48px;
    background: var(--rjf-bap-accent);
}

.rjf-bap-contact-cta strong,
.rjf-bap-contact-cta span {
    display: block;
}

.rjf-bap-contact-cta strong {
    font-size: 18px;
}

.rjf-bap-contact-cta span {
    margin-top: 3px;
    font-size: 13px;
}

/* Homepage promo */
.rjf-bap-promo {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 58px 24px 56px;
    background: #ef6b57;
    color: #fff;
    overflow: hidden;
}

/* Helps the shortcode blend into a Flatsome section when it is placed inside one. */
.section:has(.rjf-bap-promo) {
    background: #ef6b57 !important;
}

.rjf-bap-promo-shell {
    width: min(100%, 1140px);
    margin: 0 auto;
}

.rjf-bap-promo-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
}

.rjf-bap-promo h3 {
    max-width: 790px;
    margin: 0 0 14px;
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 1.02;
    color: #fff;
    letter-spacing: -.025em;
}

.rjf-bap-promo p {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 19px;
    line-height: 1.55;
}

.rjf-bap-promo .rjf-bap-kicker {
    margin-bottom: 12px;
    color: #fff;
}

.rjf-bap-promo .rjf-bap-kicker:before {
    background: #fff;
}

.rjf-bap-promo-meta {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.rjf-bap-promo-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rjf-bap-promo .rjf-bap-btn-primary {
    min-width: 220px;
    min-height: 56px;
    white-space: nowrap;
    background: #fff !important;
    border-color: #fff !important;
    color: #171717 !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
}

.rjf-bap-promo-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.32);
}

.rjf-bap-promo-detail {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 0 28px;
    border-left: 1px solid rgba(255,255,255,.24);
}

.rjf-bap-promo-detail:first-child {
    padding-left: 0;
    border-left: 0;
}

.rjf-bap-promo-detail:last-child {
    padding-right: 0;
}

.rjf-bap-promo-detail > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.rjf-bap-promo-detail strong {
    display: block;
    margin: 1px 0 6px;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.rjf-bap-promo-detail p {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .rjf-bap {
        max-width: none;
        padding-left: 24px;
        padding-right: 24px;
    }

    .rjf-bap-hero {
        display: block;
    }

    .rjf-bap-intro {
        display: none !important;
    }

    .rjf-bap-form-card {
        width: 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .rjf-bap-results {
        width: 100%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .rjf-bap-promo-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rjf-bap-promo-action {
        justify-content: flex-start;
    }

    .rjf-bap-promo-details {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .rjf-bap-promo-detail,
    .rjf-bap-promo-detail:first-child,
    .rjf-bap-promo-detail:last-child {
        padding: 0;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .rjf-bap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rjf-bap-form-card,
    .rjf-bap-results {
        width: 100%;
        max-width: none;
    }

    .rjf-bap-intro h2,
    .rjf-bap-result-head h2 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .rjf-bap-form-card,
    .rjf-bap-results {
        border-radius: 18px;
    }

    .rjf-bap-form-head,
    .rjf-bap-form,
    .rjf-bap-result-head,
    .rjf-bap-result-list,
    .rjf-bap-secondary,
    .rjf-bap-lead-panel,
    .rjf-bap-contact-cta,
    .rjf-bap-promo-shell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .rjf-bap-form-head h3 {
        font-size: 26px;
    }

    .rjf-bap-intro > p,
    .rjf-bap-result-head > p,
    .rjf-bap-promo p {
        font-size: 17px;
    }

    .rjf-bap-options-2,
    .rjf-bap-secondary-grid,
    .rjf-bap-fields {
        grid-template-columns: 1fr;
    }

    .rjf-bap-recommendation {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 18px;
    }

    .rjf-bap-recommendation-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .rjf-bap-recommendation-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .rjf-bap-lead-panel,
    .rjf-bap-contact-cta {
        grid-template-columns: 1fr;
        align-items: flex-start;
        flex-direction: column;
    }

    .rjf-bap-promo {
        padding: 42px 22px 40px;
    }

    .rjf-bap-lead-panel {
        gap: 24px;
    }

    .rjf-bap-inline-radios,
    .rjf-bap-intro-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .rjf-bap-intro-note {
        max-width: none;
    }
}


@media (max-width: 420px) {
    .rjf-bap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .rjf-bap-form-head,
    .rjf-bap-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rjf-bap-form-head h3 {
        font-size: 24px;
    }
}


.rjf-bap .rjf-bap-btn-primary:hover,
.rjf-bap .rjf-bap-btn-primary:focus,
.rjf-bap .rjf-bap-btn-primary:visited {
    color: #fff !important;
}


/* Stronger lead-form colour rules to override theme styles */
.rjf-bap .rjf-bap-lead-panel .rjf-bap-fields label,
.rjf-bap .rjf-bap-lead-panel .rjf-bap-fields label > span,
.rjf-bap .rjf-bap-lead-panel .rjf-bap-fields label > span small {
    color: #fff !important;
}

.rjf-bap .rjf-bap-lead-panel .rjf-bap-checkline,
.rjf-bap .rjf-bap-lead-panel .rjf-bap-checkline span,
.rjf-bap .rjf-bap-lead-panel .rjf-bap-checkline em {
    color: #fff !important;
}

.rjf-bap .rjf-bap-lead-panel .rjf-bap-privacy,
.rjf-bap .rjf-bap-lead-panel .rjf-bap-privacy a {
    color: #fff !important;
}

.rjf-bap .rjf-bap-lead-panel button.rjf-bap-btn-primary,
.rjf-bap .rjf-bap-lead-panel button.rjf-bap-btn-primary:hover,
.rjf-bap .rjf-bap-lead-panel button.rjf-bap-btn-primary:focus,
.rjf-bap .rjf-bap-lead-panel button.rjf-bap-btn-primary:active {
    color: #fff !important;
}


.rjf-bap-hero[hidden] {
    display: none !important;
}

.rjf-bap-results:not([hidden]) {
    margin-top: 0;
}
