.fb-page {
    --fb-line: color-mix(in srgb, var(--forest) 14%, transparent);
    --fb-line-strong: color-mix(in srgb, var(--forest) 28%, transparent);
    --fb-tint: color-mix(in srgb, var(--forest) 7%, var(--white));
    --fb-gold-tint: color-mix(in srgb, var(--gold-bright) 24%, var(--white));
    --fb-shadow:
        0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent),
        0 14px 36px -16px color-mix(in srgb, var(--ink-green) 30%, transparent);
    --fb-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-family-primary);
}

.fb-page [hidden] {
    display: none !important;
}

.fb-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

.fb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fb-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 0 56px;
    background:
        radial-gradient(70% 90% at 92% -10%, color-mix(in srgb, var(--forest) 75%, transparent), transparent 70%),
        var(--ink-green);
    color: var(--cream);
}

.fb-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.fb-eyebrow-dark {
    color: var(--gold-deep);
}

.fb-title {
    margin: 0;
    font-family: 'Big Shoulders Display', var(--font-family-primary);
    font-size: clamp(2.375rem, 8.5vw, 3.75rem);
    font-weight: 800;
    line-height: 0.98;
    color: var(--white);
    text-wrap: balance;
}

.fb-lede {
    max-width: 52ch;
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--white) 82%, var(--cream));
    text-wrap: pretty;
}

.fb-body {
    padding: 0 0 72px;
}

.fb-card {
    position: relative;
    margin-top: -28px;
    padding: 28px 20px 24px;
    background: var(--white);
    border: 1px solid var(--fb-line);
    border-radius: 18px;
    box-shadow: var(--fb-shadow);
}

.fb-block {
    min-width: 0;
    margin: 0;
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--fb-line);
}

.fb-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.fb-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: var(--text-dark);
    text-wrap: pretty;
}

label.fb-question {
    cursor: pointer;
}

legend.fb-question {
    float: left;
    width: 100%;
}

legend.fb-question + * {
    clear: both;
}

.fb-question-plain {
    display: block;
    margin-bottom: 6px;
    font-size: 1.125rem;
}

.fb-step {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
}

.fb-optional {
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    vertical-align: middle;
}

.fb-hint {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.fb-choices {
    display: grid;
    gap: 10px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-xl);
}

.fb-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 12px 16px;
    border: 1.5px solid var(--fb-line-strong);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition:
        border-color 0.18s var(--fb-ease),
        background-color 0.18s var(--fb-ease),
        box-shadow 0.18s var(--fb-ease);
}

.fb-choice:hover {
    border-color: var(--forest);
    background: var(--fb-tint);
}

.fb-choice:has(input:checked) {
    border-color: var(--forest);
    background: var(--fb-tint);
    box-shadow: inset 0 0 0 1px var(--forest);
}

.fb-choice:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--forest) 40%, transparent);
    outline-offset: 2px;
}

.fb-choice-mark {
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--fb-line-strong);
    border-radius: 50%;
    background: var(--white);
    transition: border-color 0.18s var(--fb-ease), box-shadow 0.18s var(--fb-ease);
}

.fb-choice:has(input:checked) .fb-choice-mark {
    border-color: var(--forest);
    box-shadow: inset 0 0 0 5px var(--forest);
}

.fb-choice-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fb-choice-label {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

.fb-choice-hint {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.fb-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-xl);
}

.fb-star {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--fb-line-strong);
    cursor: pointer;
    transition: color 0.15s var(--fb-ease), transform 0.15s var(--fb-ease), background-color 0.15s var(--fb-ease);
}

.fb-star svg {
    width: 38px;
    height: 38px;
    fill: transparent;
    transition: fill 0.15s var(--fb-ease);
}

.fb-star.is-on {
    color: var(--gold);
}

.fb-star.is-on svg {
    fill: var(--gold-bright);
}

.fb-star:hover {
    background: var(--fb-gold-tint);
    transform: scale(1.06);
}

.fb-star:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--forest) 40%, transparent);
    outline-offset: 2px;
}

.fb-star-word {
    min-height: 1.4em;
    margin: 6px 0 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    color: var(--text-muted);
}

.fb-star-word.is-set {
    color: var(--forest);
    font-weight: var(--font-weight-semibold);
}

.fb-page textarea,
.fb-page input[type='text'],
.fb-page input[type='email'] {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--fb-line-strong);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.18s var(--fb-ease), box-shadow 0.18s var(--fb-ease);
}

.fb-page textarea {
    min-height: 120px;
    resize: vertical;
}

.fb-page textarea::placeholder,
.fb-page input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 85%, var(--white));
}

.fb-page textarea:focus,
.fb-page input:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 16%, transparent);
}

.fb-fields {
    display: grid;
    gap: 14px;
}

.fb-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.fb-actions {
    padding-top: 22px;
    border-top: 1px solid var(--fb-line);
}

.fb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--forest);
    color: var(--white);
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color 0.18s var(--fb-ease), transform 0.18s var(--fb-ease);
}

.fb-button:hover {
    background: var(--forest-deep);
}

.fb-button:active {
    transform: translateY(1px);
}

.fb-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--forest) 40%, transparent);
    outline-offset: 3px;
}

.fb-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.fb-thanks {
    text-align: center;
    padding: 44px 24px;
}

.fb-thanks-title {
    margin: 0 0 10px;
    font-family: 'Big Shoulders Display', var(--font-family-primary);
    font-size: clamp(2rem, 7vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--forest-deep);
}

.fb-thanks-text {
    max-width: 44ch;
    margin: 0 auto 22px;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.fb-link-button {
    padding: 10px 4px;
    border: 0;
    background: none;
    color: var(--forest);
    font-family: inherit;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.fb-link-button:hover {
    color: var(--forest-deep);
}

@media (min-width: 640px) {
    .fb-hero {
        padding: 40px 0 72px;
    }

    .fb-card {
        margin-top: -36px;
        padding: 36px 36px 32px;
    }

    .fb-block {
        padding: 28px 0;
    }

    .fb-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-choice:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .fb-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-button {
        width: auto;
        min-width: 240px;
    }

    .fb-actions {
        display: flex;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-page * {
        transition: none !important;
    }

    .fb-star:hover {
        transform: none;
    }
}
