/* ================================================================
   style.css — Public portal custom styles
   ================================================================ */

/* ── Reset ───────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

/* ── BODY (LIGHT THEME) ───────────────── */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    color: #1e293b;
    background: #e9eef5;
    /* light grey */
}

/* REMOVE DARK EFFECTS */
body::before,
body::after {
    display: none;
}

/* ── Top bar (ORANGE + BLUE TEXT) ─────── */
.hs-topbar {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #f97316;
    border-bottom: 3px solid #1e3a8a;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hs-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
}

.hs-gov {
    font-size: .72rem;
    color: #ffffff;
}

.hs-board {
    font-size: .88rem;
    font-weight: 700;
    color: #ffffff;
}

.hs-logo-fallback {
    display: none;
}

.hs-logo-error+.hs-logo-fallback {
    display: flex;
}

/* ── Main area ───────────────────────── */
.hs-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

/* ── Card (WHITE) ───────────────────── */
.hs-card {
    background: rgba(255, 255, 255, 0.75);
    /* semi glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    border-top: 5px solid #2563eb;
    /* blue highlight */

    padding: 26px 28px;
    /* slightly better spacing */

    width: 600px;
    height: 450px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}



/* ── Badge ──────────────────────────── */
.hs-exam-badge {
    background: #2563eb;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ── Titles ─────────────────────────── */
.hs-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 6px;
    margin-bottom: 6px;
}

.hs-sub {
    margin-bottom: 18px;
    font-size: .78rem;
    color: #475569;
}

.hs-step-label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;

    color: #1e3a8a;
    margin-top: 18px;
    margin-bottom: 10px;
}

.hs-step-label::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    background: #2563eb;
    color: #fff;

    font-size: .7rem;
    font-weight: 700;
    border-radius: 50%;
}

/* ── Stream grid ────────────────────── */
.hs-stream-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.hs-stream-option {
    cursor: pointer;
}

.hs-stream-option input {
    display: none;
}

/* STREAM BOX BASE */
.hs-stream-box {
    padding: 10px 6px 8px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hs-stream-option:hover .hs-stream-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* INDIVIDUAL COLORS */
.hs-stream-option:nth-child(1) .hs-stream-box {
    background: #3b82f6;
    /* blue */
}

.hs-stream-option:nth-child(2) .hs-stream-box {
    background: #22c55e;
    /* green */
}

.hs-stream-option:nth-child(3) .hs-stream-box {
    background: #f59e0b;
    /* amber */
}

.hs-stream-option:nth-child(4) .hs-stream-box {
    background: #ef4444;
    /* red */
}

/* TEXT */
.hs-stream-icon {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.hs-stream-name {
    font-size: .75rem;
    font-weight: 600;
}

.hs-stream-sub {
    font-size: .65rem;
}

/* SELECTED */
.hs-stream-option.selected .hs-stream-box {
    outline: 3px solid #0f172a;
    transform: scale(1.03);
}

/* ── Input ─────────────────────────── */
.hs-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.hs-input {
    background: rgba(255, 255, 255, 0.9);
}

.hs-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.hs-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    padding: 11px 14px 11px 38px;
}

.hs-input::placeholder {
    color: #94a3b8;
}

.hs-input:focus {
    border-color: #2563eb;
}

/* ── Error ─────────────────────────── */
.hs-error {
    font-size: .78rem;
    color: #ef4444;
    margin-bottom: 8px;
}

.hs-submit-wrap {
    margin-top: 18px;
    padding-top: 14px;
    width: 100%;


    display: flex;
    /* 👉 enables alignment */
    justify-content: flex-end;
    /* 👉 pushes button to right */
}

/* ── Button ───────────────────────── */
.hs-btn {
    width: auto;
    /* 👉 remove fixed 40% */
    min-width: 180px;
    /* 👉 keeps nice size */
    background: #2563eb;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    /* 👉 better horizontal padding */
    cursor: pointer;
    margin-top: 14px;
}

.hs-btn:hover {
    opacity: .9;
}

/* ── Footer ───────────────────────── */
.hs-footer {
    flex-shrink: 0;
    padding: 6px;
    text-align: center;
    font-size: .68rem;
    color: #475569;
    background: #e2e8f0;
    border-top: 1px solid #cbd5e1;
}

/* ── Responsive ───────────────────── */
@media(max-width:420px) {
    .hs-card {
        padding: 16px;
    }

    .hs-title {
        font-size: 1rem;
    }

    .hs-stream-name {
        font-size: .68rem;
    }
}
/* ── Captcha row ─────────────────────────────────── */
.hs-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.hs-captcha-label {
    font-size: .78rem;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
    flex-shrink: 0;
}
.hs-captcha-q {
    display: inline-block;
    background: #fff3e0;
    color: #f97316;
    font-size: .95rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: .04em;
    white-space: nowrap;
    flex-shrink: 0;
}
.hs-captcha-eq {
    font-size: .9rem;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
}
.hs-captcha-input {
    width: 80px !important;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .9rem;
    text-align: center;
    color: #0f172a;
    background: #fff;
    outline: none;
    flex-shrink: 0;
}
.hs-captcha-input:focus { border-color: #2563eb; }
.hs-captcha-refresh {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f97316;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hs-captcha-refresh:hover { background: #ea6c00; }

/* ── Brand strip — inside card, flush bottom ─────── */
/* Card needs overflow:hidden for this to work */
.hs-card {
    overflow: hidden;
    height: auto !important;
    min-height: 450px;
}
.hs-brand-strip {
    text-align: center;
    padding: 6px 10px;
    margin: 10px -28px -26px -28px;
    background: #f97316;
    color: #fff;
    font-size: .65rem;
    letter-spacing: .06em;
}
.hs-brand-strip a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
