.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 215;
  background: #09090a;
  color: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.feedback-modal.is-open {
  transform: translateX(0);
  visibility: visible;
}

.feedback-modal-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.feedback-modal-header {
  display: grid;
  grid-template-columns: 2.35rem 1fr 2.35rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem 1rem;
}

.feedback-modal-back,
.feedback-modal-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.feedback-modal-history {
  justify-self: end;
}

.feedback-modal-back .material-symbols-outlined,
.feedback-modal-history .material-symbols-outlined {
  font-size: 1.45rem;
  line-height: 1;
}

.feedback-modal-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}

.feedback-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.95rem 1rem;
}

.feedback-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.15rem;
}

.feedback-banner .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffc0d0;
}

.feedback-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.feedback-banner strong {
  color: #ffc0d0;
  font-weight: 700;
}

.feedback-section-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}

.feedback-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.feedback-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.feedback-category:hover {
  background: rgba(255, 255, 255, 0.08);
}

.feedback-category.is-selected {
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.08);
}

.feedback-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
}

.feedback-category-icon .material-symbols-outlined {
  font-size: 1.15rem;
  line-height: 1;
}

.feedback-category-label {
  flex: 1;
}

.feedback-category-check {
  font-size: 1.1rem;
  line-height: 1;
  color: transparent;
}

.feedback-category.is-selected .feedback-category-check {
  color: #ff6b8a;
}

.feedback-details {
  width: 100%;
  min-height: 8.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
}

.feedback-details:focus {
  outline: none;
  border-color: rgba(255, 107, 122, 0.45);
}

.feedback-details::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.feedback-status {
  min-height: 1.2rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.feedback-status.is-error {
  color: #ff8a80;
}

.feedback-status.is-success {
  color: #ffc0d0;
}

.feedback-modal-footer {
  padding: 0.75rem 0.95rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #09090a;
}

.feedback-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc0d0, #ff6b8a);
  color: #1c1028;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.feedback-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feedback-submit:not(:disabled):active {
  transform: scale(0.985);
}

body.feedback-modal-open {
  overflow: hidden;
}
