/* ASN Core shared forms: gated downloads and the pen test request. Dark theme, red accents.
   Uses the child theme's tokens when present, with brand fallbacks. */
.asn-form {
	--f-bg: var(--asn-panel, #1f2023);
	--f-field: var(--asn-bg, #18191b);
	--f-line: var(--asn-line, #34363b);
	--f-fg: var(--asn-fg, #eceff3);
	--f-muted: var(--asn-muted, #a3a8b0);
	--f-red: #ED194F;
	--f-red-hover: #ff3a6b;
	--f-display: var(--asn-display, "Playfair Display", Georgia, serif);
	--f-body: var(--asn-body, "Open Sans", "Helvetica Neue", Arial, sans-serif);
	background: var(--f-bg);
	border: 1px solid var(--f-line);
	border-top: 3px solid var(--f-red);
	border-radius: 10px;
	color: var(--f-fg);
	font-family: var(--f-body);
	font-size: 15px;
	line-height: 1.55;
	margin: 8px 0 40px;
	padding: 28px;
	color-scheme: dark;
}
.asn-form *, .asn-form *::before, .asn-form *::after { box-sizing: border-box; }
.asn-form .asn-f-title { font-family: var(--f-display); color: var(--f-fg); font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
.asn-form .asn-f-lede { color: var(--f-muted); margin: 0 0 20px; }
.asn-form p { margin: 0 0 14px; }
.asn-form label { display: block; font-size: 13px; font-weight: 600; color: var(--f-muted); margin: 0 0 5px; }
.asn-form input[type="text"], .asn-form input[type="email"], .asn-form input[type="tel"], .asn-form input[type="url"], .asn-form select {
	width: 100%; background: var(--f-field); color: var(--f-fg); border: 1px solid var(--f-line); border-radius: 6px;
	padding: 11px 12px; font: inherit; min-height: 44px; box-shadow: none;
}
.asn-form input:focus, .asn-form select:focus { border-color: var(--f-red); outline: 2px solid rgba(237, 25, 79, .35); outline-offset: 0; }
.asn-form :focus-visible { outline: 2px solid var(--f-red); outline-offset: 2px; }
.asn-f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .asn-f-row { grid-template-columns: minmax(0, 1fr); } .asn-form { padding: 20px 16px; } }

.asn-f-set { border: 1px solid var(--f-line); border-radius: 8px; padding: 12px 14px 6px; margin: 0 0 16px; min-width: 0; }
.asn-f-set legend { font-size: 13px; font-weight: 600; color: var(--f-muted); padding: 0 6px; }
.asn-form .asn-f-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 8px 0; font-size: 14px; font-weight: 500; color: var(--f-fg); cursor: pointer; }
.asn-form input[type="checkbox"] { accent-color: var(--f-red); width: 18px; height: 18px; margin: 0; flex: none; }
.asn-form .asn-f-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--f-fg); }
.asn-form .asn-f-check input { margin-top: 3px; }

.asn-form .asn-f-btn, .asn-form button.asn-f-btn {
	display: inline-block; background: var(--f-red); color: #fff; border: 0; border-radius: 6px; padding: 13px 24px;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 44px; line-height: 1.2;
}
.asn-form .asn-f-btn:hover { background: var(--f-red-hover); color: #fff; }
.asn-form a { color: var(--f-red-hover); }
.asn-form a.asn-f-btn { color: #fff; }
.asn-f-small { font-size: 13px; color: var(--f-muted); }
.asn-f-error { background: rgba(239, 83, 80, .12); border: 1px solid rgba(239, 83, 80, .5); border-radius: 6px; padding: 10px 14px; color: #ffb4b2; }
.asn-f-result { background: rgba(237, 25, 79, .08); border: 1px solid rgba(237, 25, 79, .4); border-radius: 8px; padding: 16px 18px 4px; }
.asn-f-soon { display: inline-block; border: 1px solid var(--f-line); border-radius: 20px; padding: 4px 14px; color: var(--f-muted); font-weight: 600; }
.asn-f-note { font-size: 13px; color: #e9a23b; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.asn-f-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Download card */
.asn-dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: start; }
.asn-dl:not(:has(.asn-dl-media)) { display: block; }
.asn-dl-img { width: 100%; height: auto; border-radius: 8px; display: block; border: 1px solid var(--f-line); }
@media (max-width: 640px) { .asn-dl { grid-template-columns: minmax(0, 1fr); gap: 16px; } .asn-dl-img { max-width: 240px; } }
