@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.psf-richieste {
  --navy:      #002E5D;
  --blue:      #0056A4;
  --blue-mid:  #1e6db5;
  --accent:    #26C6DA;
  --text:      #00132D;
  --muted:     #4a607a;
  --bg:        #F5F7FA;
  --bg-soft:   #EBF1FF;
  --border:    #E2E6EA;
  --white:     #ffffff;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-form: 14px;   
  --green:     #00b894;   
  --error:     #c0392b;   
  --shadow:    0 4px 14px rgba(0,46,93,0.06);
  --shadow-hover: 0 14px 34px rgba(0,46,93,0.14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.psf-richieste, .psf-richieste * { box-sizing: border-box; }
.psf-richieste { margin: 0; padding: 0; }
.psf-richieste {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.psf-richieste.psf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.psf-richieste a { color: inherit; text-decoration: none; }
.psf-richieste img { max-width: 100%; display: block; }
.psf-richieste .psf-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.psf-richieste .psf-top__logo img { height: 34px; width: auto; }
.psf-richieste .psf-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.psf-richieste .psf-close:hover {
  border-color: #e57373;
  color: #c0392b;
  background: #fff5f5;
}
.psf-richieste .psf-close svg { width: 16px; height: 16px; }
.psf-richieste .psf-close__label { line-height: 1; }
@media (max-width: 480px) {
.psf-richieste .psf-close__label { display: none; }
.psf-richieste .psf-close { padding: 9px; }
}
.psf-richieste .psf-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 40px 20px 56px;
}
.psf-richieste .psf-wrap {
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}
.psf-richieste .psf-hero {
  text-align: center;
  margin-bottom: 30px;
}
.psf-richieste .psf-hero h1 {
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.psf-richieste .psf-hero h1 .hl { color: var(--blue); }
.psf-richieste .psf-hero__sub {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 460px;
}
@media (min-width: 768px) {
.psf-richieste .psf-hero h1 { font-size: 2.3rem; }
}
.psf-richieste .psf-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.psf-richieste .psf-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  cursor: pointer;
}
.psf-richieste .psf-choice:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.psf-richieste .psf-choice:active { transform: translateY(0) scale(0.995); }
.psf-richieste .psf-choice__icon {
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease;
}
.psf-richieste .psf-choice__icon img { width: 42px; height: 42px; object-fit: contain; }
.psf-richieste .psf-choice:hover .psf-choice__icon { background: #dfeaff; }
.psf-richieste .psf-choice__body { flex: 1 1 auto; min-width: 0; }
.psf-richieste .psf-choice__title {
  display: block;
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.psf-richieste .psf-choice__desc {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.psf-richieste .psf-choice__arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.psf-richieste .psf-choice__arrow svg { width: 18px; height: 18px; }
.psf-richieste .psf-choice:hover .psf-choice__arrow {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateX(3px);
}
@media (max-width: 420px) {
.psf-richieste .psf-choice { padding: 16px; gap: 14px; }
.psf-richieste .psf-choice__icon { width: 56px; height: 56px; }
.psf-richieste .psf-choice__icon img { width: 34px; height: 34px; }
.psf-richieste .psf-choice__arrow { width: 34px; height: 34px; }
}
.psf-richieste .psf-benefits {
  margin-top: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.psf-richieste .psf-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.psf-richieste .psf-benefit svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--blue);
}
@media (max-width: 480px) {
.psf-richieste .psf-benefits { grid-template-columns: 1fr; }
}
.psf-richieste .psf-footer {
  flex-shrink: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 22px 20px 30px;
}
.psf-richieste .psf-footer__inner {
  max-width: 820px;
  margin: 0 auto;
}
.psf-richieste .psf-footer p {
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
.psf-richieste .psf-choice, .psf-richieste .psf-choice__icon, .psf-richieste .psf-choice__arrow { transition: none; }
}
.psf-richieste .psf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.psf-richieste .psf-modal.is-open { display: flex; }
.psf-richieste .psf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,19,45,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: psfFade .18s ease;
}
.psf-richieste .psf-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,19,45,0.32);
  padding: 30px 28px 24px;
  text-align: center;
  animation: psfPop .2s cubic-bezier(0.2,1.1,0.38,1.35);
}
.psf-richieste .psf-modal__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
}
.psf-richieste .psf-modal__icon svg { width: 28px; height: 28px; }
.psf-richieste .psf-modal__title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.psf-richieste .psf-modal__text {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 22px;
}
.psf-richieste .psf-modal__actions {
  display: flex;
  gap: 12px;
}
.psf-richieste .psf-modal__actions button {
  flex: 1;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.psf-richieste .psf-modal__actions button:active { transform: scale(0.98); }
.psf-richieste .psf-btn-stay {
  background: var(--navy);
  border: 1.5px solid var(--navy);
  color: #fff;
}
.psf-richieste .psf-btn-stay:hover { background: var(--blue); border-color: var(--blue); }
.psf-richieste .psf-btn-leave {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.psf-richieste .psf-btn-leave:hover { border-color: #e57373; color: #c0392b; background: #fff5f5; }
@keyframes psfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes psfPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.psf-richieste .psf-modal__backdrop, .psf-richieste .psf-modal__dialog { animation: none; }
}
.psf-richieste .content { width: 100%; }
.psf-richieste .content__inner { width: 100%; }
.psf-richieste .multisteps-form__progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.psf-richieste .multisteps-form__progress-btn {
  transition: all 0.15s linear 0s;
  position: relative;
  padding-top: 20px;
  color: rgba(74, 96, 122, 0.45);
  text-indent: -9999px;
  border: none;
  background-color: transparent;
  outline: none !important;
  cursor: pointer;
  box-shadow: none;
  font-family: var(--font);
}
@media (min-width: 500px) {
.psf-richieste .multisteps-form__progress-btn { text-indent: 0; }
}
.psf-richieste .multisteps-form__progress-btn:before {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 14px;
  height: 14px;
  content: '';
  transform: translateX(-50%);
  transition: all 0.15s linear 0s, transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
  border: 2px solid currentColor;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
  z-index: 3;
}
.psf-richieste .multisteps-form__progress-btn:after {
  position: absolute;
  top: 6px;
  left: calc(-50% - 14px / 2);
  transition: all 0.15s linear 0s;
  display: block;
  width: 100%;
  height: 2px;
  content: '';
  background-color: currentColor;
  z-index: 1;
}
.psf-richieste .multisteps-form__progress-btn:first-child:after { display: none; }
.psf-richieste .multisteps-form__progress-btn.js-active { color: var(--blue); }
.psf-richieste .multisteps-form__progress-btn.js-active:before {
  transform: translateX(-50%) scale(1.2);
  background-color: currentColor;
}
.psf-richieste .multisteps-form__progress-btn:hover { color: var(--navy); }
.psf-richieste .multisteps-form__form { margin-top: 30px; position: relative; transition: height 0.3s ease; }
@media (max-width: 767px) {
.psf-richieste .multisteps-form__form { margin-top: 30px; }
}
.psf-richieste .multisteps-form__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  opacity: 0;
  visibility: hidden;
  font-family: var(--font);
}
.psf-richieste .multisteps-form__panel.js-active {
  height: auto;
  opacity: 1;
  visibility: visible;
}
.psf-richieste .multisteps-form__panel[data-animation="scaleOut"] { transform: scale(1.1); }
.psf-richieste .multisteps-form__panel[data-animation="scaleOut"].js-active {
  transition: all 0.2s linear 0s;
  transform: scale(1);
}
.psf-richieste .multisteps-form__panel[data-animation="slideHorz"] { left: 50px; }
.psf-richieste .multisteps-form__panel[data-animation="slideHorz"].js-active {
  transition: all 0.25s cubic-bezier(0.2, 1.13, 0.38, 1.43) 0s;
  left: 0;
}
.psf-richieste .multisteps-form__panel[data-animation="slideVert"] { top: 30px; }
.psf-richieste .multisteps-form__panel[data-animation="slideVert"].js-active {
  transition: all 0.2s linear 0s;
  top: 0;
}
.psf-richieste .multisteps-form__panel[data-animation="fadeIn"].js-active {
  transition: all 0.3s linear 0s;
}
.psf-richieste .multisteps-form__panel[data-animation="scaleIn"] { transform: scale(0.9); }
.psf-richieste .multisteps-form__panel[data-animation="scaleIn"].js-active {
  background: #fff;
  transition: all 0.2s linear 0s;
  transform: scale(1);
}
.psf-richieste .multisteps-form__title {
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.psf-richieste .radio-toolbar {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: var(--radius-form);
}
.psf-richieste .radio-toolbar input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}
.psf-richieste .radio-toolbar label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-bottom: 0;
  text-align: center;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-form);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.psf-richieste .radio-toolbar label:hover {
  border-color: var(--blue);
  background: var(--bg-soft);
  color: var(--navy);
}
.psf-richieste .radio-toolbar input[type="radio"]:focus + label {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,86,164,0.18);
}
.psf-richieste .radio-toolbar input[type="radio"]:checked + label {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,46,93,0.22);
}
.psf-richieste .radio-toolbar input[type="text"], .psf-richieste .radio-toolbar input[type="number"] {
  display: inline-block;
  margin-bottom: 0;
  width: 100%;
  text-align: center;
  padding: 16px 18px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-form);
}
.psf-richieste .radio-toolbar input[type="text"]:focus, .psf-richieste .radio-toolbar input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,86,164,0.15);
}
.psf-richieste .multisteps-form__input.form-control, .psf-richieste .multisteps-form__input {
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-form);
  padding: 12px 14px;
  color: var(--text);
  height: auto;
}
.psf-richieste .multisteps-form__input.form-control:focus, .psf-richieste .multisteps-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,86,164,0.15);
}
.psf-richieste .bg-white { border: 1px solid var(--border); }
.psf-richieste .privacy {
  font-size: 11px;
  line-height: 16px;
  display: block;
  padding-left: 25px;
  color: var(--muted);
}
.psf-richieste .privacy a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.psf-richieste .btn {
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius-form);
  padding: 12px 24px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .12s;
}
.psf-richieste .btn:active { transform: scale(0.98); }
.psf-richieste .btn-primary {
  color: #fff !important;
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  box-shadow: 0 4px 14px rgba(0,46,93,0.20);
}
.psf-richieste .btn-primary:hover, .psf-richieste .btn-primary:focus {
  background-color: var(--blue) !important;
  border-color: var(--blue) !important;
}
.psf-richieste .btn.js-btn-prev {
  color: var(--muted) !important;
  background-color: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: none;
}
.psf-richieste .btn.js-btn-prev:hover {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
  background-color: var(--bg-soft) !important;
}
.psf-richieste .btn-success {
  color: #fff !important;
  background-color: var(--green) !important;
  border-color: var(--green) !important;
  box-shadow: 0 4px 14px rgba(0,184,148,0.25);
}
.psf-richieste .btn-success:hover, .psf-richieste .btn-success:focus {
  background-color: #00a07f !important;
  border-color: #00a07f !important;
}
.psf-richieste .button-row { gap: 12px; }
.psf-richieste .footer {
  color: var(--muted);
  background: var(--white);
}
.psf-richieste .footer-box {
  width: 100%;
  margin: 0;
  position: relative;
  bottom: 0;
  color: var(--muted);
  background: var(--white);
  text-align: center;
  border-top: 1px solid var(--border);
}
@media (prefers-reduced-motion: reduce) {
.psf-richieste .radio-toolbar label, .psf-richieste .btn { transition: none; }
}
/* Messaggio di errore inline (es. importo non valido nel form mutui) */
.psf-richieste .psf-field-error {
  display: block;
  margin-top: 8px;
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Dicitura legale/orientativa in piccolo (es. importo mutuo) */
.psf-richieste .psf-hint {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ── SEZIONE CONSENSI: toggle cliccabili (tutta la pillola è cliccabile) ── */
.psf-richieste .psf-consent { margin-top: 4px; }
.psf-richieste .psf-consent-head {
  text-align: center; font-weight: 700; color: var(--navy);
  margin: 22px 0 8px; font-size: 0.95rem;
}
.psf-richieste .psf-consent .privacy {
  font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0 0 10px;
}
.psf-richieste .psf-privacy-link { font-weight: 700; text-decoration: underline; color: var(--blue); }

.psf-richieste .psf-consent-group {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.psf-richieste .psf-consent-opt {
  flex: 1 1 auto; min-width: 170px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; margin: 0;
  border: 2px solid var(--border); border-radius: var(--radius-form, 14px);
  background: var(--white); cursor: pointer;
  font-weight: 600; color: var(--text); line-height: 1.2;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-user-select: none; user-select: none;
}
.psf-richieste .psf-consent-opt:hover { border-color: var(--blue); }

/* pallino custom, ben visibile */
.psf-richieste .psf-consent-opt input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin: 0; flex: 0 0 auto;
  border: 2px solid #c3cddb; border-radius: 50%;
  background: var(--white); position: relative; cursor: pointer;
  transition: border-color .15s;
}
.psf-richieste .psf-consent-opt input[type="radio"]:checked { border-color: var(--green); }
.psf-richieste .psf-consent-opt input[type="radio"]:checked::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); transform: translate(-50%, -50%);
}
.psf-richieste .psf-consent-opt input[type="radio"]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* stato selezionato dell'intera pillola (browser con :has) */
.psf-richieste .psf-consent-opt:has(input:checked) {
  border-color: var(--green); background: #f0fbf6;
  box-shadow: 0 2px 12px rgba(0,184,148,0.16);
}
.psf-richieste .psf-consent-opt:has(input[value="0"]:checked) {
  border-color: #e57373; background: #fff5f5; box-shadow: none;
}
.psf-richieste .psf-consent-opt:has(input[value="0"]:checked) input[type="radio"] { border-color:#e57373; }
.psf-richieste .psf-consent-opt:has(input[value="0"]:checked) input[type="radio"]::after { background:#e57373; }

/* ── PULSANTE "RICHIEDI" più grande ed evidente ── */
.psf-richieste .psf-btn-submit {
  min-width: 240px;
  padding: 15px 34px;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,184,148,0.28);
}
@media (max-width: 575px) {
  .psf-richieste .psf-btn-submit { min-width: 0; width: 100%; }
}