.ncpa,
.ncpa * {
    box-sizing: border-box;
}

.ncpa {
    --ncpa-orange: #ef9a48;
    --ncpa-action: #ef9a48;
    --ncpa-hover: #e88932;
    font-family: inherit;
    color: #262a30;
    font-size: inherit;
    line-height: 1.55;
}

.ncpa :where(:not(.btn)) {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.ncpa * { font-family: inherit; }

/* Lowest-priority defaults: the actual theme .btn rules take precedence,
   including future changes. No dependency on Bootstrap or theme variables. */
@layer ncpa-fallback {
    .ncpa .btn {
        padding: 5px 20px;
        border: 1px solid transparent;
        border-radius: 8px;
        font-size: 100%;
        font-weight: 500;
        line-height: 1.5;
        text-transform: uppercase;
        background: var(--button, #ef9a48);
        color: var(--white, #fff);
        transition: background-color .3s ease, color .3s ease;
    }
    .ncpa .btn:hover { background: var(--buttonhover, #e88932); color: var(--white, #fff); }
}

.ncpa [hidden] {
    display: none !important;
}

.ncpa-entry {
    padding: 20px 0;
    background: #fff;
}

/* ACF host only; never change unrelated text blocks or their contents. */
.flx_textblock:has(.ncpa-entry) {
    padding-block: 0 !important;
    margin-block: 0 !important;
}
/* Approved adjacency exception: only the system teaser immediately after it.
   Keep that section's lower spacing and every other teaser unchanged. */
.flx_textblock:has(.ncpa-entry) + .flx_teaserblock {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

.ncpa-entry__card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 38px;
    border: 1px solid #f0e1d2;
    border-radius: 16px;
    background: linear-gradient(115deg, #fff8f0, #fff 66%);
}

.ncpa-entry__icon {
    flex: 0 0 76px;
    width: 76px;
    height: 90px;
    color: var(--ncpa-orange);
}

.ncpa-entry__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
}

.ncpa-entry__copy {
    flex: 1;
    min-width: 0;
}

.ncpa .ncpa-eyebrow {
    margin: 0 0 13px;
    color: #60656b;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .13em;
}

.ncpa-entry h2 {
    margin: 0 0 10px;
    font-size: clamp(23px, 2.1vw, 31px);
    line-height: 1.2;
    font-weight: 700;
    width: auto;
}

.ncpa-entry__copy>p:last-child {
    margin: 0;
    color: #65696e;
    font-size: 15px;
}


.ncpa .ncpa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.ncpa .ncpa-button--secondary,
.ncpa .ncpa-button--secondary:visited {
    border-color: #d8dade;
    color: #34383d;
    background: #fff;
}

.ncpa .ncpa-button--secondary:hover {
    border-color: var(--ncpa-orange);
    background: #fff8f0;
    color: #34383d;
    text-decoration: none !important;
}


.ncpa .ncpa-button--back {
    padding: 5px 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: inherit;
    font-weight: 500;
    line-height: 1.5;
    color: #4f555d;
}
.ncpa .ncpa-button--back:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.ncpa .ncpa-button--back:focus-visible { outline: 3px solid #34383d; outline-offset: 2px; box-shadow: none; }
.ncpa .ncpa-button--back:disabled { visibility: hidden; }

.ncpa .ncpa-button:disabled {
    opacity: .4;
    cursor: default;
}

.ncpa .ncpa-button--primary:disabled {
    opacity: 1;
    background: #73777c;
    border-color: #73777c;
    color: #fff;
    cursor: not-allowed;
    text-decoration: none;
}

.ncpa button:focus-visible,
.ncpa a:focus-visible,
.ncpa input:focus-visible {
    outline: 3px solid #34383d;
    outline-offset: 4px;
}

.ncpa-title:focus {
    outline: none;
}

.ncpa-dialog {
    width: min(740px, calc(100vw - 48px));
    max-width: none;
    max-height: min(840px, calc(100dvh - 64px));
    padding: 0;
    margin: auto;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 100px #10182040;
}

.ncpa-dialog[open] {
    display: flex;
    flex-direction: column;
}

.ncpa-dialog::backdrop {
    background: #111820ae;
}

html.ncpa-modal-open {
    overflow: hidden !important;
    padding-right: var(--ncpa-scrollbar, 0px);
}

.ncpa-dialog__header {
    position: relative;
    padding: 25px 32px 20px;
    border-bottom: 1px solid #eceef0;
    flex-shrink: 0;
}

.ncpa-dialog__brand {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px 15px;
    margin: 0 40px 20px 0;
}

.ncpa-dialog__brand>span {
    color: #73787f;
    font-size: 12px;
    line-height: 1;
    align-self: baseline;
    /* Align to the lettering; its bottom is above the orange dot. */
    transform: translateY(-4px);
    white-space: nowrap;
}

.ncpa .ncpa-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    max-height: 32px;
    object-fit: contain;
}

.ncpa .ncpa-close {
    position: absolute;
    top: 17px;
    right: 19px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #f5f6f7;
    color: #4c535a;
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.ncpa .ncpa-close:hover {
    background: #edeff1;
}

.ncpa-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b727a;
    font-size: 12px;
    margin-bottom: 10px;
}

.ncpa-progress-copy>span:first-child {
    color: #60656b;
    font-weight: 700;
}

.ncpa-progress {
    height: 5px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f1f3;
}

.ncpa-progress>span {
    display: block;
    height: 100%;
    background: var(--ncpa-orange);
}

.ncpa-dialog__body {
    padding: 26px 32px;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
}

.ncpa .ncpa-title {
    margin: 0 0 12px;
    width: auto;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.ncpa .ncpa-hint {
    margin: 0 0 25px;
    color: #6b727a;
    font-size: 14px;
}

.ncpa-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.ncpa-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px 18px;
    border: 1px solid #dfe2e6;
    border-radius: 12px;
    min-height: 77px;
    background: #fff;
    cursor: pointer;
}

.ncpa-option:last-child:nth-of-type(odd) {
    grid-column: 1 / -1;
}

.ncpa-option:hover {
    border-color: var(--ncpa-orange);
    background: #fffcf8;
}

.ncpa-option.is-selected {
    background: #fff6eb;
    border-color: var(--ncpa-orange);
    box-shadow: inset 0 0 0 1px var(--ncpa-orange);
}


.ncpa .ncpa-option input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #999;
    background: #fff;
    cursor: pointer;
    position: relative;
}

/* Radio-Buttons */
.ncpa .ncpa-option input[type="radio"] {
    border-radius: 50%;
}

.ncpa .ncpa-option input[type="radio"]:checked {
    border-color: var(--ncpa-orange);
    background: var(--ncpa-orange);
}

.ncpa .ncpa-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}

/* Checkboxen */
.ncpa .ncpa-option input[type="checkbox"] {
    border-radius: 3px;
}

.ncpa .ncpa-option input[type="checkbox"]:checked {
    background: var(--ncpa-orange);
    border-color: var(--ncpa-orange);
}

.ncpa .ncpa-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.ncpa-option__label {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ncpa-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 36px;
    border-top: 1px solid #eceef0;
    background: #fff;
    flex-shrink: 0;
}

.ncpa-result {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px 26px;
    align-items: center;
    border: 1px solid #f0e1d2;
    border-top: 3px solid var(--ncpa-orange);
    background: linear-gradient(125deg, #fff8f0, #fff 85%);
    border-radius: 18px;
    padding: 28px;
    margin-top: 24px;
}

.ncpa .ncpa-result__image {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: block;
    width: 160px;
    height: 155px;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.ncpa .ncpa-result__name {
    grid-column: 2;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.ncpa .ncpa-result__reason {
    grid-column: 2;
    font-size: 14px;
    margin: 0;
}

.ncpa-result--no-image {
    grid-template-columns: 1fr;
}

.ncpa-result--no-image>.ncpa-result__name,
.ncpa-result--no-image>.ncpa-result__reason {
    grid-column: 1;
}

.ncpa-notes {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 2px solid var(--ncpa-orange);
}

.ncpa-notes p {
    margin: 0 0 7px;
    font-size: 13px;
    color: #646a72;
}

.ncpa-notes p:last-child {
    margin-bottom: 0;
}

.ncpa-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
    margin-top: 25px;
}

.ncpa-actions .ncpa-button {
    min-width: 0;
}

.ncpa-actions> :only-child {
    grid-column: 1 / -1;
}

.ncpa-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1050px) {
    .ncpa-entry__card {
        flex-wrap: wrap;
    }

    .ncpa-entry__card>button {
        margin-left: 104px;
    }
}

@media (max-width: 600px) {
    .ncpa-entry {
        padding: 16px 0;
    }

    .ncpa-entry__card {
        padding: 26px 23px;
        gap: 18px;
    }

    .ncpa-entry__icon {
        flex-basis: 46px;
        width: 46px;
        height: 56px;
    }

    .ncpa-entry__copy {
        flex-basis: 100%;
    }

    .ncpa-entry__card>button {
        width: 100%;
        margin-left: 0;
    }

    .ncpa-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .ncpa-dialog__header {
        padding: 25px 22px 20px;
    }

    .ncpa-dialog__body {
        padding: 25px 22px;
        flex: 1;
    }

    .ncpa-dialog__footer {
        padding: 16px 22px;
        gap: 12px;
    }

    .ncpa-dialog__brand {
        gap: 4px 10px;
    }

    .ncpa .ncpa-logo {
        width: min(165px, 48vw);
    }

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

    .ncpa-option {
        padding: 15px;
        min-height: 65px;
    }

    .ncpa-result {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 15px;
        padding: 18px;
    }

    .ncpa .ncpa-result__image {
        width: 92px;
        height: 92px;
        grid-row: 1;
    }

    .ncpa .ncpa-result__name {
        font-size: 21px;
    }

    .ncpa .ncpa-result__reason {
        grid-column: 1 / -1;
    }

    .ncpa-result--no-image {
        grid-template-columns: 1fr;
    }

    .ncpa-actions {
        grid-template-columns: 1fr;
    }
}
