/* ==========================================================
   ComplaintKart Theme — shared across the entire site
   ========================================================== */
:root {
  --red: #E8372C;
  --red-dark: #c42d23;
  --bg: #FFFFFF;
  --text: #111111;
  --mid: #F4F4F4;
  --border: rgba(0,0,0,0.1);
  --gray: #666;
  --gold: #B8860B;
  --success: #16a34a;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #F2F2F2; color: var(--text); overflow-x: hidden; padding-top: 76px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.ck-container { max-width: 1180px; width: 90%; margin: 0 auto; }
.ck-section { padding: 3rem 0; }

/* ── NAV ── */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.logo span { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-right a { color: rgba(30,30,30,0.7); text-decoration: none; font-size: 0.86rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-right a:hover { color: var(--red); }
.nav-track-form { display: flex; align-items: center; }
.nav-track-form input {
  width: 140px; padding: 0.45rem 0.7rem; border: 1.5px solid #e0e0e0; border-radius: 5px 0 0 5px;
  font-size: 0.78rem; font-family: 'DM Sans', sans-serif; border-right: none; outline: none;
}
.nav-track-form button {
  background: var(--text); color: #fff; border: none; padding: 0.5rem 0.8rem; border-radius: 0 5px 5px 0;
  cursor: pointer; font-size: 0.8rem;
}
.nav-cta { background: var(--red); color: #fff !important; padding: 0.55rem 1.1rem; border-radius: 5px; font-weight: 700 !important; box-shadow: 0 3px 10px rgba(232,55,44,0.25); transition: background 0.2s, box-shadow 0.2s; }
.nav-cta:hover { background: var(--red-dark); color: #fff !important; box-shadow: 0 5px 14px rgba(232,55,44,0.32); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px; background: none; border: 1.5px solid var(--border);
  border-radius: 8px; cursor: pointer; gap: 5px; padding: 10px;
  transition: border-color 0.2s, background 0.2s; flex-shrink: 0;
}
.hamburger:hover { border-color: var(--red); background: rgba(232,55,44,0.04); }
.hamburger .bar { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s; transform-origin: center; }
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-overlay { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0); transition: background 0.35s; pointer-events: none; }
.mobile-overlay.open { background: rgba(0,0,0,0.4); pointer-events: all; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(310px, 85vw); background: #fff;
  transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.12); overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 2px; }
.drawer-logo span { color: var(--red); }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--gray); transition: all 0.2s; }
.drawer-close:hover { border-color: var(--red); color: var(--red); }
.drawer-body { padding: 1.4rem; flex: 1; }
.drawer-nav-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.9rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 500; transition: background 0.18s, color 0.18s; margin-bottom: 0.2rem; }
.drawer-nav-link:hover { background: #f5f5f5; color: var(--red); }
.drawer-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.drawer-cta { display: block; width: 100%; background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 0.9rem; margin-top: 1.3rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.2s; }
.drawer-cta:hover { background: var(--red-dark); }

/* ── PAGE HEADER (banner) ── */
.page-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 4.5rem 3rem 3rem;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: attr(data-watermark);
  position: absolute; right: -0.5rem; bottom: -1.8rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 8rem;
  color: rgba(0,0,0,0.04); letter-spacing: 4px; pointer-events: none; line-height: 1;
  white-space: nowrap; z-index: 0;
}
.header-tag, .page-header h1, .header-sub, .header-trust { position: relative; z-index: 1; }
.header-tag { display: inline-block; background: rgba(232,55,44,0.1); border: 1px solid rgba(232,55,44,0.3); color: var(--red); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 2px; margin-bottom: 1rem; }
.page-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.6rem, 5vw, 4.6rem); color: #111; line-height: 1; letter-spacing: 1px; }
.page-header h1 em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); }
.header-sub { color: #555; margin-top: 0.9rem; font-size: 0.95rem; max-width: 65ch; line-height: 1.7; }
.header-trust { display: flex; gap: 1.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: #555; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* ── CARDS ── */
.ck-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.ck-card-header { background: linear-gradient(135deg, var(--red), var(--red-dark)); padding: 1.3rem 2rem; display: flex; align-items: center; gap: 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.ck-card-header h2, .ck-card-header h3 { font-family: 'Bebas Neue', sans-serif; color: #fff; letter-spacing: 1px; font-size: 1.45rem; }
.ck-card-header p { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 0.1rem; }
.ck-card-body { padding: 2rem; }
@media (max-width: 600px) { .ck-card-body { padding: 1.3rem; } .ck-card-header { padding: 1.1rem 1.3rem; } }

/* ── SECTION TITLES ── */
.form-section-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray); margin: 2rem 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-section-title:first-child { margin-top: 0; }

/* ── FORM FIELDS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group.full { grid-column: 1/-1; }
label { font-size: 0.81rem; font-weight: 600; color: #333; }
label span.req { color: var(--red); margin-left: 2px; }
.form-text { font-size: 0.74rem; color: var(--gray); }
input, select, textarea {
  width: 100%; padding: 0.72rem 1rem;
  border: 1.5px solid #e0e0e0; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text);
  background: #fafafa; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,55,44,0.08); background: #fff; }
input.error, select.error, textarea.error { border-color: #f87171; }
.error-msg { font-size: 0.73rem; color: #dc2626; display: none; margin-top: 2px; }
.error-msg.show { display: block; }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ── SERVICES / CHECKBOX GRID ── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.service-option { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.9rem; border: 1.5px solid #e0e0e0; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; position: relative; }
.service-option:hover { border-color: rgba(232,55,44,0.4); background: #fff9f9; }
.service-option.checked { border-color: var(--red); background: #fff9f9; }
.service-option.locked { cursor: default; background: #f0fdf4; border-color: #bbf7d0; }
.service-option input[type="checkbox"] { width: auto; padding: 0; border: none; background: none; box-shadow: none; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
.service-option input[type="checkbox"]:focus { box-shadow: none; }
.service-label strong { display: block; font-weight: 600; color: #222; font-size: 0.85rem; }
.service-label span.svc-desc { color: var(--gray); font-size: 0.74rem; line-height: 1.4; display: block; margin-top: 0.15rem; }
.service-badge { font-size: 0.63rem; background: rgba(34,197,94,0.12); color: #16a34a; padding: 0.12rem 0.45rem; border-radius: 2px; font-weight: 700; margin-left: 0.4rem; }
.service-badge.paid { background: rgba(232,55,44,0.1); color: var(--red); }
.service-price { font-size: 0.78rem; font-weight: 700; color: var(--red); margin-left: 0.4rem; }

/* ── FILE UPLOAD ── */
.file-upload-area { border: 2px dashed #ddd; border-radius: var(--radius); padding: 1.4rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #fafafa; }
.file-upload-area:hover { border-color: var(--red); background: #fff9f9; }
.file-upload-area input { display: none; }
.upload-icon { font-size: 1.7rem; margin-bottom: 0.4rem; }
.upload-text { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }
.upload-text strong { color: var(--red); }
.file-list { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.file-item { display: flex; align-items: center; gap: 0.45rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 3px; padding: 0.4rem 0.7rem; font-size: 0.78rem; color: #166534; }
.file-item a { color: #166534; font-weight: 600; text-decoration: underline; }

/* ── CONSENT ── */
.consent-row { margin-top: 1.4rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.consent-row input[type="checkbox"] { width: auto; padding: 0; border: none; background: none; box-shadow: none; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.consent-label { font-size: 0.79rem; color: #444; cursor: pointer; font-weight: 400; line-height: 1.5; }
.consent-label a { color: var(--red); text-decoration: none; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.4px; border: none; border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.18s, box-shadow 0.2s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(232,55,44,0.25); }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,55,44,0.32); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: #fff9f9; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.submit-note { font-size: 0.74rem; color: var(--gray); text-align: center; margin-top: 0.7rem; line-height: 1.5; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MULTI-STEP WIZARD ── */
.form-progress { display: flex; align-items: center; margin-bottom: 2rem; }
.prog-step { flex: 1; text-align: center; position: relative; cursor: pointer; }
.prog-step::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: #e0e0e0; z-index: 0; }
.prog-step:last-child::after { display: none; }
.prog-circle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #e0e0e0; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #aaa; margin: 0 auto 0.35rem; position: relative; z-index: 1; transition: all 0.3s; }
.prog-step.active .prog-circle { border-color: var(--red); color: var(--red); background: #fff9f9; }
.prog-step.done .prog-circle { border-color: var(--success); background: var(--success); color: #fff; }
.prog-label { font-size: 0.63rem; color: #aaa; font-weight: 500; }
.prog-step.active .prog-label { color: var(--red); font-weight: 600; }
.prog-step.done .prog-label { color: var(--success); }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.wizard-nav .btn { flex: 1; }

.review-block { background: var(--mid); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 0.9rem; }
.review-block h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 0.6rem; }
.review-row { display: flex; justify-content: space-between; font-size: 0.84rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border); gap: 1rem; }
.review-row:last-child { border-bottom: none; }
.review-row .rlabel { color: var(--gray); flex-shrink: 0; }
.review-row .rval { font-weight: 600; text-align: right; }
.review-total { display: flex; justify-content: space-between; align-items: center; background: #fff9f9; border: 1px solid rgba(232,55,44,0.25); border-radius: var(--radius); padding: 0.9rem 1.2rem; font-weight: 700; margin-top: 0.5rem; }
.review-total .amt { color: var(--red); font-size: 1.15rem; }

/* ── BADGES / STATUS ── */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 20px; letter-spacing: 0.3px; }
.badge-gray { background: #e5e7eb; color: #374151; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-primary { background: rgba(232,55,44,0.12); color: var(--red); }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); }
.badge-danger { background: rgba(220,38,38,0.12); color: #dc2626; }
.badge-dark { background: #111; color: #fff; }
.badge-gold { background: rgba(184,134,11,0.12); color: var(--gold); }
.badge-outline { background: #fff; color: #444; border: 1px solid var(--border); }

/* ── ALERTS / FLASH ── */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius); font-size: 0.86rem; margin-bottom: 1rem; border: 1px solid transparent; position: relative; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-close { position: absolute; top: 0.6rem; right: 0.9rem; cursor: pointer; opacity: 0.6; background: none; border: none; font-size: 1rem; }
.alert-close:hover { opacity: 1; }

/* ── TABLES ── */
.ck-table-wrap { overflow-x: auto; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ck-table th { text-align: left; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); padding: 0.8rem; border-bottom: 2px solid var(--border); }
.ck-table td { padding: 0.9rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ck-table tr:hover td { background: #fafafa; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.7rem; border: 1.5px solid #e0e0e0; border-radius: var(--radius); font-size: 0.84rem; font-weight: 600; color: #444; text-decoration: none; transition: all 0.2s; background: #fff; }
.page-link:hover { border-color: var(--red); color: var(--red); }
.page-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }
.page-dots { color: var(--gray); padding: 0 0.2rem; }

/* On small screens, tables become stacked "cards" instead of horizontal scroll */
@media (max-width: 760px) {
  .ck-table-wrap { overflow-x: visible; }
  .ck-table thead { display: none; }
  .ck-table, .ck-table tbody, .ck-table tr, .ck-table td { display: block; width: 100%; }
  .ck-table tr { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.9rem; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
  .ck-table tr:hover td { background: transparent; }
  .ck-table td { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--border); text-align: right; }
  .ck-table td:last-child { border-bottom: none; padding-top: 0.7rem; }
  .ck-table td::before { content: attr(data-label); font-weight: 700; color: var(--gray); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; flex-shrink: 0; }
}

/* ── AUTH CARDS ── */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 65vh; padding: 2rem 1rem; }
.auth-card { max-width: 460px; width: 100%; }
.auth-card .ck-card-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 0.3rem; }
.auth-sub { color: var(--gray); font-size: 0.88rem; margin-bottom: 1.4rem; }

/* ── COMPLAINT LIST (structured rows, not cards) ── */
.complaint-list { display: flex; flex-direction: column; gap: 0.9rem; }
.complaint-row {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border);
  border-top: none; padding: 1.4rem 1.6rem;
  transition: background 0.15s;
  position: relative;
}
.complaint-row:first-child { border-top: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.complaint-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.complaint-row:only-child { border-top: 1px solid var(--border); border-radius: var(--radius); }
.complaint-row:hover { background: #fafafa; }
.complaint-row:hover .cr-title { color: var(--red); }

.cr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; }
.cr-title {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
  color: #111; line-height: 1.35; transition: color 0.2s;
  flex: 1;
}
.cr-title:hover { color: var(--red); }
.cr-status { flex-shrink: 0; margin-top: 2px; }

.cr-excerpt {
  font-size: 0.83rem; color: #666; line-height: 1.6;
  margin-bottom: 0.75rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cr-meta {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; font-size: 0.76rem; color: #999;
}
.cr-meta-item { display: flex; align-items: center; gap: 0.3rem; }
.cr-company { color: var(--red); font-weight: 600; text-decoration: none; }
.cr-company:hover { text-decoration: underline; }
.cr-ref { font-family: monospace; font-size: 0.72rem; background: var(--mid); color: #555; padding: 0.15rem 0.45rem; border-radius: 3px; }

.cr-divider { height: 1px; background: var(--border); margin: 0 1.6rem; }

/* List header row */
.complaint-list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.6rem; background: var(--mid);
  border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}
.complaint-list + .complaint-list-header { margin-top: 1rem; }
.clh-count { font-size: 0.75rem; color: var(--gray); font-weight: 600; }
.clh-sort { font-size: 0.75rem; color: var(--gray); }
.clh-sort select { font-size: 0.75rem; padding: 0.25rem 0.5rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; }

/* Make complaint-list-header + complaint-list seamless */
.complaint-list-header + .complaint-list .complaint-row:first-child { border-top: none; border-radius: 0; }
.complaint-list-header + .complaint-list .complaint-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.complaint-list-header + .complaint-list .complaint-row:only-child { border-top: none; border-radius: 0 0 var(--radius) var(--radius); }

@media (max-width: 640px) {
  .complaint-row { padding: 1.1rem 1rem; }
  .cr-top { flex-direction: column; gap: 0.5rem; }
  .cr-meta { gap: 0.6rem; }
  .cr-meta-item { font-size: 0.7rem; }
}

/* Keep old card styles for service checkboxes only (not listings) */
.complaint-card { border-radius: var(--radius); text-decoration: none; color: inherit; display: block; padding: 1.2rem; transition: transform 0.15s, box-shadow 0.15s; }
.complaint-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.1); }
.complaint-card h3 { font-size: 1rem; font-weight: 700; margin: 0.5rem 0 0.3rem; color: #111; }
.complaint-card .cc-meta { font-size: 0.78rem; color: var(--gray); }
.complaint-card .cc-excerpt { font-size: 0.82rem; color: #555; margin-top: 0.5rem; line-height: 1.5; }
.cc-row-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.complaint-card .cc-foot { font-size: 0.74rem; color: #999; margin-top: 0.8rem; }

/* ── STATS STRIP ── */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat-box { display: block; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.15s; }
a.stat-box:hover { border-color: var(--red); transform: translateY(-2px); }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; color: var(--red); line-height: 1; }
.stat-lbl { font-size: 0.72rem; color: var(--gray); margin-top: 0.25rem; }

/* ── CHAT ── */
.ck-chat-window { max-height: 420px; overflow-y: auto; background: #fafafa; border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--border); }
.ck-chat-bubble { border-radius: 12px; padding: 0.7rem 1rem; margin-bottom: 0.7rem; max-width: 82%; font-size: 0.86rem; line-height: 1.45; }
.ck-chat-user { background: var(--red); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.ck-chat-admin { background: #e9e9e9; color: #1f2937; margin-right: auto; border-bottom-left-radius: 3px; }
.ck-chat-bubble .cb-meta { font-size: 0.68rem; opacity: 0.75; margin-top: 0.35rem; }
.ck-chat-form { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.ck-chat-form textarea { flex: 1; }

/* ── FOOTER ── */
footer.site-footer { background: #e8e8e8; color: #444; padding: 3rem 3rem 1.5rem; margin-top: 4rem; border-top: 1px solid var(--border); }
footer.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; max-width: 1180px; margin: 0 auto; }
footer.site-footer h5 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; color: var(--text); font-size: 1.4rem; margin-bottom: 0.6rem; }
footer.site-footer h5 span { color: var(--red); }
footer.site-footer h6 { color: var(--text); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 0.9rem; font-weight: 700; }
footer.site-footer p { font-size: 0.83rem; line-height: 1.65; color: #666; }
footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 0.55rem; }
footer.site-footer a { color: #555; text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
footer.site-footer a:hover { color: var(--red); }
footer.site-footer .footer-bottom { text-align: center; border-top: 1px solid rgba(0,0,0,0.1); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.76rem; color: #888; max-width: 1180px; margin-left: auto; margin-right: auto; }

/* simple top-level footer used on minimal/admin pages */
footer.simple-footer { background: #e8e8e8; border-top: 1px solid var(--border); padding: 1.4rem 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 2px; }
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 0.76rem; color: var(--gray); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.3rem; box-shadow: 0 8px 30px rgba(0,0,0,0.12); font-size: 0.83rem; max-width: 320px; transform: translateY(100px); opacity: 0; transition: all 0.4s; z-index: 999; display: flex; align-items: center; gap: 0.5rem; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--red); }

/* ── ADMIN ── */
.admin-stat-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 0.8rem; }
@media (max-width: 900px) { .admin-stat-grid { grid-template-columns: repeat(3,1fr); } }
.admin-stat { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.admin-stat .num { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; }
.admin-stat .lbl { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  body { padding-top: 70px; }
  nav#mainNav { padding: 1rem 1.2rem; }
  .nav-right { display: none; }
  .hamburger { display: flex; }
  .mobile-overlay { display: block; }
  .page-header { padding: 2.4rem 1.4rem 1.8rem; }
  .page-header::after { font-size: 4rem; }
  .ck-container { width: 94%; }
  .form-row, .services-grid, footer.site-footer .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
  footer.site-footer { padding: 2rem 1.4rem 1.2rem; }
  footer.simple-footer { padding: 1.2rem; flex-direction: column; text-align: center; }
  .wizard-nav { flex-direction: column; }
}
@media (max-width: 480px) {
  .header-trust { gap: 0.9rem; }
  .prog-label { font-size: 0.56rem; }
  .ck-card-body { padding: 1.2rem; }
}





/* ============================================================
   COMPLAINT ROW SPACING FIX
   In your assets/css/style.css, find the existing complaint-list
   and complaint-row rules and REPLACE them with these:
   ============================================================ */

/* List container — gap between rows */
.complaint-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;          /* ← space between each complaint */
}

/* Each complaint row — now fully rounded with its own border */
.complaint-row {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);   /* ← rounded on all sides */
  padding: 1.4rem 1.6rem;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.complaint-row:hover {
  background: #fafafa;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}
.complaint-row:hover .cr-title {
  color: var(--red);
}

/* Remove the old seamless-border overrides that were used
   when rows shared a single border — no longer needed */
.complaint-row:first-child  { border-top: 1px solid var(--border); border-radius: var(--radius); }
.complaint-row:last-child   { border-radius: var(--radius); }
.complaint-row:only-child   { border-radius: var(--radius); }

/* List header sits above the list as its own separate element */
.complaint-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);   /* ← its own rounded box */
  margin-bottom: 0.5rem;          /* ← small gap before first row */
}

/* Remove old seamless connector rules */
.complaint-list-header + .complaint-list .complaint-row:first-child { border-top: 1px solid var(--border); border-radius: var(--radius); }
.complaint-list-header + .complaint-list .complaint-row:last-child  { border-radius: var(--radius); }
.complaint-list-header + .complaint-list .complaint-row:only-child  { border-radius: var(--radius); }

/* Mobile */
@media (max-width: 640px) {
  .complaint-list { gap: 0.7rem; }
  .complaint-row  { padding: 1.1rem 1rem; }
}
