/* Feedback form page */

.feedback-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  background-color: #fff;
  background-image: url("/static/images/main_bg.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.feedback-page .page-main {
  flex: 1;
  padding: 30px 0 60px;
  gap: 30px;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.breadcrumb {
  margin: 0;
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary-500);
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.feedback-panel {
  width: 100%;
  padding: 60px 220px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 60px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-sizing: border-box;
}

.feedback-panel__title {
  margin: 0;
  text-align: center;
  color: var(--text-primary);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 32px;
}

.feedback-panel__subtitle {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 22px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}

.feedback-field__label {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.feedback-field__star {
  color: var(--color-primary-500);
  font-weight: 400;
}

.feedback-field__label--suffix .feedback-field__star {
  color: var(--text-primary);
}

.feedback-field__label span {
  font-weight: 400;
}

.feedback-card {
  padding: 24px 36px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.feedback-chips--equal {
  gap: 12px;
}

.feedback-chip {
  padding: 12px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
}

.feedback-chip--muted {
  color: var(--text-secondary);
}

.feedback-chip--active {
  border-color: rgba(255, 255, 255, 0.1);
  background: #ff2d55;
  color: #fff;
}

.feedback-chip--grow {
  flex: 1 1 0;
  text-align: center;
}

.feedback-subsections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-subsection__title {
  margin: 0;
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.feedback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feedback-row > * {
  flex: 1 1 0;
  min-width: 140px;
}

.feedback-select-wrap {
  position: relative;
}

.feedback-select {
  width: 100%;
  padding: 18px 24px;
  padding-right: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  line-height: 22px;
  appearance: none;
  box-sizing: border-box;
}

.feedback-select--button {
  text-align: left;
  cursor: pointer;
}

.feedback-select--button span {
  color: var(--text-secondary);
}

.feedback-select--button.feedback-select--button-has-value span {
  color: var(--text-primary);
}

.feedback-select-wrap::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-neutral-900);
  pointer-events: none;
}

.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-dialog[hidden] {
  display: none;
}

.feedback-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.feedback-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 90vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.feedback-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.feedback-dialog__title {
  margin: 0;
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
}

.feedback-dialog__close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.feedback-dialog__body {
  padding: 12px 20px 16px;
}

.feedback-dialog__list {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.feedback-dialog__list--single {
  grid-template-columns: 1fr;
}

.feedback-dialog__item {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  cursor: pointer;
  text-align: center;
}

.feedback-dialog__item:hover,
.feedback-dialog__item--active {
  border-color: var(--color-primary-500);
  background: rgba(255, 45, 85, 0.06);
  color: var(--color-primary-500);
}

.feedback-input {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  line-height: 22px;
  box-sizing: border-box;
  outline: none;
}

.feedback-input::placeholder,
.feedback-textarea::placeholder {
  color: var(--text-placeholder);
}

.feedback-textarea-wrap {
  position: relative;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.feedback-textarea {
  width: 100%;
  min-height: 195px;
  border: none;
  resize: vertical;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  line-height: 22px;
  background: transparent;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  outline: none;
}

.feedback-counter {
  margin: 0;
  text-align: right;
  color: var(--text-placeholder);
  font-size: 14px;
  line-height: 20px;
}

.feedback-upload-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.feedback-upload {
  width: 300px;
  height: 300px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  box-sizing: border-box;
}

.feedback-upload--hidden {
  display: none;
}

.feedback-upload--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.feedback-upload__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.feedback-upload__loading[hidden] {
  display: none;
}

.feedback-upload__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  animation: feedback-upload-spin 0.8s linear infinite;
}

@keyframes feedback-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.feedback-upload__preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-upload__preview-list[hidden] {
  display: none;
}

.feedback-upload__preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.feedback-upload__preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-upload__preview-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
}

.feedback-upload__preview-mask--error {
  background: rgba(217, 48, 37, 0.7);
}

.feedback-upload__preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.feedback-upload__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.feedback-upload__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.feedback-upload__title {
  margin: 0;
  text-align: center;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
}

.feedback-upload__hint {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.feedback-submit {
  width: 100%;
  padding: 18px 90px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary-500);
  color: #fff;
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  line-height: 22px;
  cursor: pointer;
}

.feedback-submit:hover {
  opacity: 0.92;
}

.feedback-note {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 22px;
}

@media (max-width: 1280px) {
  .feedback-panel {
    padding: 48px 48px;
    border-radius: 32px;
  }
}

@media (max-width: 768px) {
  .feedback-page {
    background-image: none;
    min-height: auto;
  }

  .feedback-page .page-main {
    gap: 18px;
    padding: 12px 0 32px;
  }

  .feedback-content.layout-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: none;
  }

  .breadcrumb {
    font-size: 12px;
    line-height: 18px;
  }

  .feedback-panel {
    padding: 24px 20px;
    background: #fff;
    border-radius: 18px;
    border: none;
    outline: 1px solid var(--color-black-alpha-10);
    outline-offset: -1px;
    backdrop-filter: none;
    gap: 0;
    overflow: hidden;
  }

  .feedback-panel__title,
  .feedback-panel__subtitle {
    display: none;
  }

  .feedback-form {
    gap: 18px;
  }

  .feedback-field {
    gap: 12px;
  }

  .feedback-field__label {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .feedback-card {
    padding: 24px 18px;
    border-radius: 24px;
    border: none;
    outline: 1px solid var(--color-black-alpha-5);
    outline-offset: -1px;
    box-shadow: none;
    margin-top: 12px;
  }

  .feedback-chips {
    gap: 12px;
  }

  .feedback-chips--equal {
    gap: 12px;
  }

  .feedback-chip {
    padding: 12px 11px;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-secondary);
  }

  .feedback-chips--equal .feedback-chip:not(.feedback-chip--active) {
    color: var(--text-primary);
  }

  .feedback-chip--grow {
    padding-left: 24px;
    padding-right: 24px;
  }

  .feedback-chip--active {
    color: #fff;
  }

  .feedback-subsections {
    gap: 12px;
  }

  .feedback-subsection {
    gap: 12px;
  }

  .feedback-subsection__title {
    font-size: 14px;
    line-height: 20px;
  }

  .feedback-row {
    flex-direction: column;
    gap: 12px;
  }

  .feedback-row > * {
    min-width: 0;
  }

  .feedback-select {
    padding: 12px 24px;
    padding-right: 40px;
    font-size: 12px;
    line-height: 18px;
  }

  .feedback-select-wrap::after {
    right: 24px;
  }

  .feedback-input {
    padding: 12px 18px;
    font-size: 12px;
    line-height: 18px;
  }

  .feedback-card--contact {
    padding: 24px;
  }

  .feedback-card--contact .feedback-input {
    border: none;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 20px;
  }

  .feedback-textarea-wrap {
    padding: 24px;
    border-radius: 24px;
    border: none;
    outline: 1px solid var(--color-black-alpha-5);
    outline-offset: -1px;
    box-shadow: none;
    gap: 18px;
    margin-top: 12px;
  }

  .feedback-textarea {
    min-height: 195px;
    font-size: 14px;
    line-height: 20px;
  }

  .feedback-counter {
    font-size: 14px;
    line-height: 20px;
  }

  .feedback-upload {
    width: 160px;
    height: 160px;
    max-width: none;
    padding: 24px;
    border-radius: 24px;
    border: none;
    outline: 1px solid var(--color-black-alpha-5);
    outline-offset: -1px;
    box-shadow: none;
    gap: 12px;
  }

  .feedback-upload__icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
    border-radius: 4px;
  }

  .feedback-submit {
    padding: 18px 90px;
    font-size: 16px;
    line-height: 22px;
  }

  .feedback-note {
    font-size: 12px;
    line-height: 18px;
  }
}
