/* EVO TrustGuard — page-suggestion-box.css
 *
 * Owned by:    suggestion-box.html
 * Category:    portal feature page
 * Cascade:     tokens → base → utilities → components → portal-chrome → shared → shared-themes → page
 * Edit policy: rules unique to this page only. Anything used by 5+
 *              pages should be promoted to /css/components.css or
 *              /css/portal-chrome.css with a /css/AGENTS.md update.
 *
 * Extracted:   1 <style> block(s), 88 lines.
 * Method:      verbatim move — no token substitution applied yet.
 *              See C56 audit Section 10.A for the deferred token
 *              normalization sprint plan.
 */

  body { font-family: var(--font-sans); background: var(--bg); color: var(--dark); line-height: var(--leading-relaxed); min-height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--space-6); }

  /* TOP BAR — byte-identical to profile.html / profile-edit.html */
  .top-bar { background: var(--white); border-bottom: 0.5px solid var(--border); padding: calc(12px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: var(--z-nav); }
  .top-bar-back { background: none; border: none; padding: var(--space-1-5); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--dark); min-width: 36px; min-height: 36px; }
  .top-bar-back svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
  .top-bar-title { font-family: var(--font-sans); font-size: var(--text-input); font-weight: var(--weight-semibold); color: var(--dark); }
  .top-bar-spacer { width: 36px; min-height: 36px; }

  /* PAGE WRAP — gap matches profile.html / profile-edit.html / team-members.html
     exactly. Both formWrap and successWrap inherit the same flex column +
     14px gap so the spacing between cards reads identically to the rest of
     the portal regardless of which state is visible. */
  .page { max-width: 640px; margin: 0 auto; width: 100%; padding: var(--space-4) var(--space-4) var(--space-10); display: flex; flex-direction: column; gap: var(--space-3-5); }
  #formWrap, #successWrap { display: flex; flex-direction: column; gap: var(--space-3-5); }

  /* INTRO CARD — red left-border accent matching the Dashboard tile pattern */
  .intro-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 14px; padding: var(--space-4) var(--space-4-5); box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
  .intro-title { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--dark); line-height: 1.25; margin-bottom: var(--space-1); }
  .intro-body { font-size: var(--text-md); color: var(--light); line-height: 1.45; }

  /* CARD — matches profile-edit.html */
  .card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-4-5); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }

  /* FIELDS — matches profile-edit.html */
  .field { margin-bottom: var(--space-3-5); }
  .field:last-child { margin-bottom: 0; }
  .field-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--mid); margin-bottom: var(--space-2); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
  .field-required { color: var(--red); margin-left: var(--space-0-5); }
  .field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: var(--text-input); color: var(--dark); background: var(--white); outline: none; transition: border-color 0.15s; min-height: 140px; resize: vertical; line-height: 1.45; }
  .field textarea:focus { border-color: var(--red); }
  .char-counter { font-size: var(--text-sm); color: var(--light); margin-top: var(--space-1-5); text-align: right; font-weight: var(--weight-regular); }
  .char-counter.over { color: var(--red); font-weight: var(--weight-semibold); }

  /* CATEGORY GRID — 2x2 chips with red border + tinted background when selected */
  .category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2-5); }
  .cat-chip { display: flex; align-items: center; gap: var(--space-2-5); padding: var(--space-3-5) var(--space-3-5); border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); color: var(--dark); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; text-align: left; min-height: 56px; }
  .cat-chip:hover { border-color: var(--border-strong); background: var(--surface-light); }
  .cat-chip.selected { border-color: var(--red); background: var(--red-light); color: var(--red); }
  .cat-chip-icon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .cat-chip-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .cat-chip-label { flex: 1; min-width: 0; }

  /* SCREENSHOT DROP ZONE */
  .drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-5-5) var(--space-3-5); border: 1.5px dashed var(--border); border-radius: 10px; background: var(--surface-light); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
  .drop-zone:hover { border-color: var(--red); background: var(--red-light); }
  .drop-zone-icon { width: 28px; height: 28px; color: var(--light); }
  .drop-zone-icon svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .drop-zone-primary { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--dark); }
  .drop-zone-secondary { font-size: var(--text-sm); color: var(--light); }

  .file-preview { display: none; align-items: center; gap: var(--space-3); padding: var(--space-2-5) var(--space-3); border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); }
  .file-preview.visible { display: flex; }
  .file-preview-thumb { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-light); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .file-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .file-preview-info { flex: 1; min-width: 0; }
  .file-preview-name { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-preview-size { font-size: var(--text-sm); color: var(--light); margin-top: var(--space-0-5); }
  .file-preview-remove { background: none; border: none; color: var(--light); padding: var(--space-1-5); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .file-preview-remove:hover { color: var(--red); }
  .file-preview-remove svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  .file-error { font-size: var(--text-sm); color: var(--red); margin-top: var(--space-1-5); display: none; }
  .file-error.visible { display: block; }

  /* SUBMIT — primary red button matches profile-edit.html .save-btn */
  .submit-area { padding: var(--space-1) 0 0; display: flex; flex-direction: column; gap: var(--space-2-5); }
  .submit-btn { display: block; width: 100%; background: var(--red); color: var(--white); border: none; padding: var(--space-3-5) var(--space-5); border-radius: 100px; font-family: var(--font-sans); font-size: var(--text-lg); font-weight: var(--weight-bold); cursor: pointer; transition: background 0.15s; }
  .submit-btn:hover:not(:disabled) { background: var(--red-hover); }
  .submit-btn:disabled { background: var(--border-strong); cursor: not-allowed; }

  .submit-error { color: var(--red); font-size: var(--text-md); margin-top: var(--space-2-5); display: none; text-align: center; font-weight: var(--weight-medium); }
  .submit-error.visible { display: block; }

  /* SUCCESS STATE */
  .success-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 14px; padding: var(--space-7) var(--space-5-5); box-shadow: 0 2px 6px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3-5); }
  .success-check { width: 56px; height: 56px; border-radius: 50%; background: #e6f5eb; color: var(--green); display: flex; align-items: center; justify-content: center; }
  .success-check svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .success-title { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--dark); line-height: var(--leading-tight); }
  .success-body { font-size: var(--text-base); color: var(--light); line-height: var(--leading-relaxed); max-width: 360px; }
  .success-action { margin-top: var(--space-1-5); }
  .success-btn { display: inline-block; padding: 11px 24px; border-radius: 100px; background: var(--white); color: var(--dark); border: 1.5px solid var(--border); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
  .success-btn:hover { border-color: var(--dark); background: var(--surface-light); }

  .loading { padding: 60px 20px; text-align: center; color: var(--light); font-size: var(--text-base); }

  /* Hide form / success based on state — controlled via .hidden on the wrappers */
  .hidden { display: none !important; }
