/* ==========================================================================
   Connect Instruments - GPS Complaint Management System Stylesheet
   Corporate Color Palette:
     - Primary Red: #D92332
     - Primary Red Hover: #b71825
     - Accent Red Light: #fde8ea
     - White: #FFFFFF
     - Dark Grey Text: #2b2f33 / #444444
     - Border Grey: #e5e7eb
   ========================================================================== */

:root {
  --ci-red: #D92332;
  --ci-red-hover: #b71825;
  --ci-red-light: #fde8ea;
  --ci-red-glow: rgba(217, 35, 50, 0.2);
  --ci-white: #ffffff;
  --ci-dark: #212529;
  --ci-text-gray: #4b5563;
  --ci-light-gray: #f8f9fa;
  --ci-border: #e2e8f0;
  --ci-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --ci-shadow-hover: 0 8px 30px rgba(217, 35, 50, 0.15);
  --ci-radius: 10px;
}

/* Page Banner / Hero */
.complaint-hero {
  background: linear-gradient(135deg, #1f2429 0%, #2b3036 100%);
  color: #ffffff;
  padding: 130px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.complaint-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(217, 35, 50, 0.25) 0%, rgba(217, 35, 50, 0) 70%);
  pointer-events: none;
}

.complaint-hero h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.complaint-hero h1 span {
  color: var(--ci-red);
}

.complaint-hero p {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 680px;
  margin: 0;
}

.complaint-hero .breadcrumbs-ci {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #94a3b8;
}

.complaint-hero .breadcrumbs-ci a {
  color: #e2e8f0;
  transition: color 0.2s;
}

.complaint-hero .breadcrumbs-ci a:hover {
  color: var(--ci-red);
}

/* Navigation 3 Main Buttons Bar */
.complaint-hub-nav {
  margin-top: -35px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ci-main-action-btn {
  background: #ffffff;
  border: 2px solid #eaedf1;
  border-radius: var(--ci-radius);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--ci-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ci-dark);
  position: relative;
  overflow: hidden;
}

.ci-main-action-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.ci-main-action-btn .btn-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f8f9fa;
  color: var(--ci-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.ci-main-action-btn .btn-title {
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ci-dark);
}

.ci-main-action-btn .btn-desc {
  font-size: 13px;
  color: var(--ci-text-gray);
  margin: 0;
  line-height: 1.4;
}

.ci-main-action-btn:hover {
  border-color: var(--ci-red);
  transform: translateY(-4px);
  box-shadow: var(--ci-shadow-hover);
  color: var(--ci-dark);
}

.ci-main-action-btn:hover .btn-icon-wrap {
  background: var(--ci-red-light);
  transform: scale(1.08);
}

/* Active State for Selected Button */
.ci-main-action-btn.active {
  background: #ffffff;
  border-color: var(--ci-red);
  box-shadow: 0 8px 25px rgba(217, 35, 50, 0.18);
  transform: translateY(-4px);
}

.ci-main-action-btn.active::after {
  background: var(--ci-red);
}

.ci-main-action-btn.active .btn-icon-wrap {
  background: var(--ci-red);
  color: #ffffff;
}

.ci-main-action-btn.active .btn-title {
  color: var(--ci-red);
}

/* Sections Container */
.complaint-section-card {
  background: #ffffff;
  border-radius: var(--ci-radius);
  border: 1px solid var(--ci-border);
  box-shadow: var(--ci-shadow);
  padding: 35px 40px;
  margin-bottom: 40px;
  transition: opacity 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Guard against external AOS styles hiding sections */
.complaint-section-card[data-aos],
[data-aos].complaint-section-card,
.complaint-hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.section-header-wrap {
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.section-header-wrap h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ci-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-wrap h2 i {
  color: var(--ci-red);
}

.section-header-wrap p {
  color: var(--ci-text-gray);
  margin: 0;
  font-size: 14.5px;
}

/* Form Controls */
.ci-form-label {
  font-weight: 600;
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

.ci-form-label .req {
  color: var(--ci-red);
  margin-left: 2px;
}

.ci-form-label .optional {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.ci-form-control,
.ci-form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14.5px;
  color: #1f2937;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ci-form-control:focus,
.ci-form-select:focus {
  border-color: var(--ci-red);
  box-shadow: 0 0 0 3px var(--ci-red-glow);
}

.ci-form-control::placeholder {
  color: #9ca3af;
}

textarea.ci-form-control {
  min-height: 110px;
  resize: vertical;
}

.ci-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}

/* File Upload Drop Zone */
.ci-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.ci-upload-zone:hover,
.ci-upload-zone.dragover {
  border-color: var(--ci-red);
  background: #fff5f5;
}

.ci-upload-zone i {
  font-size: 32px;
  color: var(--ci-red);
  margin-bottom: 8px;
  display: inline-block;
}

.ci-upload-zone p {
  font-size: 13.5px;
  margin: 0;
  color: #475569;
}

.ci-upload-zone span {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

.file-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: #1e293b;
}

.file-preview-pill .remove-file {
  color: var(--ci-red);
  cursor: pointer;
  font-weight: bold;
}

/* Buttons */
.btn-ci-primary {
  background: var(--ci-red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-ci-primary:hover {
  background: var(--ci-red-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--ci-red-glow);
}

.btn-ci-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-ci-secondary {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ci-secondary:hover {
  background: #e9ecef;
  color: #212529;
}

.btn-ci-outline {
  background: transparent;
  color: var(--ci-red);
  border: 1.5px solid var(--ci-red);
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ci-outline:hover {
  background: var(--ci-red);
  color: #ffffff;
}

/* Success Card with Generated ID */
.ci-success-box {
  background: #ffffff;
  border-radius: var(--ci-radius);
  border: 2px solid #bbf7d0;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.08);
}

.ci-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
}

.ci-id-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  padding: 12px 24px;
  border-radius: 8px;
  margin: 18px 0;
}

.ci-generated-id {
  font-family: monospace, "Courier New", Courier;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ci-red);
}

.btn-copy-id {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-id:hover {
  border-color: var(--ci-red);
  color: var(--ci-red);
}

.btn-copy-id.copied {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* Status Badges */
.ci-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ci-status-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-new {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.status-new::before { background: #2563eb; }

.status-under_review {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.status-under_review::before { background: #7c3aed; }

.status-technician_assigned {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}
.status-technician_assigned::before { background: #0891b2; }

.status-under_process {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-under_process::before { background: #d97706; }

.status-waiting_for_customer {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}
.status-waiting_for_customer::before { background: #ca8a04; }

.status-resolved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.status-resolved::before { background: #16a34a; }

.status-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.status-closed::before { background: #64748b; }

.status-cancellation_requested {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.status-cancellation_requested::before { background: #e11d48; }

.status-cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-cancelled::before { background: #dc2626; }

/* Status Result Card */
.status-result-card {
  background: #ffffff;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius);
  box-shadow: var(--ci-shadow);
  padding: 30px;
  margin-top: 25px;
}

.status-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #edf2f7;
}

.status-meta-item .meta-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-meta-item .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

/* Progress Stepper */
.ci-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 35px 0 25px 0;
}

.ci-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.ci-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.ci-step .step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.ci-step.completed .step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.ci-step.active .step-circle {
  background: var(--ci-red);
  border-color: var(--ci-red);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--ci-red-glow);
}

.ci-step .step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 8px;
}

.ci-step.active .step-label,
.ci-step.completed .step-label {
  color: #1e293b;
}

/* Timeline component */
.ci-timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 25px;
}

.ci-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.ci-timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.ci-timeline-item:last-child {
  margin-bottom: 0;
}

.ci-timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--ci-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-timeline-dot.success {
  border-color: #16a34a;
}

.ci-timeline-content {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 18px;
  border: 1px solid #edf2f7;
}

.ci-timeline-time {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.ci-timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.ci-timeline-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}

/* Alert Box */
.ci-alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.ci-alert i {
  font-size: 20px;
  line-height: 1;
}

.ci-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.ci-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ci-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ci-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Support Help Card */
.support-info-card {
  background: #ffffff;
  border-radius: var(--ci-radius);
  border: 1px solid var(--ci-border);
  box-shadow: var(--ci-shadow);
  padding: 28px;
  margin-top: 30px;
}

.support-info-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ci-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-info-card h4 i {
  color: var(--ci-red);
}

.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #475569;
}

.support-item i {
  font-size: 18px;
  color: var(--ci-red);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .action-buttons-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .complaint-section-card {
    padding: 24px 20px;
  }

  .ci-stepper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .ci-stepper::before {
    display: none;
  }

  .ci-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .ci-step .step-label {
    margin-top: 0;
  }
}

