.sedq-cta {
  --sedq-accent: #176b87;
  --sedq-accent-dark: #10566d;
  --sedq-ink: #17212b;
  --sedq-muted: #667085;
  --sedq-line: #d9e3e7;
  width: 100%;
  margin: 20px 0;
  color: var(--sedq-ink);
  font-family: inherit;
}

.sedq-cta * { box-sizing: border-box; }

/* La CTA con un'intestazione usa una composizione editoriale a due colonne. */
.sedq-cta form.sedq-cta-has-copy {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #dce5e9;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f9fa 0%, #fff 62%);
  box-shadow: 0 16px 44px rgba(15, 45, 62, .08);
}

/* Se titolo e descrizione sono gestiti dalla pagina, il plugin non crea un secondo riquadro. */
.sedq-cta form.sedq-cta-no-copy {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sedq-cta h2 {
  margin: 0 0 10px;
  color: var(--sedq-ink);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: left;
}

.sedq-cta .sedq-description {
  margin: 0;
  color: var(--sedq-muted);
  font-size: 15px;
  text-align: left;
}

.sedq-cta .sedq-cta-fields {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.sedq-cta .sedq-row { margin-bottom: 14px; }
.sedq-cta .sedq-row:last-of-type { margin-bottom: 0; }

.sedq-cta .sedq-choices {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  gap: 9px;
}

.sedq-cta .sedq-choices label {
  min-height: 50px;
  padding: 11px 16px;
  border-color: #dfe7ea;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(15, 45, 62, .025);
}

.sedq-cta .sedq-choices label:hover {
  border-color: #91b8b8;
  background: #f8fcfb;
  box-shadow: 0 4px 13px rgba(15, 70, 70, .06);
}

.sedq-cta .sedq-choices label:has(input:checked) {
  border-color: var(--sedq-accent);
  background: #edf8f5;
  box-shadow: 0 0 0 1px var(--sedq-accent);
  color: #174f43;
}

.sedq-cta .sedq-actions {
  justify-content: center;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.sedq-cta .sedq-actions button {
  width: auto !important;
  min-width: min(100%, 278px);
  min-height: 52px;
  padding: 13px 25px;
  border-radius: 10px;
  white-space: nowrap;
}

.sedq-cta .sedq-actions button span { margin-left: 9px; }
.sedq-cta .sedq-actions .sedq-prev {
  width: auto !important;
  min-width: 0;
  min-height: 46px;
  margin-right: 0;
  padding-inline: 16px;
  white-space: nowrap;
}
.sedq-cta .sedq-cta-sequential .sedq-actions { gap: 10px; }
.sedq-cta .sedq-row em { display: none; }
.sedq-cta .sedq-row.has-error em { display: block; }
.sedq-cta.is-loading { opacity: .65; pointer-events: none; }
.sedq-cta-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: 13px; }
.sedq-visually-hidden { 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; }

@media (max-width: 720px) {
  .sedq-cta form.sedq-cta-has-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
    border-radius: 14px;
  }

  .sedq-cta h2,
  .sedq-cta .sedq-description { text-align: center; }

  .sedq-cta .sedq-actions button {
    width: 100% !important;
    min-width: 0;
    white-space: normal;
  }
}
