/* Myfans Creator Recruitment V1 — B2B creator tone on dark theme */
.nx-cr {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}
.nx-cr-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.nx-cr-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--nx-text);
}
.nx-cr-lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--nx-accent);
  line-height: 1.6;
}
.nx-cr-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nx-border);
}
.nx-cr-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.nx-cr-section p,
.nx-cr-list {
  margin: 0 0 0.85rem;
  color: var(--nx-muted);
  line-height: 1.7;
}
.nx-cr-list {
  padding-left: 1.2rem;
}
.nx-cr-list--ol {
  list-style: decimal;
}
.nx-cr-muted {
  color: var(--nx-muted);
  font-size: 0.88rem;
}
.nx-cr-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.nx-cr-section--warn {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 1.1rem 1.15rem;
  border-top: 1px solid var(--nx-border);
}
.nx-cr-form {
  display: grid;
  gap: 1rem;
}
.nx-cr-field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}
.nx-cr-label {
  font-size: 0.9rem;
  color: var(--nx-text);
}
.nx-cr-field input[type="text"],
.nx-cr-field input[type="email"],
.nx-cr-field input[type="url"],
.nx-cr-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--nx-border);
  background: var(--nx-surface-elevated);
  color: var(--nx-text);
  font: inherit;
}
.nx-cr-field textarea {
  min-height: 7rem;
  resize: vertical;
}
.nx-cr-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.35rem 0;
  color: var(--nx-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.nx-cr-check input {
  margin-top: 0.25rem;
  flex: 0 0 auto;
}
.nx-cr-consents {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 0.9rem 1rem;
  margin: 0;
}
.nx-cr-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--nx-muted);
  line-height: 1.55;
}
.nx-cr-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--nx-accent);
  color: var(--nx-accent-text);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.nx-cr-submit:hover {
  background: var(--nx-accent-hover);
}
.nx-cr-error {
  margin: 0;
  color: #e8a0a0;
  font-size: 0.85rem;
}
.nx-cr-flash {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.nx-cr-flash--ok {
  background: #1a2a1f;
  border: 1px solid #2f5a3c;
  color: #cfe8d4;
}
.nx-cr-flash--info {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  color: var(--nx-muted);
}
@media (max-width: 640px) {
  .nx-cr {
    padding-top: 0.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Embed / Single compact (shortcode) — vertical stack, no inline squash     */
/* Root cause fix: this file must load on Myfans Single (not page-only).     */
/* -------------------------------------------------------------------------- */
.nx-cr--shortcode,
.nx-cr--embed,
.nx-single-myfans-form .nx-cr {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  padding: 0 0 1.25rem;
  box-sizing: border-box;
}

.nx-cr--shortcode .nx-cr-form,
.nx-cr--embed .nx-cr-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.nx-cr--shortcode .nx-cr-field,
.nx-cr--embed .nx-cr-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-inline-size: 0;
  box-sizing: border-box;
}

.nx-cr--shortcode fieldset.nx-cr-field,
.nx-cr--shortcode .nx-cr-consents,
.nx-cr--embed fieldset.nx-cr-field,
.nx-cr--embed .nx-cr-consents {
  width: 100%;
  max-width: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
}

.nx-cr--shortcode .nx-cr-field input[type="text"],
.nx-cr--shortcode .nx-cr-field input[type="email"],
.nx-cr--shortcode .nx-cr-field input[type="url"],
.nx-cr--shortcode .nx-cr-field textarea,
.nx-cr--shortcode .nx-cr-field select,
.nx-cr--embed .nx-cr-field input[type="text"],
.nx-cr--embed .nx-cr-field input[type="email"],
.nx-cr--embed .nx-cr-field input[type="url"],
.nx-cr--embed .nx-cr-field textarea,
.nx-cr--embed .nx-cr-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.nx-cr--shortcode .nx-cr-field textarea,
.nx-cr--embed .nx-cr-field textarea {
  min-height: 4.5rem;
  max-height: 12rem;
  resize: vertical;
}

.nx-cr--shortcode .nx-cr-check,
.nx-cr--embed .nx-cr-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nx-cr--shortcode .nx-cr-check input,
.nx-cr--embed .nx-cr-check input {
  flex: 0 0 auto;
  width: auto;
  min-width: 1rem;
  min-height: 1rem;
  margin-top: 0.2rem;
}

.nx-cr--shortcode .nx-cr-check > span,
.nx-cr--embed .nx-cr-check > span {
  flex: 1 1 auto;
  min-width: 0;
}

.nx-cr--shortcode .nx-cr-submit,
.nx-cr--embed .nx-cr-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  font-size: 0.95rem;
}

.nx-cr--shortcode .nx-cr-note,
.nx-cr--embed .nx-cr-note {
  margin: 0;
}

@media (max-width: 640px) {
  .nx-cr--shortcode,
  .nx-cr--embed,
  .nx-single-myfans-form .nx-cr {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .nx-cr--shortcode .nx-cr-field,
  .nx-cr--embed .nx-cr-field,
  .nx-cr--shortcode fieldset.nx-cr-field,
  .nx-cr--embed fieldset.nx-cr-field,
  .nx-cr--shortcode .nx-cr-consents,
  .nx-cr--embed .nx-cr-consents {
    overflow-wrap: anywhere;
  }
}

/* -------------------------------------------------------------------------- */
/* UX V2 — steps, tooltips, conditional expand, compact consent              */
/* -------------------------------------------------------------------------- */
.nx-cr-subcopy {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nx-accent);
  line-height: 1.5;
}
.nx-cr-step {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-inline-size: 0;
}
.nx-cr-step[hidden] {
  display: none !important;
}
/* Conditional fields: author display:grid must not defeat HTML hidden. */
.nx-cr-field[hidden],
fieldset.nx-cr-field[hidden],
label.nx-cr-field[hidden] {
  display: none !important;
}
.nx-cr-step__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-text);
}
.nx-cr-back {
  justify-self: start;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--nx-muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}
.nx-cr-choice {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}
.nx-cr-choice__row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.nx-cr-tip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  vertical-align: middle;
}
.nx-cr-tip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  background: var(--nx-surface);
  color: var(--nx-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.nx-cr-tip__btn:hover,
.nx-cr-tip__btn:focus-visible {
  color: var(--nx-text);
  border-color: var(--nx-accent);
  outline: 2px solid var(--nx-accent);
  outline-offset: 2px;
}
.nx-cr-tip__panel {
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(18rem, calc(100vw - 2rem));
  max-width: 18rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-surface-elevated);
  color: var(--nx-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.nx-cr-tip__panel[hidden] {
  display: none !important;
}
.nx-cr-consent-item {
  display: grid;
  gap: 0.25rem;
  margin: 0.45rem 0;
}
.nx-cr-consent-detail {
  margin: 0 0 0 1.65rem;
  font-size: 0.85rem;
  color: var(--nx-muted);
}
.nx-cr-consent-detail summary {
  cursor: pointer;
  color: var(--nx-accent);
  list-style: none;
}
.nx-cr-consent-detail summary::-webkit-details-marker {
  display: none;
}
.nx-cr-consent-detail[open] summary {
  margin-bottom: 0.35rem;
}
.nx-cr-success {
  margin: 0.5rem 0 0;
}
.nx-cr .screen-reader-text,
.nx-cr--embed .screen-reader-text {
  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;
}

.nx-cr--shortcode .nx-cr-form,
.nx-cr--embed .nx-cr-form,
.nx-cr .nx-cr-form {
  max-width: 720px;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .nx-cr-tip__panel {
    left: auto;
    right: 0;
    width: min(16.5rem, calc(100vw - 1.5rem));
  }
}

/* -------------------------------------------------------------------------- */
/* Component FINAL — hero + accordions (ONE SHORTCODE SSOT)                  */
/* -------------------------------------------------------------------------- */
.nx-cr--component {
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}
.nx-cr-component__hero {
  text-align: center;
  margin: 0 0 1rem;
}
.nx-cr-component__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--nx-text);
  text-align: center;
}
.nx-cr-component__lede {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  font-weight: 700;
  color: var(--nx-accent);
  line-height: 1.5;
  text-align: center;
}
.nx-cr-accordions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
}
.nx-cr-accordion {
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  background: var(--nx-surface);
  padding: 0;
  margin: 0;
}
.nx-cr-accordion > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nx-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.nx-cr-accordion > summary::-webkit-details-marker {
  display: none;
}
.nx-cr-accordion > summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--nx-muted);
  font-weight: 700;
}
.nx-cr-accordion[open] > summary::after {
  content: '−';
}
.nx-cr-accordion__body {
  padding: 0 0.9rem 0.9rem;
  color: var(--nx-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.nx-cr-accordion__body p,
.nx-cr-accordion__body .nx-cr-list {
  margin: 0 0 0.65rem;
}
.nx-cr-flow-inline {
  margin: 0;
  font-weight: 600;
  color: var(--nx-text);
  letter-spacing: 0.01em;
}
.nx-cr--standalone {
  padding: 1.25rem 0 3rem;
}
