/* Creasura interest-list form. Sits inside each product page's #join card and
   inherits the page's font and .btn; only the accent changes per product. */
.ifm { --ifm-accent: #0071e3; --ifm-ink: #0a5bc4; --ifm-ring: rgba(0, 113, 227, .28);
  width: 100%; max-width: 400px; margin: 10px auto 0; text-align: left; color: #1d1d1f; }
.ifm[data-interest="one"] { --ifm-accent: #8e5cf7; --ifm-ink: #5a37c2; --ifm-ring: rgba(142, 92, 247, .3); }
.ifm[data-interest="work"] { --ifm-accent: #0a84ff; --ifm-ink: #0a5bc4; --ifm-ring: rgba(10, 132, 255, .28); }
.ifm[data-interest="business"] { --ifm-accent: #ff375f; --ifm-ink: #c4183f; --ifm-ring: rgba(255, 55, 95, .26); }

.ifm .ifm-form { display: grid; gap: 14px; position: relative; }
.ifm .ifm-field { display: grid; gap: 6px; }
.ifm .ifm-label { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.ifm .ifm-opt { margin-left: 4px; font-weight: 400; color: #6e6e73; }
.ifm .ifm-input { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 14px;
  background: #fff; color: #1d1d1f; font: inherit; font-size: 17px; line-height: 1.35; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s; }
.ifm textarea.ifm-input { min-height: 84px; resize: vertical; }
.ifm .ifm-input:hover { border-color: rgba(0, 0, 0, .24); }
.ifm .ifm-input:focus { outline: none; border-color: var(--ifm-accent); box-shadow: 0 0 0 4px var(--ifm-ring); }
.ifm .ifm-input[aria-invalid] { border-color: #d70015; }
.ifm .ifm-input[aria-invalid]:focus { box-shadow: 0 0 0 4px rgba(215, 0, 21, .2); }

/* Off-screen rather than display:none, so naive bots still fill it in. */
.ifm .ifm-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ifm .ifm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ifm .ifm-submit { justify-self: center; justify-content: center; margin-top: 4px; }
.ifm .ifm-submit[aria-disabled="true"] { opacity: .65; cursor: progress; }
.ifm .ifm-consent { margin: 0; font-size: 13px; line-height: 1.45; color: #6e6e73; text-align: center; }
.ifm a { color: var(--ifm-ink); text-decoration: underline; text-underline-offset: 2px; }
.ifm .ifm-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; color: #b0000f; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(215, 0, 21, .25); }
.ifm .ifm-error a { color: inherit; }

.ifm .ifm-done, .ifm .ifm-status { display: grid; justify-items: center; gap: 6px; padding: 18px 16px; border-radius: 18px; background: #fff; text-align: center; }
.ifm .ifm-done:focus { outline: none; }
.ifm .ifm-done:focus-visible { outline: 2px solid var(--ifm-accent); outline-offset: 2px; }
.ifm .ifm-done[hidden], .ifm .ifm-status[hidden], .ifm .ifm-form[hidden], .ifm .ifm-error[hidden], .ifm .ifm-also[hidden] { display: none; }
.ifm .ifm-done svg, .ifm .ifm-status svg { width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--ifm-accent); fill: none; stroke: #fff; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; }
.ifm .ifm-done-title { margin: 4px 0 0; font-size: 19px; font-weight: 600; color: #1d1d1f; }
.ifm .ifm-done-sub { margin: 0; font-size: 14px; color: #6e6e73; }
.ifm .ifm-status .ifm-done-title { text-wrap: balance; }

/* "Use a different email": a quiet text button under the remembered status. */
.ifm .ifm-textbtn { margin-top: 2px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--ifm-ink);
  font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ifm .ifm-textbtn:hover { text-decoration-thickness: 2px; }
.ifm .ifm-textbtn:focus { outline: none; }
.ifm .ifm-textbtn:focus-visible { outline: 2px solid var(--ifm-accent); outline-offset: 1px; }
/* "You're already on the list for …", under the consent line on the other products' pages. */
.ifm .ifm-also { margin: -6px 0 0; font-size: 13px; line-height: 1.45; color: #6e6e73; text-align: center; }

/* No-JS / not-yet-configured fallback. */
.ifm .ifm-fallback { margin: 0; text-align: center; font-size: 17px; color: #1d1d1f; }

@media (max-width: 600px) {
  .ifm { max-width: none; }
  .ifm .ifm-submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ifm .ifm-input { transition: none; } }
