/* Archivo is enqueued from the main plugin file via wp_enqueue_style so the
   browser can fetch it in parallel with this stylesheet, and so a theme that
   already loads it wins.

   Every value below is lifted from the two mockups:
     Suprero Coming Soon.dc.html
     Suprero Qualification.dc.html */

.scw {
  --scw-ink: #111111;        /* headings, buttons, selected option */
  --scw-ink-hover: #2f2f2c;  /* button hover */
  --scw-bg: #fbfbfa;         /* page */
  --scw-body: #5c5c57;       /* subheads and card body copy */
  --scw-muted: #8f8f89;      /* notes, skip link, "Optional" */
  --scw-placeholder: #a8a8a2;
  --scw-line: #d9d9d3;       /* input and option borders */
  --scw-line-soft: #eaeae4;  /* feature card border */
  --scw-line-card: #e4e4df;  /* thank-you card border */
  --scw-card: #ffffff;
  --scw-card-tint: rgba(255, 255, 255, 0.72); /* feature cards sit over the network */
  --scw-font: 'Archivo', Helvetica, Arial, sans-serif;
  --scw-radius: 4px;
  --scw-radius-lg: 8px;
  --scw-field-h: 54px;
  --scw-option-h: 48px;
}

.scw {
  position: relative;
  overflow: hidden;
  font-family: var(--scw-font);
  color: var(--scw-ink);
  background: var(--scw-bg);
}

.scw h1,
.scw h2,
.scw h3 {
  font-family: var(--scw-font);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: inherit;
}

.scw__inner {
  position: relative; /* above the backdrop */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── Backdrop ─────────────────────────────────────────────────────────────
   MOCKUP: the network is masked out towards the bottom of the viewport and a
   page-coloured radial breathes behind the headline. */

.scw-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0) 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0) 78%);
}

.scw-backdrop__net {
  position: absolute;
  inset: 0;
  animation: scw-drift 48s linear infinite;
}

/* One tile of travel per cycle, so the loop is seamless whatever the scale. */
@keyframes scw-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--scw-tile-x), var(--scw-tile-y), 0); }
}

.scw-backdrop__glow {
  position: absolute;
  left: 50%;
  top: min(300px, 34vh);
  width: min(1240px, 145vw);
  height: min(1240px, 145vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, var(--scw-glow) 0%, var(--scw-glow) 34%, transparent 68%);
  animation: scw-breathe 14s ease-in-out infinite;
}

/* Interpolating straight to `transparent` greys the midpoint in some
   browsers; color-mix keeps the fade in the glow's own hue. */
@supports (background: radial-gradient(circle, color-mix(in srgb, #fff 50%, transparent) 0%, #fff 100%)) {
  .scw-backdrop__glow {
    background: radial-gradient(circle,
      var(--scw-glow) 0%,
      color-mix(in srgb, var(--scw-glow) 95%, transparent) 34%,
      color-mix(in srgb, var(--scw-glow) 0%, transparent) 68%);
  }
}

@keyframes scw-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .scw-backdrop__net,
  .scw-backdrop__glow { animation: none !important; }
}

/* ── Shared form chrome ───────────────────────────────────────────────────
   Elementor Pro Form overrides that both pages need. Page-specific layout
   lives in coming-soon.css / qualification.css. */

.scw-form input,
.scw-form select,
.scw-form textarea,
.scw-form button { font-family: inherit; }

.scw-form ::placeholder { color: var(--scw-placeholder); opacity: 1; }

.scw-form .elementor-form-fields-wrapper { align-items: flex-start; }

.scw-form .elementor-field-group { align-items: flex-start; }

.scw-form .elementor-field-group.elementor-col-50 + .elementor-col-50 { margin-right: 0; }

.scw-form .elementor-field-group.elementor-field-type-submit { margin-bottom: 0; }

.scw-form .elementor-field-textual,
.scw-form textarea.elementor-field-textual {
  width: 100%;
  height: var(--scw-field-h);
  padding: 0 16px;
  font-size: 16px;
  color: var(--scw-ink);
  background: var(--scw-card);
  border: 1px solid var(--scw-line);
  border-radius: var(--scw-radius);
  outline: none;
  box-shadow: none;
  transition: border-color .15s;
}

.scw-form .elementor-field-textual:focus { border-color: var(--scw-ink); }

.scw-form textarea.elementor-field-textual {
  height: auto;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: var(--scw-radius-lg);
  resize: vertical;
}

.scw-form .elementor-button[type="submit"],
.scw-form button[type="submit"] {
  width: 100%;
  height: var(--scw-field-h);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--scw-bg);
  background: var(--scw-ink);
  border: none;
  border-radius: var(--scw-radius);
  cursor: pointer;
  transition: background .15s;
}

.scw-form .elementor-button[type="submit"]:hover,
.scw-form button[type="submit"]:hover { background: var(--scw-ink-hover); }

/* Elementor's own success/error message. The widget swaps in the mockup's
   thank-you card on success, so only the error state stays visible. */
.scw-form .elementor-message {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

.scw-form .elementor-message.elementor-message-success { display: none; }

/* ── Radio fields rendered as the mockup's option buttons ─────────────────
   Elementor Pro renders a Radio field as
     .elementor-field-subgroup > .elementor-field-option > input + label
   The input is visually hidden and the label carries the whole control, so
   :checked + label gives the mockup's inverted selected state. */

/* Without a scw-opts--N class the options fit themselves to the width, so a
   field built without one still reads correctly — the classes below pin the
   exact mockup layout. Elementor's own .elementor-subgroup-inline spacing is
   overridden by the grid. */
.scw-form .elementor-field-type-radio .elementor-field-subgroup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.scw-form .elementor-field-group[class*="scw-opts--"] .elementor-field-subgroup {
  grid-template-columns: repeat(var(--scw-opt-cols, 4), 1fr);
}

.scw-form .elementor-field-type-radio .elementor-field-option {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.scw-form .elementor-field-type-radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.scw-form .elementor-field-type-radio input[type="radio"] + label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* min-height, not height: an option whose label wraps (the mockup's
     "Affiliate or niche site builder") must grow rather than clip. */
  min-height: var(--scw-option-h);
  padding: 10px 14px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--scw-ink);
  background: var(--scw-card);
  border: 1px solid var(--scw-line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.scw-form .elementor-field-type-radio input[type="radio"] + label:hover { border-color: var(--scw-ink); }

.scw-form .elementor-field-type-radio input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--scw-ink);
  outline-offset: 2px;
}

.scw-form .elementor-field-type-radio input[type="radio"]:checked + label {
  color: var(--scw-bg);
  background: var(--scw-ink);
  border-color: var(--scw-ink);
}

/* Per-field variants, applied from the field's Advanced → CSS Classes box.
   MOCKUP: Q1 and Q3 are 4-up pills; Q2 is a 2-up grid of left-aligned cards. */
.scw-form .elementor-field-group.scw-opts--2   { --scw-opt-cols: 2; }
.scw-form .elementor-field-group.scw-opts--3   { --scw-opt-cols: 3; }
.scw-form .elementor-field-group.scw-opts--4   { --scw-opt-cols: 4; }

.scw-form .elementor-field-group.scw-opts--card input[type="radio"] + label {
  min-height: var(--scw-option-h);
  padding: 12px 16px;
  justify-content: flex-start;
  text-align: left;
  text-wrap: pretty;
  border-radius: var(--scw-radius-lg);
}

/* Elementor's own inline-subgroup rules assume inline-block options; the grid
   owns the spacing here. */
.scw-form .elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option {
  margin-right: 0;
}

/* Required-field asterisks read as noise beside a question. */
.scw-form .elementor-field-required .elementor-field-label:after { content: none; }

@media (max-width: 720px) {
  .scw-form .elementor-field-type-radio .elementor-field-subgroup { grid-template-columns: 1fr; }
}
