.complaint-page {
  margin-bottom: 80px;
}

.complaint-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 28px;
}

.complaint-lead {
  margin: 0;
  max-width: 640px;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}

.complaint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.complaint-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.complaint-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(149, 157, 165, 0.22);
}

.complaint-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.complaint-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #f4f4f4 0%, #e8e8e8 100%);
  overflow: hidden;
}

.complaint-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.complaint-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #c9c9c9;
  font-size: 42px;
}

.complaint-card-body {
  padding: 18px 18px 20px;
}

.complaint-card-body h2 {
  margin: 0 0 10px;
  color: #141414;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.complaint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  color: #666;
  font-size: 14px;
}

.complaint-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.complaint-empty {
  margin: 40px 0;
  text-align: center;
  color: #555;
  font-size: 17px;
}

.complaint-more {
  margin: 36px 0 0;
  text-align: center;
}

.complaint-more .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.complaint-detail {
  width: min(860px, 100%);
  margin: 0 auto 80px;
}

.complaint-detail-head {
  margin-bottom: 22px;
}

.complaint-detail-head h1 {
  margin: 0 0 12px;
  color: #141414;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.complaint-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.complaint-detail-image {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.complaint-detail-image img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.complaint-detail-body {
  color: #333;
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.complaint-form-wrap {
  width: min(760px, 100%);
  margin: 0 auto 80px;
  padding: 28px 28px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.18);
}

.complaint-form-title {
  margin: 0 0 22px;
  color: #141414;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.complaint-field {
  margin-bottom: 16px;
}

.complaint-field label {
  display: block;
  margin-bottom: 8px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.complaint-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #222;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
}

.complaint-form textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.complaint-form .form-control:focus {
  outline: none;
  border-color: #e23d29;
  box-shadow: 0 0 0 3px rgba(226, 61, 41, 0.12);
}

.complaint-error {
  margin: 8px 0 0;
  color: #e23d29;
  font-size: 14px;
  font-weight: 600;
}

.complaint-hint {
  margin: 8px 0 0;
  color: #777;
  font-size: 13px;
}

.complaint-preview {
  margin-top: 12px;
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
}

.complaint-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.complaint-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  margin-top: 6px;
  border-radius: 10px;
  font-weight: 700;
  padding: 12px 26px;
}

@media (max-width: 767px) {
  .complaint-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .complaint-form-wrap {
    padding: 22px 16px 26px;
  }

  .complaint-form-title {
    font-size: 22px;
  }

  .complaint-card-body h2 {
    font-size: 18px;
  }
}

[x-cloak] {
  display: none !important;
}
