:root{
  --navy:#0b1b3a;
  --navy2:#132d5e;
  --bg:#f4f6fb;
  --card:#ffffff;
  --border:#dbe3f3;
  --text:#0f172a;
  --muted:#475569;
  --accent:#1f7a4c;
  --danger:#b42318;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow2: 0 6px 18px rgba(15, 23, 42, 0.06);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: "Cairo", Tahoma, Arial, system-ui, -apple-system, "Segoe UI";
  background:var(--bg);
  color:var(--text);
}

/* Navbar */
.navbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  background:linear-gradient(90deg, var(--navy), var(--navy2));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.emblem{
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  position:relative;
}

.emblem::after{
  content:"";
  position:absolute;
  inset:9px;
  border-radius:10px;
  border:2px solid rgba(255,255,255,.55);
  opacity:.8;
}

.brand-title{font-weight:900; letter-spacing:.2px}
.brand-subtitle{font-size:12px; opacity:.85; margin-top:2px}

.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.navlinks a{
  color:#eaf0ff;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  opacity:.92;
  font-size:14px;
}

.navlinks a:hover{opacity:1; background:rgba(255,255,255,.10)}
.navlinks a.active{opacity:1; background:rgba(255,255,255,.16)}

.nav-toggle{
  display:none;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

/* Layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:22px 16px 40px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:stretch;
}

.hero-text{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 16px;
  box-shadow:var(--shadow2);
}

.hero-text h1{
  margin:0 0 6px;
  font-size:24px;
}

.hero-text p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.8;
}

.notice{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f7fafc;
  border:1px dashed #cdd9f5;
  padding:10px 12px;
  border-radius:14px;
  color:#334155;
  font-size:13px;
}

.notice .dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--accent);
}

.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 16px;
  box-shadow:var(--shadow2);
}

.hero-card-title{
  font-weight:900;
  margin-bottom:10px;
}

.hero-list{
  margin:0;
  padding:0 18px 0 0;
  color:var(--muted);
  line-height:2;
  font-size:14px;
}

.section-head{
  margin-top:18px;
}

.section-head h2{
  margin:0;
  font-size:18px;
}

.section-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

/* Grid */
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* Service cards */
.service-card{
  position:relative;
  text-align:right;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:18px;
  padding:16px;
  cursor:pointer;
  box-shadow:var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.service-card::before{
  content:"";
  position:absolute;
  top:0; right:0; left:0;
  height:6px;
  border-radius:18px 18px 0 0;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow:var(--shadow);
  border-color:#c9d6f4;
}

.service-title{margin-top:6px;font-weight:900}
.service-desc{margin-top:6px;color:var(--muted);font-size:14px;line-height:1.7}

.service-meta{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  color:#334155;
}

.price{
  background:#f7fafc;
  border:1px solid #e6eefc;
  padding:7px 10px;
  border-radius:999px;
}

.pill{
  background:rgba(31, 122, 76, .12);
  border:1px solid rgba(31, 122, 76, .22);
  color:#0f3d25;
  padding:7px 10px;
  border-radius:999px;
}

/* Card layout used in lookup page */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 16px;
  box-shadow:var(--shadow2);
}

.breadcrumb{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  color:#64748b;
  margin-bottom:10px;
}
.breadcrumb a{color:#475569;text-decoration:none;border-bottom:1px dotted #94a3b8}
.breadcrumb a:hover{color:#334155}

.form-row{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
  margin-top:12px;
}

label{font-weight:700; font-size:14px}

input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  font-family: inherit;
  font-size:15px;
  outline:none;
  background:#fff;
}

input:focus{
  border-color:#b8c8f2;
  box-shadow:0 0 0 4px rgba(184,200,242,.35);
}

.actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid transparent;
  cursor:pointer;
  font-family: inherit;
  font-weight:800;
  font-size:14px;
}

.btn-primary{
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  color:#fff;
}

.btn-outline{
  background:#fff;
  border-color: var(--border);
  color: var(--text);
}

.hint{
  margin-top:10px;
  color: var(--muted);
  font-size:13px;
  line-height:1.7;
}

.error{
  margin-top:10px;
  color: var(--danger);
  background: #fff5f5;
  border:1px solid #ffd6d6;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  display:none;
}

/* Footer */
.footer{
  padding:18px 16px;
  color:#64748b;
}

.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer a{
  color:#64748b;
  text-decoration:none;
  border-bottom:1px dotted #94a3b8;
}

.footer a:hover{color:#334155}

/* Responsive */
@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .navlinks{display:none}
  .nav-toggle{display:inline-flex}
}
/* Payment summary + form grid */
.summary{
  margin-top:12px;
  background:#f7fafc;
  border:1px solid #e6eefc;
  border-radius:16px;
  padding:12px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 6px;
  border-bottom:1px dashed #d7e2fb;
}
.summary-row:last-child{border-bottom:none}

.summary-label{
  color:#64748b;
  font-size:13px;
  font-weight:700;
}

.summary-value{
  color:#0f172a;
  font-weight:900;
  font-size:13px;
}

.form-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

@media (max-width: 920px){
  .form-grid{grid-template-columns:1fr}
}
/* Document template */
.doc-wrap{
  margin-top:14px;
  background:#fff;
  border:1px solid #e6eefc;
  border-radius:18px;
  padding:18px 16px;
}

.doc-header{
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #eef2ff;
  padding-bottom:12px;
}

.doc-emblem{
  width:52px;
  height:52px;
  border-radius:14px;
  border:2px solid var(--navy);
  background: linear-gradient(180deg, rgba(11,27,58,.06), rgba(11,27,58,.0));
}

.doc-country{font-weight:900}
.doc-ministry{font-weight:800;color:#1f2937}
.doc-dept{color:#64748b;font-size:13px;margin-top:2px}

.doc-title{
  margin-top:14px;
  text-align:center;
  font-size:20px;
  font-weight:900;
  letter-spacing:.2px;
}

.doc-meta{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  background:#f7fafc;
  border:1px solid #e6eefc;
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
}

.doc-meta .k{color:#64748b;font-weight:700}

.doc-body{margin-top:14px}

.doc-section-title{
  font-weight:900;
  margin:0 0 8px;
  color:#0f172a;
}

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

.field{
  border:1px solid #eef2ff;
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}

.field .label{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.field .value{
  margin-top:4px;
  font-weight:800;
  color:#0f172a;
  font-size:14px;
  line-height:1.7;
}

.doc-paragraph{
  margin:0;
  padding:12px;
  border-radius:14px;
  border:1px solid #eef2ff;
  background:#fff;
  color:#0f172a;
  line-height:1.9;
  font-size:14px;
}

.doc-footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.stamp, .sign{
  width:240px;
  max-width:100%;
}

.stamp-title{
  font-size:12px;
  color:#64748b;
  font-weight:900;
  margin-bottom:6px;
}

.stamp-box{
  height:90px;
  border-radius:14px;
  border:2px dashed #cbd5e1;
  background: repeating-linear-gradient(
    45deg,
    rgba(203,213,225,.18),
    rgba(203,213,225,.18) 10px,
    rgba(203,213,225,.06) 10px,
    rgba(203,213,225,.06) 20px
  );
}

.doc-note{
  margin-top:14px;
  font-size:12px;
  color:#64748b;
  text-align:center;
  border-top:1px solid #eef2ff;
  padding-top:10px;
}

@media (max-width: 920px){
  .doc-meta{grid-template-columns:1fr}
  .doc-grid{grid-template-columns:1fr}
}

/* Print */
@media print{
  body{background:#fff}
  .navbar, .footer, .actions, .breadcrumb, .hint, .error{display:none !important}
  .container{max-width:none; padding:0}
  .card{border:none; box-shadow:none; padding:0}
  .doc-wrap{border:none; padding:0}
}
