/* ==========================================================================
   BIP Assessment Hub — Two-Panel Entry Page
   ========================================================================== */

/* Wrapper: side-by-side on desktop, stacked on mobile */
.bip-hub-wrapper {
    display: flex;
    flex-direction: row;
    gap: 32px;
    max-width: 960px;
    margin: 40px auto;
    align-items: stretch;
}

/* ── Individual panel ─────────────────────────────────────────────────────── */
.bip-hub-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    border: 2px solid #000;
    padding: 36px 32px;
    background: #f7f9fb;
    box-sizing: border-box;
}

/* ── Heading ──────────────────────────────────────────────────────────────── */
.bip-hub-panel__heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    text-shadow: none;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    color: #111;
    letter-spacing: 0.04em;
}

/* ── Instructions paragraph ───────────────────────────────────────────────── */
.bip-hub-panel__instructions {
    font-size: 0.97rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* ── Form area ────────────────────────────────────────────────────────────── */
/* .bip-hub-panel__form moved below with button styles */

/* ── Code input ───────────────────────────────────────────────────────────── */
.bip-hub-code-input {
    width: 80%;
    padding: 16px 18px;
    font-size: 1.15rem;
    border: 1px solid #999;
    border-radius: 3px;
    box-sizing: border-box;
    letter-spacing: 0.03em;
    transition: border-color 0.15s;
    outline: none;
}

.bip-hub-code-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* ── Button ───────────────────────────────────────────────────────────────── */
.bip-hub-panel__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.bip-hub-btn {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    background-color: #8edc00;
    color: #000;
    border: none;
    border-radius: 0;
    padding: 0.5em 2em;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-align: center;
    width: auto;
}

.bip-hub-btn:hover {
    background-color: #7acb00;
    color: #000;
}

.bip-hub-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Error message ────────────────────────────────────────────────────────── */
.bip-hub-error {
    font-size: 0.88rem;
    line-height: 1.2;
    color: #b32d2e;
    padding: 6px 0 0;
    min-height: 1.2em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.bip-hub-panel__footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.87rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.bip-hub-panel__footer a {
    color: #111;
    text-decoration: underline;
}

.bip-hub-panel__footer a:hover {
    color: #555;
}

/* ── Personal results view ────────────────────────────────────────────────── */
.bip-personal-results {
    max-width: 600px;
    margin: 40px auto;
}

.bip-personal-results__context {
    font-size: 1rem;
    color: #444;
    margin-bottom: 24px;
}

.bip-personal-scores {
    margin-top: 20px;
    border: 2px solid #000;
    padding: 24px 28px;
}

.bip-personal-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1rem;
}

.bip-personal-score-row:last-child {
    border-bottom: none;
}

.bip-personal-score-label {
    color: #222;
    font-weight: 500;
}

.bip-personal-score-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.bip-hub-error-block {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    border: 2px solid #000;
    color: #b32d2e;
}

.bip-hub-no-code {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    border: 2px solid #000;
    color: #333;
}

/* ── Loading spinner state ────────────────────────────────────────────────── */
.bip-hub-btn--loading {
    opacity: 0.7;
    cursor: wait;
}

/* ── Mobile: stack vertically, assessment on top ──────────────────────────── */
@media (max-width: 680px) {
    .bip-hub-wrapper {
        flex-direction: column;
        gap: 24px;
        margin: 24px auto;
        padding: 0 16px;
    }

    .bip-hub-panel {
        padding: 28px 20px 22px;
    }

    .bip-hub-panel--right {
        order: 2;
    }

    .bip-hub-panel--left {
        order: 1;
    }
}