.dct-form [hidden], .dct-quiz [hidden] { display: none !important; }
.dct-form, .dct-form *, .dct-quiz, .dct-quiz *, .dct-done, .dct-done * { text-transform: none; }
/* Datacharlie Tools: form and health check. Colours follow the site design (navy #0A1220, cyan #1FB8DB). */
.dct-form, .dct-quiz { --dct-ink: #0E1726; --dct-muted: #5B6B7E; --dct-line: #DCE4EC; --dct-accent: #1FB8DB; --dct-accent-strong: #0E8FB0; --dct-bg: #F4F7FA;
  font-family: Manrope, sans-serif; color: var(--dct-ink); display: flex; flex-direction: column; gap: 22px; }
.dct-form fieldset, .dct-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dct-form legend, .dct-q legend { font-family: Sora, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3; margin-bottom: 12px; padding: 0; color: var(--dct-ink); }
.dct-chips, .dct-answers { display: flex; flex-wrap: wrap; gap: 10px; }
.dct-chip { position: relative; cursor: pointer; margin: 0; }
.dct-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dct-chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--dct-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.dct-chip:hover span { border-color: var(--dct-accent); }
.dct-chip input:checked + span { background: #0A1220; border-color: #0A1220; color: #fff; }
.dct-chip input:focus-visible + span { outline: 3px solid rgba(31,184,219,.45); outline-offset: 2px; }
.dct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.dct-field { display: flex; flex-direction: column; gap: 6px; }
.dct-field label { font-size: 14px; font-weight: 700; color: var(--dct-ink); }
.dct-field input, .dct-field select, .dct-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--dct-ink); background: #fff; border: 1px solid var(--dct-line); border-radius: 6px; padding: 12px 14px; min-height: 48px; box-sizing: border-box; }
.dct-field textarea { min-height: 130px; resize: vertical; }
.dct-field input:focus, .dct-field select:focus, .dct-field textarea:focus { outline: none; border-color: var(--dct-accent-strong); box-shadow: 0 0 0 3px rgba(31,184,219,.25); }
.dct-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.dct-extras:not(:has(.dct-extra:not([hidden]))) { display: none; }
.dct-submit, .dct-chip span { text-transform: none; letter-spacing: 0; }
.dct-submit { align-self: flex-start; font: inherit; font-weight: 700; font-size: 16px; color: #0A1220; background: var(--dct-accent); border: 0; border-radius: 10px; padding: 16px 28px; cursor: pointer; transition: background-color .2s ease, transform .15s ease; }
.dct-submit:hover { background: var(--dct-accent-strong); color: #fff; }
.dct-submit:active { transform: translateY(1px); }
.dct-submit:disabled { opacity: .7; cursor: wait; }
.dct-note { font-size: 14px; color: var(--dct-muted); margin: 0; }
.dct-note a { color: var(--dct-accent-strong); }
.dct-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dct-error { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3C2C2; border-radius: 6px; padding: 12px 14px; font-weight: 600; }
.dct-done { background: #fff; border: 1px solid var(--dct-line, #DCE4EC); border-left: 4px solid #1FB8DB; border-radius: 10px; padding: 28px; font-family: Manrope, sans-serif; color: #0E1726; outline: none; }
.dct-done h3 { font-family: Sora, sans-serif; font-size: 22px; line-height: 1.3; margin: 6px 0 10px; color: #0E1726; }
.dct-done p { margin: 0 0 8px; color: #5B6B7E; }
.dct-done a { color: #0E8FB0; }
.dct-done-k { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #0E8FB0 !important; }
/* health check */
.dct-qs { list-style: none; counter-reset: q; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dct-q { counter-increment: q; background: #fff; border: 1px solid var(--dct-line); border-radius: 10px; padding: 20px 22px; }
.dct-q legend::before { content: counter(q) ". "; color: var(--dct-accent-strong); }
.dct-q:has(input:checked) { border-color: rgba(31,184,219,.55); }
.dct-progress { margin: 0; color: var(--dct-muted); font-weight: 600; }
.dct-result { background: #0A1220; color: #E6EEF6; border-radius: 10px; padding: 28px; }
.dct-meter { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dct-pct { font-family: Sora, sans-serif; font-weight: 700; font-size: 52px; line-height: 1; }
.dct-band { font-weight: 700; font-size: 18px; padding: 4px 12px; border-radius: 999px; background: rgba(245,165,36,.18); color: #F5A524; }
.dct-result[data-band="good"] .dct-band { background: rgba(31,184,219,.18); color: #1FB8DB; }
.dct-result[data-band="risk"] .dct-band { background: rgba(255,107,107,.18); color: #FF8A8A; }
.dct-meter-bar { height: 8px; border-radius: 999px; background: rgba(230,238,246,.12); margin: 18px 0 22px; overflow: hidden; }
.dct-meter-bar i { display: block; height: 100%; width: 0; background: #1FB8DB; border-radius: 999px; transition: width .5s ease; }
.dct-result[data-band="mid"] .dct-meter-bar i { background: #F5A524; }
.dct-result[data-band="risk"] .dct-meter-bar i { background: #FF8A8A; }
.dct-result-h { font-family: Sora, sans-serif; font-size: 20px; margin: 0 0 10px; color: #E6EEF6; }
.dct-tips { margin: 0; padding-left: 20px; color: #C9D6E3; }
.dct-tips li { margin-bottom: 8px; line-height: 1.55; }
.dct-lead { background: #fff; border: 1px solid var(--dct-line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.dct-lead h3 { font-family: Sora, sans-serif; font-size: 22px; margin: 0; color: var(--dct-ink); }
@media (max-width: 767px) {
  .dct-grid, .dct-extras { grid-template-columns: 1fr; }
  .dct-submit, .dct-chip span { text-transform: none; letter-spacing: 0; }
.dct-submit { align-self: stretch; }
  .dct-pct { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .dct-meter-bar i, .dct-chip span, .dct-submit { transition: none; } }
