/* The support page: one form for ideas, bug reports and complaints, and a side column with
   the quicker ways to reach us. Built from front.css parts (.blb buttons, .bltile, .plx-kick)
   and the account color tokens, so a signed-in person's color carries through. */

.sp { --ink: var(--text-1); --soft: var(--text-4); --well: var(--sink); }

.sp-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Top ---- */

.sp-hero { padding: 120px 0 28px; text-align: center; }
.sp-title { margin: 14px 0 0; font: 800 clamp(36px, 5.4vw, 68px)/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--shade); text-wrap: balance; }
.sp-sub { max-width: 36em; margin: 14px auto 0; font-size: 17px; line-height: 1.55; color: var(--soft); text-wrap: balance; }

.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; max-width: 1120px; }

/* ---- The form ---- */

.sp-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.sp-card::after { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 0 var(--r-lg) 0 6px; background: var(--blue); }

.sp-form { display: grid; gap: 20px; }
.sp-form[hidden] { display: none; }
.sp-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-field[hidden] { display: none; }
.sp-label { padding: 0; font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sp-label i { margin-left: 4px; font: 600 12px var(--body); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sp-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sp-count { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.sp-count.near { color: var(--warn); }

.sp-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--well);
  box-shadow: inset 0 0 0 2px var(--rim-2);
  color: var(--ink);
  font: 500 15px/1.5 var(--body);
  transition: box-shadow 160ms var(--ease-out);
}
.sp-input::placeholder { color: #5E6A7B; }
.sp-input:hover { box-shadow: inset 0 0 0 2px var(--rim-hover); }
.sp-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.sp-input:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.sp-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.sp-area { min-height: 150px; resize: vertical; }
.sp-area--short { min-height: 88px; }

.sp-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }

/* The type and platform pickers: real radio buttons, drawn as the site's chips. */
.sp-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-seg label { position: relative; display: block; cursor: pointer; }
.sp-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sp-seg span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(var(--bg-rgb), .7);
  box-shadow: inset 0 0 0 2px var(--rim-2);
  color: var(--text-2);
  font: 800 13px var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out);
}
.sp-seg span::after { content: ""; position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-radius: 0 10px 0 3px; background: var(--rim-2); transition: background-color 180ms var(--ease-out), width 320ms var(--spring), height 320ms var(--spring); }
.sp-seg svg { flex: none; width: 17px; height: 17px; }
.sp-seg label:hover span { box-shadow: inset 0 0 0 2px var(--rim-hover); color: #fff; }
.sp-seg label:hover span::after { background: var(--rim-hover); width: 11px; height: 11px; }
.sp-seg input:checked + span { background: var(--blue); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34); color: var(--on-blue, #fff); }
.sp-seg input:checked + span::after { background: #fff; }
.sp-seg input:focus-visible + span { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.sp-seg--sm span { min-height: 44px; padding: 0 14px; font-size: 12.5px; }

/* ---- Screenshot ---- */

.sp-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--well);
  box-shadow: inset 0 0 0 2px var(--rim-2);
  cursor: pointer;
  transition: box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.sp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sp-drop:hover, .sp-drop.over { box-shadow: inset 0 0 0 2px var(--blue); background: rgba(var(--blue-rgb, 45, 151, 248), .06); }
.sp-drop:focus-within { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.sp-drop[hidden] { display: none; }
.sp-drop svg { flex: none; width: 30px; height: 30px; color: var(--blue); }
.sp-drop span { display: grid; gap: 2px; min-width: 0; }
.sp-drop b { font: 800 14px var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.sp-drop small { font-size: 13px; color: var(--muted); }

.sp-preview { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 2px rgba(var(--blue-rgb, 45, 151, 248), .45); }
.sp-preview[hidden] { display: none; }
.sp-preview img { flex: none; width: 92px; height: 60px; border-radius: 8px; background: var(--tile); object-fit: cover; }
.sp-preview__txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sp-preview__txt b { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.sp-preview__txt small { font-size: 12.5px; color: var(--muted); }
.sp-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.sp-x svg { width: 15px; height: 15px; }
.sp-x:hover { background: rgba(240, 89, 106, .16); color: #FF7D8A; }

/* Only a bot fills this in. Moved off screen rather than hidden, since some bots skip hidden fields. */
.sp-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Who it's being sent as. */
.sp-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14px; line-height: 1.45; color: var(--soft); }
.sp-who[hidden] { display: none; }
.sp-who img { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--well); }
.sp-who b { color: #fff; }
.sp-who a { color: var(--blue-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sp-who a:hover { color: #fff; }

.sp-err { margin: 0; padding: 11px 14px; border-radius: 10px; background: rgba(240, 89, 106, .1); box-shadow: inset 3px 0 0 var(--bad); font-size: 14.5px; line-height: 1.45; color: #FFC3C8; }
.sp-err[hidden] { display: none; }

.sp-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sp-send .blb.is-busy { cursor: progress; opacity: .7; }

/* ---- Sent ---- */

.sp-done { display: grid; justify-items: center; gap: 4px; padding: 30px 8px 18px; text-align: center; }
.sp-done[hidden] { display: none; }
.sp-done:focus { outline: none; }
.sp-done__tile { width: 72px; height: 72px; margin-bottom: 14px; box-shadow: inset 0 0 0 3px var(--ok); }
.sp-done__tile::after { background: var(--ok); }
.sp-done__tile svg { width: 34px; height: 34px; color: var(--ok); }
.sp-done h2 { margin: 0; font: 800 clamp(28px, 3.4vw, 38px)/1.05 var(--display); text-transform: uppercase; color: #fff; }
.sp-done p { max-width: 32em; margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--soft); }
.sp-done__urgent { padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14.5px !important; }
.sp-done a { color: var(--blue-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sp-done a:hover { color: #fff; }
.sp-done .blb { margin-top: 20px; }
.sp-done.in { animation: cz-enter 620ms var(--spring) both; }

/* ---- The side column ---- */

.sp-side { display: grid; gap: 16px; }
.sp-box {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.sp-box::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 0 var(--r-md) 0 5px; background: var(--rim-hi); }
.sp-box h2 { margin: 0 0 8px; font: 800 19px/1.2 var(--display); text-transform: uppercase; color: #fff; }
.sp-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.sp-box__btn { width: 100%; margin-top: 16px; }
.sp-box__mail { margin-top: 14px !important; font-size: 14px !important; }
.sp-box a:not(.blb) { color: var(--blue-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sp-box a:not(.blb):hover { color: #fff; }
.sp-box ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-box li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.sp-box li::before { content: ""; position: absolute; top: .5em; left: 2px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }

/* ---- Narrower screens ---- */

@media (max-width: 960px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
}

@media (max-width: 600px) {
  .lwrap.sp-grid { padding: 0 16px; }
  .sp-hero { padding: 104px 0 22px; }
  .sp-hero .lwrap { padding: 0 16px; }
  .sp-sub { font-size: 16px; }
  .sp-card { padding: 20px 16px 22px; border-radius: var(--r-md); }
  .sp-card::after { border-radius: 0 var(--r-md) 0 5px; }
  .sp-pair { grid-template-columns: minmax(0, 1fr); }
  .sp-seg label { flex: 1 1 calc(50% - 4px); }
  .sp-seg span { justify-content: center; width: 100%; padding: 0 10px; }
  .sp-seg--sm label { flex: 1 1 0; }
  .sp-send .blb { width: 100%; }
}
