/* Flodesk official embed: keep our look, do not change Flodesk field names. */

.fd-embed {
  position: relative;
  width: 100%;
}

.fd-embed-slot {
  width: 100%;
  min-height: 80px;
}

.signup .fd-embed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-hub-card .fd-embed,
.hero-hub-card .signup-form.fd-embed {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.nl-inline .fd-embed,
.nl-inline-form.fd-embed {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.fd-embed .fine {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.fd-embed .signup-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #5c574f;
}

/* Our section already has the heading and body, so hide Flodesk's copies. */
.fd-embed [class*="__title"],
.fd-embed [class*="__subtitle"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Match site typography and controls without breaking Flodesk layout. */
.fd-embed [data-ff-el="root"],
.fd-embed [data-ff-el="root"] input,
.fd-embed [data-ff-el="root"] button,
.fd-embed [data-ff-el="root"] label,
.fd-embed [data-ff-el="root"] p,
.fd-embed [data-ff-el="root"] div {
  font-family: Inter, system-ui, sans-serif;
}

.fd-embed [data-ff-el="root"] .fd-form-control,
.fd-embed [data-ff-el="root"] input[type="text"],
.fd-embed [data-ff-el="root"] input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  min-height: 44px !important;
  font-size: 16px !important;
  background: #fff !important;
  color: var(--ink) !important;
}

.fd-embed [data-ff-el="root"] .fd-form-label,
.fd-embed [data-ff-el="root"] label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="submit"],
.fd-embed [data-ff-el="root"] .fd-btn,
.fd-embed [data-ff-el="root"] button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--gold) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--r) !important;
  min-height: 44px !important;
  padding: 12px 18px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  cursor: pointer;
}

.fd-embed [data-ff-el="root"] [class*="__container"],
.fd-embed [data-ff-el="root"] [class*="__form"] {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
}

.fd-embed [data-ff-el="success"] {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  text-align: left;
}

@media (min-width: 720px) {
  .nl-inline .fd-embed [data-ff-el="fields"],
  .nl-inline .fd-embed [class*="__fields"] {
    width: 100%;
  }
}


/* Stretch the ribbon form to our container and drop the inner cream box. */
.fd-embed [data-ff-el="root"] {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

.fd-embed [data-ff-el="root"] [class*="__container"],
.fd-embed [data-ff-el="root"] [class*="__form"],
.fd-embed [data-ff-el="content"],
.fd-embed [data-ff-el="fields"] {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fd-embed [data-ff-el="root"] [class*="__form"] {
  padding: 0 !important;
}

.fd-embed [class*="__field"].fd-form-group {
  max-width: none !important;
  flex: 1 1 0 !important;
}

.nl-inline .fd-embed [data-ff-el="content"] {
  align-items: flex-end !important;
  gap: 12px !important;
}

.nl-inline .fd-embed [data-ff-el="footer"],
.nl-inline .fd-embed [data-ff-el="submit"] {
  margin-top: 0 !important;
}

/* Button layout fix (btn, Nov 17 2026). One clean grid for every embed:
   - Flodesk's inner form border and its -10px/-5px gutter margins are dropped, so the
     fields line up with the card padding on both sides (they sat about 5px off-center).
   - Cards (bonus, newsletter): inputs share one row from 600px up, and the button is
     full width on its own row, so it is always centered in the card. Below 600px
     everything stacks, full width.
   - Inline newsletter (blog post, recipe, podcast): from 720px the inputs and the
     button sit on one row; below that they stack, full width, like the cards. */
.fd-embed [data-ff-el="root"] [data-ff-el="form"] {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="content"] {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="fields"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="fields"] > .fd-form-group,
.fd-embed [data-ff-el="root"] [data-ff-el="fields"] > [class*="__field"] {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
}

.fd-embed [data-ff-el="root"] .fd-form-group .fd-form-control {
  margin: 0 !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="footer"] {
  margin: 0 !important;
  width: 100% !important;
}

.fd-embed [data-ff-el="root"] [data-ff-el="footer"] [data-ff-el="submit"] {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Flodesk hides the fields on success; keep that working with the flex override above. */
.fd-embed [data-ff-el="root"][data-ff-stage="success"] [data-ff-el="content"] {
  display: none !important;
}

.nl-inline-form.fd-embed {
  display: block !important;
}

.nl-inline .fd-embed-slot {
  min-height: 46px;
}

@media (min-width: 600px) {
  .fd-embed [data-ff-el="root"] [data-ff-el="fields"] {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  }
}

@media (min-width: 720px) {
  .nl-inline .fd-embed [data-ff-el="root"] [data-ff-el="content"] {
    flex-direction: row !important;
    align-items: flex-end !important;
  }
  .nl-inline .fd-embed [data-ff-el="root"] [data-ff-el="fields"] {
    flex: 1 1 auto !important;
    width: auto !important;
  }
  .nl-inline .fd-embed [data-ff-el="root"] [data-ff-el="footer"] {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .nl-inline .fd-embed [data-ff-el="root"] [data-ff-el="footer"] [data-ff-el="submit"] {
    width: auto !important;
    min-width: 140px !important;
  }
}
