/* ============================================================================================
   Review Reels · /contact and /takedown (loaded after app.css + terms.css)
   The two public doors. Same article set as /terms - one measure, hairlines, a rail beside the
   text - but the rail carries the plain-English explanation and the sheet carries the form, so
   nobody has to read a legal page to ask for their own review back. One gold action per page.

   MOTION: the take on the head (app.css) and the shared [data-reveal] on the two columns. The
   confirmation replaces the form in place; nothing slides.
   ============================================================================================ */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 72px; align-items: start; padding-top: 48px; }
.form-layout > * { min-width: 0; }
/* the site cannot send mail (no SMTP account): a write-to-us card replaces the form */
.form-mailto { display: none; }
[data-mail="mailto"] .form-mailto { display: block; }
[data-mail="mailto"] .form-card form, [data-mail="mailto"] .form-card > h2#form-h { display: none; }
/* the rail says "either way it lands in the same place" only while there IS an "either way" to speak of */
[data-mail="mailto"] .form-only { display: none; }
.form-mailto h2 { margin: 0 0 var(--s-3); }
.form-mailto p { margin: 0 0 var(--s-4); }
.form-mailto .btn { overflow-wrap: anywhere; }

/* ---- the rail: what this page is for --------------------------------------------------------- */
.form-aside { padding-top: 4px; }
.form-direct { padding-bottom: var(--s-5); border-bottom: 1px solid var(--hair-2); }
.form-direct p { margin-top: 10px; color: var(--text-2); line-height: 1.6; max-width: 46ch; }
.form-mail { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.02em; color: var(--gold-2); text-decoration: none; overflow-wrap: anywhere; }
.form-mail:hover { color: var(--gold-100); }
/* /contact is the address and nothing else: large, selectable text (not a link) and a button that copies it */
.mail-card h2 { margin: 0 0 var(--s-3); }
.mail-card p { margin: 0 0 var(--s-4); }
.terms-page .card.form-card p.mail-address { font-family: var(--display); font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--gold-2); margin: var(--s-2) 0 var(--s-5); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.mail-card .form-actions { justify-content: flex-start; margin: 0 0 var(--s-5); }

.form-points { list-style: none; padding: 0; margin: 0; max-width: 46ch; }
.form-points li { padding: var(--s-4) 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-points li:last-child { border-bottom: 0; }
.form-points b { color: var(--text-2); font-weight: 600; }
.form-points a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--hair-gold); text-underline-offset: 3px; }
.form-points a:hover { color: var(--gold-2); }

/* ---- the sheet: the form --------------------------------------------------------------------- */
/* app.css flattens every .card on a .terms-page (that page is an article, not a set of sheets). The
   form is the one thing here that IS a sheet, so it takes the standard card back - specifically, so
   nothing else on the page changes. */
.terms-page .card.form-card { background: var(--card-light), var(--surface-1); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: var(--s-6); }
/* the sheet's own headings are h2 (an h1 -> h3 jump is a hole in the page for a screen reader); they keep
   the size and rhythm they had as h3 */
.terms-page .card.form-card h2, .terms-page .card.form-card h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin-top: 0; padding-top: 0; border-top: 0; }
.terms-page .card.form-card p { font-size: 13px; line-height: 1.55; max-width: none; }
.terms-page .card.form-card .form-done p { font-size: 14px; }
.form-card h2[hidden], .form-card h3[hidden] { display: none; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-actions { justify-content: flex-end; margin-top: var(--s-6); }
.form-card .msg { margin-top: var(--s-5); }

/* the consent tick: a real 44 px target, the label doing the work */
.check { display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-6); font-size: 13px; line-height: 1.55; color: var(--text-2); font-weight: 400; cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-500); cursor: pointer; }
.check span { min-width: 0; }

/* the honeypot: off the page for people, in the DOM for a bot. Never display:none - some bots skip those. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- the confirmation ------------------------------------------------------------------------- */
.form-done { text-align: left; }
.form-done p { margin-top: var(--s-4); line-height: 1.6; }
.form-done code { overflow-wrap: anywhere; }
.form-tick { display: block; width: 40px; height: 40px; margin-bottom: var(--s-5); border-radius: 50%; border: 1px solid var(--ok-line); background: var(--ok-soft) var(--i-check) center / 22px 22px no-repeat; }

@media (max-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8); padding-top: 32px; }
  .form-aside { order: 2; }
  .form-card { order: 1; }
  /* the reviewer page: what we can and cannot do has to be read before the form, on a phone as well */
  .form-layout.read-first .form-aside { order: 1; }
  .form-layout.read-first .form-card { order: 2; }
}
@media (max-width: 600px) {
  .form-layout { padding-top: 24px; row-gap: var(--s-7); }
  .form-card { padding: var(--s-4); }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .form-points a, .terms-foot-nav a, .form-mail { transition: none; }
}
