/*
 * THE RETURN FORM — only what case.css does not already have: a tick-box row and the
 * hidden trap field. Everything else is the case page's panels, fields and buttons.
 */

.tick {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
}
.tick[hidden] { display: none; }
.tick input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
}
.tick input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.field[hidden], .group[hidden] { display: none; }
.field input[type="file"] { min-height: 0; padding: 0.6rem 0; border: 0; }
[aria-invalid="true"] { border-color: #A8371F; }

/* Off-screen rather than display:none, so a form-filling script still finds it. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#doneItems h3 { margin-top: 1.1rem; }

/* ── the brand (brand.js) ────────────────────────────────────────────────────
   The return form and the warranty registration carry the brand the way its emails do: the
   accent as a bar across the top, the full logo with "Support" beside it, a header panel with
   a product photo, and the logo again at the foot. Light only, like the rest of the site. */

.rb-band { height: 4px; background: var(--accent); }
.case-body .rb-head { justify-content: space-between; padding-top: 1.25rem; padding-bottom: .25rem; }
.rb-home { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-height: 44px; }
.rb-lockup { display: block; height: 30px; width: auto; }
/* `display: block` above would otherwise beat the hidden attribute: a brand without the artwork shows no empty box. */
.rb-home [hidden] { display: none; }
/* With the full logo the brand's name is already there: "Support" sits beside it, quieter, after a hairline. */
.has-lockup .rb-support { font-weight: 500; color: var(--muted); padding-left: .75rem; border-left: 1px solid var(--line); line-height: 1.2; }
.rb-link { font-size: .85rem; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rb-link:hover { color: var(--ink); }
.rb-home:focus-visible, .rb-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.rb-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center;
  padding: 1.75rem 1.5rem; border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 55%),
    var(--raised);
}
.has-hero-image .rb-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.rb-eyebrow { margin: 0 0 .35rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rb-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; color: var(--ink); font-weight: 650; }
.rb-lead { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; max-width: 42ch; }
.rb-steps { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.rb-steps li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-2); }
.rb-steps b { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: #fff; background: var(--ink); font-variant-numeric: tabular-nums; }
.rb-hero__img { display: block; width: 100%; max-width: 280px; height: auto; justify-self: end; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18)); }
.rb-hero__img[hidden] { display: none; }

/* The title moved up into the header panel, so the form starts at the card's top edge. */
#formPanel > form.stack:first-child { margin-top: 0; }

.rb-foot { width: min(var(--measure), calc(100% - 2 * var(--gap))); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; color: var(--muted); }
.rb-foot__logo { display: block; height: 22px; width: auto; margin: 0 auto .7rem; opacity: .85; }
.rb-foot__logo[hidden] { display: none; }
.rb-foot p { margin: .25rem 0; }
.rb-foot a { color: var(--ink-2); }

@media (max-width: 560px) {
  .rb-lockup { height: 24px; }
  .rb-link { display: none; }
  .has-hero-image .rb-hero { grid-template-columns: 1fr; }
  .rb-hero { padding: 1.4rem 1.2rem; }
  .rb-hero__img { order: -1; justify-self: center; max-width: 190px; }
}
