:root {
  color-scheme: light;
  --navy: #ab2523;       /* VJU main red */
  --navy-2: #8f1d1b;     /* VJU darker red for hover */
  --red: #007f3e;        /* VJU green */
  --ink: #1f2933;
  --muted: #3e4c59;
  --line: #e4e7eb;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --success: #007f3e;
  --danger: #ab2523;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #ffffff;
}

.topbar {
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--red) 0 28%,
    var(--navy) 28% 100%
  );
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.brand-name {
  font-weight: 750;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: start;
  gap: 52px;
}

.intro {
  padding-top: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1 {
  max-width: 610px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-line {
  display: inline-block;
  margin-top: 7px;
  color: #7a8493;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
}

.contact-link,
.contact-link:visited {
  color: #9b4a49;
  font-weight: 400;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 540px;
  margin-top: 28px;
  padding: 15px 17px;
  border: 1px solid rgba(11, 43, 85, 0.1);
  border-radius: 14px;
  color: #4c596d;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.shield {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--success);
  background: #e8f6f0;
  font-size: 15px;
}

.card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

@media (min-width: 861px) {
  .card {
    margin-top: 38px;
  }
}

.card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.card-copy {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.field {
  margin-top: 17px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #2c3850;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}

input::placeholder {
  color: #a0a8b5;
}
input:focus {
  border-color: #4f78a8;
  box-shadow: 0 0 0 4px rgba(23, 63, 115, 0.1);
}

#lookup-form button {
  width: 100%;
  height: 50px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 12px 26px rgba(11, 43, 85, 0.2);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}

#lookup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(11, 43, 85, 0.25);
}
#lookup-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.message {
  display: none;
  margin-top: 20px;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.message.show {
  display: block;
}
.message.error {
  color: var(--danger);
  background: #fff0f1;
  border: 1px solid #f3c8ce;
}

.result {
  display: none;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.result.show {
  display: block;
  animation: reveal 0.25s ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-name {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}
.result-code {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--success);
  background: #e8f6f0;
  font-size: 12px;
  font-weight: 750;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 10px;
  background: var(--soft);
}

.info.wide {
  grid-column: 1 / -1;
}
.info-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.info-value {
  margin-top: 5px;
  color: #26334a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.info-value.empty {
  color: #8a94a3;
  font-weight: 500;
}

footer {
  margin-top: 36px;
  color: #7c8798;
  font-size: 12px;
  text-align: center;
}

.banner-wrapper {
  position: relative;
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
  aspect-ratio: 2548 / 1352;
  width: 100%;
  background: #f5f7fa;
}

.banner-track {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  width: 25%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.banner-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 48px !important;
  font-weight: 300 !important;
  cursor: pointer !important;
  user-select: none !important;
  z-index: 10 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
  outline: none !important;
  padding: 0 !important;
  line-height: 1 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s ease, transform 0.2s ease !important;
}

.banner-nav:hover {
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.2) !important;
}

.banner-nav-prev {
  left: 8px !important;
  right: auto !important;
}

.banner-nav-next {
  right: 8px !important;
  left: auto !important;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.banner-wrapper:hover .banner-nav,
.banner-wrapper:hover .banner-dots {
  opacity: 1;
  pointer-events: auto;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.banner-dot.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 860px) {
  .page {
    padding-top: 22px;
  }
  .brand {
    margin-bottom: 28px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .intro {
    padding-top: 0;
  }
  h1 {
    max-width: 660px;
    font-size: clamp(36px, 10vw, 52px);
  }
  .lead {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 22px, 1120px);
  }
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .brand-name {
    font-size: 14px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .card {
    border-radius: 19px;
    padding: 22px 18px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .info.wide {
    grid-column: auto;
  }
}

#date-of-birth {
  cursor: pointer;
}

.flatpickr-calendar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 43, 85, 0.1) !important;
  box-shadow: 0 10px 30px rgba(11, 43, 85, 0.1) !important;
  border-radius: 14px !important;
}
.flatpickr-day.selected {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}

.contact-line {
  font-size: 13px;
  font-weight: normal;
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
}

.contact-link {
  color: var(--navy) !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

