:root {
    --pbsa-red: #ec2127;
    --pbsa-red-dark: #c9151b;
    --pbsa-charcoal: #252525;
    --pbsa-panel: #2f2f2f;
    --pbsa-border: rgba(255, 255, 255, 0.16);
    --pbsa-text: #ffffff;
    --pbsa-muted: #c9c9c9;
}

.pbsa-shell,
.pbsa-shell * {
    box-sizing: border-box;
}

.pbsa-shell {
    width: min(920px, calc(100% - 32px));
    margin: 48px auto;
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
    color: var(--pbsa-text);
    background:
        radial-gradient(circle at 95% 5%, rgba(236, 33, 39, 0.17), transparent 34%),
        var(--pbsa-charcoal);
    border: 1px solid var(--pbsa-border);
    border-radius: 0;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
    font-family: Montserrat, Arial, sans-serif;
}

.pbsa-intro {
    max-width: 720px;
    margin-bottom: 38px;
}

.pbsa-intro h2 {
    margin: 8px 0 12px;
    color: var(--pbsa-text);
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.pbsa-intro p {
    margin: 0;
    color: var(--pbsa-muted);
    font-size: 16px;
    line-height: 1.7;
}

.pbsa-intro .pbsa-eyebrow {
    color: var(--pbsa-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pbsa-notice {
    display: grid;
    gap: 5px;
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid;
    border-radius: 0;
}

.pbsa-notice--success {
    color: #eaffed;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.45);
}

.pbsa-notice--error {
    color: #fff2f2;
    background: rgba(236, 33, 39, 0.12);
    border-color: rgba(236, 33, 39, 0.5);
}

.pbsa-progress {
    margin-bottom: 36px;
}

.pbsa-progress__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--pbsa-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pbsa-progress__track {
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.pbsa-progress__track span {
    display: block;
    width: 8%;
    height: 100%;
    background: var(--pbsa-red);
    border-radius: 0;
    transition: width 240ms ease;
}

.pbsa-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pbsa-step[hidden] {
    display: none;
}

.pbsa-step legend {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    color: var(--pbsa-text);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.28;
}

.pbsa-question-number {
    display: inline-grid;
    width: 26px;
    height: 26px;
    margin-right: 7px;
    place-items: center;
    color: var(--pbsa-text);
    background: var(--pbsa-red);
    border-radius: 0;
    font-size: 13px;
    vertical-align: 4px;
}

.pbsa-options {
    display: grid;
    gap: 10px;
    max-width: 650px;
}

.pbsa-option,
.pbsa-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 14px 16px;
    color: var(--pbsa-text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--pbsa-border);
    border-radius: 0;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pbsa-option:hover,
.pbsa-check:hover {
    background: rgba(236, 33, 39, 0.09);
    border-color: rgba(236, 33, 39, 0.65);
    transform: translateY(-1px);
}

.pbsa-option:has(input:checked),
.pbsa-check:has(input:checked) {
    background: rgba(236, 33, 39, 0.14);
    border-color: var(--pbsa-red);
}

.pbsa-option input,
.pbsa-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.pbsa-option:has(input:focus-visible),
.pbsa-check:has(input:focus-visible) {
    outline: 3px solid rgba(236, 33, 39, 0.35);
    outline-offset: 3px;
}

.pbsa-option__key {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--pbsa-red);
    border: 1px solid rgba(236, 33, 39, 0.55);
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
}

.pbsa-option:has(input:checked) .pbsa-option__key {
    color: #fff;
    background: var(--pbsa-red);
}

.pbsa-input {
    display: block;
    width: min(100%, 650px);
    padding: 15px 4px;
    color: var(--pbsa-text);
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    font: inherit;
    font-size: clamp(19px, 2.5vw, 25px);
    transition: border-color 160ms ease;
}

.pbsa-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.pbsa-input:focus {
    border-color: var(--pbsa-red);
}

.pbsa-help {
    margin: -10px 0 22px;
    color: var(--pbsa-muted);
    line-height: 1.6;
}

.pbsa-check {
    max-width: 650px;
}

.pbsa-check::before {
    content: "";
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
}

.pbsa-check:has(input:checked)::before {
    background: var(--pbsa-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    border-color: var(--pbsa-red);
}

.pbsa-check--consent {
    margin-top: 12px;
    color: var(--pbsa-muted);
    font-size: 13px;
}

.pbsa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.pbsa-button {
    appearance: none;
    min-height: 48px;
    padding: 12px 21px;
    color: #fff;
    background: var(--pbsa-red);
    border: 1px solid var(--pbsa-red);
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pbsa-button:hover {
    background: var(--pbsa-red-dark);
    border-color: var(--pbsa-red-dark);
    transform: translateY(-1px);
}

.pbsa-button:focus-visible {
    outline: 3px solid rgba(236, 33, 39, 0.38);
    outline-offset: 3px;
}

.pbsa-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.pbsa-button--secondary {
    color: var(--pbsa-muted);
    background: transparent;
    border-color: var(--pbsa-border);
}

.pbsa-button--secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.pbsa-step:first-child [data-pbsa-back] {
    display: none;
}

.pbsa-error {
    min-height: 20px;
    margin: 10px 0 0;
    color: #ff8e92;
    font-size: 13px;
}

.pbsa-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

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

@media (max-width: 620px) {
    .pbsa-shell {
        width: calc(100% - 20px);
        margin: 24px auto;
        padding: 24px 18px 30px;
        border-radius: 0;
    }

    .pbsa-intro {
        margin-bottom: 28px;
    }

    .pbsa-option,
    .pbsa-check {
        min-height: 54px;
        padding: 12px;
    }

    .pbsa-actions {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pbsa-shell *,
    .pbsa-shell *::before,
    .pbsa-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
