/*
 * Developer: MexTech Limited
 * Licenced: Naijasearch is officially licenced and authorized to be used from MexTech Limited
 * Copyright: (c) 2026 All Rights Reserved, MexTech Limited (https://mextechltd.name.ng).
 */

.pb {
    padding-bottom: 112px;
    background: var(--canvas);
}

.pb *,
.pb *::before,
.pb *::after {
    box-sizing: border-box;
}

.pb-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 0;
    background: linear-gradient(125deg, var(--brand-deep) 0%, var(--brand-strong) 58%, var(--brand) 100%);
    color: #fff;
}

.pb-hero::after {
    content: "";
    position: absolute;
    top: -280px;
    right: -120px;
    width: 460px;
    height: 460px;
    border: 70px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.pb-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 30px;
}

.pb-hero__copy {
    max-width: 700px;
}

.pb-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.pb-hero h1 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.pb-hero__copy p {
    margin: 12px 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
}

.pb-hero__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pb-quicklink {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--fast), transform var(--fast);
}

.pb-quicklink:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.pb-hero__aside {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.pb-hero__ring {
    display: grid;
    place-content: center;
    width: 92px;
    height: 92px;
    border: 2px solid rgba(207, 227, 106, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.pb-hero__ring b {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.pb-hero__ring small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pb-hero__note {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    line-height: 1.6;
}

.pb-hero__track {
    height: 5px;
    background: rgba(255, 255, 255, 0.16);
}

.pb-hero__track span {
    display: block;
    width: 100%;
    height: 100%;
    background: #cfe36a;
    transform: scaleX(0.2);
    transform-origin: left center;
    transition: transform var(--normal);
}

.pb-shell {
    padding-top: 26px;
}

.pb-grid {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.pb-rail {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--sh-1);
}

.pb-rail__title {
    padding: 17px 18px 13px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 800;
}

.pb-steps {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px;
}

.pb-step {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-2);
    text-align: left;
    cursor: pointer;
    transition: background var(--fast), color var(--fast);
}

.pb-step:hover {
    background: var(--surface-2);
}

.pb-step.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.pb-step__n {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface-2);
    font-size: 0.68rem;
    font-weight: 800;
}

.pb-step.is-active .pb-step__n,
.pb-step.is-done .pb-step__n {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.pb-step__text {
    flex: 1;
    min-width: 0;
}

.pb-step__text b {
    display: block;
    font-size: 0.82rem;
    font-weight: 750;
}

.pb-step__text small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pb-step__tick {
    display: none;
    color: var(--brand);
}

.pb-step.is-done .pb-step__tick {
    display: block;
}

.pb-rail__help {
    display: flex;
    gap: 10px;
    margin: 4px 12px 14px;
    padding: 12px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: var(--brand-soft-2);
}

.pb-rail__help > span {
    flex: none;
    color: var(--brand-strong);
}

.pb-rail__help p {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.73rem;
    line-height: 1.5;
}

.pb-rail__help b {
    color: var(--brand-strong);
}

.pb-content {
    min-width: 0;
}

.pb-panel {
    display: none;
}

.pb-panel.is-active {
    display: block;
    animation: pb-in 240ms var(--ease) both;
}

@keyframes pb-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pb-panel__head {
    margin-bottom: 18px;
}

.pb-panel__kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--brand-strong);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pb-panel__head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 760;
    letter-spacing: -0.025em;
}

.pb-panel__head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.pb-card {
    padding: clamp(18px, 3vw, 26px);
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--sh-1);
}

.pb-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.pb-card__n {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.pb-card__head h3 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 780;
}

.pb-card__head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.pb-card__head > div {
    min-width: 0;
}

.pb-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid var(--danger-line);
    border-radius: 14px;
    background: var(--danger-soft);
    color: var(--danger-ink);
    font-size: 0.82rem;
    line-height: 1.55;
}

.pb-alert__icon {
    flex: none;
}

.pb-alert strong,
.pb-alert span {
    display: block;
}

.pb-alert--soft {
    border-color: var(--amber-line);
    background: var(--amber-soft);
    color: var(--amber-ink);
}

.pb-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}

.pb-options--two {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.pb-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.pb-option:hover {
    transform: translateY(-1px);
}

.pb-option.is-selected {
    border-color: var(--brand);
    background: var(--brand-soft-2);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.pb-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pb-option b {
    font-size: 0.84rem;
    font-weight: 750;
}

.pb-option small {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.4;
}

.pb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-bottom: 16px;
}

.pb-field > label,
.pb-label {
    font-size: 0.81rem;
    font-weight: 720;
}

.pb-field .input,
.pb-field .select,
.pb-field .textarea {
    width: 100%;
    border-color: var(--line-strong);
    border-radius: 11px;
    font-size: 0.91rem;
}

.pb-field .textarea {
    min-height: 118px;
    line-height: 1.6;
    resize: vertical;
}

.pb-field--error .input,
.pb-field--error .select,
.pb-field--error .textarea,
.pb-field--error .combo__input {
    border-color: var(--danger);
}

.pb-hint {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.5;
}

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

.pb-field--wide {
    grid-column: 1 / -1;
}

.pb-review {
    padding: 22px;
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    background: var(--brand-soft-2);
}

.pb-review h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 780;
}

.pb-review ul {
    display: grid;
    gap: 9px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.pb-review li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-2);
    font-size: 0.8rem;
    line-height: 1.45;
}

.pb-review li svg {
    flex: none;
    margin-top: 2px;
    color: var(--brand);
}

.pb-review p {
    margin: 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.pb .routeblock {
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: var(--surface-2);
    padding: 18px;
    margin-bottom: 14px;
}

.pb .routesteps,
.pb .routelegs {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px dashed var(--line-strong);
}

.pb .pronlist__slot {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-2);
    padding: 12px;
    margin-bottom: 10px;
}

.pb .identityrow {
    margin-bottom: 12px;
}

.pb .uploader__zone {
    border-radius: 14px;
}

.pb .imgrid {
    margin-bottom: 14px;
}

.pb-dock {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 -6px 26px rgba(13, 26, 19, 0.07);
}

.pb-dock__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-dock__status {
    flex: 1;
    min-width: 0;
}

.pb-dock__status span {
    display: block;
    font-size: 0.82rem;
    font-weight: 780;
}

.pb-dock__status small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    padding: 11px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--fast), background var(--fast);
}

.pb-nav:hover {
    transform: translateY(-1px);
}

.pb-nav--back {
    border-color: transparent;
    background: var(--surface-2);
    color: var(--ink-2);
}

.pb-nav--next,
.pb-nav--submit {
    min-width: 142px;
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.pb-nav--next:hover,
.pb-nav--submit:hover {
    background: var(--brand-strong);
    color: #fff;
}

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

.pb-draft {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: var(--brand-soft-2);
    color: var(--ink-2);
    font-size: 0.82rem;
}

.pb-draft span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pb-draft button {
    flex: none;
    border: 0;
    background: none;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
}

.pb-step.is-complete .pb-step__tick {
    display: block;
}

.pb-nav--review {
    border-color: var(--brand-line);
    background: var(--brand-soft-2);
    color: var(--brand-strong);
}

.pb-sheet {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(9, 19, 14, 0.52);
    animation: pb-in var(--normal);
}

.pb-sheet[hidden] {
    display: none;
}

.pb-sheet__card {
    width: min(520px, 100%);
    max-height: min(78vh, 680px);
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(9, 19, 14, 0.3);
}

.pb-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pb-sheet__head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.pb-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-2);
    cursor: pointer;
}

.pb-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pb-review__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
}

.pb-review__row span {
    color: var(--muted);
}

.pb-review__row b {
    overflow: hidden;
    max-width: 62%;
    color: var(--ink);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-sheet__note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .pb-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pb-rail {
        position: static;
    }

    .pb-rail__title,
    .pb-rail__help {
        display: none;
    }

    .pb-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 10px;
        scrollbar-width: thin;
    }

    .pb-step {
        flex: none;
        width: auto;
        min-width: 148px;
        border: 1px solid var(--line);
    }

    .pb-step__text small {
        display: none;
    }

    .pb-hero__aside {
        display: none;
    }
}

@media (max-width: 640px) {
    .pb {
        padding-bottom: 104px;
    }

    .pb-hero {
        padding-top: 24px;
    }

    .pb-hero__inner {
        padding-bottom: 24px;
    }

    .pb-card {
        padding: 16px;
        border-radius: 14px;
    }

    .pb-formgrid {
        grid-template-columns: 1fr;
    }

    .pb-options,
    .pb-options--two {
        grid-template-columns: 1fr;
    }

    .pb-dock__status small {
        display: none;
    }

    .pb-nav {
        padding: 10px 13px;
        font-size: 0.78rem;
    }

    .pb-nav--next,
    .pb-nav--submit {
        min-width: 0;
        flex: 1;
    }

    .pb-nav--review span {
        display: none;
    }

    .pb-sheet {
        padding: 0;
    }

    .pb-sheet__card {
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
    }

    .pb .routeblock {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-panel.is-active,
    .pb-nav:hover,
    .pb-quicklink:hover,
    .pb-option:hover {
        animation: none;
        transform: none;
    }
}
