@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #172f55;
    --muted: #68758a;
    --paper: #eef0fb;
    --panel: #ffffff;
    --line: #dfe2ef;
    --accent: #d8ed4f;
    --accent-dark: #5b55a7;
    --navy: #1e3d6b;
    --lavender: #7771c6;
    --pass: #087443;
    --fail: #bc3d3d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(135deg, #e4e6fa 0%, transparent 40%), linear-gradient(315deg, #d9e5f3 0%, transparent 42%), var(--paper);
    font-family: 'DM Sans', sans-serif;
}

.page-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 18px;
}

.lookup-panel {
    width: min(100%, 720px);
    padding: clamp(30px, 6vw, 68px);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(24, 33, 31, .1);
    box-shadow: 0 30px 80px rgba(24, 33, 31, .14);
    position: relative;
}

.lookup-panel::after {
    content: '';
    position: absolute;
    top: -110px;
    right: -100px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(140, 157, 0, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(140, 157, 0, .04), 0 0 0 56px rgba(140, 157, 0, .025);
    pointer-events: none;
}

.lookup-panel::before {
    content: '';
    display: block;
    width: 74px;
    height: 7px;
    margin-bottom: 34px;
    background: var(--accent);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark { display: grid; place-items: center; width: 62px; height: 62px; border: 4px solid var(--navy); outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 50%; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.brand-name { max-width: 190px; color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2 { color: var(--navy); font-family: 'Space Grotesk', sans-serif; }

h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.intro { max-width: 520px; margin: 20px 0 38px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.search-form label { display: block; margin-bottom: 9px; font-weight: 700; }
.search-row { display: flex; gap: 10px; }
.back-link { display: inline-block; margin-top: 22px; color: var(--navy); font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--lavender); text-decoration: underline; }

input, button { min-height: 54px; border-radius: 2px; font: inherit; }
input { width: 100%; padding: 0 16px; border: 1px solid #c5cbdb; background: #fbfcff; color: var(--ink); outline-color: var(--lavender); }
button { padding: 0 22px; border: 1px solid var(--navy); background: var(--navy); color: #ffffff; cursor: pointer; font-weight: 700; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
button:hover { background: var(--lavender); }

.message { margin-top: 26px; padding: 16px; background: #f1f4ef; color: var(--muted); }
.message.success { background: #d9f2e3; color: var(--pass); }
.error { background: #fff0ed; color: var(--fail); }
.upload-form { display: grid; gap: 12px; }
.upload-form label { font-weight: 700; }
.upload-form input[type="file"] { padding: 14px; height: auto; }
.file-help { margin: 0 0 8px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.upload-panel h1 { font-size: clamp(2rem, 6vw, 3rem); }
.result-card { margin-top: 34px; padding: 28px; border: 1px solid var(--line); background: #fbfcf8; }
.result-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.congrats-message { max-width: 430px; margin: 0; color: var(--ink); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; }
.congrats-message strong { color: var(--navy); font-family: 'Space Grotesk', sans-serif; }
.fail-message strong { color: var(--fail); }
.student-meta { margin: 9px 0 0; color: var(--muted); }
.status-block { min-width: 142px; text-align: center; }
.status { display: block; padding: 14px 18px; font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; }
.status.pass { background: #d9f2e3; color: var(--pass); }
.status.fail { background: #ffe1dd; color: var(--fail); }

@media (max-width: 560px) {
    .search-row, .result-heading { flex-direction: column; align-items: stretch; }
    .result-heading { display: flex; }
    button { width: 100%; }
    .status-block { width: 100%; }
}
