/* =========================================================
   Helioxen Citizen Desk — जन डेस्क  v5.3.1
   Beautiful public-connect design
   ========================================================= */
:root {
  --hx-cd-red: #d71920;
  --hx-cd-dark: #0f172a;
  --hx-cd-card: #ffffff;
  --hx-cd-muted: #64748b;
  --hx-cd-border: #e2e8f0;
  --hx-cd-soft: #f8fafc;
  --hx-cd-ok: #059669;
  --hx-cd-radius: 16px;
}
.hx-cd-page { max-width: 920px; margin: 0 auto 48px; padding: 0 14px; }
.hx-cd-hero {
  position: relative; border-radius: var(--hx-cd-radius); overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #7f1d1d 120%);
  color: #fff; padding: 36px 28px 32px; margin-bottom: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}
.hx-cd-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(215,25,32,.35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.hx-cd-hero-inner { position: relative; z-index: 1; }
.hx-cd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; margin-bottom: 14px;
}
.hx-cd-kicker i {
  width: 8px; height: 8px; border-radius: 50%; background: #f87171;
  box-shadow: 0 0 0 4px rgba(248,113,113,.25);
  animation: hx-pulse 1.6s ease-in-out infinite;
}
@keyframes hx-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.85)} }
.hx-cd-hero h1 {
  margin: 0 0 10px; font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 900; letter-spacing: -.4px; line-height: 1.2;
}
.hx-cd-hero p { margin: 0; max-width: 540px; font-size: 15px; line-height: 1.6; opacity: .92; }
.hx-cd-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hx-cd-stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 10px 14px; min-width: 110px;
}
.hx-cd-stat strong { display: block; font-size: 18px; font-weight: 900; }
.hx-cd-stat span { font-size: 11px; opacity: .8; }
.hx-citizen-desk {
  background: var(--hx-cd-card); border: 1px solid var(--hx-cd-border);
  border-radius: var(--hx-cd-radius); overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, .06);
}
.hx-cd-body { padding: 26px 24px 30px; }
.hx-cd-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.hx-cd-step {
  flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--hx-cd-soft); border-radius: 10px;
  font-size: 12px; font-weight: 700; color: var(--hx-cd-muted);
}
.hx-cd-step .n {
  width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #334155;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.hx-cd-step.active { background: #fef2f2; color: var(--hx-cd-red); }
.hx-cd-step.active .n { background: var(--hx-cd-red); color: #fff; }
.hx-cd-form .hx-field { margin-bottom: 16px; }
.hx-cd-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: #0f172a; }
.hx-cd-form label .req { color: var(--hx-cd-red); }
.hx-cd-form input[type=text],
.hx-cd-form input[type=email],
.hx-cd-form input[type=tel],
.hx-cd-form select,
.hx-cd-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fafafa;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.hx-cd-form input:focus, .hx-cd-form select:focus, .hx-cd-form textarea:focus {
  outline: 0; border-color: var(--hx-cd-red);
  box-shadow: 0 0 0 3px rgba(215,25,32,.12); background: #fff;
}
.hx-cd-form textarea { min-height: 120px; resize: vertical; }
.hx-cd-form .hx-hint { font-size: 12px; color: var(--hx-cd-muted); margin-top: 5px; line-height: 1.45; }
.hx-cd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hx-cd-reporter {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: start;
  padding: 16px; background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--hx-cd-border); border-radius: 14px; margin-bottom: 18px;
}
.hx-cd-avatar-wrap { position: relative; width: 88px; height: 88px; }
.hx-cd-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  background: #e2e8f0; display: block;
}
.hx-cd-avatar-ph {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.hx-cd-avatar-btn {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid #fff; background: var(--hx-cd-red);
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(215,25,32,.35);
}
.hx-cd-avatar-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hx-cd-credit-note {
  font-size: 12px; color: var(--hx-cd-muted); line-height: 1.5; margin-top: 6px;
  padding: 8px 10px; background: #f1f5f9; border-radius: 8px;
}
.hx-cd-credit-note strong { color: #0f172a; }
.hx-cd-upload {
  border: 2px dashed #cbd5e1; border-radius: 14px; padding: 22px 16px;
  text-align: center; background: #fafbfc; cursor: pointer;
  transition: border-color .15s, background .15s; position: relative;
}
.hx-cd-upload:hover, .hx-cd-upload.dragover { border-color: var(--hx-cd-red); background: #fff5f5; }
.hx-cd-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hx-cd-upload-icon { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.hx-cd-upload strong { display: block; font-size: 14px; margin-bottom: 4px; color: #0f172a; }
.hx-cd-upload span { font-size: 12px; color: var(--hx-cd-muted); }
.hx-cd-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hx-cd-preview {
  position: relative; width: 92px; height: 92px; border-radius: 10px;
  overflow: hidden; border: 1px solid #e2e8f0; background: #eee;
}
.hx-cd-preview img, .hx-cd-preview video { width: 100%; height: 100%; object-fit: cover; }
.hx-cd-preview .hx-rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.7);
  color: #fff; font-size: 13px; cursor: pointer; line-height: 1;
}
.hx-cd-anon {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: #f1f5f9; border-radius: 10px; margin-bottom: 16px;
}
.hx-cd-anon input { margin-top: 3px; }
.hx-cd-anon label { font-weight: 600; font-size: 13px; margin: 0; }
.hx-cd-anon small { display: block; color: var(--hx-cd-muted); font-size: 12px; margin-top: 2px; }
.hx-cd-drive-badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px;
  font-size: 12px; color: #065f46; margin-bottom: 16px;
}
.hx-cd-drive-badge strong { font-weight: 800; }
.hx-cd-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #e11d28, #c4141c); color: #fff; border: 0;
  padding: 14px 28px; border-radius: 12px; font-weight: 800; font-size: 15px;
  cursor: pointer; width: 100%; box-shadow: 0 8px 20px rgba(215,25,32,.28);
  transition: transform .12s, box-shadow .12s;
}
.hx-cd-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(215,25,32,.35); }
.hx-cd-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.hx-cd-submit .spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: hxspin .7s linear infinite; display: none;
}
.hx-cd-submit.loading .spinner { display: inline-block; }
@keyframes hxspin { to { transform: rotate(360deg); } }
.hx-cd-msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.hx-cd-msg.ok { display: block; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.hx-cd-msg.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.hx-cd-success-box { text-align: center; padding: 32px 20px; }
.hx-cd-success-box .hx-rid {
  font-size: 24px; font-weight: 900; color: var(--hx-cd-red);
  letter-spacing: 1px; margin: 12px 0; font-family: ui-monospace, monospace;
}
.hx-cd-success-box p { color: #475569; font-size: 14px; line-height: 1.65; }
.hx-cd-trust {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid #f1f5f9; font-size: 12px; color: var(--hx-cd-muted);
}
.hx-cd-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hx-cd-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 9990;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #e11d28, #c4141c); color: #fff;
  padding: 12px 18px; border-radius: 50px; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 28px rgba(215,25,32,.4); border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.hx-cd-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(215,25,32,.5); color: #fff; }
.hx-cd-fab svg { width: 20px; height: 20px; fill: currentColor; }
.hx-cd-progress { display: none; margin: 12px 0 4px; height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.hx-cd-progress.on { display: block; }
.hx-cd-progress > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #d71920, #f87171); transition: width .2s; }
@media (max-width: 650px) {
  .hx-cd-row { grid-template-columns: 1fr; }
  .hx-cd-reporter { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hx-cd-hero { padding: 28px 18px; }
  .hx-cd-body { padding: 18px 16px 24px; }
  .hx-cd-fab { right: 12px; bottom: 16px; padding: 11px 14px; font-size: 13px; }
  .hx-cd-steps { flex-direction: column; }
}

/* Header button — replaces floating FAB so Shorts stay clean */
.hx-cd-header-btn{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--db-red,#d71920);color:#fff!important;
  font-size:12px;font-weight:800;line-height:1;
  padding:8px 11px;border-radius:20px;
  white-space:nowrap;text-decoration:none!important;
  border:0;cursor:pointer;
  box-shadow:0 2px 8px rgba(215,25,32,.25);
  transition:transform .12s,background .12s;
}
.hx-cd-header-btn:hover{background:#b9141a;transform:translateY(-1px);color:#fff!important}
.hx-cd-header-ico{font-size:14px;line-height:1}
.hx-cd-header-txt{letter-spacing:.2px}
/* Never let leftover FAB cover Shorts */
body.db-shorts-view .hx-cd-fab,
.db-special-view.db-shorts-view .hx-cd-fab,
body[class*="shorts"] .hx-cd-fab{display:none!important}
@media(max-width:650px){
  .hx-cd-header-btn{padding:7px 9px;font-size:11px}
  .hx-cd-header-txt{/* keep text on mobile for clarity */}
}

/* Security captcha */
.hx-cd-captcha-field input[type=number]{
  max-width:160px;
  font-size:18px;
  font-weight:800;
  letter-spacing:1px;
}
.hx-cd-captcha-field label strong{color:var(--hx-cd-red,#d71920)}
