/* ==========================================================================
   AIPAMF — STATUTORY GRIEVANCE & DISPUTE REDRESSAL SUITE STYLESHEET
   ========================================================================== */

:root {
  --bg-space: #030712;
  --bg-navy-deep: #050d1e;
  --bg-navy-surface: #0a1835;
  --bg-card: #ffffff;
  --border-glass: rgba(212, 175, 55, 0.28);
  --border-gold: #d4af37;
  
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(120deg, #b8860b 0%, #fef08a 25%, #d4af37 50%, #fffbeb 75%, #996515 100%);

  --text-pure: #ffffff;
  --text-dim: #94a3b8;
  --text-dark: #0b1a38;
  --text-muted: #64748b;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
}

.grv-body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #edf2f9;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.grv-ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   1. STATUTORY PORTAL HEADER
   ========================================================================== */
.registry-apex-nav {
  background: #ffffff;
  border-bottom: 2px solid #fee2e2;
  box-shadow: 0 4px 18px rgba(10, 25, 55, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 2rem;
}

.registry-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.registry-brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.registry-seal-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid var(--gold-primary);
  background: #ffffff;
  padding: 1px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.registry-brand-info {
  display: flex;
  flex-direction: column;
}

.brand-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reg-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0b1a38;
  line-height: 1;
}

.reg-badge-statutory {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
}

.alert-badge {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.reg-sub-title {
  font-size: 0.62rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.registry-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.registry-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  padding: 4px 10px;
  border-radius: 20px;
}

.live-status-dot.red-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-status-text.alert-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
}

.registry-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reg-action-link {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.reg-action-link:hover {
  color: #0b1a38;
}

.reg-btn-apply {
  background: #0b1a38;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(11, 26, 56, 0.2);
  transition: all 0.25s ease;
}

.reg-btn-apply:hover {
  background: var(--gold-primary);
  color: #040914;
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .registry-live-status-pill { display: none; }
  .registry-apex-nav { padding: 0.6rem 1rem; }
}

/* ==========================================================================
   2. HERO & MANDATE STRIP
   ========================================================================== */
.grv-hero-section {
  background: radial-gradient(circle at 50% 0%, #150a1a 0%, #080f24 60%, #030712 100%);
  padding: 4.8rem 2rem 4rem;
  border-bottom: 3px solid #ef4444;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.grv-hero-shell {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.statutory-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 0.38rem 1.25rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}

.pulse-dot-red {
  color: #ef4444;
  animation: pulseRed 2s infinite;
}

.grv-hero-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .grv-hero-title { font-size: 1.95rem; }
}

.grv-hero-desc {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

.grv-assurance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.assurance-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.assurance-pill svg {
  stroke: #ef4444;
}

/* ==========================================================================
   3. GRIEVANCE CONSOLE & SIDEBAR
   ========================================================================== */
.grv-main-arena {
  padding: 3.5rem 1.5rem 6rem;
}

.arena-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.grv-grid-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .grv-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Card */
.grv-card-console {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 2.4rem;
  box-shadow: 0 10px 30px rgba(11, 26, 56, 0.06);
}

.console-head {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.console-head h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.35rem;
}

.console-head p {
  font-size: 0.86rem;
  color: #64748b;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b1a38;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 1.5rem 0 1rem;
}

.form-section-title span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #0b1a38;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-row-2col { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grv-input,
.grv-select,
.grv-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #0b1a38;
  outline: none;
  transition: all 0.2s ease;
}

.grv-input:focus,
.grv-select:focus,
.grv-textarea:focus {
  border-color: #0b1a38;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(11, 26, 56, 0.12);
}

.declaration-box {
  display: flex;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0 1.8rem;
}

.declaration-box input {
  margin-top: 4px;
  cursor: pointer;
}

.declaration-box label {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
}

.btn-submit-grievance {
  width: 100%;
  background: linear-gradient(135deg, #0b1a38 0%, #1e3a8a 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 26, 56, 0.25);
  transition: all 0.25s ease;
}

.btn-submit-grievance:hover {
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
  color: #040914;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

/* Docket Confirmation Mount */
.docket-result-wrap {
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.docket-card {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.docket-badge-success {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.docket-code-box {
  background: #ffffff;
  border: 1px dashed #22c55e;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1a38;
}

/* Sidebar Styles */
.grv-sidebar-guide {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(11, 26, 56, 0.05);
}

.box-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.4rem;
}

.box-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1.1rem;
}

.tracker-input-group {
  display: flex;
  gap: 6px;
}

.tracker-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.tracker-btn {
  background: #0b1a38;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tracker-btn:hover {
  background: var(--gold-primary);
  color: #040914;
}

.tracker-output {
  margin-top: 0.85rem;
}

.advisory-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.process-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.process-steps-list li {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0b1a38;
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-steps-list strong {
  display: block;
  color: #0b1a38;
  margin-bottom: 2px;
}

.process-steps-list span {
  color: #64748b;
  line-height: 1.45;
}

.emergency-box {
  background: linear-gradient(145deg, #091733 0%, #050d1e 100%);
  border-color: rgba(212, 175, 55, 0.4);
}

.helpline-display {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.85rem;
}

.helpline-display span {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.helpline-display strong {
  font-size: 1.15rem;
  color: #ffffff;
}

.email-btn-link {
  display: block;
  text-align: center;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.email-btn-link:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Footer */
.grv-footer {
  background: #040915;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}