/* Feedback bottom-sheet — the "Enviar sugerencia" form opened from the header
 * context menu on every screen. Chrome (fixed bottom sheet, slide-up, backdrop,
 * header) comes from .select-modal; this file styles only the form body.
 */

@layer components {
  .feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);

    /* Sheet is capped at 70vh by .select-modal; let a long form scroll
       without showing the scrollbar chrome (modal scrollbar convention). */
    overflow-y: auto;
    scrollbar-width: none;
  }

  .feedback-form::-webkit-scrollbar {
    display: none;
  }

  .feedback-form__intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-muted);
  }

  .feedback-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .feedback-cat {
    padding: 8px 14px;
    min-height: 36px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition:
      border-color 120ms ease,
      color 120ms ease,
      background 120ms ease;
  }

  .feedback-cat.is-active {
    border-color: var(--color-accent);
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  }

  .feedback-cat:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  .feedback-textarea,
  .feedback-email {
    width: 100%;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px;
  }

  .feedback-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.45;
  }

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

  .feedback-textarea:focus-visible,
  .feedback-email:focus-visible {
    outline: none;
    border-color: var(--color-accent);
  }

  .feedback-submit {
    margin-top: var(--space-1);
    padding: 13px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--weight-semibold);
    cursor: pointer;
  }

  .feedback-submit:disabled {
    opacity: 0.6;
    cursor: default;
  }

  .feedback-submit:active {
    transform: translateY(1px);
  }
}
