/* ------------------------------------------------------------------
   signup.css: Scale You newsletter sign-up.

   The form is Kit's own embed. Everything here is the surrounding card,
   the popup shell, and a light skin so Kit's markup matches the site:
   fonts, field colours, button colour, spacing. The fields themselves are
   managed in Kit and are not touched here.
   ------------------------------------------------------------------ */

/* Shared card ---------------------------------------------------- */
.syp-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  color: var(--white);
  text-align: center;
  position: relative;
}

.syp-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.25rem, 3.2vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--white);
}

.syp-card > p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 14px;
}

/* Already-subscribed line (inline placements only) ---------------- */
.syp-subscribed {
  max-width: 520px;
  margin: 28px auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

/* Popup ----------------------------------------------------------- */
#syp-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 12, 30, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
#syp-overlay.syp-open { display: flex; animation: syp-fade 0.25s ease-out; }
@keyframes syp-fade { from { opacity: 0 } to { opacity: 1 } }

#syp-overlay .syp-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 30px 26px;
  margin: auto;
}

#syp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px;
  z-index: 2;
}
#syp-close:hover { color: var(--white); }

/* Inline block ---------------------------------------------------- */
.syp-inline {
  max-width: 520px;
  margin: 40px auto;
  padding: 32px 28px 26px;
}
.wf-index-side-sticky .syp-inline { margin: 0 0 20px; }

@media (max-width: 480px) {
  #syp-overlay { padding: 16px; }
  #syp-overlay .syp-card { padding: 30px 20px 22px; }
  .syp-inline { padding: 26px 20px 22px; margin: 32px auto; }
}

/* ------------------------------------------------------------------
   Kit embed skin.
   Scoped to .syp-kit so it only affects our placements. Kit's own
   heading and description are hidden because the card already carries
   them; everything else is restyled to match the site's inputs.
   ------------------------------------------------------------------ */
.syp-kit { width: 100%; }

.syp-kit .formkit-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-family: var(--font-body) !important;
}

/* Kit ships its own heading, copy and background image. The card around
   it already says all of this, so hide the duplicates. */
.syp-kit .formkit-header,
.syp-kit .formkit-subheader,
.syp-kit .formkit-background,
.syp-kit .formkit-image,
.syp-kit .formkit-powered-by-convertkit,
.syp-kit [data-element="powered-by"] { display: none !important; }

/* Kit lays its fields out for a wider default card. Force everything in
   the chain to fill our container instead, at any width. */
.syp-kit .formkit-form > div,
.syp-kit .formkit-fields {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

.syp-kit .formkit-field {
  margin: 0 0 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}

.syp-kit .formkit-input,
.syp-kit select {
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;   /* 16px stops iOS zooming on focus */
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 13px 15px !important;
  color: var(--white) !important;
  margin: 0 0 10px !important;
  transition: border-color 0.2s ease;
}
.syp-kit .formkit-input::placeholder { color: var(--muted-dim) !important; }
.syp-kit .formkit-input:focus,
.syp-kit select:focus {
  outline: none !important;
  border-color: var(--blue) !important;
}
.syp-kit select option { color: #1d2a36; background: #fff; }

.syp-kit .formkit-submit,
.syp-kit .formkit-submit > span,
.syp-kit button[type="submit"] {
  width: 100% !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  cursor: pointer;
}
.syp-kit .formkit-submit { padding: 0 !important; margin: 2px 0 0 !important; }
.syp-kit .formkit-submit > span { padding: 14px !important; display: block; }
.syp-kit .formkit-submit:hover,
.syp-kit .formkit-submit:hover > span { background: var(--blue-light) !important; }

.syp-kit .formkit-guarantee,
.syp-kit .formkit-disclaimer {
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  text-align: center !important;
  margin: 12px 0 0 !important;
}

/* Kit's own validation and success messages. */
.syp-kit .formkit-alert {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius) !important;
  margin: 0 0 10px !important;
}
.syp-kit .formkit-alert-error {
  background: rgba(180, 35, 24, 0.15) !important;
  color: #FF8A80 !important;
  border: 1px solid rgba(255, 138, 128, 0.35) !important;
}
.syp-kit .formkit-alert-success {
  background: rgba(0, 198, 240, 0.12) !important;
  color: var(--cyan-soft) !important;
  border: 1px solid rgba(0, 198, 240, 0.35) !important;
}
