/* ── Registration page ───────────────────────────────────────────────────────
   The buy/register funnel. Neutral-gray fallbacks throughout so nothing
   disappears if a token is missing on a given theme.
   ─────────────────────────────────────────────────────────────────────────── */
.reg-wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

.reg-point,
.reg-step {
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .28));
  border-radius: 14px;
  background: var(--dm-surface, rgba(128, 128, 128, .06));
}
.reg-point h3,
.reg-step h3 {
  margin: 14px 0 8px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.reg-point p,
.reg-step p {
  margin: 0 !important;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--dm-text-muted, #64748b);
}
.reg-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
}
.reg-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-weight: 800;
  font-size: .85rem;
}

/* The plan chooser is the first decision on the page, so give it room and make
   the recommended option obvious. Domma renders each option as .picker-option
   with the real radio visually hidden inside it. */
.domma-form .picker-options {
  gap: 14px;
}
.domma-form .picker-option {
  padding: 16px 18px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .3));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.domma-form .picker-option:hover {
  border-color: var(--dm-primary, #475569);
}
.domma-form .picker-option.is-selected,
.domma-form .picker-option:has(input:checked) {
  border-color: var(--dm-primary, #475569);
  box-shadow: 0 0 0 2px var(--dm-primary, #475569) inset;
}
.domma-form .picker-option.is-recommended::after {
  content: 'Recommended';
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .reg-wrap { padding: 0 1rem; }
}

/* The plan chooser is the first decision, so it gets the full form width and
   one column per option.

   Two things fight it otherwise: the form field's `span: "full"` is not applied
   by the renderer (the wrapper comes out with grid-column:auto), and the picker
   lays its options out on a fixed three-column grid however many there are - so
   two plans rendered as two thirds of the left-hand column. Both are corrected
   here rather than in the form definition, which cannot express either. */
.domma-form .domma-form-field:has(input[name="plan"]) {
  grid-column: 1 / -1;
}
.domma-form .domma-form-field:has(input[name="plan"]) .picker-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.domma-form .domma-form-field:has(input[name="hasGiftCode"]) {
  grid-column: 1 / -1;
}

/* Give each plan card room to breathe now that it has the width. */
.domma-form .domma-form-field:has(input[name="plan"]) .picker-option {
  padding: 20px 22px;
}

/* ── Registration outcome states ─────────────────────────────────────────────
   Shared by the checkout and success pages. The client replaces the inner
   markup, so these are the classes register.js writes as well as the ones the
   page ships with, keeping the pending and resolved states identical in shape.
   ─────────────────────────────────────────────────────────────────────────── */
.reg-wrap-narrow { max-width: 620px; }
.reg-centre { text-align: center; }

.reg-result {
  padding: 40px 34px 34px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .28));
  border-radius: 18px;
  background: var(--dm-surface, rgba(128, 128, 128, .05));
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}
.reg-result h2 {
  margin: 18px 0 10px !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.reg-result p {
  margin: 0 0 10px !important;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--dm-text-muted, #64748b);
}
.reg-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--dm-text-inverse, #fff);
  background: var(--dm-primary, #475569);
}
.reg-result-ok      .reg-result-icon { background: var(--dm-success, #15803d); }
.reg-result-error   .reg-result-icon { background: var(--dm-danger, #b91c1c); }
.reg-result-pending .reg-result-icon {
  background: var(--dm-border, rgba(128, 128, 128, .35));
  color: var(--dm-text, #1f2937);
  animation: reg-pulse 1.4s ease-in-out infinite;
}
@keyframes reg-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The domain the site will answer on: the one fact people screenshot. */
.reg-result-domain {
  margin: 16px 0 !important;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--dm-hover-bg, rgba(128, 128, 128, .12));
  font-size: .95rem !important;
  color: var(--dm-text, #1f2937) !important;
  word-break: break-all;
}
.reg-result-next {
  margin: 18px auto 6px !important;
  padding: 0;
  max-width: 400px;
  text-align: left;
  list-style: none;
  counter-reset: reg;
}
.reg-result-next li {
  counter-increment: reg;
  position: relative;
  padding: 9px 0 9px 36px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--dm-text-muted, #64748b);
  border-bottom: 1px solid var(--dm-border, rgba(128, 128, 128, .18));
}
.reg-result-next li:last-child { border-bottom: 0; }
.reg-result-next li::before {
  content: counter(reg);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-size: .68rem;
  font-weight: 800;
}
.reg-result-note {
  margin: 14px 0 0 !important;
  font-size: .82rem !important;
  color: var(--dm-text-muted, #94a3b8) !important;
}

/* The step cards carry an icon on the success page rather than a number. */
.reg-step-n[data-icon] {
  width: 38px;
  height: 38px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 10px;
}

/* Section eyebrow. The showcase site has a section-label block for this; the
   manager does not, so the shortcode rendered as literal text on the page. */
.reg-eyebrow {
  margin: 0 0 10px !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dm-primary, #475569) !important;
}
