/* 3Syxty lead form — public-side styling. Namespaced under .syxty-lead so it
 * does not collide with Mobirise/Bootstrap classes. Dark theme to match the
 * Mobirise marketing site canvas (#232323) with orange accent. */

/* Prevent Alpine.js from hiding x-cloak elements before it boots */
[x-cloak] { display: none !important; }

/* footerReveal (Mobirise script.js) pins .mbr-reveal footers at z-index:-999
 * and relies on its previous sibling having no stacking context.  Give our
 * section a stacking context so it renders above the fixed footer, and reset
 * the footer to normal flow so it is never covered. */
.syxty-lead {
  position: relative;
  z-index: 1;
  /* Cancel the inline margin-bottom that Mobirise's footerReveal stamps on
   * the previous sibling of an .mbr-reveal footer (it would otherwise leave
   * a white strip equal to the footer's height between us and the footer). */
  margin-bottom: 0 !important;
}
.syxty-lead + section[id^="footer"] {
  position: static !important;
  z-index: auto !important;
  width: auto !important;
  bottom: auto !important;
}
.syxty-lead + section[id^="footer"] ~ * {
  margin-bottom: 0 !important;
}

.syxty-lead {
  --sl-bg-page:   #1a1a1a;            /* slightly deeper than footer      */
  --sl-bg-card:   #2e2e2e;            /* dark card                        */
  --sl-text:      #f0f0f0;            /* near-white body text              */
  --sl-muted:     #a0a8b8;            /* muted labels                     */
  --sl-border:    #444444;            /* dark input borders               */
  --sl-input-bg:  #3a3a3a;            /* input background                 */
  --sl-accent:    #ff3366;            /* Mobirise brand accent             */
  --sl-accent-2:  #ff6a3d;
  --sl-accent-fg: #ffffff;
  --sl-error:     #ff6b6b;
  --sl-success:   #4ade80;
  --sl-radius:    12px;
  --sl-shadow:    0 24px 48px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .4);

  font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--sl-text);
  padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
  background: var(--sl-bg-page);
}
.syxty-lead *,
.syxty-lead *::before,
.syxty-lead *::after { box-sizing: border-box; }

.syxty-lead__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--sl-bg-card);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow);
  padding: clamp(1.5rem, 2.5vw + 1rem, 2.75rem);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
/* gradient accent bar across the top of the card */
.syxty-lead__inner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sl-accent) 0%, var(--sl-accent-2) 100%);
}

.syxty-lead .syxty-lead__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: .25rem 0 1.25rem 0;
}
.syxty-lead .syxty-lead__brand img {
  display: block;
  max-height: 64px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Compound selectors + !important on color/text-align defeat Mobirise's
 * per-section h2 / p rules without bleeding into the rest of the page. */
.syxty-lead .syxty-lead__title {
  margin: 0 0 .35rem 0 !important;
  font-size: clamp(1.4rem, 1.1vw + 1rem, 1.75rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: center !important;
  text-transform: none !important;
}
.syxty-lead .syxty-lead__lede {
  margin: 0 0 1.5rem 0 !important;
  color: var(--sl-muted) !important;
  font-size: .95rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.syxty-lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
}
.syxty-lead__row { display: flex; flex-direction: column; gap: .35rem; }
.syxty-lead__row--full { grid-column: 1 / -1; }
@media (max-width: 540px) {
  .syxty-lead__grid { grid-template-columns: 1fr; }
}

.syxty-lead .syxty-lead__row label {
  font-size: .8rem !important;
  letter-spacing: .02em;
  color: var(--sl-muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  text-align: left !important;
}
.syxty-lead__row input,
.syxty-lead__row select,
.syxty-lead__row textarea {
  width: 100%;
  font: inherit;
  color: #f0f0f0 !important;
  background: var(--sl-input-bg) !important;
  border: 1px solid var(--sl-border) !important;
  border-radius: 8px;
  padding: .7rem .85rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
}
.syxty-lead__row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sl-muted) 50%),
                    linear-gradient(135deg, var(--sl-muted) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 2.25rem;
}
.syxty-lead__row input:focus,
.syxty-lead__row select:focus,
.syxty-lead__row textarea:focus {
  outline: none;
  border-color: var(--sl-accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 51, 102, .25) !important;
}
.syxty-lead__row textarea { resize: vertical; min-height: 5.5rem; }
.syxty-lead__row input::placeholder,
.syxty-lead__row textarea::placeholder { color: #666 !important; }
.syxty-lead__row select option { background: #2e2e2e; color: #f0f0f0; }

.syxty-lead__hp {
  position: absolute !important;
  left: -9999px !important;
  top:  -9999px !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

.syxty-lead .syxty-lead__submit {
  width: 100% !important;
  margin-top: 1.25rem !important;
  padding: .9rem 1rem !important;
  font: inherit;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: .02em;
  color: var(--sl-accent-fg) !important;
  background: linear-gradient(135deg, var(--sl-accent) 0%, var(--sl-accent-2) 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  text-transform: uppercase !important;
}
.syxty-lead__submit:hover  { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255, 51, 102, .35); }
.syxty-lead__submit:active { transform: translateY(0);   box-shadow: 0 2px 8px  rgba(255, 51, 102, .35); }
.syxty-lead__submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.syxty-lead__submit:focus-visible {
  outline: 3px solid rgba(255, 51, 102, .45);
  outline-offset: 2px;
}

.syxty-lead__error {
  margin: .9rem 0 0 0;
  color: var(--sl-error) !important;
  font-size: .9rem;
  text-align: center;
}

.syxty-lead__success {
  border: 1px solid rgba(74, 222, 128, .3);
  background: rgba(74, 222, 128, .08);
  color: var(--sl-success) !important;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  text-align: center;
}
.syxty-lead__success strong { display: block; font-size: 1.1rem; margin-bottom: .35rem; color: #ffffff !important; }
.syxty-lead__success p      { margin: 0; color: var(--sl-success) !important; }

@media (prefers-reduced-motion: reduce) {
  .syxty-lead__submit { transition: none !important; }
}
