.bbs-enrollment-wrap {
    --bbs-navy: #060D31;
    --bbs-blue: #0745B7;
    --bbs-yellow: #F7C843;
    --bbs-text: #202738;
    --bbs-muted: #667085;
    --bbs-border: #DCE6F3;
    --bbs-light: #F6F9FD;
    --bbs-radius: 14px;

    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.bbs-enrollment-form {
    padding: 38px;
    background: #fff;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    box-shadow: 0 12px 40px rgba(6, 13, 49, .07);
}

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

.bbs-form-heading {
    margin-bottom: 34px;
    text-align: center;
}

.bbs-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 14px;
    color: var(--bbs-blue);
    background: #EDF4FF;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.bbs-form-heading h2 {
    display: block !important;
    margin: 0 0 12px !important;
    color: var(--bbs-navy) !important;
    font-size: clamp(30px, 4vw, 42px) !important;
    line-height: 1.15;
    font-weight: 700 !important;
}

.bbs-form-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--bbs-muted);
    font-size: 17px;
    line-height: 1.6;
}

.bbs-form-section {
    margin: 0 0 30px !important;
}

.bbs-form-section h3 {
    display: block !important;
    margin: 0 0 20px !important;
    padding: 12px 16px;
    color: var(--bbs-navy) !important;
    background: #EDF4FF;
    border-left: 4px solid var(--bbs-blue);
    border-radius: 0 var(--bbs-radius) var(--bbs-radius) 0;
    font-size: 20px !important;
    line-height: 1.3;
    font-weight: 700 !important;
}

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

.bbs-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--bbs-text);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.bbs-field label span {
    color: #b32d2e;
}

.bbs-field input,
.bbs-field select,
.bbs-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    color: var(--bbs-text);
    background: #fff;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bbs-field input:focus,
.bbs-field select:focus,
.bbs-field textarea:focus {
    border-color: var(--bbs-blue);
    box-shadow: 0 0 0 3px rgba(7, 69, 183, .10);
}

.bbs-field textarea {
    min-height: 110px;
    resize: vertical;
}


.bbs-field.is-error input,
.bbs-field.is-error select,
.bbs-field.is-error textarea,
.bbs-field .bbs-invalid-input {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important;
    background: #fff7f7;
}

.bbs-field-help.is-error {
    color: #b42318;
    font-weight: 600;
}

.bbs-field-error {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}


.bbs-payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bbs-payment-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.bbs-payment-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bbs-payment-content {
    display: flex;
    flex-direction: column;
    min-height: 130px;
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bbs-payment-card:hover .bbs-payment-content {
    transform: translateY(-2px);
    border-color: #B8CAE2;
}

.bbs-payment-card > input:checked + .bbs-payment-content {
    border-color: var(--bbs-blue);
    box-shadow: 0 8px 24px rgba(7, 69, 183, .10);
}

.bbs-payment-content strong {
    margin-bottom: 6px;
    color: var(--bbs-navy);
    font-size: 18px;
    line-height: 1.3;
}

.bbs-payment-content > span:last-child {
    color: var(--bbs-muted);
    font-size: 14px;
    line-height: 1.5;
}

.bbs-payment-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: var(--bbs-blue);
    background: #EDF4FF;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.bbs-payment-badge-best {
    color: var(--bbs-navy);
    background: var(--bbs-yellow);
}

.bbs-order-summary {
    margin: 35px 0 28px !important;
    padding: 25px;
    background: var(--bbs-light);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
}

.bbs-summary-header,
.bbs-summary-row,
.bbs-summary-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.bbs-summary-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bbs-border);
}

.bbs-summary-header span {
    color: var(--bbs-navy);
    font-size: 19px;
    font-weight: 700;
}

.bbs-summary-header strong {
    color: var(--bbs-blue);
}

.bbs-summary-row {
    margin: 9px 0;
    color: var(--bbs-muted);
    font-size: 15px;
}

.bbs-summary-row strong {
    color: var(--bbs-text);
}

.bbs-summary-value-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bbs-summary-value-block small,
#bbs_summary_discount_description {
    color: #7D8798;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

#bbs_summary_discount_description {
    display: block;
    margin-top: 2px;
}

.bbs-summary-discount strong {
    color: #008a20;
}

.bbs-summary-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--bbs-border);
    color: var(--bbs-navy);
    font-size: 20px;
    font-weight: 700;
}

.bbs-summary-total strong {
    color: var(--bbs-blue);
    font-size: 25px;
}


.bbs-payment-schedule {
    margin-top: 22px;
    background: #fff;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    overflow: hidden;
}

.bbs-payment-schedule summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    color: var(--bbs-navy);
    background: #EDF4FF;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.bbs-payment-schedule summary::-webkit-details-marker {
    display: none;
}

.bbs-payment-schedule summary > span:nth-child(2) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
}

.bbs-payment-schedule summary strong {
    color: var(--bbs-navy);
    font-size: 15px;
    line-height: 1.35;
}

.bbs-payment-schedule summary small {
    color: var(--bbs-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bbs-payment-schedule-icon {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--bbs-blue);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.bbs-payment-schedule-chevron {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.bbs-payment-schedule[open] .bbs-payment-schedule-chevron {
    transform: rotate(180deg);
}

.bbs-payment-schedule-body {
    padding: 15px 17px 17px;
}

.bbs-payment-schedule-intro {
    margin-bottom: 10px;
    padding: 10px 12px;
    color: #475467;
    background: #F8FAFD;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.bbs-payment-schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 2px;
    border-bottom: 1px solid #E7EDF5;
}

.bbs-payment-schedule-row:last-child {
    border-bottom: 0;
}

.bbs-payment-schedule-date {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.bbs-payment-schedule-date strong {
    color: var(--bbs-text);
    font-size: 14px;
}

.bbs-payment-schedule-date small {
    color: var(--bbs-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bbs-payment-schedule-amount {
    flex: 0 0 auto;
    color: var(--bbs-navy);
    font-size: 15px;
}

.bbs-payment-schedule-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding-top: 13px;
    border-top: 2px solid var(--bbs-border);
    color: var(--bbs-navy);
    font-size: 14px;
    font-weight: 700;
}

.bbs-payment-schedule-total strong {
    color: var(--bbs-blue);
    font-size: 17px;
}

.bbs-payment-schedule-empty {
    margin: 0 !important;
    padding: 10px 0 !important;
    color: var(--bbs-muted) !important;
    font-size: 13px !important;
}

.bbs-summary-note {
    margin: 15px 0 0 !important;
    color: #7D8798 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.bbs-legal-section {
    margin: 0 0 25px !important;
}

.bbs-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.bbs-checkbox input {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 3px;
    accent-color: var(--bbs-blue);
}

.bbs-checkbox > span {
    color: var(--bbs-text);
    font-size: 14px;
    line-height: 1.55;
}

.bbs-checkbox a,
.bbs-privacy-notice a {
    color: var(--bbs-blue);
    font-weight: 700;
}

.bbs-privacy-notice {
    margin: 18px 0 0 !important;
    color: var(--bbs-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.bbs-submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 16px 22px;
    color: var(--bbs-navy);
    background: var(--bbs-yellow);
    border: 2px solid var(--bbs-yellow);
    border-radius: var(--bbs-radius);
    font: inherit;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.bbs-submit-button:hover {
    color: var(--bbs-navy);
    background: #F2BB22;
    border-color: #F2BB22;
    transform: translateY(-2px);
}

.bbs-submit-info {
    margin: 12px 0 0 !important;
    color: #7D8798 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.bbs-form-message {
    margin-bottom: 25px;
    padding: 18px 20px;
    border-radius: var(--bbs-radius, 14px);
}

.bbs-form-message strong,
.bbs-form-message span {
    display: block;
}

.bbs-form-message strong {
    margin-bottom: 5px;
}

.bbs-form-success {
    color: #155724;
    background: #edf8ef;
    border: 1px solid #b7dfbf;
}

.bbs-form-success-complete {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(6, 13, 49, .06);
}

.bbs-form-success-complete .bbs-success-kicker {
    display: inline-block;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 6px 11px;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bbs-form-success-complete > strong {
    margin-bottom: 18px;
    color: var(--bbs-navy);
    font-size: 24px;
    line-height: 1.3;
}

.bbs-form-success-complete .bbs-success-order-label {
    margin-bottom: 4px;
    color: var(--bbs-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.bbs-form-success-complete .bbs-success-order-number {
    margin-bottom: 20px;
    color: var(--bbs-blue);
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .2px;
}

.bbs-form-success-complete > span:not(.bbs-success-kicker):not(.bbs-success-order-label):not(.bbs-success-order-number) {
    margin-top: 6px;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
}

.bbs-form-error {
    color: #842029;
    background: #fff0f0;
    border: 1px solid #efb8bd;
}

@media (max-width: 767px) {
    .bbs-enrollment-form {
        padding: 25px 20px;
    }

    .bbs-fields-grid,
    .bbs-payment-options {
        grid-template-columns: 1fr;
    }

    .bbs-payment-content {
        min-height: auto;
    }

    .bbs-summary-header,
    .bbs-summary-row,
    .bbs-summary-total {
        gap: 12px;
    }

    .bbs-summary-row,
    .bbs-summary-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .bbs-summary-value-block {
        align-items: flex-start;
    }

    .bbs-summary-total strong {
        font-size: 22px;
    }

    .bbs-payment-schedule-row,
    .bbs-payment-schedule-total {
        gap: 12px;
    }

    .bbs-payment-schedule summary {
        padding: 14px;
    }

    .bbs-payment-schedule-body {
        padding: 13px 14px 15px;
    }
}


/* =========================================================
   ZGODY NA WIZERUNEK
   ========================================================= */


.bbs-consents-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #EDF4FF;
    border: 1px solid #CFE0F8;
    border-radius: var(--bbs-radius);
}

.bbs-consents-toolbar > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.bbs-consents-toolbar strong {
    color: var(--bbs-navy);
    font-size: 15px;
    line-height: 1.35;
}

.bbs-consents-toolbar span {
    color: var(--bbs-muted);
    font-size: 12px;
    line-height: 1.5;
}

.bbs-consents-select-all {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 15px;
    color: #fff;
    background: var(--bbs-blue);
    border: 1px solid var(--bbs-blue);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.bbs-consents-select-all:hover {
    background: var(--bbs-blue-medium);
    border-color: var(--bbs-blue-medium);
}

.bbs-consents-select-all:active {
    transform: translateY(1px);
}

.bbs-consents-select-all.is-complete {
    color: #166534;
    background: #ECFDF3;
    border-color: #A7F3D0;
}

.bbs-image-consents.bbs-consents-just-selected {
    animation: bbsConsentFlash .7s ease;
}

@keyframes bbsConsentFlash {
    0% { box-shadow: 0 0 0 0 rgba(7, 69, 183, .22); }
    50% { box-shadow: 0 0 0 5px rgba(7, 69, 183, .12); }
    100% { box-shadow: 0 0 0 0 rgba(7, 69, 183, 0); }
}

.bbs-image-consents {
    margin: 30px 0 !important;
    padding: 24px;
    background: #F6F9FD;
    border: 1px solid #DCE6F3;
    border-radius: 14px;
}

.bbs-image-consents-heading h3 {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #060D31 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.bbs-image-consents-heading p {
    margin: 0 0 18px !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.bbs-image-checkbox {
    margin-bottom: 14px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.bbs-image-checkbox:last-of-type {
    margin-bottom: 0;
}

.bbs-image-consents-note {
    margin: 15px 0 0 !important;
    color: #7D8798 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

@media (max-width: 767px) {
    .bbs-image-consents {
        padding: 19px 16px;
    }
}



/* =========================================================
   ZGODY MARKETINGOWE
   ========================================================= */

.bbs-marketing-consents {
    margin: 30px 0 !important;
    padding: 24px;
    background: #F8FAFC;
    border: 1px solid #DCE6F3;
    border-radius: 14px;
}

.bbs-marketing-consents-heading h3 {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #060D31 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.bbs-marketing-consents-heading p {
    margin: 0 0 18px !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.bbs-marketing-checkbox {
    margin-bottom: 14px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.bbs-marketing-checkbox:last-of-type {
    margin-bottom: 0;
}

.bbs-marketing-consents-note {
    margin: 15px 0 0 !important;
    color: #7D8798 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

@media (max-width: 767px) {
    .bbs-marketing-consents {
        padding: 19px 16px;
    }
}

/* =========================================================
   PRZETWARZANIE / BLOKADA PODWÓJNEGO KLIKNIĘCIA
   ========================================================= */

.bbs-submit-button {
    position: relative;
}

.bbs-submit-default,
.bbs-submit-processing {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bbs-submit-default {
    display: flex;
}

.bbs-submit-processing {
    display: none;
    justify-content: center;
}

.bbs-submit-button.is-processing .bbs-submit-default {
    display: none;
}

.bbs-submit-button.is-processing .bbs-submit-processing {
    display: flex;
}

.bbs-submit-button:disabled,
.bbs-submit-button.is-processing {
    cursor: wait;
    opacity: .88;
    transform: none !important;
}

.bbs-submit-spinner {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(6, 13, 49, .25);
    border-top-color: #060D31;
    border-radius: 50%;
    animation: bbs-submit-spin .7s linear infinite;
}

.bbs-enrollment-form.is-processing {
    cursor: wait;
}

.bbs-enrollment-form.is-processing input,
.bbs-enrollment-form.is-processing select,
.bbs-enrollment-form.is-processing textarea,
.bbs-enrollment-form.is-processing label {
    cursor: wait;
}

@keyframes bbs-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   RODZEŃSTWO / RABAT
   ========================================================= */

.bbs-field-help {
    display: block;
    margin-top: 6px;
    color: #7D8798;
    font-size: 12px;
    line-height: 1.45;
}

.bbs-sibling-box {
    margin-top: 22px;
    padding: 18px;
    background: #F6F9FD;
    border: 1px solid #DCE6F3;
    border-radius: 14px;
}

.bbs-sibling-checkbox {
    margin: 0;
}

.bbs-sibling-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E3EAF4;
}

.bbs-sibling-details[hidden] {
    display: none !important;
}

.bbs-sibling-note {
    margin: 8px 0 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}
