/* Pages families read: parents.html and consent.html */
.lang-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lang-btn {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; color: var(--surface-ink); font: inherit; font-weight: 600;
}
.lang-btn[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.lang-btn:focus-visible, .consent-form :focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 2px; }
.lang-note { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-md); background: #fff8e1; border: 1px solid #f0d98a; font-size: 0.92rem; }

.level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.level-card { padding: 16px; border-radius: var(--radius-md); border: 2px solid var(--line-strong); background: #fff; }
.level-card h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-navy); }
.level-card p { margin: 0; }
.level-card.is-full { border-color: var(--brand-orange); }

.consent-form { display: grid; gap: 18px; }
.consent-form fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; display: grid; gap: 12px; min-width: 0; }
.consent-form legend { padding: 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--brand-navy); }
.consent-field { display: grid; gap: 4px; }
.consent-field > span { font-weight: 700; }
.consent-field small, .consent-note { color: var(--muted); font-size: 0.88rem; }
.consent-field input, .consent-field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  font: inherit; background: #fff; color: var(--surface-ink); box-sizing: border-box;
}
.consent-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.consent-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; }
.consent-choice:has(input:checked) { border-color: var(--brand-navy); background: #f2f6ff; }
.consent-choice input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.consent-choice strong { display: block; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; }
.consent-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
/* Hidden field only a bot fills in. Clipped in place: moving it off-screen makes right-to-left pages scroll sideways. */
.consent-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent-submit { min-height: 50px; font-size: 1.05rem; font-weight: 700; justify-self: start; }
.consent-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.consent-error { margin: 0; padding: 10px 14px; border-radius: var(--radius-md); background: #fdecea; border: 1px solid #f1b5b0; color: #8c1d18; font-weight: 600; }
.consent-result { padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; display: grid; gap: 10px; }
.consent-result h2 { margin: 0; font-family: var(--font-display); color: var(--brand-navy); }
.consent-result p { margin: 0; }
.consent-result.is-good { border-color: #0a7d42; background: #e6f7ee; }
.consent-ref { font-weight: 700; letter-spacing: 0.04em; }

@media (max-width: 640px) {
  .level-grid, .consent-two { grid-template-columns: 1fr; }
  .consent-submit { justify-self: stretch; }
}
.consent-fineprint { margin: 0; font-size: 0.8rem; color: var(--muted); }
