/* ===========================
   LODGE A COMPLAINT
   Site palette: red #da0f32, navy #0f2765, text #252a37, muted #626c84
   =========================== */
.complaint-area { background: #f7f8fa; padding: 60px 0; }

.complaint-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(15, 39, 101, 0.10);
  overflow: hidden;
  border-top: 4px solid #da0f32;
}

.complaint-card-header {
  display: flex;
  align-items: center;
  background: #0f2765;
  padding: 18px 28px;
}
.complaint-card-header > i { font-size: 30px; color: #fff; margin-right: 14px; }
.complaint-card-header h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.complaint-card-header p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,0.8); }
.complaint-card-header .req { color: #ffd34d; }

.complaint-form { padding: 28px; }
.complaint-form .form-group { margin-bottom: 22px; }
.complaint-form label { font-size: 14px; font-weight: 600; color: #252a37; margin-bottom: 6px; display: block; }
.complaint-form label .kn { font-weight: 400; color: #626c84; }
.complaint-form .req { color: #da0f32; }

.complaint-form .form-control {
  font-size: 15px;
  height: auto;
  padding: 10px 14px;
  border: 1px solid #d5d9e2;
  border-radius: 4px;
  background-color: #fbfbfd;
  color: #252a37;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.complaint-form .form-control:focus {
  border-color: #0f2765;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(15, 39, 101, 0.15);
}
.complaint-form select.form-control { cursor: pointer; }
.complaint-form textarea.form-control { resize: vertical; min-height: 130px; }

.input-icon { position: relative; }
.input-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f2765;
  pointer-events: none;
  z-index: 1;
  width: 16px;
  text-align: center;
}
.input-icon .form-control { padding-left: 40px; }
/* Bootstrap only shows .invalid-feedback for direct siblings; wrapped inputs need this */
.was-validated .input-icon:has(:invalid) ~ .invalid-feedback { display: block; }

.char-count { font-size: 12px; color: #626c84; margin-top: 4px; }

.complaint-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}
.complaint-actions .btn { margin-left: 12px; }
.btn.btn-complaint-close { background: transparent; color: #626c84; border: 1px solid #ced4da; font-size: 13px; font-weight: 700; padding: 10px 25px; border-radius: 3px; }
.btn.btn-complaint-close:hover { background: #626c84; border-color: #626c84; color: #fff; }
.btn.btn-primary:disabled { background: #da0f32; opacity: 0.7; }
.complaint-actions .btn.btn-primary:hover { background: #0f2765; }

/* Right-hand help panel */
.complaint-help .column-title { margin-bottom: 25px; }
.complaint-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 30px; }
.complaint-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 46px;
  font-size: 14px;
  color: #626c84;
}
.complaint-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f2765;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.complaint-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: #da0f32;
  opacity: 0.4;
}
.complaint-steps strong { color: #252a37; }

.complaint-help h4 { font-size: 18px; margin: 0 0 15px; }
.complaint-contact { display: flex; align-items: flex-start; margin-bottom: 15px; }
.complaint-contact > i {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #da0f32;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}
.complaint-contact h5 { font-size: 14px; margin: 0 0 2px; color: #252a37; }
.complaint-contact p, .complaint-contact a { margin: 0; font-size: 14px; color: #626c84; }
.complaint-contact a:hover { color: #da0f32; }

.complaint-safe {
  margin-top: 25px;
  padding: 16px 18px;
  border-left: 4px solid #da0f32;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 39, 101, 0.08);
  font-size: 14px;
  color: #626c84;
}
.complaint-safe strong { color: #252a37; display: block; margin-bottom: 4px; }

@media (max-width: 991px) {
  .complaint-help { margin-top: 40px; }
}
@media (max-width: 576px) {
  .complaint-area { padding: 40px 0; }
  .complaint-form { padding: 20px 16px; }
  .complaint-card-header { padding: 16px; }
  .complaint-actions { flex-direction: column-reverse; }
  .complaint-actions .btn { width: 100%; margin: 0 0 10px; }
}
