/* Voice cloning consent form generator. Phone first: one column; the article frame is 311 px on a phone and 700 px on a computer. */

h1 { font-size: 1.25rem; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 4px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; vertical-align: 1px; flex: none;
}
.field > label .num, legend .num { margin-right: 6px; }
.choices .choice { margin-top: 6px; padding: 8px 12px; }
input[type='checkbox'] { accent-color: var(--accent); }
.choice .num { margin-right: 6px; }
#listeners, #scripts { margin-top: 4px; }
label.choice:has(#listeners), label.choice:has(#scripts) { margin: 0 0 10px; background: #fff; }

input[type='text'], select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
select { padding-right: 8px; }
#other-use { margin-top: 8px; }
.sub-label { display: block; margin: 10px 0 6px; font-size: 0.875rem; font-weight: 600; }
.hint:empty { display: none; }
#uses-hint { color: #8a4b00; }

.output { margin-top: 18px; }
.warnings { display: grid; gap: 8px; margin-bottom: 14px; }
.warning {
  margin: 0; padding: 10px 12px; border-left: 4px solid #c46a00; border-radius: 6px;
  background: #fff4e5; color: #5c3200; font-size: 0.875rem; line-height: 1.45;
}
.warning:first-child { font-weight: 600; }

.doc {
  padding: 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere;
}
.doc p { margin: 0 0 10px; }
.doc p.cont { margin-top: -4px; }
.doc ul { margin: -4px 0 10px; padding-left: 22px; }
.doc li { margin: 2px 0; }
.doc-title { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0.04em; }
.signatures { margin-top: 18px; }
.signatures p { margin: 0 0 14px; }

.statement { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.statement-intro { margin: 0 0 6px; font-size: 0.875rem; color: var(--muted); }
.statement-text { margin: 0; font-size: 1rem; font-style: italic; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.action {
  min-height: 40px; padding: 8px 14px; font: inherit; font-size: 0.9375rem; font-weight: 600;
  color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: 8px; cursor: pointer;
}
.action:first-child { color: #fff; background: var(--accent); }
.copied { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--muted); }
.copied:empty { display: none; }
.copy-source { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; }
[hidden] { display: none !important; }

@media (min-width: 600px) {
  h1 { font-size: 1.375rem; }
  .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  input[type='text'] { max-width: 30rem; }
  select { max-width: 20rem; }
}

/* Print: only the agreement and the spoken statement. */
@media print {
  .no-print, .copy-source { display: none !important; }
  .tool { border: 0; padding: 0; background: #fff; }
  .output { margin: 0; }
  .doc, .statement { border: 0; padding: 0; }
  .statement { margin-top: 24px; }
  .statement-intro { color: #000; }
}
