/* The lead form a firm embeds on its own website.
 *
 * The view already calls app_external_form_header(), so the design tokens are on
 * the page; nothing was using them. The module's custom.css carries no button or
 * surface rules, which is why the one control on the page, Submit, rendered as a
 * stock grey Bootstrap button on a page a prospect sees first.
 *
 * Scoped to the form's own body classes so it can never reach the admin app.
 */

body.accu_marketing-form.web-to-lead {
  color: var(--a1-ink, #243043);
  font-family: var(--a1-ui-font, "Plus Jakarta Sans", system-ui, sans-serif);
}

/* Plain mode is embedded in an iframe on someone else's page, so it stays
   transparent and lets the host page's own background show through. Only the
   standalone styled mode paints a background and a surface. */
body.accu_marketing-form.web-to-lead.styled {
  background:
    radial-gradient(circle at 18% 14%, rgba(229, 231, 255, .5), transparent 26rem),
    radial-gradient(circle at 82% 10%, rgba(228, 240, 255, .55), transparent 28rem),
    var(--a1-page, #f7f7fb);
}

body.accu_marketing-form.web-to-lead.styled .form-col {
  padding: 30px 32px;
  border: 1px solid var(--a1-border, #e6e4f2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--a1-surface, #ffffff) 0%, var(--a1-surface-alt, #f6f5fd) 100%);
  box-shadow: var(--a1-shadow-soft, 0 8px 20px rgba(36, 32, 68, 0.07)), inset 0 1px 0 #ffffff;
}

/* Nothing constrained the firm's logo, so a large upload dominated the page. */
body.accu_marketing-form.web-to-lead .logo {
  margin: 26px 0 22px;
}

body.accu_marketing-form.web-to-lead .logo img {
  max-height: 56px;
  width: auto;
  display: inline-block;
}

body.accu_marketing-form.web-to-lead label {
  font-size: 14px;
  font-weight: 600;
  color: var(--a1-ink, #243043);
}

body.accu_marketing-form.web-to-lead .required,
body.accu_marketing-form.web-to-lead label span.required {
  color: #b4506a;
}

/* Empty, filled and focused read as three different states. */
body.accu_marketing-form.web-to-lead :is(.form-control, input[type="text"], input[type="email"], input[type="number"], textarea, select) {
  border: 1px solid var(--a1-border-strong, #d5d1e8);
  border-radius: var(--a1-theme-input-radius, 10px);
  background: #fbfaff;
  color: var(--a1-ink, #243043);
  box-shadow: inset 0 1px 2px rgba(36, 32, 68, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.accu_marketing-form.web-to-lead :is(.form-control, input, textarea, select):focus {
  outline: none;
  background: #ffffff;
  border-color: var(--a1-gold, #d4af57);
  box-shadow: 0 0 0 4px rgba(212, 175, 87, 0.18);
}

/* The one action on the page. */
body.accu_marketing-form.web-to-lead #form_submit,
body.accu_marketing-form.web-to-lead .submit-btn-wrapper .btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  background: var(--a1-gold-gradient, linear-gradient(135deg, #f1c84b 0%, #d8b85a 48%, #b98919 100%));
  color: var(--a1-gold-ink, #1b1304);
  box-shadow: 0 10px 24px rgba(201, 161, 58, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 150ms ease, box-shadow 190ms ease;
}

body.accu_marketing-form.web-to-lead #form_submit:is(:hover, :focus-visible) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(201, 161, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.accu_marketing-form.web-to-lead #form_submit:focus-visible {
  outline: 2px solid var(--a1-purple-ink, #550672);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.accu_marketing-form.web-to-lead #form_submit,
  body.accu_marketing-form.web-to-lead .form-control {
    transition: none;
  }

  body.accu_marketing-form.web-to-lead #form_submit:is(:hover, :focus-visible) {
    transform: none;
  }
}
