/* Страница обратной связи /feedback — dash-card, палитра портала */

.feedback-page {
  min-width: 0;
}

.feedback-page .vacancies-search-header {
  margin-bottom: 0.75rem;
}

.feedback-page-lead {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.feedback-section {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.feedback-section:last-of-type {
  margin-bottom: 0;
}

.feedback-section__title {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blacky, #22272a);
  border-bottom: 1px solid rgba(7, 192, 161, 0.12);
  background: linear-gradient(180deg, rgba(101, 205, 154, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.feedback-section__body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.feedback-section--ticket .feedback-section__body {
  background: linear-gradient(135deg, rgba(7, 192, 161, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.feedback-ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.feedback-ticket-head__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blacky, #22272a);
  line-height: 1.3;
  min-width: 0;
  flex: 1 1 12rem;
}

.feedback-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.feedback-ticket-meta i {
  margin-right: 0.2rem;
}

.feedback-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feedback-form .form-label {
  color: #333;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.feedback-form .form-control {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafb;
  min-height: 2.5rem;
  font-size: 0.9375rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.feedback-form .form-control:focus {
  border-color: rgba(7, 192, 161, 0.55);
  background-color: #fff;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.06),
    0 0 0 0.2rem rgba(7, 192, 161, 0.15);
}

.feedback-form textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.feedback-form .alert {
  border-radius: 10px;
  font-size: 0.875rem;
}

.feedback-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-message {
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.feedback-message-user {
  border-color: rgba(22, 157, 142, 0.18);
  background: rgba(22, 157, 142, 0.04);
}

.feedback-message-admin {
  border-color: rgba(7, 192, 161, 0.22);
  background: rgba(7, 192, 161, 0.07);
}

.feedback-message-system {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
}

.feedback-message-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.feedback-message-text {
  white-space: pre-wrap;
  line-height: 1.5;
  color: #334155;
  font-size: 0.9375rem;
}

.feedback-message-origin {
  margin-top: 0.45rem;
  display: inline-block;
  font-size: 0.75rem;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.feedback-tickets-list {
  display: flex;
  flex-direction: column;
}

.feedback-ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease;
}

.feedback-ticket-item:last-child {
  border-bottom: none;
}

.feedback-ticket-item:hover {
  background-color: #f8fafc;
}

.feedback-ticket-main {
  min-width: 0;
}

.feedback-ticket-title {
  font-weight: 600;
  color: var(--blacky, #22272a);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.feedback-ticket-item:hover .feedback-ticket-title {
  color: #117b72;
}

.feedback-ticket-item-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.feedback-ticket-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.feedback-empty {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin: 0;
}

.feedback-back {
  margin: 0.25rem 0 0;
}

.feedback-success {
  text-align: center;
  padding: 2rem 1.25rem;
}

.feedback-success__text {
  margin: 0;
  color: #475569;
  font-size: 0.975rem;
  line-height: 1.55;
  max-width: 28rem;
  margin-inline: auto;
}

/* Кнопки — mint primary, как на главной (body_guest_home .hg-cta-fill) */
.feedback-page .hg-cta-fill,
.feedback-page .btn.hg-cta-fill,
.feedback-page .btn.hg-cta-fill:link,
.feedback-page .btn.hg-cta-fill:visited,
.feedback-page .btn.hg-cta-fill:active {
  background: #169d8e;
  background-color: #169d8e;
  border: 1px solid #169d8e;
  color: #fff !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  height: auto;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  line-height: 1.35;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feedback-page .hg-cta-fill:hover,
.feedback-page .hg-cta-fill:focus,
.feedback-page .btn.hg-cta-fill:hover,
.feedback-page .btn.hg-cta-fill:focus,
.feedback-page .btn.hg-cta-fill:focus-visible {
  background: #148a7d;
  background-color: #148a7d;
  border-color: #148a7d;
  color: #fff !important;
  box-shadow: none;
  text-decoration: none;
}

.feedback-page .btn.hg-cta-fill:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.35);
}

.feedback-form .btn.btn-lg.hg-cta-fill {
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 1rem;
}

.feedback-page .hg-cta-outline,
.feedback-page .btn.hg-cta-outline {
  background: transparent;
  color: #117b72 !important;
  border: 2px solid #18b9a7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  box-shadow: none;
}

.feedback-page .hg-cta-outline:hover,
.feedback-page .hg-cta-outline:focus,
.feedback-page .btn.hg-cta-outline:hover,
.feedback-page .btn.hg-cta-outline:focus {
  background: rgba(22, 157, 142, 0.08);
  color: #0d5c56 !important;
  border-color: #169d8e;
}

.feedback-page .hg-cta-outline--muted,
.feedback-page .btn.hg-cta-outline--muted {
  color: #64748b !important;
  border-color: #cbd5e1;
}

.feedback-page .hg-cta-outline--muted:hover,
.feedback-page .hg-cta-outline--muted:focus,
.feedback-page .btn.hg-cta-outline--muted:hover,
.feedback-page .btn.hg-cta-outline--muted:focus {
  background: #f8fafc;
  color: #475569 !important;
  border-color: #94a3b8;
}

/* Вложения */
.feedback-attach__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.feedback-attach__hint kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  font-size: 0.75rem;
  font-family: inherit;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.feedback-attach__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
}

.feedback-attach__pick {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.feedback-attach__pick:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.feedback-attach__paste-hint {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.feedback-attach__count {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.feedback-attach--drag {
  outline: 2px dashed rgba(22, 157, 142, 0.45);
  outline-offset: 4px;
  border-radius: 10px;
}

.feedback-attach-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feedback-attach-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #fff;
}

.feedback-attach-item__preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.feedback-attach-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-attach-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}

.feedback-attach-item__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.feedback-attach-item__name {
  font-size: 0.875rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-attach-item__size {
  font-size: 0.75rem;
  color: #94a3b8;
}

.feedback-attach-item__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.feedback-attach-item__remove:hover {
  background: #f1f5f9;
  color: #475569;
}

.feedback-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.feedback-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.feedback-attachment:hover {
  border-color: rgba(22, 157, 142, 0.45);
  background: rgba(22, 157, 142, 0.04);
  text-decoration: none;
  color: inherit;
}

.feedback-attachment--image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.feedback-attachment--file > i {
  color: #64748b;
  font-size: 1.1rem;
}

.feedback-attachment__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.05rem;
}

.feedback-attachment__name {
  font-size: 0.8125rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.feedback-attachment__size {
  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-fb-msg .feedback-attachments {
  margin-top: 0.55rem;
}

@media (max-width: 767.98px) {
  .feedback-ticket-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-section__body {
    padding: 1rem 0.95rem 1.1rem;
  }

  .feedback-ticket-item {
    padding: 0.9rem 0.95rem;
  }
}
