/* Shared look for the self-hosted Hold / Cancel forms (iframes on /membership-hold and /membership-cancel). */
:root {
  --field: hsl(0 0% 11%);
  --line: hsl(0 0% 20%);
  --text: hsl(0 0% 98%);
  --muted: hsl(0 0% 64%);
  --orange: #ff6a13;
  --error: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: transparent; color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { padding: 4px; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #e4e4e7; }
.opt { color: var(--muted); font-weight: 500; }
input, textarea {
  width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none;
}
input:focus, textarea:focus { border-color: var(--orange); }
input[type="date"] { color-scheme: dark; }
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 0; display: grid; gap: 8px; }
legend { font-size: 13px; font-weight: 600; color: #e4e4e7; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choices label { display: block; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); font-size: 13px; font-weight: 600; color: #d4d4d8;
}
.choices input:checked + span { border-color: var(--orange); background: hsl(24 95% 53% / .15); color: var(--text); }
.choices input:focus-visible + span { outline: 2px solid var(--orange); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; color: #d4d4d8; line-height: 1.5; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--orange); }
button.submit {
  background: var(--orange); color: #111; border: 0; border-radius: 10px; padding: 16px;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
button.submit:disabled { opacity: .6; cursor: wait; }
.err { color: var(--error); font-size: 13px; min-height: 18px; }
.err a, .done a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: none; text-align: center; padding: 40px 12px; }
.done .big { font-size: 40px; margin-bottom: 8px; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .row, .choices { grid-template-columns: 1fr 1fr; } }
