:root{
  --red:#dc0711;
  --red-dark:#9c0409;
  --dark:#101828;
  --muted:#667085;
  --line:#e5e7eb;
  --cyan:#28b8c7;
  --bg:#f6f8fb;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--dark);
}

.topbar{
  height:38px;
  background:var(--red-dark);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
}

.header{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header-inner{
  max-width:1180px;
  margin:auto;
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-mark{
  width:58px;
  height:58px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--red),#ff5860);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:24px;
  box-shadow:0 12px 30px rgba(220,7,17,.22);
}

.logo-title{
  font-size:20px;
  font-weight:900;
  color:var(--red);
  line-height:1.2;
}

.logo-sub{
  font-size:11.5px;
  font-weight:700;
  color:#475467;
}

.nav{
  display:flex;
  gap:20px;
  font-size:13px;
  font-weight:800;
}

.nav a{
  color:#344054;
  text-decoration:none;
}

.nav a:hover{
  color:var(--red);
}

.hero{
  background:
    linear-gradient(135deg,rgba(220,7,17,.96),rgba(237,25,34,.92)),
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.22),transparent 28%);
  color:#fff;
  min-height:180px;
  display:flex;
  align-items:center;
}

.hero-inner{
  max-width:1180px;
  width:100%;
  margin:auto;
  padding:34px 20px;
}

.breadcrumb{
  font-size:12px;
  font-weight:700;
  opacity:.85;
  margin-bottom:14px;
  text-align:center;
}

.hero h1{
  margin:0;
  text-align:center;
  font-size:30px;
  letter-spacing:.3px;
}

.hero p{
  text-align:center;
  margin:10px 0 0;
  font-size:14px;
  font-weight:600;
  opacity:.92;
}

.wrap{
  max-width:1100px;
  margin:48px auto;
  padding:0 20px;
}

.search-card{
  background:#fff;
  border:1px solid #d9e2ec;
  border-radius:18px;
  padding:26px;
  box-shadow:0 20px 60px rgba(16,24,40,.08);
}

.card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.card-title h2{
  margin:0;
  font-size:20px;
}

.badge{
  background:#fdeceb;
  color:#b3160a;
  border:1px solid #f6cac6;
  border-radius:999px;
  padding:8px 13px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.mode-box{
  background:#fafafa;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  display:grid;
  gap:12px;
}

.radio-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.radio-row input{
  width:18px;
  height:18px;
  accent-color:var(--red);
}

.form-box{
  margin-top:16px;
  background:#fbfbfb;
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 260px;
  gap:16px;
}

label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#344054;
  margin-bottom:8px;
}

.input-wrap{
  position:relative;
}

.input-wrap i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#98a2b3;
}

input[type=text]{
  width:100%;
  height:46px;
  border:1px solid #cfd6df;
  border-radius:9px;
  padding:0 14px 0 42px;
  font-size:14px;
  outline:none;
  background:#fff;
}

input[type=text]:focus{
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(220,7,17,.12);
}

.actions{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  min-width:180px;
  height:46px;
  border:0;
  border-radius:9px;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
  transition:.2s;
}

.btn-search{
  background:var(--red);
  color:#fff;
}

.btn-search:hover{
  background:var(--red-dark);
}

.btn-clear{
  background:#fff;
  color:#475467;
  border:1px solid #d0d5dd;
}

.autocomplete{
  position:absolute;
  z-index:50;
  left:0;
  right:0;
  top:50px;
  background:#fff;
  border:1px solid #d0d5dd;
  border-radius:14px;
  box-shadow:0 18px 40px rgba(16,24,40,.16);
  overflow:hidden;
  display:none;
}

.suggestion{
  padding:13px 14px;
  cursor:pointer;
  display:flex;
  gap:12px;
  align-items:flex-start;
  border-bottom:1px solid #f0f2f5;
}

.suggestion:hover{
  background:#fff6f6;
}

.suggestion i{
  color:var(--red);
  margin-top:-7px;
}

.suggestion strong{
  display:block;
  font-size:14px;
}

.suggestion span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}

.results{
  margin-top:24px;
}

.result-pro{
  position:relative;
  background:#fff;
  border-radius:20px;
  padding:24px;
  margin-bottom:16px;
  border:1px solid #e6eaf0;
  box-shadow:0 12px 35px rgba(0,0,0,0.06);
  transition:0.3s;
  overflow:hidden;
}

.result-pro:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

.result-pro::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:1px;
  background:linear-gradient(90deg,#dc0711,#ff5860,#dc0711);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  opacity:0;
  transition:0.3s;
}

.result-pro:hover::before{
  opacity:1;
}

.result-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  border-bottom:1px solid #f0f2f5;
  padding-bottom:16px;
  margin-bottom:16px;
}

.result-head h3{
  margin:0;
  font-size:17px;
  font-weight:800;
  color:var(--dark);
}

.result-head .doc-no{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin-top:4px;
}

.status{
  padding:9px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.status.ok{
  background:#e7f8ee;
  color:#0a8f4b;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.info-item{
  background:#f6f8fb;
  border:1px solid #edf1f5;
  border-radius:12px;
  padding:12px 14px;
}

.info-item .k{
  font-size:11px;
  font-weight:800;
  color:#8b96a5;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:5px;
  display:flex;
  align-items:center;
  gap:6px;
}

.info-item .v{
  font-size:14px;
  font-weight:700;
  color:#1e293b;
  word-break:break-word;
}

.address-box{
  margin-top:16px;
  background:linear-gradient(135deg,#fff8f8,#fdeceb);
  border:1px solid #f6cac6;
  border-radius:14px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:13.5px;
  font-weight:700;
  color:#1e293b;
  line-height:1.5;
}

.address-box i{
  color:var(--red);
  margin-top:3px;
}

.disclaimer{
  margin-top:16px;
  font-size:11.5px;
  color:var(--muted);
  border-top:1px dashed #e2e8f0;
  padding-top:12px;
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.empty,.loading,.error{
  background:#fff;
  border:1px dashed #cfd6df;
  border-radius:18px;
  padding:28px;
  text-align:center;
  color:#667085;
  font-weight:700;
}

.error{
  border-color:#fecaca;
  background:#fff5f5;
  color:#b91c1c;
}

@media(max-width:800px){
  .nav{display:none}
  .grid{grid-template-columns:1fr}
  .info-grid{grid-template-columns:1fr 1fr}
  .actions{flex-direction:column}
  .btn{width:100%}
  .hero h1 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    letter-spacing: .3px;
  }		
}
@media(max-width:480px){
  .info-grid{grid-template-columns:1fr}
  .hero h1 {
    margin: 0;
    text-align: center;
    font-size: 17px;
    letter-spacing: .3px;
  }		
}