/* The demo-request form.
 *
 * Shared by four pages — the English and Arabic homepages (on the dark CTA band) and the English
 * and Arabic contact pages (on white) — so it is a file rather than four copies of the same rules
 * in four <style> blocks.
 *
 * Direction-neutral throughout: logical properties only, never left or right. The Arabic pages
 * render this identically with dir="rtl" and no overrides.
 */

/* Constrained and centred. The CTA band's .wrap is 1180px wide and the section is text-align:center,
   so without this the inputs run the full width of a desktop screen while their labels sit centred
   above them. text-align:start puts the labels back over the field they name. */
.lead-form{ display:grid; gap:14px; margin-top:26px; text-align:start;
            max-width:620px; margin-inline:auto }
.lead-form__row{ display:grid; gap:14px; grid-template-columns:1fr 1fr }
.lead-form label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:6px;
                  color:var(--navy) }
.lead-form .opt{ font-weight:500; opacity:.72 }
.lead-form input,
.lead-form textarea{
  width:100%; font-family:inherit; font-size:15.5px; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:10px; padding:12px 14px; line-height:1.5;
}
.lead-form textarea{ min-height:96px; resize:vertical }
.lead-form input:focus,
.lead-form textarea:focus{ outline:2px solid var(--orange); outline-offset:1px;
                           border-color:var(--orange) }
/* The component ships its own button rather than borrowing the host page's.
   contact.html and ar/contact.html define NO button classes at all — they had no buttons before
   this form — so `class="btn btn--primary"` matched nothing there and the submit rendered as a
   native grey browser button in the middle of the page. These rules are scoped to .lead-form, so
   they cannot disturb the .btn of a page that does define one. */
.lead-form button[type="submit"]{
  justify-self:start; display:inline-flex; align-items:center; gap:8px;
  font-family:inherit; font-weight:700; font-size:15px; line-height:1;
  padding:14px 24px; border-radius:10px; border:1px solid transparent; cursor:pointer;
  background:var(--orange); color:#fff;
  transition:background .15s, color .15s, border-color .15s;
}
.lead-form button[type="submit"]:hover{ background:var(--orange-600); color:#fff }
.lead-form button[disabled]{ opacity:.6; cursor:progress }

/* The honeypot. Not `display:none` and not `hidden`: a bot that parses the stylesheet skips those,
   and some of them skip anything named "honeypot" too — hence `lf-ref`. This is off-screen,
   zero-size and removed from the tab order and the accessibility tree, so no human meets it. */
.lf-trap{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
          white-space:nowrap; border:0; padding:0; margin:-1px }

/* One line, not a toast. The condition it reports is still true after a toast would have faded,
   and a visitor who looked away has no way to get it back. */
.lead-form__msg{ font-size:14.5px; line-height:1.6; margin:0; display:none }
.lead-form__msg[data-state]{ display:block }
.lead-form__msg[data-state="ok"]{ color:#15603a; font-weight:650 }
.lead-form__msg[data-state="err"]{ color:#a22c10; font-weight:650 }
.lead-form__alt{ font-size:14px; color:var(--muted); margin:0 }

/* On the homepage this sits on the ORANGE CTA band (.cta is a #d93f05 → #c43a04 gradient, not the
   navy used elsewhere). That is why the submit button is inverted below: `btn--onDark` paints
   itself var(--orange), which on this background is an invisible button. */
.lead-form--onDark button[type="submit"]{ background:#fff; color:var(--orange-700,#c23704);
                                          border-color:#fff }
.lead-form--onDark button[type="submit"]:hover{ background:#fff; color:var(--orange); }
.lead-form--onDark label{ color:#fff }
.lead-form--onDark input,
.lead-form--onDark textarea{
  background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.26); color:#fff;
}
.lead-form--onDark input::placeholder,
.lead-form--onDark textarea::placeholder{ color:rgba(255,255,255,.55) }
.lead-form--onDark input:focus,
.lead-form--onDark textarea:focus{ outline-color:#ffb08c; border-color:#ffb08c;
                                   background:rgba(255,255,255,.12) }
.lead-form--onDark .lead-form__msg[data-state="ok"]{ color:#8ff0bb }
.lead-form--onDark .lead-form__msg[data-state="err"]{ color:#ffb9a3 }
.lead-form--onDark .lead-form__alt{ color:#c6d2db }
.lead-form--onDark .lead-form__alt a{ color:#fff }

@media (max-width:600px){
  .lead-form__row{ grid-template-columns:1fr }
  .lead-form button{ justify-self:stretch; width:100%; justify-content:center }
}
