:root {
    --nbb-border: #e8e9e9;
    --nbb-text: #182127;
    --nbb-muted: #68747b;
    --nbb-surface: #ffffff;
    --nbb-soft: #f7f9fa;
    --nbb-accent: #9fdcf2;
    --nbb-accent-soft: #eaf8fd;
    --nbb-accent-dark: #173541;
    --nbb-navy: #0d1b3e;
    --nbb-orange: #e8641a;
    --nbb-error: #b42318;
}

.nbb-wrap {
    width: 100%;
    max-width: 920px;
    margin: 40px auto;
    color: #fff;
    font-family: inherit;
}

.nbb-wrap * {
    box-sizing: border-box;
}

.nbb-header {
    margin-bottom: 32px;
}

.nbb-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.nbb-header h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.nbb-header p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.65;
}

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

.nbb-section {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--nbb-border);
    border-radius: 22px;
    background: var(--nbb-surface);
    color: var(--nbb-text);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}

.nbb-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--nbb-border);
}

.nbb-section-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--nbb-accent-soft);
    color: var(--nbb-accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.nbb-section-heading h3 {
    margin: 0 0 5px;
    color: var(--nbb-navy);
    font-size: 22px;
    line-height: 1.2;
}

.nbb-section-heading p {
    margin: 0;
    color: var(--nbb-muted);
    line-height: 1.55;
}

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

.nbb-field {
    display: grid;
    gap: 8px;
}

.nbb-field label {
    color: var(--nbb-text);
    font-size: 14px;
    font-weight: 750;
}

.nbb-field em,
.nbb-question-title em {
    color: var(--nbb-error);
    font-style: normal;
}

.nbb-optional {
    color: var(--nbb-muted);
    font-size: 12px;
    font-weight: 500;
}

.nbb-field input,
.nbb-field textarea,
.nbb-question > textarea,
.nbb-other-wrap input {
    width: 100%;
    border: 1px solid #d9dddf;
    border-radius: 13px;
    background: #fff;
    color: var(--nbb-text);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nbb-field input,
.nbb-other-wrap input {
    min-height: 50px;
    padding: 0 15px;
}

.nbb-field textarea,
.nbb-question > textarea {
    min-height: 125px;
    padding: 15px;
    line-height: 1.6;
    resize: vertical;
}

.nbb-field input:focus,
.nbb-field textarea:focus,
.nbb-question > textarea:focus,
.nbb-other-wrap input:focus {
    border-color: #77bdd6;
    box-shadow: 0 0 0 4px rgba(159, 220, 242, .28);
}

.nbb-field input::placeholder,
.nbb-field textarea::placeholder,
.nbb-question > textarea::placeholder,
.nbb-other-wrap input::placeholder {
    color: #9ba5aa;
}

.nbb-questions {
    display: grid;
}

.nbb-question {
    padding: 30px 0;
    border-bottom: 1px solid var(--nbb-border);
}

.nbb-question:first-child {
    padding-top: 0;
}

.nbb-question:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.nbb-question-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
}

.nbb-question-title h4 {
    margin: 0 0 5px;
    color: var(--nbb-navy);
    font-size: 17px;
    line-height: 1.45;
}

.nbb-question-title p {
    margin: 0;
    color: var(--nbb-muted);
    font-size: 13px;
    line-height: 1.55;
}

.nbb-question-number {
    flex: 0 0 auto;
    min-width: 30px;
    padding-top: 4px;
    color: #7b919b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.nbb-choice-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.nbb-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nbb-option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dde2e4;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.nbb-option:hover {
    border-color: #a9cedc;
    background: #fbfeff;
    transform: translateY(-1px);
}

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

.nbb-option span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #33434b;
    font-size: 14px;
    line-height: 1.35;
}

.nbb-option span::before {
    content: "";
    display: inline-flex;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 1.5px solid #aab4b9;
    border-radius: 6px;
    background: #fff;
    transition: all .18s ease;
}

.nbb-option input[type="radio"] + span::before {
    border-radius: 50%;
}

.nbb-option input:checked + span::before {
    border-color: var(--nbb-accent);
    background-color: var(--nbb-accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.nbb-option input[type="checkbox"]:checked + span::before {
    box-shadow: none;
    background-image:
        linear-gradient(45deg, transparent 46%, var(--nbb-accent-dark) 46% 55%, transparent 55%),
        linear-gradient(-45deg, transparent 44%, var(--nbb-accent-dark) 44% 53%, transparent 53%);
    background-position: 4px 8px, 8px 6px;
    background-size: 6px 4px, 9px 7px;
    background-repeat: no-repeat;
}

.nbb-option:has(input:checked) {
    border-color: #8ecde3;
    background: var(--nbb-accent-soft);
}

.nbb-limit {
    margin: 10px 0 0;
    color: var(--nbb-muted);
    font-size: 12px;
}

.nbb-other-wrap {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border-radius: 13px;
    background: var(--nbb-soft);
}

.nbb-other-wrap.is-visible {
    display: grid;
    gap: 7px;
}

.nbb-other-wrap label {
    font-size: 13px;
    font-weight: 700;
}

.nbb-group-error {
    display: none;
    margin: 8px 0 0;
    color: var(--nbb-error);
    font-size: 12px;
    font-weight: 700;
}

.nbb-choice-group.has-error .nbb-group-error {
    display: block;
}

.nbb-choice-group.has-error .nbb-options {
    padding: 8px;
    border: 1px solid #efb2ac;
    border-radius: 15px;
    background: #fff7f6;
}

.nbb-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nbb-stacked-groups {
    display: grid;
    gap: 22px;
}

.nbb-subgroup {
    padding: 18px;
    border: 1px solid var(--nbb-border);
    border-radius: 16px;
    background: #fbfcfc;
}

.nbb-subgroup h5 {
    margin: 0 0 14px;
    color: var(--nbb-navy);
    font-size: 14px;
}

.nbb-subgroup .nbb-options {
    grid-template-columns: 1fr;
}

.nbb-consent {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}

.nbb-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.nbb-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--nbb-accent);
}

.nbb-consent span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.55;
}

.nbb-consent a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.nbb-submit {
    width: 100%;
    min-height: 60px;
    padding: 0 24px;
    border: 0;
    border-radius: 15px;
    background: var(--nbb-orange);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(232, 100, 26, .32);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.nbb-submit:hover {
    transform: translateY(-1px);
    background: #f07328;
    box-shadow: 0 13px 34px rgba(232, 100, 26, .4);
}

.nbb-submit:active {
    transform: translateY(0);
}

.nbb-notice {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.nbb-notice-success {
    border: 1px solid #9fdcf2;
    background: #eefaff;
    color: #19465a;
}

.nbb-notice-error {
    border: 1px solid #efb2ac;
    background: #fff1f0;
    color: #8a1c13;
}

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

.screen-reader-text {
    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: 760px) {
    .nbb-options,
    .nbb-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nbb-wrap {
        margin: 24px auto;
    }

    .nbb-grid {
        grid-template-columns: 1fr;
    }

    .nbb-section {
        border-radius: 18px;
    }

    .nbb-section-heading {
        gap: 12px;
    }

    .nbb-question-title {
        gap: 8px;
    }
}
