.modal--ticket {
  max-width: 420px;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
}

.ticket-form__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ticket-form__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.ticket-form__input,
.ticket-form__textarea,
.ticket-form__select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  font-family: Vazirmatn, inherit;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ticket-form__textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.ticket-form__input:focus,
.ticket-form__textarea:focus,
.ticket-form__select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ticket-form__unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

.ticket-form__unit-chip svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.ticket-form__prio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ticket-form__prio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ticket-form__prio-btn:hover {
  border-color: rgba(37, 99, 235, 0.25);
  background: #f8fafc;
}

.ticket-form__prio-btn.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.ticket-form__prio-btn--low.is-active { background: #64748b; }
.ticket-form__prio-btn--medium.is-active { background: #2563eb; }
.ticket-form__prio-btn--high.is-active { background: #ea580c; }
.ticket-form__prio-btn--urgent.is-active { background: #dc2626; }

@media (max-width: 380px) {
  .ticket-form__prio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
