:root {
  --ink: #172033;
  --muted: #647089;
  --line: #dce2ed;
  --blue: #2864c7;
  --blue-dark: #173f86;
  --surface: #ffffff;
  --soft: #f3f6fb;
  --green: #16845b;
  --red: #b64545;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(circle at 10% 0%, #dce9ff 0, transparent 34%), linear-gradient(135deg, #eef3fb 0%, #f9fafc 55%, #e8edf5 100%);
}

.lookup-page { min-height: 100vh; padding: 34px 20px 70px; }
.back-link { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.lookup-shell { width: min(760px, 100%); margin: 54px auto 0; }
.intro { max-width: 650px; }
.brand-mark { color: var(--blue-dark); font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.brand-mark b { color: #e18a20; }
.eyebrow { margin: 48px 0 12px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.intro-text { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: 1.07rem; line-height: 1.65; }
.lookup-form { margin-top: 36px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 20px 50px rgba(40, 62, 100, .09); }
.lookup-form label { display: block; margin-bottom: 10px; font-weight: 700; }
.input-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; padding: 15px 17px; border: 1px solid #bcc8dc; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 600; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,199,.15); }
button { padding: 0 22px; border: 0; border-radius: 10px; color: #fff; background: var(--blue-dark); cursor: pointer; font: inherit; font-weight: 700; }
button:hover { background: var(--blue); }
.hint { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 10px; color: #8c3030; background: #fff0f0; border: 1px solid #f2caca; }
.result-card { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 50px rgba(40, 62, 100, .1); }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-label { margin: 0 0 7px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 0; font-size: 1.7rem; }
.status-badge { padding: 8px 13px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.is-active { color: var(--green); background: #e6f7ef; }
.is-inactive { color: var(--red); background: #fff0f0; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; padding: 24px 0; }
.result-field-wide { grid-column: 1 / -1; }
.result-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .8rem; }
.result-field strong { font-size: .98rem; }
.verification-note { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 10px; color: #236c50; background: #eefaf4; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.check-icon { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--green); font-size: .8rem; }
[hidden] { display: none; }

@media (max-width: 560px) {
  .lookup-page { padding: 24px 16px 50px; }
  .lookup-shell { margin-top: 42px; }
  .lookup-form, .result-card { padding: 20px; }
  .input-row { display: grid; grid-template-columns: 1fr; }
  button { min-height: 48px; }
  .result-header { display: block; }
  .status-badge { display: inline-block; margin-top: 14px; }
  .result-grid { grid-template-columns: 1fr; gap: 17px; }
}

/* Digital verification record */
body {
  background: #e9eef5;
}

.lookup-page {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #edf3fa 0%, #f9fbfd 48%, #dfe7f1 100%);
}

.lookup-page::before,
.lookup-page::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(40, 100, 199, .08);
  content: "";
  transform: rotate(-18deg);
}

.lookup-page::before { width: 420px; height: 420px; top: -180px; right: -110px; }
.lookup-page::after { width: 260px; height: 260px; bottom: -150px; left: -80px; }
.back-link, .lookup-shell { position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(23, 63, 134, .14); border-radius: 8px; background: rgba(255,255,255,.6); }
.lookup-shell { width: min(920px, 100%); margin-top: 42px; }
.brand-mark { display: inline-block; padding: 8px 12px; border-radius: 5px; color: #fff; background: #173f86; font-size: .9rem; letter-spacing: .12em; }
.brand-mark b { color: #f2b44b; }
.eyebrow { margin-top: 35px; }
h1 { max-width: 700px; font-size: clamp(2.45rem, 5vw, 4.2rem); }
.intro-text { max-width: 690px; }
.lookup-form { max-width: 850px; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 16px 40px rgba(22, 45, 81, .08); }
.lookup-form label { color: #173f86; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
input { border-radius: 7px; background: #f8fafc; }
button { border-radius: 7px; background: #e28b21; }
button:hover { background: #c97513; }
.feedback { border-radius: 8px; }
.result-card { overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 24px 55px rgba(22, 45, 81, .16); }
.record-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 25px; color: #fff; background: #173f86; }
.record-brand { display: block; color: #f2b44b; font-family: "Space Grotesk", sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.record-banner strong { display: block; margin-top: 3px; font-size: .88rem; letter-spacing: .16em; }
.record-type { padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .11em; }
.record-content { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px 25px 25px; }
.identity-column { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 5px; }
.portrait-placeholder { display: grid; place-items: center; width: 132px; height: 160px; border: 1px solid #c4d0e0; border-radius: 5px; color: #285a9d; background: linear-gradient(145deg, #d9e7f6, #f3f7fb); font-family: "Space Grotesk", sans-serif; font-size: 2.2rem; font-weight: 700; letter-spacing: .08em; }
.portrait-label { color: #7a8798; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.identity-column .status-badge { margin-top: 2px; }
.record-details { min-width: 0; }
.result-header { align-items: center; padding-bottom: 18px; border-bottom: 1px solid #dce2ed; }
.result-label { color: #708096; }
h2 { color: #172033; font-size: 1.9rem; }
.verified-mark { color: #16845b; font-size: .74rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.result-grid { gap: 18px 24px; padding: 20px 0 5px; }
.result-field { padding-bottom: 10px; border-bottom: 1px solid #edf1f6; }
.result-field span { color: #7a8798; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.result-field strong { color: #172033; font-size: .95rem; }
.result-field-wide strong { font-size: 1.05rem; }
.verification-note { margin: 0 25px; border-radius: 5px; }
.record-disclaimer { margin: 18px 25px 22px; color: #7a8798; font-size: .72rem; line-height: 1.5; text-align: center; }

@media (max-width: 620px) {
  .record-banner { align-items: flex-start; flex-direction: column; }
  .record-content { grid-template-columns: 1fr; gap: 20px; }
  .identity-column { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .portrait-placeholder { width: 84px; height: 102px; font-size: 1.5rem; }
  .portrait-label { align-self: center; }
  .identity-column .status-badge { margin-left: auto; }
  .result-header { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* Match the DMV Express home visual language */
:root {
  --ink: #f3f4f6;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .14);
  --blue: #4d8eea;
  --blue-dark: #172c62;
  --surface: rgba(18, 24, 43, .92);
  --green: #63d5a3;
  --red: #ff9c9c;
}

body { color: var(--ink); background: #090d17; }
.lookup-page {
  background: radial-gradient(circle at 8% 4%, rgba(125, 92, 220, .28), transparent 32%), radial-gradient(circle at 90% 10%, rgba(36, 108, 208, .2), transparent 27%), linear-gradient(180deg, #090d17 0%, #12182b 100%);
}
.lookup-page::before, .lookup-page::after { border-color: rgba(156, 201, 255, .08); }
.back-link { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.brand-mark { color: #fff; background: #4a2f8f; }
.eyebrow { color: #e5d8ff; }
h1 { color: #fff; text-shadow: 0 10px 24px rgba(0,0,0,.22); }
.intro-text { color: rgba(255,255,255,.78); }
.lookup-form { border-color: rgba(255,255,255,.16); background: rgba(18,24,43,.82); box-shadow: 0 18px 35px rgba(5,8,20,.25); }
.lookup-form label { color: #fff; }
input { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.08); }
input::placeholder { color: rgba(255,255,255,.58); }
input:focus { border-color: #9cc9ff; box-shadow: 0 0 0 3px rgba(156,201,255,.15); }
button { background: linear-gradient(135deg, #8a6ae8 0%, #6a49d0 32%, #3f6fe0 100%); box-shadow: 0 14px 24px rgba(98,74,196,.32); }
button:hover { background: linear-gradient(135deg, #987cf0 0%, #785be0 32%, #4d7bea 100%); }
.feedback { color: #ffd0d0; border-color: rgba(255,156,156,.35); background: rgba(137,45,61,.26); }
.result-card { border: 1px solid rgba(255,255,255,.16); background: rgba(18,24,43,.94); box-shadow: 0 24px 60px rgba(5,8,20,.38); }
.record-banner { background: linear-gradient(135deg, #381a73 0%, #1559af 100%); }
.record-brand { color: #ffbe5c; }
.record-content { background: rgba(18,24,43,.94); }
.portrait-placeholder { border-color: rgba(156,201,255,.35); color: #c9ddff; background: linear-gradient(145deg, rgba(74,47,143,.8), rgba(21,89,175,.6)); }
.portrait-label, .result-label, .result-field span { color: rgba(255,255,255,.58); }
.result-header, .result-field { border-color: rgba(255,255,255,.12); }
h2, .result-field strong { color: #fff; }
.verified-mark { color: #7be0b5; }
.is-active { color: #8aefc4; background: rgba(22,132,91,.24); }
.is-inactive { color: #ffb5b5; background: rgba(182,69,69,.24); }
.verification-note { color: #b7f1d4; background: rgba(22,132,91,.2); }
.check-icon { color: #10271e; background: #63d5a3; }
.record-disclaimer { color: rgba(255,255,255,.48); }

/* Shared layout with licencia.html and temporal-plates.html */
body {
  min-height: 100vh;
  color: #172033;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 0%, rgba(112,79,213,.3), transparent 33%), radial-gradient(circle at 100% 10%, rgba(56,124,222,.25), transparent 30%), linear-gradient(145deg, #0c1121, #1b2540 58%, #f4f5f9 58%);
}
.lookup-page { min-height: 100vh; padding: 48px 16px 72px; background: transparent; }
.lookup-page::before, .lookup-page::after { display: none; }
.back-link { display: inline-block; width: min(760px, 100%); margin: 0 auto 28px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.85); }
.lookup-shell { width: min(760px, 100%); margin: 0 auto; }
.lookup-card { padding: clamp(24px, 5vw, 52px); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 28px 70px rgba(8,13,31,.27); }
.brand-mark { color: #11182b; background: transparent; padding: 0; }
.eyebrow { margin: 0 0 14px; color: #7450d9; }
h1 { color: #11182b; text-shadow: none; }
.intro-text { color: #68738a; }
.lookup-form { padding-top: 24px; border: 0; border-top: 1px solid #dfe4ee; border-radius: 0; background: transparent; box-shadow: none; }
.lookup-form label { color: #11182b; }
.input-row { display: flex; gap: 10px; }
input { border-color: #cbd3e1; color: #172033; background: #fff; letter-spacing: .05em; text-transform: uppercase; }
input::placeholder { color: #68738a; }
input:focus { border-color: #4675de; outline: 3px solid rgba(70,117,222,.18); box-shadow: none; }
button { border-radius: 10px; padding: .95rem 1.25rem; background: linear-gradient(135deg, #7450d9, #4675de); box-shadow: none; }
button:hover { filter: brightness(1.08); background: linear-gradient(135deg, #7450d9, #4675de); }
.feedback { margin-top: 28px; padding: 20px; border: 1px solid rgba(189,63,80,.3); border-radius: 16px; color: #bd3f50; background: #fff7f8; }
.result-card { margin-top: 28px; padding: 0; border: 1px solid rgba(22,128,92,.35); border-radius: 16px; background: #fff; box-shadow: none; }
.result-header { padding: 18px 20px; background: #f3faf7; border: 0; }
.result-label { color: #68738a; }
h2 { color: #11182b; }
.status-badge { padding: .42rem .7rem; color: #16805c; background: #d9f4e9; }
.is-inactive { color: #bd3f50; background: #fff0f0; }
.result-grid { gap: 1px; padding: 0; background: #dfe4ee; }
.result-field { padding: 15px 20px; border: 0; background: #fff; }
.result-field span { color: #68738a; }
.result-field strong { color: #11182b; }
.verification-note { padding: 14px 20px; color: #236c50; background: #f8fcfa; }
.check-icon { color: #fff; background: #16805c; }

@media (max-width: 560px) {
  .lookup-page { padding-top: 28px; }
  .input-row, .result-header { align-items: stretch; flex-direction: column; }
  button { width: 100%; }
  .result-grid { grid-template-columns: 1fr; gap: 0; }
  .result-field + .result-field { border-top: 1px solid #dfe4ee; }
  .result-field-wide { grid-column: auto; }
}
