/* ══ HERO ══ */
.demand-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 4px 0 40px; /* consistent with about.css */
  position: relative;
  overflow: hidden;
}
.demand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.demand-hero::after {
  content: "📊";
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  font-weight: var(--fw-xbold);
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.demand-hero-inner { position: relative; z-index: 1; }
.demand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.demand-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: dpulse 1.6s infinite;
}
@keyframes dpulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.demand-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: var(--fw-xbold);
  color: #fff;
  margin-bottom: 10px;
  line-height: var(--lh-heading);
}
.demand-hero p {
  font-size: var(--text-md);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: var(--lh-loose);
  margin-bottom: 20px;
}
.demand-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.demand-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 8px 16px;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}
.demand-chip i { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.demand-hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.demand-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
}
.demand-stat-card i { font-size: var(--text-xl); color: rgba(255,255,255,.7); flex: 0 0 auto; }
.demand-stat-val { font-size: var(--text-2xl); font-weight: var(--fw-xbold); line-height: 1; margin-bottom: 2px; }
.demand-stat-label { font-size: var(--text-xs); color: rgba(255,255,255,.65); font-weight: var(--fw-semibold); }

/* ══ MAIN ══ */
.demand-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ QUERY CARD ══ */
.demand-query-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.demand-query-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.demand-query-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--text-xl);
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.demand-query-head h3 {
  font-size: var(--text-lg);
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.demand-query-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.demand-query-body { padding: 24px 28px 28px; }
.demand-form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.72);
  margin-bottom: 6px;
  display: block;
}
.demand-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.12);
  background: #fafbfc;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.75);
  transition: border-color .2s, box-shadow .2s;
  appearance: auto;
}
.demand-select:focus {
  outline: none;
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
  background: #fff;
}
.demand-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-xbold);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.demand-submit-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ══ ACTIVE FILTERS ══ */
.demand-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(11,18,32,.06);
  background: rgba(21,120,190,.02);
}
.demand-filters-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.demand-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.22);
  color: #1578be;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 4px 10px;
  border-radius: 20px;
}
.demand-filter-badge i { font-size: var(--text-xs); }
.demand-filter-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(21,120,190,.15);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: 9px;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  transition: background .18s, color .18s;
}
.demand-filter-remove:hover { background: #d40000; color: #fff; }

/* ══ LOADING ══ */
.demand-loading {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: rgba(11,18,32,.45);
}
.demand-loading.show { display: block; }
.demand-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(21,120,190,.15);
  border-top-color: #1578be;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ RESULTS CARD ══ */
.demand-results-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
}
.demand-results-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.demand-results-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.2);
  display: flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: var(--text-xl);
}
.demand-results-head h3 {
  font-size: var(--text-lg);
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.demand-results-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.demand-results-body { padding: 24px 28px 28px; }
.demand-indicator-desc {
  font-size: var(--text-md);
  color: rgba(11,18,32,.6);
  line-height: var(--lh-loose);
  margin-bottom: 20px;
}

/* ══ ACCORDION ══ */
.demand-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: demand-counter;
}
.demand-acc-item {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  overflow: hidden;
  transition: box-shadow .22s, border-color .22s;
}
.demand-acc-item:hover {
  box-shadow: 0 6px 24px rgba(21,120,190,.1);
  border-color: rgba(21,120,190,.2);
}
.demand-acc-item.open {
  border-color: rgba(21,120,190,.3);
  box-shadow: 0 8px 28px rgba(21,120,190,.12);
}
.demand-acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.demand-acc-num {
  counter-increment: demand-counter;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--fw-xbold);
  color: #1578be;
  transition: background .22s, color .22s, border-color .22s;
}
.demand-acc-num::before { content: counter(demand-counter, decimal-leading-zero); }
.demand-acc-item.open .demand-acc-num {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent;
  color: #fff;
}
.demand-acc-title {
  flex: 1;
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.88);
  line-height: var(--lh-heading);
  margin: 0;
  transition: color .2s;
}
.demand-acc-item.open .demand-acc-title { color: #1578be; }
.demand-acc-toggle {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.15);
  display: flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: var(--text-xs);
  transition: background .22s, transform .3s, color .22s, border-color .22s;
}
.demand-acc-item.open .demand-acc-toggle {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent;
  color: #fff;
  transform: rotate(45deg);
}
.demand-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 18px 0 66px;
}
.demand-acc-body.show {
  max-height: 600px;
  padding: 8px 18px 20px 66px;
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: rgba(11,18,32,.62);
}
/* Ensure Highcharts containers get proper dimensions */
.demand-acc-body canvas { width: 100% !important; height: auto !important; }

/* ══ EMPTY STATE ══ */
.demand-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(11,18,32,.4);
}
.demand-empty i { font-size: 48px; margin-bottom: 14px; display: block; color: rgba(21,120,190,.3); }
.demand-empty p { font-size: var(--text-sm); margin: 0; }

/* ══ QUICK LINKS ══ */
.ql-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.ql-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0b3d6e, #1578be);
  position: relative;
  overflow: hidden;
}
.ql-header::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.ql-header h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-xbold);
  color: #fff;
  margin: 0;
  position: relative; z-index: 1;
}
.ql-header p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.65);
  margin: 4px 0 0;
  position: relative; z-index: 1;
}
.ql-body { padding: 12px 14px; }
.ql-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(11,18,32,.78);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  transition: background .18s, color .18s, gap .18s;
  border-bottom: 1px solid rgba(11,18,32,.05);
}
.ql-item:last-child { border-bottom: none; }
.ql-item:hover {
  background: rgba(21,120,190,.07);
  color: #1578be;
  gap: 13px;
  text-decoration: none;
}
.ql-icon {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  color: #1578be;
  transition: background .18s, color .18s, border-color .18s;
}
.ql-item:hover .ql-icon {
  background: #1578be;
  color: #fff;
  border-color: transparent;
}
.ql-arrow {
  margin-left: auto;
  font-size: var(--text-xs);
  color: rgba(11,18,32,.25);
  transition: color .18s, transform .18s;
}
.ql-item:hover .ql-arrow {
  color: #1578be;
  transform: translateX(3px);
}
.ql-contact {
  margin: 8px 14px 14px;
  background: linear-gradient(135deg, rgba(21,120,190,.08), rgba(212,0,0,.06));
  border: 1px solid rgba(21,120,190,.15);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.ql-contact p {
  font-size: var(--text-sm);
  color: rgba(11,18,32,.6);
  margin-bottom: 10px;
  line-height: var(--lh-body);
}
.ql-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.ql-contact a:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ══ HIGHCHARTS ══ */
.highcharts-figure { margin: 0; }
.highcharts-figure,
.highcharts-data-table table { min-width: 100%; max-width: 100%; }

@media (max-width: 768px) {
  .demand-hero { padding: 28px 0 32px; }
  .demand-hero-right { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .demand-stat-card { flex: 1 1 calc(50% - 5px); }
  .demand-query-body, .demand-results-body { padding: 18px 16px 22px; }
  .demand-acc-body.show { padding: 8px 14px 16px 14px; }
  .demand-acc-title { font-size: var(--text-sm); }
}



.demand-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 60%, #d40000 100%);
  padding: 10px 0 14px;
}

.demand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 26%),
    radial-gradient(circle at 10% 85%, rgba(212,0,0,.12), transparent 22%);
  pointer-events: none;
}

.demand-hero .container {
  position: relative;
  z-index: 1;
}

.demand-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.demand-hero-main {
  flex: 1 1 520px;
  min-width: 0;
}

.demand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.demand-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5757;
}

.demand-hero h1 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: var(--fw-xbold);
  color: #fff;
}

.demand-hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(255,255,255,.82);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.demand-hero-stats {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.demand-stat {
  min-width: 105px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
  color: #fff;
}

.demand-stat-value {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--fw-xbold);
  line-height: 1.1;
  margin-bottom: 2px;
}

.demand-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.72);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .demand-hero {
    padding: 10px 0 12px;
  }

  .demand-hero-row {
    align-items: flex-start;
    gap: 12px;
  }

  .demand-hero-stats {
    width: 100%;
  }

  .demand-stat {
    flex: 1 1 110px;
  }
}

@media (max-width: 575.98px) {
  .demand-hero {
    padding: 8px 0 10px;
  }

  .demand-pill {
    margin-bottom: 5px;
    padding: 4px 9px;
  }

  .demand-hero h1 {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .demand-hero p {
    font-size: 13px;
    line-height: 1.45;
  }

  .demand-hero-stats {
    gap: 8px;
  }

  .demand-stat {
    padding: 7px 10px;
    min-width: 95px;
  }

  .demand-stat-value {
    font-size: var(--text-base);
  }
}