.activation-section {
  padding: 64px 20px 96px;
}

.activation-wrap {
  padding: 0 var(--pad3);
  margin: 0 auto;
}

.activation-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--heading);
}

.activation-head p {
  margin: 0 0 36px;
  max-width: 640px;
  color: var(--text-muted);
  line-height: 1.6;
}

.activation-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

/* --- Progress --- */
.wizard-progress {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.wizard-counter {
  margin: 10px 0 26px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Step --- */
.wizard-step.is-hidden {
  display: none;
}

.wizard-step-title {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--heading);
}

.wizard-step-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Griglia opzioni (card) --- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover {
  border-color: var(--primary);
}

.option-card.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, var(--bg));
}

.option-card.is-hidden {
  display: none;
}

.option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  /* Niente sfondo chiaro: le icone conservano il loro colore naturale
     (incluse le parti bianche) sulla card scura, come nella hero della home. */
  background: transparent;
}

.option-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.option-icon-empty {
  background: var(--surface-2);
  border-radius: 8px;
}

.option-card.is-selected .option-icon-empty {
  background: var(--primary);
}

.option-label {
  font-weight: 500;
  line-height: 1.2;
}

.option-none {
  opacity: 0.85;
}

.wizard-step-error {
  margin: 16px 0 0;
  min-height: 1em;
  font-size: 0.9rem;
  color: #ff8497;
}

/* --- Anagrafica (riuso pattern contact) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--outline);
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

/* --- Honeypot (nascosto agli utenti reali) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Widget Cloudflare Turnstile (partial views/partials/turnstile.hbs). */
.form-guard {
  margin: 4px 0 18px;
}

.form-guard .cf-turnstile {
  display: inline-block;
  min-height: 65px;
}

/* --- Azioni --- */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.wizard-actions .button.is-hidden {
  display: none;
}

.wizard-actions .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.activation-feedback {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.activation-feedback.is-error {
  color: #ff8497;
}

.activation-feedback.is-success {
  color: #6ee7a8;
}

.activation-feedback a {
  color: var(--primary);
  word-break: break-all;
}

@media (max-width: 1024px) {
  .option-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .activation-form {
    padding: 22px;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }
}
