.bf-wrap {
    --bf-primary: #ff6b3d;
    --bf-heading: #090d32;
    --bf-surface: #edf3f8;
    max-width: 820px;
    margin: 0 auto;
    color: #172033;
    font-size: 16px;
}

.bf-form {
    display: grid;
    gap: 24px;
}

.bf-wrap [hidden] {
    display: none !important;
}

.bf-form[data-selected-plan=""] .bf-conditional,
.bf-form:not([data-selected-plan="simple-presence"]) [data-plan-section="simple-presence"],
.bf-form:not([data-selected-plan="managed-growth"]) [data-plan-section="managed-growth"],
.bf-form:not([data-selected-plan="build-your-plan"]) [data-plan-section="build-your-plan"],
.bf-form:not([data-selected-plan="fully-owned"]) [data-plan-section="fully-owned"],
.bf-form:not([data-selected-plan="not-sure"]) [data-plan-section="not-sure"] {
    display: none !important;
}

.bf-form[data-selected-plan=""] .bf-details-step {
    display: none !important;
}

.bf-step,
.bf-conditional,
.bf-message {
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    padding: 24px;
}

.bf-compact-form .bf-step {
    padding: 18px;
}

.bf-compact-form .bf-step-heading h2 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.bf-compact-form .bf-field {
    margin-bottom: 12px;
}

.bf-wrap .bf-compact-form input,
.bf-wrap .bf-compact-form select,
.bf-wrap .bf-compact-form textarea {
    min-height: 42px;
}

.bf-compact-form .bf-submit {
    min-height: 44px;
    padding: 10px 18px;
}

.bf-conditional {
    background: var(--bf-surface);
}

.bf-step-heading h2,
.bf-wrap h3 {
    color: var(--bf-heading);
    margin: 0 0 12px;
}

.bf-eyebrow {
    color: var(--bf-primary);
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.bf-plan-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-plan-card {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 16px;
}

.bf-plan-card:has(input:checked),
.bf-plan-card.is-selected {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bf-primary), transparent 72%);
}

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

.bf-field,
.bf-addons {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.bf-basic-form .bf-step {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-basic-form .bf-step-heading,
.bf-basic-form .bf-field-full,
.bf-basic-form .bf-consent,
.bf-basic-form .bf-submit {
    grid-column: 1 / -1;
}

.bf-basic-form .bf-field-half {
    grid-column: span 1;
}

.bf-addons label,
.bf-consent,
.bf-check-grid label {
    align-items: center;
    display: flex;
    gap: 8px;
}

.bf-check-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-wrap input[type="text"],
.bf-wrap input[type="email"],
.bf-wrap input[type="tel"],
.bf-wrap input[type="url"],
.bf-wrap input[type="number"],
.bf-wrap select,
.bf-wrap textarea {
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    box-sizing: border-box;
    color: #172033;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.bf-wrap textarea {
    min-height: 100px;
}

.bf-wrap input:focus,
.bf-wrap select:focus,
.bf-wrap textarea:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bf-primary), transparent 68%);
    outline: none;
}

.bf-estimate {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

.bf-estimate div {
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    padding: 16px;
}

.bf-estimate span {
    color: #596579;
    display: block;
    font-size: 14px;
}

.bf-estimate strong {
    color: var(--bf-heading);
    display: block;
    font-size: 26px;
    line-height: 1.2;
}

.bf-disclaimer {
    color: #596579;
    font-size: 14px;
}

.bf-section-help {
    color: #596579;
    margin-top: -4px;
}

.bf-required,
.bf-optional {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
    padding: 2px 7px;
    vertical-align: middle;
}

.bf-required {
    background: #fff1eb;
    color: #c2410c;
}

.bf-optional {
    background: #edf3f8;
    color: #596579;
}

.bf-submit {
    background: var(--bf-primary);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 48px;
    padding: 12px 20px;
}

.bf-message-success {
    border-color: #63a96b;
}

.bf-message-error {
    border-color: #c03;
    color: #8a001f;
}

@media (max-width: 720px) {
    .bf-plan-grid,
    .bf-row,
    .bf-basic-form .bf-step,
    .bf-check-grid,
    .bf-estimate {
        grid-template-columns: 1fr;
    }

    .bf-basic-form .bf-field-half {
        grid-column: 1 / -1;
    }

    .bf-step,
    .bf-conditional,
    .bf-message {
        padding: 18px;
    }
}
