/* ══════════════════════════════════════════════════════════════════════════════
   Form di richiesta consulenza — foglio autonomo.

   Il form vive in due mondi che non condividono niente: la sezione consulenze
   (kit Mutuando, palette viola, tema chiaro/scuro del sito) e le landing
   (Tailwind, pagina bianca o scura, colore scelto dall'admin per ogni landing).
   Per questo NON usa le classi del kit (`k-*`, `lf-*`): le sue regole sono
   tutte qui, sotto il prefisso `fc-`, e tutto ciò che può cambiare passa da una
   variabile.

   Come si adatta:
   - Sul sito le variabili `--fc-*` ereditano quelle del kit (`--gold`, `--bg2`,
     …), quindi il form prende da solo il colore della sezione e il tema.
   - Dove il kit non c'è, i fallback qui sotto tengono in piedi tutto.
   - Una landing sovrascrive `--fc-accent` col proprio colore e aggiunge
     `fc--light` o `fc--dark`.

   Varianti: `fc--embedded` (dentro la colonna di una landing: una colonna
   sola, niente cornice, meno aria) contro il default a pagina piena.
   ══════════════════════════════════════════════════════════════════════════ */

.fc {
  /* Colore: sul sito arriva dalla sezione, altrimenti è il viola consulenze. */
  --fc-accent:      var(--gold, #7F1AAC);
  --fc-accent-lt:   var(--gold-lt, #8a89ff);
  --fc-accent-wash: var(--gold-dk, rgba(102,101,255,.10));
  --fc-accent-rgb:  var(--accent-rgb, 102,101,255);
  --fc-on-accent:   var(--bg, #0f1115);

  /* Superfici e testo */
  --fc-bg:         var(--bg2, #12141a);
  --fc-bg-in:      var(--bg3, #171a21);
  --fc-text:       var(--text, #e8eaf0);
  --fc-text-dim:   var(--text-dim, #a8adba);
  --fc-text-muted: var(--text-muted, #6f7686);
  --fc-border:     var(--border, rgba(255,255,255,.09));
  --fc-border-2:   var(--border2, rgba(255,255,255,.18));
  --fc-err:        var(--red, #e5554f);

  /* Caratteri: dove il kit non c'è si ripiega sullo stack di sistema. */
  --fc-f-ui:   var(--f-ui, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  --fc-f-disp: var(--f-disp, var(--f-ui, ui-sans-serif, system-ui, sans-serif));
  --fc-f-mono: var(--f-mono, ui-monospace, SFMono-Regular, Menlo, monospace);

  font-family: var(--fc-f-ui);
  color: var(--fc-text);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

/* Temi espliciti: servono alle landing, dove non c'è un tema di sito da
   ereditare. Vengono dopo `.fc` apposta — stessa specificità, vince l'ultimo. */
.fc--dark {
  --fc-bg: #12141a; --fc-bg-in: #171a21;
  --fc-text: #e8eaf0; --fc-text-dim: #a8adba; --fc-text-muted: #6f7686;
  --fc-border: rgba(255,255,255,.09); --fc-border-2: rgba(255,255,255,.18);
  --fc-on-accent: #0f1115;
}
.fc--light {
  --fc-bg: #ffffff; --fc-bg-in: #f8fafc;
  --fc-text: #0f172a; --fc-text-dim: #475569; --fc-text-muted: #94a3b8;
  --fc-border: #e2e8f0; --fc-border-2: #cbd5e1;
  --fc-on-accent: #ffffff;
  --fc-accent-wash: color-mix(in srgb, var(--fc-accent) 10%, transparent);
}

/* Sul guscio del redesign (mt.css): niente kit, quindi le variabili si
   prendono dai token `mt` — l'accento della sezione via `data-accent` — e il
   modulo sta in una colonna sola: la spalla con «Stato richiesta»,
   «Salvataggio automatico» e «Dati protetti» il design l'ha tolta. */
.fc--mt {
  --fc-accent: var(--accent);
  --fc-accent-lt: var(--accent-strong);
  --fc-accent-wash: var(--accent-tint);
  --fc-on-accent: var(--on-accent);
  --fc-bg: var(--mt-n-0);
  --fc-bg-in: var(--mt-n-50);
  --fc-text: var(--fg-1);
  --fc-text-dim: var(--fg-2);
  --fc-text-muted: var(--fg-3);
  --fc-border: var(--border-subtle);
  --fc-border-2: var(--border-default);
  --fc-err: var(--mt-red);
  --fc-f-ui: var(--font-body);
  --fc-f-disp: var(--font-display);
  grid-template-columns: 1fr;
  max-width: 880px;
  padding: 0 24px;
}

/* Incastonato nella colonna di una landing: una colonna sola, senza margini da
   pagina e senza spalla. Il riquadro invece resta — anzi, è tutto: la colonna
   della landing non ne ha uno suo, e senza il form appoggiava direttamente
   sulla grafica dell'hero, che è dove ha smesso di sembrare un form. */
.fc--embedded {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  max-width: none;
}
.fc--embedded .fc-main { padding: 1.5rem; border-radius: 16px; }
@media (max-width: 600px) { .fc--embedded .fc-main { padding: 1.15rem; } }
.fc--embedded .fc-side { display: none; }

/* Testata del riquadro: quello che l'admin scrive in "Titolo form". Sta dentro
   la cornice e non sopra, così il riquadro è una cosa sola — si legge dove
   comincia e dove finisce quello che c'è da fare. */
.fc-box-head { text-align: center; margin-bottom: 1.5rem; }
.fc-box-h { font-family: var(--fc-f-ui); font-weight: 700; font-size: 1.2rem; color: var(--fc-text); margin: 0 0 .25rem; }
.fc-box-p { font-size: .82rem; line-height: 1.55; color: var(--fc-text-dim); margin: 0; }

/* Rassicurazioni in fondo, sotto il pulsante: è lì che si decide se lasciare i
   propri dati, non nella colonna del testo dove stavano prima. */
.fc-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--fc-border);
  font-size: .72rem; color: var(--fc-text-muted);
}
.fc-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.fc-trust svg { color: var(--fc-accent); flex: none; }

.fc-main {
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: 20px;
  padding: 2.5rem var(--gutter);
  min-width: 0;
}
@media (max-width: 1024px) {
  .fc { grid-template-columns: 1fr; padding: 2rem var(--gutter); }
  .fc-main { padding: 1.5rem; }
  .fc-side { order: -1; }
}

/* ── Testi ──────────────────────────────────────────────────────────────── */
.fc-tag {
  font-family: var(--fc-f-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fc-accent); margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .65rem;
}
.fc-tag::before { content: ''; display: block; width: 1.25rem; height: 1px; background: var(--fc-accent); }
.fc-tag--center { justify-content: center; }
.fc-tag--center::before { display: none; }
.fc-h2 {
  font-family: var(--fc-f-disp); font-size: 2rem; color: var(--fc-text);
  letter-spacing: -.025em; line-height: 1.1; margin: .85rem 0 1.5rem;
}
.fc--embedded .fc-h2 { font-size: 1.45rem; }
.fc-h2 em { font-style: normal; color: var(--fc-accent-lt); }
.fc-lead { color: var(--fc-text-dim); font-size: .92rem; line-height: 1.65; margin: 0 0 1.6rem; }
.fc-strong { color: var(--fc-text); font-weight: 700; }

/* ── Campi ──────────────────────────────────────────────────────────────── */
.fc-field { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.25rem; }
.fc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.fc-row .fc-field { margin-bottom: 0; }
@media (max-width: 600px) { .fc-row { grid-template-columns: 1fr; } }
.fc--embedded .fc-row { grid-template-columns: 1fr; }

.fc-label {
  font-family: var(--fc-f-ui); font-size: .65rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fc-text-dim);
  display: block; margin-bottom: .45rem;
}
.fc-req { color: var(--fc-err); font-weight: 600; }
.fc-req-nota { font-size: .8rem; color: var(--fc-text-muted); }
/* "(facoltativa)" accanto a un'etichetta: stessa riga, meno peso. */
.fc-opt-note { font-weight: 500; text-transform: none; letter-spacing: normal; opacity: .7; }
.fc-input {
  font-family: var(--fc-f-ui); font-size: .9rem; color: var(--fc-text);
  background: var(--fc-bg-in); border: 1px solid var(--fc-border);
  border-radius: 8px; padding: .7rem .9rem; width: 100%; outline: none;
  transition: border-color .15s;
}
.fc-input:focus { border-color: var(--fc-accent); }
.fc-input::placeholder { color: var(--fc-text-muted); }
.fc-input:disabled { opacity: .55; cursor: not-allowed; }
.fc-input.is-err { border-color: var(--fc-err); }
.fc-err { font-size: .72rem; color: var(--fc-err); }

/* ── Pulsanti ───────────────────────────────────────────────────────────── */
.fc-btn {
  font-family: var(--fc-f-ui); font-weight: 700; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .9rem 1.9rem; border-radius: 5px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; transition: background .2s, transform .15s, border-color .2s, color .2s;
}
.fc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fc-btn--go { background: var(--fc-accent); color: var(--fc-on-accent); }
.fc-btn--go:hover:not(:disabled) { background: var(--fc-accent-lt); transform: translateY(-1px); }
.fc-btn--ghost { background: transparent; color: var(--fc-text-dim); border: 1px solid var(--fc-border-2); font-weight: 600; }
.fc-btn--ghost:hover:not(:disabled) { border-color: var(--fc-text-dim); color: var(--fc-text); }
.fc-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.fc-actions--center { justify-content: center; }
/* Riga di servizio sotto un campo: spiega che cosa si fa del dato appena
   chiesto. Il margine negativo la aggancia alla riga che la precede, o
   sembrerebbe l'occhiello del blocco successivo invece della coda di questo. */
.fc-note {
  font-family: var(--fc-f-ui); font-size: .78rem; line-height: 1.55;
  color: var(--fc-text-muted); margin: -.6rem 0 1.25rem;
}

/* Riga di servizio sotto un pulsante: spiega cosa succede premendolo. */
.fc-note-center {
  font-family: var(--fc-f-ui); font-size: .78rem; line-height: 1.5;
  color: var(--fc-text-muted); text-align: center; margin: -.4rem 0 0;
}
.fc--embedded .fc-btn { width: 100%; }
.fc--embedded .fc-actions { flex-direction: column-reverse; }

/* ── Avanzamento ────────────────────────────────────────────────────────── */
.fc-progress { margin-bottom: 2rem; }
.fc-progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.fc-progress-step { font-family: var(--fc-f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fc-text-muted); }
.fc-progress-phase { font-family: var(--fc-f-ui); font-weight: 700; font-size: .85rem; color: var(--fc-text); }
.fc-progress-pct { font-family: var(--fc-f-disp); font-size: .9rem; color: var(--fc-accent); }
.fc-progress-track { height: 6px; border-radius: 9999px; background: var(--fc-bg-in); overflow: hidden; }
.fc-progress-fill { height: 100%; background: var(--fc-accent); border-radius: 9999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* ── Opzioni a scelta singola ───────────────────────────────────────────── */
.fc-opts { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.fc-opts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 600px) { .fc-opts--grid { grid-template-columns: 1fr; } }
.fc--embedded .fc-opts--grid { grid-template-columns: 1fr; }
.fc-opt {
  display: flex; align-items: center; gap: .85rem; text-align: left; width: 100%;
  padding: 1rem 1.15rem; background: var(--fc-bg-in); border: 1px solid var(--fc-border);
  border-radius: 10px; cursor: pointer; color: var(--fc-text);
  font-family: var(--fc-f-ui); transition: border-color .15s, background .15s;
}
.fc-opt:hover { border-color: color-mix(in srgb, var(--fc-accent) 50%, transparent); }
.fc-opt.is-on { border-color: var(--fc-accent); background: var(--fc-accent-wash); }
.fc-opt-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fc-border-2); flex-shrink: 0; position: relative; transition: border-color .15s; }
.fc-opt.is-on .fc-opt-radio { border-color: var(--fc-accent); }
.fc-opt.is-on .fc-opt-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--fc-accent); }
.fc-opt-h { font-weight: 600; font-size: .92rem; }

.fc-section-tag { font-family: var(--fc-f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fc-text-muted); margin: 0 0 .5rem; }

/* Riquadro del calcolo automatico (reddito annuo) */
.fc-calc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--fc-bg-in); border: 1px dashed color-mix(in srgb, var(--fc-accent) 35%, transparent); border-radius: 10px; padding: .9rem 1.15rem; margin-bottom: 1.25rem; }
.fc-calc-label { font-size: .8rem; color: var(--fc-text-dim); }
.fc-calc-value { font-family: var(--fc-f-disp); font-size: 1.3rem; color: var(--fc-accent); }

/* ── Verifiche OTP ──────────────────────────────────────────────────────── */
.fc-otp { background: var(--fc-bg-in); border: 1px solid var(--fc-border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; transition: border-color .15s, background .15s; }
.fc-otp.is-ok { border-color: var(--fc-accent); background: var(--fc-accent-wash); }
.fc-otp-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.fc-otp-title { font-weight: 700; font-size: .95rem; color: var(--fc-text); }
.fc-otp-sub { font-size: .8rem; color: var(--fc-text-dim); margin-bottom: .85rem; line-height: 1.5; }
.fc-otp-controls { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.fc-otp-controls .fc-btn { white-space: nowrap; }
.fc-otp-input { max-width: 180px; letter-spacing: .45em; text-align: center; font-family: var(--fc-f-mono); font-weight: 700; font-size: 1.05rem; }
.fc-otp-badge { font-family: var(--fc-f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-accent); display: inline-flex; align-items: center; gap: .35rem; }
.fc-otp-resend { background: none; border: none; color: var(--fc-accent); font-size: .76rem; cursor: pointer; font-family: var(--fc-f-ui); padding: 0; margin-top: .6rem; }
.fc-otp-resend:hover:not(:disabled) { color: var(--fc-accent-lt); text-decoration: underline; }
/* Il rinvio sta in coda alla riga «Inviato a …» (design): un link nel testo, non un bottone a sé. */
.fc-otp-controls + .fc-otp-sub { margin: .75rem 0 0; }
.fc-otp-sub .fc-otp-resend { font-size: inherit; font-weight: 600; margin: 0; text-decoration: underline; }
.fc-msg { font-size: .76rem; color: var(--fc-text-dim); margin-top: .5rem; }
.fc-msg--err { color: var(--fc-err); }

/* ── Schermate informative e riepilogo ──────────────────────────────────── */
.fc-info { text-align: center; max-width: 520px; margin: 1rem auto; }
.fc-info-icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 16px; background: var(--fc-accent-wash); border: 1px solid color-mix(in srgb, var(--fc-accent) 25%, transparent); color: var(--fc-accent); display: flex; align-items: center; justify-content: center; }
.fc-info p { color: var(--fc-text-dim); line-height: 1.75; margin-bottom: 1rem; }
.fc-info-hi { color: var(--fc-accent); font-weight: 600; }
.fc-recap { display: flex; flex-direction: column; gap: 1.15rem; background: var(--fc-bg-in); border: 1px solid var(--fc-border); border-radius: 12px; padding: 1.25rem 1.4rem; margin: 1.5rem 0; text-align: left; }
.fc-recap-title { font-weight: 700; font-size: .95rem; color: var(--fc-text); }
.fc-recap-group { display: flex; flex-direction: column; gap: .55rem; }
.fc-recap-group + .fc-recap-group { border-top: 1px solid var(--fc-border); padding-top: 1.15rem; }
.fc-recap-h { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fc-accent); }
.fc-recap-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.fc-recap-row span { color: var(--fc-text-dim); flex-shrink: 0; }
.fc-recap-row strong { color: var(--fc-text); text-align: right; }
/* Risposte lunghe (esigenza, note, opzioni con frase intera): allineate a
   destra diventano illeggibili, quindi vanno sotto la loro etichetta. */
.fc-recap-row--stack { flex-direction: column; gap: .2rem; }
.fc-recap-row--stack strong { text-align: left; font-weight: 600; line-height: 1.55; white-space: pre-line; }

/* Banner di ripresa compilazione */
.fc-resume { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--fc-accent-wash); border: 1px solid color-mix(in srgb, var(--fc-accent) 35%, transparent); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.fc-resume-txt { font-size: .85rem; color: var(--fc-text); }
.fc-resume-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.fc-resume .fc-btn { padding: .6rem 1.1rem; font-size: .7rem; }

/* ── Consensi ───────────────────────────────────────────────────────────────
   Testo piccolo ma leggibile: è ciò che l'utente sta accettando, e renderlo
   illeggibile è il modo classico di raccogliere consensi che poi non valgono.
   La casella resta grande abbastanza da centrarla col pollice. */
.fc-consensi { display: grid; gap: .7rem; margin: 1.4rem 0 .4rem; }
.fc-check {
  display: flex; align-items: flex-start; gap: .65rem; cursor: pointer;
  font-family: var(--fc-f-ui); font-size: .82rem; line-height: 1.55; color: var(--fc-text-dim);
}
.fc-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: .1rem 0 0; flex-shrink: 0;
  accent-color: var(--fc-accent); cursor: pointer;
}
.fc-check a { color: var(--fc-accent); text-decoration: underline; }
.fc-check em {
  font-style: normal; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; opacity: .6; margin-left: .25rem;
}

/* ── Avviso di debug ────────────────────────────────────────────────────────
   Con APP_DEBUG acceso l'SMS non parte. Deliberatamente fuori dalla palette
   della sezione (niente --fc-accent): questo riquadro non deve somigliare a un
   elemento del form, deve sembrare quello che è — un cartello da cantiere che
   non ci si dimentica acceso in produzione. */
.fc-debug {
  background: #fff4d6; border: 1px dashed #b97d00; color: #6b4800;
  border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.25rem;
  font-size: .82rem; line-height: 1.55;
}
.fc-debug code {
  font-family: var(--fc-f-mono); font-weight: 700; font-size: .95em;
  background: rgba(0,0,0,.07); border-radius: 4px; padding: .05rem .35rem;
}
.fc-debug a { color: inherit; font-weight: 700; }

/* La vetrina (/consulenze-mutui/form-demo). Riusa il riquadro del debug — è la
   stessa funzione, un cartello che dice «quello che vedi non è quello che
   sembra» — ma in azzurro: quello giallo significa «qualcuno ha lasciato acceso
   un interruttore», questo significa «è tutto come deve essere». */
.fc-demo {
  background: #e6f2fb; border-color: #2a6f9e; color: #14435f;
}

/* ── Colonna laterale (solo a pagina piena) ─────────────────────────────── */
.fc-side { display: flex; flex-direction: column; gap: 1rem; }
.fc-card { background: var(--fc-bg); border: 1px solid var(--fc-border); border-radius: 14px; padding: 1.25rem; display: flex; gap: .85rem; align-items: flex-start; }
.fc-card--col { flex-direction: column; align-items: stretch; gap: .2rem; }
.fc-card-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--fc-accent-wash); border: 1px solid color-mix(in srgb, var(--fc-accent) 25%, transparent); color: var(--fc-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-card-h { font-weight: 700; font-size: .9rem; color: var(--fc-text); margin-bottom: .2rem; }
.fc-card-p { font-size: .8rem; color: var(--fc-text-dim); line-height: 1.6; }
.fc-status { display: flex; align-items: center; gap: .6rem; font-size: .82rem; padding: .5rem 0; color: var(--fc-text-muted); }
.fc-status-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--fc-border-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fc-status.is-ok { color: var(--fc-text); }
.fc-status.is-ok .fc-status-dot { border-color: var(--fc-accent); background: var(--fc-accent); color: var(--fc-on-accent); }

/* Alpine non è ancora partito: niente lampeggio di tutte le schermate insieme.
   La regola è duplicata dal kit apposta — sulle landing il kit non c'è. */
.fc [x-cloak], .fc[x-cloak] { display: none !important; }

/* Il guscio mt non definisce `--gutter`: il margine laterale del modulo lo
   decide la pagina, e a ogni larghezza resta quello. */
.fc.fc--mt { padding: 0 24px; }
@media (max-width: 600px) { .fc.fc--mt { padding: 0 16px; } }

/* ── Contatore di «Descrivi in breve la tua esigenza» ───────────────────── */
.fc-count { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--fc-text-muted); }
.fc-count span:last-child { font-variant-numeric: tabular-nums; }
.fc-count .is-limite { color: var(--fc-err); }

/* L'icona dei prodotti è solo della variante mt: altrove resta il pallino. */
.fc-opt-ico { display: none; }

/* ── Le schede delle scelte, variante mt (design «Richiedi mutuo») ──────────
   Tutte le domande a scelta, prodotti compresi, sono la stessa scheda: bianca
   con ombra, quadrato con la spunta, e bordo e fondo dell'accento quando è
   scelta. Due per riga dove c'è posto; la provincia resta una tendina. */
.fc--mt .fc-opts, .fc--mt .fc-opts--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.fc--mt .fc-opt { min-height: 60px; padding: 12px 16px; gap: 14px; background: var(--mt-n-0); border: 2px solid transparent; border-radius: 12px; box-shadow: var(--shadow-1); transition: box-shadow 180ms var(--ease-out), border-color 180ms, background 180ms; }
.fc--mt .fc-opt:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.fc--mt .fc-opt.is-on { background: var(--accent-tint); border-color: var(--accent); box-shadow: none; }
.fc--mt .fc-opt-radio { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; transition: background 180ms; }
.fc--mt .fc-opt-radio::after { content: ''; position: static; inset: auto; width: 14px; height: 8px; border: solid var(--mt-n-0); border-width: 0 0 2.4px 2.4px; border-radius: 0; background: none; transform: translateY(-2px) rotate(-45deg); opacity: 0; transition: opacity 180ms; }
.fc--mt .fc-opt.is-on .fc-opt-radio { background: var(--accent); }
.fc--mt .fc-opt.is-on .fc-opt-radio::after { opacity: 1; background: none; }
.fc--mt .fc-opt-h { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--fg-1); }
.fc--mt .fc-opt--prod { min-height: 72px; padding: 14px 16px; }
.fc--mt .fc-opt--prod .fc-opt-radio { display: none; }
.fc--mt .fc-opt--prod .fc-opt-ico { width: 44px; height: 44px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-strong); transition: background 180ms, color 180ms; }
.fc--mt .fc-opt--prod.is-on .fc-opt-ico { background: var(--accent); color: var(--mt-n-0); }

/* ── Variante mt: riquadro, titoli, campi, pulsanti e avanzamento come il
   design «Richiedi mutuo» (2026-10-11). Solo grafica: markup e funzioni
   restano quelli di sempre.
   - Il riquadro è bianco con ombra, angoli a 12px, senza bordo.
   - La barra d'avanzamento sta sopra il riquadro, sottile, senza «Step x di y»
     né percentuale: la si porta fuori con un margine negativo pari al padding
     del riquadro, così non serve spostarla nel markup. */
.fc--mt { --fc-pad: clamp(24px, 4vw, 40px); max-width: 820px; }
.fc--mt .fc-main { background: var(--mt-n-0); border: 0; border-radius: 12px; box-shadow: var(--shadow-1); padding: var(--fc-pad); margin-top: 26px; }
.fc--mt .fc-main { display: flex; flex-direction: column; }
.fc--mt .fc-main > * { min-width: 0; }
/* Prima di tutto anche quando sopra c'è l'avviso di debug: l'ordine lo decide qui il CSS, non il markup. */
.fc--mt .fc-progress { order: -1; margin: calc(-1 * var(--fc-pad) - 26px) calc(-1 * var(--fc-pad)) var(--fc-pad); }
.fc--mt .fc-progress-meta { display: none; }
.fc--mt .fc-progress-track { height: 6px; border-radius: 3px; background: var(--mt-n-200); }
.fc--mt .fc-progress-fill { border-radius: 3px; transition: width 280ms var(--ease-out); }

.fc--mt .fc-tag { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--accent-strong); margin: 0 0 8px; }
.fc--mt .fc-tag::before { display: none; }
.fc--mt .fc-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.fc--mt .fc-h2 br { display: none; }
.fc--mt .fc-h2 em { color: var(--accent); }
.fc--mt .fc-h2 em::before { content: ' '; }
.fc--mt .fc-lead { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 4px 0 20px; text-wrap: pretty; }

.fc--mt .fc-label { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--fg-1); margin-bottom: 6px; }
.fc--mt .fc-field { gap: 6px; margin-bottom: 16px; }
.fc--mt .fc-row { gap: 16px; margin-bottom: 16px; }
.fc--mt .fc-input { height: var(--control-h-md); padding: 0 12px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px; color: var(--fg-1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.fc--mt textarea.fc-input { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.5; }
.fc--mt .fc-input:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--accent-tint); }
.fc--mt .fc-err { font-size: 13px; color: var(--danger-fg); }

.fc--mt .fc-btn { height: var(--control-h-lg); padding: 0 22px; font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: normal; text-transform: none; border-radius: var(--radius-md); border: 1px solid transparent; }
.fc--mt .fc-btn--go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fc--mt .fc-btn--go:hover:not(:disabled) { background: var(--accent); filter: brightness(.92); transform: none; }
.fc--mt .fc-btn--ghost { background: transparent; color: var(--fg-1); border-color: transparent; }
.fc--mt .fc-btn--ghost:hover:not(:disabled) { background: var(--surface-sunken); color: var(--fg-1); }
.fc--mt .fc-actions { margin-top: 8px; }
