/* The suggestion and feedback form (js/suggest.js): web/suggest.html and My account's "Send a suggestion" (the portal).
   Built on css/site.css (tokens, .field, .btn, .status, .notice); the kind tiles follow FitLab's club tiles. */

.sg-main{padding-top:32px}
.sg-wrap{width:100%;max-width:680px;margin-inline:auto;display:flex;flex-direction:column;gap:20px}
.sg-app{min-width:0}
.sg-foot-note{max-width:60ch}
.sg-off p + p{margin-top:8px}

.sg-form,.sg-done{display:flex;flex-direction:column;gap:28px;min-width:0}
.sg-details{display:flex;flex-direction:column;gap:22px;min-width:0}
.sg-set{border:0;margin:0;padding:0;min-width:0}
.sg-legend{padding:0;margin:0 0 16px;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.025em;color:var(--ink)}
.sg-sublegend{padding:0;margin:0 0 10px;font-size:14px;font-weight:500;color:var(--ink-2)}

/* What it's about: eight choices set in type alone, like FitLab's club tiles, in two groups under a small name (Ideas
   and feedback; Something for us to fit): the kind in large type (nothing under it, the owner's choice) and the radio
   button drawn as the round tick on the right. One column at every width, as wide as the boxes under it, the way a
   store's configurator stacks its choices; a little lower than when there were four, so all eight fit a phone's screen
   or two. The name sits in the middle, level with the tick. Chosen: a 2 px accent ring and a faint accent wash; hovered:
   a mid-gray line, quieter than the ring in both themes. */
.sg-group-t{margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--muted)}
.sg-tiles + .sg-group-t{margin-top:20px}
.sg-tiles{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.sg-tile{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;
  border:1px solid var(--line);border-radius:16px;padding:12px 16px 12px 20px;min-height:60px;background:var(--surface);cursor:pointer;-webkit-tap-highlight-color:transparent}
@media (min-width:600px){
  .sg-tiles{gap:10px}
  .sg-tile{padding:16px 20px 16px 24px;min-height:72px}
}
@media (hover:hover){.sg-tile:hover{border-color:color-mix(in srgb, var(--ink) 30%, var(--line))}}
.sg-tile:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background-color:color-mix(in srgb, var(--accent) 5%, var(--surface))}
.sg-tile:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.sg-tile:has(input[aria-invalid="true"]){border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.sg-tile input{grid-column:2;grid-row:1;align-self:center;appearance:none;-webkit-appearance:none;width:24px;height:24px;margin:0;border:1.5px solid var(--line);
  border-radius:50%;background:var(--surface) center/14px 14px no-repeat;cursor:pointer;flex:0 0 auto}
.sg-tile input:checked{border-color:var(--accent-fill);background-color:var(--accent-fill);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@supports selector(:has(*)){.sg-tile input:focus-visible{outline:none}}
@media (forced-colors:active){.sg-tile input,.sg-chip input{appearance:auto;-webkit-appearance:radio}}
.sg-tile-name{grid-column:1;grid-row:1;font-size:17px;font-weight:600;letter-spacing:-.022em;line-height:1.2;color:var(--ink);overflow-wrap:anywhere}
@media (min-width:600px){.sg-tile-name{font-size:19px}}

/* What kind of club: pills */
.sg-chips{display:flex;flex-wrap:wrap;gap:8px}
.sg-chip{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:980px;background:var(--surface);
  font-size:15px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sg-chip:hover{border-color:var(--ink-2)}
.sg-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.sg-chip:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent);background:var(--accent-soft)}
.sg-chip:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}

.sg-field .sg-opt{font-weight:400;color:var(--muted)}
.sg-field textarea{min-height:132px;resize:vertical;line-height:1.5}
.sg-field input::placeholder,.sg-field textarea::placeholder{color:var(--muted);opacity:.8}
.sg-hint{font-size:13px;color:var(--muted);margin:-2px 0 2px}
.sg-count{font-size:13px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.sg-err{font-size:14px;font-weight:500;color:var(--bad);margin:2px 0 0}
.sg-reply{font-size:15px;color:var(--ink-2);background:var(--surface);border-radius:14px;padding:14px 16px;overflow-wrap:anywhere}
.sg-reply b{color:var(--ink);font-weight:600}
.sg-actions .btn{min-height:50px;padding-inline:28px;font-size:17px}
.status.info{color:var(--ink);background:var(--accent-soft);border-radius:12px;padding:12px 14px;font-weight:500}

/* The hidden box only bots fill in: off screen, out of the tab order and hidden from screen readers. */
.sg-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* Problems with the form, linked to each box */
.sg-summary{background:var(--bad-soft);border-radius:var(--r);padding:16px 18px}
.sg-summary-t{font-size:17px;font-weight:600;letter-spacing:-.015em;color:var(--bad)}
.sg-summary ul{margin:8px 0 0;padding-left:20px}
.sg-summary li + li{margin-top:4px}
.sg-summary a{color:var(--bad);font-weight:500}

/* Thank you */
.sg-done{gap:12px;align-items:flex-start}
.sg-done-mark{width:56px;height:56px;color:var(--good)}
.sg-done-mark svg{width:100%;height:100%;display:block;stroke-width:1.2}
.sg-done-t{font-size:clamp(28px,4.6vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.03em}
.sg-done-p{font-size:19px;line-height:1.45;color:var(--ink-2);max-width:34em;overflow-wrap:anywhere}
.sg-done .sg-actions{margin-top:12px}

/* My account's card (the portal's #/account) */
.p-suggest{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.p-suggest h2{font-size:22px;margin-bottom:4px}
.p-suggest .note{max-width:52ch}
.p-suggest-form{padding:28px}

@media (max-width:560px){
  .sg-legend{font-size:21px}
  .sg-actions .btn{flex:1 1 auto}
  .p-suggest-form{padding:20px 16px}
}
@media (prefers-reduced-motion:no-preference){
  .sg-tile,.sg-tile input,.sg-chip{transition:border-color .2s,box-shadow .2s,background-color .2s,color .2s}
  .sg-details:not([hidden]),.sg-done:not([hidden]){animation:sg-in .35s cubic-bezier(.25,.1,.25,1) both}
}
@keyframes sg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media print{.sg-trap,.sg-actions{display:none !important}}
