/* ===========================================================
   Custom form — replaces the Framer-generated bottom contact form.
   Posts directly to Netlify Forms with form-name=contact.
   Two themes: "dark" for the bottom contact section (purple bg),
   "light" reserved for any future popup replacement.
   =========================================================== */

.x1648-custom-form-wrapper {
  width: 100%;
  max-width: 480px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.x1648-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.x1648-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x1648-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.x1648-label em {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.6;
}

.x1648-form input,
.x1648-form textarea {
  width: 100%;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.x1648-form input:focus,
.x1648-form textarea:focus {
  border-width: 1px;
}

.x1648-form textarea {
  min-height: 110px;
  max-height: 260px;
  resize: vertical;
  line-height: 1.5;
}

.x1648-privacy {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.x1648-submit {
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: 4px;
}

.x1648-submit:hover { opacity: 0.9; }
.x1648-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.x1648-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* ---------- Dark theme (bottom contact section, purple bg) ---------- */

.x1648-theme-dark .x1648-label { color: rgba(255,255,255,0.92); }
.x1648-theme-dark .x1648-label em { color: rgba(255,255,255,0.55); }

.x1648-theme-dark input,
.x1648-theme-dark textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
}
.x1648-theme-dark input::placeholder,
.x1648-theme-dark textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.x1648-theme-dark input:focus,
.x1648-theme-dark textarea:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
}

.x1648-theme-dark .x1648-privacy { color: rgba(255,255,255,0.55); }
.x1648-theme-dark .x1648-privacy a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.x1648-theme-dark .x1648-submit {
  background: white;
  color: #100F0F;
}

.x1648-theme-dark .x1648-status-success {
  background: rgba(132, 187, 0, 0.18);
  border: 1px solid rgba(132, 187, 0, 0.4);
  color: white;
}
.x1648-theme-dark .x1648-status-error {
  background: rgba(232, 88, 88, 0.18);
  border: 1px solid rgba(232, 88, 88, 0.4);
  color: white;
}

/* ---------- Trim the popup's long GDPR paragraph ---------- *
 * The ActiveCampaign popup ("Get Your Tailored Solution!") has a
 * 5-line legalese block. Visually hide it; we add a short replacement
 * line via ::after on the surrounding container.
 * The class names are stable strings from the Framer-generated bundle.
 */
.framer-RJrvs .framer-1jtsond,
.framer-RJrvs p[data-framer-component-type="RichTextContainer"] {
  /* fallback: full text remains visible if our pattern doesn't match */
}

/* Mark the popup's Company field as optional via CSS only */
.framer-RJrvs label[for*="field_13"] .framer-1jtsond p::after,
.framer-RJrvs input[name="field[13]"] + .framer-1jtsond::after {
  content: " (optional)";
  opacity: 0.55;
  font-weight: 400;
  font-size: 12px;
}
