/* ============================================================
   FEEDBACK PAGE
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.feedback-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-category {
  flex: 1 1 calc(33.333% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 8px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 0;
}

.feedback-category:hover {
  border-color: var(--text-muted);
  background: var(--hover-bg);
}

.feedback-category.selected {
  border-color: var(--accent-purple);
  background: var(--accent-focus-ring);
  color: var(--text-muted-bright);
}

.cat-icon-banana {
  width: 32px;
  height: 48px;
  flex-shrink: 0;
}

.star-rating {
  display: flex;
  gap: 6px;
}

.star {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: none;
  border: none;
  color: var(--text-muted);
}

.star svg {
  width: 100%;
  height: 100%;
}

.star:hover {
  color: var(--text-muted-bright);
}

.star.filled {
  color: var(--text-muted-bright);
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}

.char-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  opacity: 0.7;
}

.feedback-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.feedback-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}

.feedback-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.feedback-submit {
  max-width: 240px;
  justify-content: center;
}

.feedback-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.feedback-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 16px;
}

.feedback-success.show {
  display: flex;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-focus-ring);
  border: 2px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent-purple);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.success-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
}

#turnstile-feedback {
  display: flex;
  margin-top: 16px;
}

/* ============================================================
   FEEDBACK PAGE LAYOUT
   ============================================================ */

.feedback-app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-md);
}

.feedback-left {
  display: none;
}

.feedback-right {
  padding: 24px 20px 32px;
}

.feedback-right-inner {
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .feedback-right-inner {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .feedback-app {
    display: flex;
    flex-direction: row;
  }

  .feedback-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38%;
    flex-shrink: 0;
    background: var(--bg-purple-light);
    padding: 48px;
    text-align: left;
  }

  .feedback-left-inner {
    max-width: 340px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--panel-border);
    padding: 6px;
    background: var(--panel-bg);
    margin-bottom: 32px;
  }

  .feedback-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(
      147deg,
      var(--grad-text-start) 0%,
      var(--grad-text-end) 82%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
  }

  .feedback-left .feedback-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 36px;
  }

  .feedback-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .feedback-bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .feedback-bullet svg {
    width: 16px;
    height: 16px;
    color: var(--accent-purple);
    flex-shrink: 0;
    margin-top: 3px;
  }

  .feedback-right {
    flex: 1;
    padding: 48px;
    border-left: 1px solid var(--panel-border);
  }

  .feedback-right-inner {
    width: 100%;
    max-width: none;
  }

  .form-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }

  .form-row > .form-group {
    flex: 1;
    min-width: 0;
  }

  .star {
    width: 40px;
    height: 40px;
  }
}
