/* Helvi suggest & feedback page (suggest.html) - builds on site.css and events.css. */

.sg-main { padding: 124px 0 clamp(64px, 9vw, 110px); min-height: 80vh; }
.sg-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.sg-head .h2 { font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -.04em; line-height: 1; }
.sg-head .sub { margin-top: 18px; }

.sg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 24px;
}

.sg-card {
  padding: clamp(22px, 3.6vw, 34px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 18px 34px -26px rgba(27, 20, 22, .45);
}

/* ───────────── Category pills ───────────── */
.sg-fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.sg-legend {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sg-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sg-type {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 76px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  background: #FBF2EC;
  box-shadow: inset 0 0 0 1px rgba(27, 20, 22, .08);
  transition: background .2s var(--ease), color .2s, box-shadow .2s, transform .2s var(--ease);
}
.sg-type svg { width: 20px; height: 20px; color: var(--muted); transition: color .2s; }
.sg-type:hover { background: #F6E8DE; }
.sg-type[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 22px -12px rgba(27, 20, 22, .65);
}
.sg-type[aria-pressed="true"] svg { color: #fff; }
.sg-type[data-category="event"][aria-pressed="true"] { background: var(--red-btn); box-shadow: 0 12px 22px -12px rgba(142, 15, 21, .75); }
.sg-type[data-category="place"][aria-pressed="true"] { background: var(--green-text); }
.sg-type[data-category="feature"][aria-pressed="true"] { background: var(--violet-text); }

/* ───────────── Form fields ───────────── */
.sg-form { display: flex; flex-direction: column; gap: 18px; }
.sg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sg-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sg-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.sg-opt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sg-field input,
.sg-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  background: #FBF2EC;
  box-shadow: inset 0 0 0 1px rgba(27, 20, 22, .09);
  transition: background .2s, box-shadow .2s;
}
.sg-field input::placeholder,
.sg-field textarea::placeholder { color: #9A8E92; }
.sg-field input:hover,
.sg-field textarea:hover { box-shadow: inset 0 0 0 1px rgba(27, 20, 22, .2); }
.sg-field input:focus,
.sg-field textarea:focus {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--ink);
}
.sg-field textarea { resize: vertical; min-height: 128px; }

.sg-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.sg-submit {
  padding: 14px 26px;
  font-size: 16px;
  background: var(--red-btn);
  color: #fff;
}
.sg-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -12px rgba(142, 15, 21, .8); }
.sg-submit[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.sg-status { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.sg-status.fail { color: var(--red-text); }
.sg-status a { color: var(--red-text); font-weight: 700; text-underline-offset: 2px; }

/* ───────────── Confirmation state ───────────── */
.sg-done {
  padding: 28px 8px;
  text-align: center;
}
.sg-done-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #E5F7EE;
  color: var(--green-text);
}
.sg-done-icon svg { width: 26px; height: 26px; }
.sg-done h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.sg-done p { margin: 10px auto 0; max-width: 32em; color: var(--muted); font-weight: 500; }
.sg-done .btn { margin-top: 22px; background: rgba(27, 20, 22, .07); color: var(--ink); }
.sg-done .btn:hover { background: rgba(27, 20, 22, .12); }

/* ───────────── Side column: Prefer email + tips ───────────── */
.sg-side { display: flex; flex-direction: column; gap: 16px; }
.sg-email-card {
  padding: 24px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 18px 30px -26px rgba(27, 20, 22, .45);
}
.sg-email-card h2 { font-size: 20px; letter-spacing: -.02em; }
.sg-email-card p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.sg-email-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 18px;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  overflow-wrap: anywhere;
}
.sg-email-link svg { width: 18px; height: 18px; flex: none; }
.sg-email-link:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(27, 20, 22, .7); }

.sg-tips {
  padding: 22px 24px;
  border-radius: 26px;
  background: #FBF2EC;
}
.sg-tips h3 { font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.sg-tips ul { margin: 10px 0 0; padding-left: 18px; color: #463A3D; font-size: 14.5px; line-height: 1.5; }
.sg-tips li + li { margin-top: 6px; }

/* ───────────── Header pills on Events & Places ───────────── */
.ev-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ev-links .pl-events { margin-top: 0; }

@media (max-width: 900px) {
  .sg-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sg-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-row { grid-template-columns: minmax(0, 1fr); }
  .sg-card { padding: 20px; border-radius: 22px; }
  .ev-links { margin-top: 16px; }
}
