/* ==========================================================================
   Vela — form pages (Report a bug, Contact)
   Builds on the .form / .field / .drop / .notice / .panel pieces in vela.css.
   ========================================================================== */

/* The current page in the mobile menu */
.sheet a[aria-current="page"] { color: var(--accent); }
.sheet a[aria-current="page"]::after { color: var(--accent); }

/* ---- Page frame ------------------------------------------------------------- */
.form-page { position: relative; padding-bottom: clamp(72px, 11vw, 130px); }
.form-page .page-meta .chip { font-size: 10.5px; }
.block-head { display: grid; gap: 12px; margin-bottom: clamp(20px, 3vw, 28px); }
.block-head .h-sub em { color: var(--accent); }
.form-block + .form-block { margin-top: clamp(48px, 7vw, 80px); }

/* Form beside a short side column; the column drops below on phones */
.form-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 980px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 28px; }
}
@media (min-width: 980px) and (min-height: 760px) {
  .form-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ---- The form panel ---------------------------------------------------------- */
.form-panel { position: relative; overflow: hidden; }
.form-panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.75), transparent);
}
.form-panel::after {
  content: ""; position: absolute; top: -180px; right: -140px; width: 420px; height: 320px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.12), transparent 70%);
}
.form-panel > * { position: relative; z-index: 1; }
.panel-head { display: grid; gap: 6px; margin-bottom: 26px; }
.panel-head h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; line-height: 1.1; }
.panel-head p { color: var(--text-2); font-size: 15px; }

/* Numbered groups of fields */
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset + fieldset { margin-top: 12px; }
/* Floated so the legend sits in the flow (not on the border) and can carry a rule */
.form legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 18px;
  font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form legend b { font-weight: 600; color: var(--accent); }
.fields { clear: both; display: grid; gap: 18px; }
.form .field { align-content: start; }

.req { color: var(--accent); margin-left: 3px; font-weight: 600; }
.opt { font-weight: 400; color: var(--text-3); }
.field textarea.short { min-height: 120px; }
@media (min-width: 980px) { .field textarea.tall { min-height: 240px; } }
/* vela.css draws hints in --text-3, which is under 4.5:1 at 13px; these carry real info */
.form .hint { line-height: 1.45; color: var(--text-2); }
.form .hint.is-error { color: var(--bad); }
.field select { cursor: pointer; }
.field select:invalid { color: var(--text-3); }
.field select option { color: var(--text); background: var(--bg-2); }
.field > label { line-height: 1.35; }

/* Screenshot drop zone: the real file input covers it, so clicks, taps and
   dropped files all go straight to the input. */
.drop { position: relative; min-height: 140px; gap: 8px; padding: 24px 18px; }
.drop input[type="file"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.drop.has-files { border-style: solid; border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.05); }
.drop-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.22);
  transition: transform 0.3s var(--spring);
}
.drop-icon .icon { width: 22px; height: 22px; }
.drop:hover .drop-icon, .drop.is-over .drop-icon { transform: translateY(-3px); }
.drop strong { color: var(--text); font-weight: 600; font-size: 16px; }
.drop .browse { color: var(--accent); font-weight: 600; }
.drop small { font-size: 13px; color: var(--text-3); }
.drop .on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .drop .on-touch { display: inline; }
  .drop .on-pointer { display: none; }
}

/* Footer: note + submit */
.form-foot { display: grid; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.form-foot p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.form-foot .btn { width: 100%; min-height: 52px; }
@media (min-width: 640px) {
  .form-foot { grid-template-columns: 1fr auto; gap: 22px; }
  .form-foot .btn { width: auto; padding: 0 26px; }
}
.form .btn:disabled { cursor: progress; transform: none; opacity: 0.7; }
.btn .spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success and error messages. The live region is always in the page so
   screen readers announce the message when it appears. */
.form-status > .notice:not([hidden]) { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.form-status > .notice { margin-bottom: 22px; }           /* above the form */
.form > .form-status { margin-top: -18px; }               /* inside the form, under the button */
.form > .form-status > .notice { margin: 18px 0 0; }
.notice .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice.ok .icon { color: var(--good); }
.notice.err .icon { color: var(--bad); }

/* ---- Side column -------------------------------------------------------------- */
.form-aside { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) and (max-width: 979px) { .form-aside { grid-template-columns: 1fr 1fr; } }
.aside-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 2.6vw, 26px); }
.aside-card h2 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin: 12px 0 18px; }
.aside-card h2:first-child { margin-top: 0; }
.aside-card > p:not(.eyebrow) { color: var(--text-2); font-size: 15px; }

/* Numbered tips */
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: tip; }
.tips li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.tips li::before { counter-increment: tip; content: "0" counter(tip); font: 600 12px/1.95 var(--font-mono); color: var(--accent); }
.tips b { display: block; font-weight: 600; color: var(--text); }
.tips span { display: block; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.tips a { color: var(--accent); }

/* Facts with an icon (contact) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.eyebrow + .facts { margin-top: 18px; }
.facts li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.facts b { display: block; font-weight: 600; color: var(--text); }
.facts li > div > span { display: block; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.facts a { color: var(--accent); text-decoration: none; font-weight: 600; }
.facts a:hover { color: var(--accent-hi); }
.mini-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.mini-icon .icon { width: 18px; height: 18px; }

/* Links to other help */
.help-links { list-style: none; margin: 0; padding: 0; display: grid; }
.help-links li + li { border-top: 1px solid var(--line); }
.help-links a {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; min-height: 60px; padding: 10px 0;
  color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.help-links a > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.help-links b { font-weight: 600; }
.help-links small { font-size: 13.5px; color: var(--text-2); }
.help-links .go { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.25s var(--ease), color 0.2s; }
.help-links a:hover { color: var(--text); }
.help-links a:hover .go { color: var(--accent); transform: translateX(3px); }
.mail-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.mail-line a { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mail-line a:hover { color: var(--accent-hi); }

/* ---- Contact channels ---------------------------------------------------------- */
.channels { display: grid; gap: 12px; }
.channel { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; align-content: start; text-decoration: none; color: var(--text); transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease); }
.channel:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.45); background: var(--surface-2); }
.channel .card-icon { grid-row: span 3; margin-bottom: 0; }
.channel h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.channel .addr { color: var(--accent); font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.channel p { font-size: 14.5px; line-height: 1.5; }
@media (min-width: 760px) {
  .channels { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .channel { grid-template-columns: 1fr; gap: 6px; }
  .channel .card-icon { grid-row: auto; margin-bottom: 14px; }
  .channel h3 { font-size: 20px; }
  .channel:hover { transform: translateY(-3px); }
}
