/* itsdark Forms. Uses the theme's colours and fonts when present, with plain fallbacks. */
.idf { scroll-margin-top: 6rem; max-width: 40rem; margin: 2em 0; font-family: var(--display, system-ui, sans-serif); }
.idf-field { margin: 0 0 1.25em; }
.idf label { display: block; font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--ink, inherit); margin: 0 0 0.4em; }
.idf-help { font-size: 0.86rem; line-height: 1.45; color: var(--muted, #6b7280); margin: -0.15em 0 0.5em; }
.idf input[type="text"], .idf input[type="email"], .idf input[type="url"], .idf select, .idf textarea {
	display: block; width: 100%; box-sizing: border-box; font: 400 1rem/1.5 var(--display, system-ui, sans-serif);
	color: var(--ink, #111); background: rgba(4, 9, 22, 0.6); border: 1px solid rgba(157, 171, 196, 0.45); border-radius: 6px; padding: 0.7em 0.85em; min-height: 46px;
}
.idf textarea { resize: vertical; min-height: 7em; }
.idf select { appearance: auto; }
.idf input:focus-visible, .idf select:focus-visible, .idf textarea:focus-visible { outline: 2px solid var(--lantern, #f2b134); outline-offset: 1px; border-color: var(--lantern, #f2b134); }
.idf-check { display: flex; gap: 0.7em; align-items: flex-start; font-weight: 400; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.idf-check input { flex: none; width: 20px; height: 20px; margin: 0.15em 0 0; accent-color: var(--lantern, #f2b134); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--down, #ff8364); }
.idf-error { font-size: 0.88rem; line-height: 1.4; font-weight: 600; color: var(--down, #ff8364); margin: 0.4em 0 0; }
.idf-alert { border: 1px solid var(--down, #ff8364); border-radius: 8px; padding: 12px 16px; font-weight: 600; font-size: 0.95rem; line-height: 1.45; color: var(--ink, inherit); margin: 0 0 1.4em; }
.idf-actions { margin: 1.6em 0 0; }
.idf-submit { cursor: pointer; font-size: 1rem; }
.idf-note { font-size: 0.84rem; line-height: 1.5; color: var(--muted, #6b7280); margin: 1.1em 0 0; }
.idf-done { border: 1px solid rgba(95, 224, 194, 0.45); border-radius: 10px; padding: 18px 22px 20px; background: rgba(4, 9, 22, 0.45); scroll-margin-top: 6rem; }
.idf-done-title { font-weight: 700; font-size: 1.05rem; color: var(--sonar, #5fe0c2); margin: 0 0 0.3em; }
.idf-done p:last-child { margin: 0; }
/* The trap field: off-screen for people, visible to scripts. Not display:none, which scripts check for. */
.idf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
