:root {
  --navy: #0b1530;
  --navy-soft: #132145;
  --gold: #c7983d;
  --gold-light: #f1d99d;
  --cream: #f8f5ee;
  --white: #ffffff;
  --ink: #172033;
  --muted: #697386;
  --line: #e6e0d5;
  --success: #178353;
  --danger: #b03b3b;
  --shadow: 0 24px 70px rgba(11, 21, 48, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 10% 4%, rgba(199, 152, 61, .14), transparent 24rem),
    radial-gradient(circle at 90% 18%, rgba(19, 33, 69, .08), transparent 27rem),
    var(--cream);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23c7983d' fill-opacity='.08' d='M40 0 80 40 40 80 0 40Zm0 2.8L2.8 40 40 77.2 77.2 40Z'/%3E%3C/svg%3E");
}
.page-shell { min-height: 100vh; position: relative; }
.topbar {
  max-width: 1180px;
  margin: auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--gold-light); background: var(--navy); border-radius: 14px;
  box-shadow: 0 10px 24px rgba(11,21,48,.18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.secure-note { font-size: 13px; color: var(--muted); }
.secure-note span { color: var(--success); margin-right: 7px; }
main { max-width: 1180px; margin: auto; padding: 44px 24px 30px; }
.hero { text-align: center; max-width: 850px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px;
  color: #7c5b1c; background: rgba(199,152,61,.12); border: 1px solid rgba(199,152,61,.24);
  font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
h1 {
  margin: 23px auto 18px; max-width: 760px; color: var(--navy);
  font-family: "Playfair Display", serif; font-size: clamp(42px, 7vw, 76px); line-height: 1.02;
  letter-spacing: -.045em;
}
h1 span { color: var(--gold); }
.hero > p { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.75; font-size: 17px; }
.search-card {
  margin: 40px auto 0; padding: 24px; max-width: 760px; text-align: left;
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.search-card label { display: block; margin: 0 0 10px 3px; color: var(--navy); font-size: 13px; font-weight: 700; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 17px; top: 50%; width: 22px; transform: translateY(-50%); fill: #8c94a3; }
input {
  width: 100%; height: 58px; padding: 0 18px 0 50px; border: 1.5px solid #d9dce2; border-radius: 15px;
  color: var(--navy); background: #fff; font: 600 17px "DM Sans", sans-serif; outline: none;
  transition: .2s border-color, .2s box-shadow;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,152,61,.13); }
button {
  border: 0; border-radius: 15px; padding: 0 24px; min-height: 58px; cursor: pointer;
  color: #fff; background: var(--navy); font: 700 14px "DM Sans", sans-serif;
  box-shadow: 0 12px 22px rgba(11,21,48,.18); transition: .2s transform, .2s background;
}
button:hover { transform: translateY(-2px); background: var(--navy-soft); }
button span { margin-left: 8px; }
.form-message { margin: 11px 4px 0; color: var(--muted); font-size: 12px; }
.form-message.error { color: var(--danger); }
.result-area { max-width: 760px; margin: 28px auto 0; }
.result-card {
  overflow: hidden; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: reveal .38s ease both;
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.result-head { padding: 24px 26px; display: flex; align-items: center; gap: 16px; color: #fff; background: var(--navy); }
.status-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--success); font-size: 23px; }
.result-head h2 { margin: 0 0 4px; font-family: "Playfair Display", serif; font-size: 26px; }
.result-head p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.result-body { padding: 28px; }
.student-name { margin: 0; color: var(--navy); font: 700 31px "Playfair Display", serif; }
.index-label { margin: 5px 0 24px; color: var(--muted); font-size: 13px; }
.result-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 15px; }
.detail-box { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: #fcfbf8; }
.detail-box > small { display: block; margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.awards { display: flex; flex-wrap: wrap; gap: 8px; }
.award { padding: 8px 11px; border-radius: 99px; color: #73541b; background: #f8edcf; font-size: 12px; font-weight: 700; }
.seat { color: var(--navy); font: 800 34px "Playfair Display", serif; }
.result-note { margin: 18px 0 0; padding-top: 17px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.not-found { padding: 28px; text-align: center; }
.not-found .status-icon { margin: 0 auto 15px; color: var(--danger); background: rgba(176,59,59,.1); }
.not-found h2 { margin: 0 0 8px; color: var(--navy); font-family: "Playfair Display", serif; }
.not-found p { max-width: 500px; margin: auto; color: var(--muted); line-height: 1.65; }
.info-strip {
  margin: 62px auto 0; display: grid; grid-template-columns: repeat(3,1fr); max-width: 940px;
  border-top: 1px solid rgba(11,21,48,.1); border-bottom: 1px solid rgba(11,21,48,.1);
}
.info-strip article { display: flex; align-items: center; gap: 13px; padding: 24px 20px; }
.info-strip article + article { border-left: 1px solid rgba(11,21,48,.1); }
.info-strip span { color: var(--gold); font: 700 21px "Playfair Display", serif; }
.info-strip strong, .info-strip small { display: block; }
.info-strip strong { color: var(--navy); font-size: 13px; }
.info-strip small { margin-top: 4px; color: var(--muted); font-size: 11px; }
footer { max-width: 1180px; margin: 38px auto 0; padding: 22px 24px 28px; display: flex; justify-content: space-between; border-top: 1px solid rgba(11,21,48,.08); color: var(--muted); font-size: 11px; }
@media (max-width: 700px) {
  .topbar { padding: 20px 18px; }
  .secure-note { display: none; }
  main { padding: 30px 16px 20px; }
  h1 { font-size: 44px; }
  .hero > p { font-size: 15px; }
  .search-card { padding: 17px; border-radius: 20px; }
  .input-row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .result-grid { grid-template-columns: 1fr; }
  .result-head, .result-body { padding: 21px; }
  .student-name { font-size: 27px; }
  .info-strip { grid-template-columns: 1fr; margin-top: 42px; }
  .info-strip article + article { border-left: 0; border-top: 1px solid rgba(11,21,48,.1); }
  footer { display: block; text-align: center; }
}
.mandatory-card {
  max-width: 940px; margin: 48px auto 0; padding: 28px; display: grid;
  grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: #fff8e8; border: 1px solid rgba(199,152,61,.35); border-radius: 24px;
  box-shadow: 0 20px 55px rgba(11,21,48,.08);
}
.mandatory-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--navy); color: var(--gold-light); font-size: 23px; font-weight: 800; }
.mandatory-label { color: #8a641d; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mandatory-card h2 { margin: 7px 0 10px; color: var(--navy); font: 700 28px "Playfair Display", serif; }
.mandatory-card p { margin: 0; max-width: 760px; color: #5f6470; line-height: 1.7; font-size: 14px; }
.mandatory-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.mandatory-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 17px; border-radius: 12px; color: #fff; background: var(--navy); text-decoration: none; font-size: 13px; font-weight: 700; transition: .2s transform, .2s background; }
.mandatory-actions a:hover { transform: translateY(-2px); background: var(--navy-soft); }
.mandatory-actions a.secondary { color: var(--navy); background: #fff; border: 1px solid rgba(11,21,48,.14); }
@media (max-width:700px) {
  .mandatory-card { grid-template-columns: 1fr; padding: 21px; margin-top: 34px; }
  .mandatory-card h2 { font-size: 24px; }
  .mandatory-actions { display: grid; }
  .mandatory-actions a { justify-content: center; }
}
