/* Shared styles for the contact form, the discovery-script download form,
   code blocks and the comparison table. Uses the colour variables defined on each page. */

.lf{display:grid; gap:18px; max-width:640px; margin-top:28px;}
.lf-l{display:block; font-family:var(--mono); font-size:0.78rem; color:var(--paper-dim); margin-bottom:6px;}
.lf-l .opt{opacity:0.7;}
.lf input[type=text], .lf input[type=email], .lf select, .lf textarea{
  width:100%; font:inherit; font-size:16px; color:var(--paper); background:var(--panel);
  border:1px solid var(--line); border-radius:2px; padding:12px 14px;
}
.lf textarea{min-height:120px; resize:vertical;}
.lf select{appearance:auto;}
.lf input:focus, .lf select:focus, .lf textarea:focus{outline:2px solid var(--red-tint); outline-offset:1px;}
.lf-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:640px){.lf-row{grid-template-columns:1fr;}}
.lf-consent{display:flex; gap:10px; align-items:flex-start; font-size:0.9rem; color:var(--paper-dim);}
.lf-consent input{margin-top:4px; width:auto; accent-color:var(--red);}
.lf-consent a{color:var(--paper); border-bottom:1px solid var(--line); text-decoration:none;}
.lf-btn{
  font-family:var(--mono); font-size:0.9rem; padding:14px 26px; border-radius:2px; cursor:pointer;
  background:var(--red); color:var(--paper); border:1px solid var(--red); justify-self:start;
}
.lf-btn:hover{background:var(--red-dim); border-color:var(--red-dim);}
.lf-btn[disabled]{opacity:0.6; cursor:default;}
.lf-status{font-family:var(--mono); font-size:0.85rem; min-height:1.3em; color:var(--paper-dim);}
.lf-status.err{color:var(--red-tint);}
.lf-status a{color:var(--paper); border-bottom:1px solid var(--line); text-decoration:none;}
.lf-note{font-size:0.88rem; color:var(--paper-dim); max-width:62ch; margin:14px 0 0;}
.lf-done{
  background:var(--panel); border:1px solid var(--line); border-left:3px solid #7fb88a;
  padding:26px 28px; border-radius:3px; max-width:720px; margin-top:28px;
}
.lf-done h3{margin:0 0 10px; font-size:1.15rem;}
.lf-done p{margin:0 0 14px; color:var(--paper-dim);}
.lf-done .btn{margin:0 12px 12px 0;}

.callout.strong{border:1px solid var(--red); border-left:4px solid var(--red);}
.callout.strong p{color:var(--paper);}

.code{
  font-family:var(--mono); font-size:0.84rem; line-height:1.5; color:#cfd8e6; background:#10131b;
  border:1px solid var(--line); border-radius:3px; padding:14px 16px; overflow-x:auto; margin:12px 0; white-space:pre;
}
.ol{margin:12px 0 0; padding-left:20px; color:var(--paper-dim); font-size:0.95rem;}
.ol li{margin:8px 0;}
.ol strong{color:var(--paper);}

.cmp-wrap{overflow-x:auto; margin-top:32px;}
table.cmp{width:100%; border-collapse:collapse; font-size:0.93rem; min-width:620px;}
table.cmp th, table.cmp td{border:1px solid var(--line); padding:12px 14px; text-align:left; vertical-align:top;}
table.cmp th{font-family:var(--mono); font-size:0.78rem; color:var(--paper-dim); background:var(--panel); font-weight:500;}
table.cmp td{color:var(--paper-dim);}
table.cmp td:first-child{color:var(--paper); font-weight:600; width:24%;}
table.cmp td.no{color:var(--red-tint);}
table.cmp td.yes{color:#7fb88a;}

.hash{font-family:var(--mono); font-size:0.76rem; color:var(--paper-dim); word-break:break-all; margin:6px 0 14px;}
.hash b{color:var(--paper); font-weight:500;}
