/* ============================================
   form-nojs.css — No-JavaScript form safety
   ============================================
   Without JavaScript the quote form cannot be submitted: the backend requires
   a Turnstile token, and a native form post would either leak the visitor's
   name, email and phone into the URL via GET, or hit the page itself. So the
   submit control starts hidden and is revealed only once form-handler.js has
   bound its submit handler and marked the document as JS-ready.

   The [hidden] attribute is the source of truth; the rules below make the
   intent explicit and beat any page-level display rule.
   ============================================ */

/* Hidden until JavaScript takes over. */
.form-submit[data-requires-js][hidden] {
  display: none !important;
}

/* Revealed by form-handler.js after the submit listener is attached. */
html.js-ready .form-submit[data-requires-js] {
  display: inline-flex;
}

/* The no-JS notice is only rendered when scripting is disabled, so it needs
   no hiding rules; style it to match the surrounding form. */
.form-nojs-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.6;
}

.form-nojs-notice a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.form-nojs-notice a:hover {
  text-decoration: underline;
}
