/** Spedisci in laboratorio. [Fase 7] Light/dark, mobile-first. */
.bpc-sl { max-width: 1040px; margin: 8px auto 0; }
.bpc-sl__grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .bpc-sl__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; } }

.bpc-sl__title { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__sub { font-size: 14.5px; line-height: 1.6; color: var(--bspc-text-secondary, #6e6e73); margin: 0 0 16px; }

.bpc-sl__steps { list-style: none; counter-reset: sl; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bpc-sl__steps li { counter-increment: sl; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; background: var(--bspc-bg-white, #fff); border: 1px solid var(--bspc-border-medium, #e6e6ea); border-radius: 14px; padding: 12px 14px; }
.bpc-sl__steps li::before { content: counter(sl); grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,102,204,.1); color: var(--bspc-blue-primary, #0066cc); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bpc-sl__steps b { font-size: 14.5px; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__steps span { grid-column: 2; font-size: 13px; line-height: 1.55; color: var(--bspc-text-secondary, #6e6e73); }

.bpc-sl__address { display: grid; gap: 2px; background: rgba(0,102,204,.07); border: 1px solid rgba(0,102,204,.25); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--bspc-text-primary, #1d1d1f); margin: 0 0 12px; }
.bpc-sl__address strong { color: var(--bspc-blue-primary, #0066cc); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.bpc-sl__address em { font-style: normal; font-size: 12.5px; color: var(--bspc-text-secondary, #6e6e73); margin-top: 4px; }
.bpc-sl__note { font-size: 12.5px; line-height: 1.6; color: var(--bspc-text-secondary, #6e6e73); margin: 0; }

.bpc-sl__form { background: var(--bspc-bg-white, #fff); border: 1px solid var(--bspc-border-medium, #e6e6ea); border-radius: 18px; padding: 20px 20px 18px; display: grid; gap: 12px; }
.bpc-sl__form h4 { margin: 4px 0 0; font-size: 14px; letter-spacing: -0.01em; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__row { display: grid; gap: 12px; }
@media (min-width: 560px) { .bpc-sl__row { grid-template-columns: 1fr 1fr; } }
.bpc-sl__form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--bspc-text-secondary, #6e6e73); }
.bpc-sl__form input[type="text"], .bpc-sl__form input[type="search"], .bpc-sl__form input[type="tel"], .bpc-sl__form input[type="email"], .bpc-sl__form input[type="date"], .bpc-sl__form select, .bpc-sl__form textarea {
  box-sizing: border-box; /* FIX: senza, il padding sommato al 100% faceva sbordare i campi */
  width: 100%; max-width: 100%; padding: 11px 13px; border-radius: 11px; font-size: 16px;
  border: 1px solid var(--bspc-border-medium, #d2d2d7); background: var(--bspc-bg-white, #fff); color: var(--bspc-text-primary, #1d1d1f);
}
.bpc-sl__form input:focus, .bpc-sl__form select:focus, .bpc-sl__form textarea:focus { outline: none; border-color: var(--bspc-blue-primary, #0066cc); box-shadow: 0 0 0 3px rgba(0,102,204,.18); }
.bpc-sl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bpc-sl__check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; line-height: 1.5; color: var(--bspc-text-primary, #1d1d1f) !important; }
.bpc-sl__check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--bspc-blue-primary, #0066cc); flex: 0 0 auto; }
.bpc-sl__submit { min-height: 48px; border: 0; border-radius: 999px; background: var(--bspc-blue-primary, #0066cc); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.bpc-sl__submit:disabled { opacity: .6; }
.bpc-sl__err { margin: 0; font-size: 13px; color: #c0392b; }
.bpc-sl__privacy { margin: 0; font-size: 12px; color: var(--bspc-text-secondary, #6e6e73); text-align: center; }

.bpc-sl__success { text-align: center; background: rgba(48,160,80,.08); border: 1px solid rgba(48,160,80,.35); border-radius: 18px; padding: 30px 22px; }
.bpc-sl__okicon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: #2e9e55; color: #fff; font-size: 26px; align-items: center; justify-content: center; margin-bottom: 10px; }
.bpc-sl__success h3 { margin: 0 0 6px; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__okref { font-size: 14px; color: var(--bspc-text-secondary, #6e6e73); margin: 0 0 10px; }
.bpc-sl__okref b { color: var(--bspc-blue-primary, #0066cc); }
.bpc-sl__success p { font-size: 14px; line-height: 1.65; color: var(--bspc-text-secondary, #6e6e73); margin: 0; max-width: 520px; margin-inline: auto; }

/* Dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bpc-sl__steps li,
  :root:not([data-theme="light"]) .bpc-sl__form { background: #1c1c1e; border-color: #3a3a41; }
  :root:not([data-theme="light"]) .bpc-sl__form input, :root:not([data-theme="light"]) .bpc-sl__form select, :root:not([data-theme="light"]) .bpc-sl__form textarea { background: #232329; border-color: #3a3a41; color: #f2f2f4; }
  :root:not([data-theme="light"]) .bpc-sl__address { background: rgba(41,151,255,.12); border-color: rgba(41,151,255,.35); }
}
[data-theme="dark"] .bpc-sl__steps li, [data-theme="dark"] .bpc-sl__form { background: #1c1c1e; border-color: #3a3a41; }
[data-theme="dark"] .bpc-sl__form input, [data-theme="dark"] .bpc-sl__form select, [data-theme="dark"] .bpc-sl__form textarea { background: #232329; border-color: #3a3a41; color: #f2f2f4; }
[data-theme="dark"] .bpc-sl__address { background: rgba(41,151,255,.12); border-color: rgba(41,151,255,.35); }

/* Icone nei campi */
.bpc-sl__form label.ic { position: relative; }
.bpc-sl__form label.ic input { padding-left: 40px; }
.bpc-sl__form label.ic::after { content: ""; position: absolute; left: 13px; bottom: 13px; width: 17px; height: 17px; opacity: .55; background-size: contain; background-repeat: no-repeat; pointer-events: none; }
.ic-user::after  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c1.5-4 5-6 8-6s6.5 2 8 6'/></svg>"); }
.ic-mail::after  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='3'/><path d='M3 7l9 6 9-6'/></svg>"); }
.ic-phone::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round'><path d='M5 4h4l2 5-3 2c1 2.5 3 4.5 5.5 5.5l2-3 5 2v4c0 1-1 2-2 2C10 21 3 14 3 6c0-1 1-2 2-2z'/></svg>"); }
.ic-pin::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2'><path d='M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
.ic-device::after{ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2'><rect x='7' y='2.5' width='10' height='19' rx='2.5'/><path d='M11 18.5h2'/></svg>"); }
.ic-lock::after  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2'><rect x='5' y='10' width='14' height='10' rx='2.5'/><path d='M8 10V7a4 4 0 0 1 8 0v3'/></svg>"); }
.ic-hash::after  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round'><path d='M9 3L7 21M17 3l-2 18M4 8h17M3 16h17'/></svg>"); }

/* FAQ */
.bpc-sl__faq { margin-top: 26px; }
.bpc-sl__faq h3 { font-size: 1.2rem; margin: 0 0 10px; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__faq details { border-bottom: 1px solid var(--bspc-border-light, #ececf0); padding: 11px 0; }
.bpc-sl__faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--bspc-text-primary, #1d1d1f); }
.bpc-sl__faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--bspc-text-secondary, #6e6e73); }

/* Tablet: form full sotto info se colonna stretta */
@media (min-width: 700px) and (max-width: 959px) { .bpc-sl__row { grid-template-columns: 1fr 1fr; } }


/* ---------- Picker "Quale riparazione?" ---------- */
.bpc-sl__picker { margin-bottom: 14px; }
.bpc-sl__picker-hits { margin-top: 8px; border: 1px solid var(--bspc-border-light, #e5e5ea); border-radius: 12px; overflow: hidden; background: var(--bspc-bg-white, #fff); }
.bpc-sl__picker-hit { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--bspc-border-light, #e5e5ea); background: none; font: inherit; cursor: pointer; }
.bpc-sl__picker-hit:last-child { border-bottom: 0; }
.bpc-sl__picker-hit:active { background: #eaf3ff; }
.bpc-sl__picker-hit .t { flex: 1; min-width: 0; }
.bpc-sl__picker-hit .t b { display: block; font-size: 14px; letter-spacing: -.01em; }
.bpc-sl__picker-hit .p { font-weight: 700; font-size: 13px; color: var(--bspc-blue-primary, #0066cc); white-space: nowrap; }
.bpc-sl__picker-hit--alt { color: var(--bspc-text-secondary, #515154); font-size: 13px; }
.bpc-sl__picker-picked { display: flex; align-items: center; gap: 10px; background: #eaf3ff; border: 1px solid rgba(0, 102, 204, .3); border-radius: 12px; padding: 12px; margin-top: 8px; }
.bpc-sl__picker-picked b { flex: 1; font-size: 14px; }
.bpc-sl__picker-price { font-weight: 700; font-size: 13px; color: var(--bspc-blue-primary, #0066cc); }
.bpc-sl__picker-x { border: 0; background: none; color: var(--bspc-text-light, #636366); font-size: 18px; line-height: 1; cursor: pointer; }
.bpc-sl__picker-hint { font-size: 11.5px; color: var(--bspc-text-light, #636366); margin: 6px 0 0; }

.bpc-sl__picker-manual { font-size: 13px; color: var(--bspc-text-secondary, #515154); background: #eaf3ff; border: 1px solid rgba(0, 102, 204, .25); border-radius: 12px; padding: 11px 12px; margin: 8px 0 0; }

/* ========================================================================
   1.54 - richiesta guidata, percorso manuale e piena larghezza desktop
   ======================================================================== */
.bpc-sl {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(17px, 2.4vw, 28px);
}
.bpc-sl *, .bpc-sl *::before, .bpc-sl *::after { box-sizing: border-box; }
.bpc-sl [hidden] { display: none !important; }
.bpc-sl__grid { gap: clamp(22px, 3vw, 34px); }
.bpc-sl__info { min-width: 0; }
@media (min-width: 900px) {
  .bpc-sl__info {
    position: sticky;
    top: 98px;
    align-self: start;
  }
}
.bpc-sl__form {
  min-width: 0;
  gap: 15px;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}
.bpc-sl__form-head { display: grid; gap: 5px; padding-bottom: 2px; }
.bpc-sl__form-head > span {
  width: fit-content;
  padding: 5px 9px;
  color: var(--bspc-blue-primary, #0066cc);
  background: rgba(0, 102, 204, .09);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
}
.bpc-sl__form-head h3 {
  margin: 3px 0 0;
  color: var(--bspc-text-primary, #1d1d1f);
  font-size: clamp(20px, 2.3vw, 25px);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.bpc-sl__form-head p {
  margin: 0;
  color: var(--bspc-text-secondary, #6e6e73);
  font-size: 13px;
  line-height: 1.5;
}
.bpc-sl__form h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 14px;
}
.bpc-sl__form h4 > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--bspc-blue-primary, #0066cc);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.bpc-sl__form :where(input, select, textarea, button):focus-visible {
  outline: 3px solid rgba(0, 102, 204, .22);
  outline-offset: 2px;
}
.bpc-sl__form input[type="text"],
.bpc-sl__form input[type="search"],
.bpc-sl__form input[type="tel"],
.bpc-sl__form input[type="email"],
.bpc-sl__form input[type="date"],
.bpc-sl__form select {
  min-height: 48px;
}
.bpc-sl__picker {
  display: grid;
  gap: 9px;
  margin: 2px 0 4px;
  padding: 15px;
  background: color-mix(in srgb, var(--bspc-blue-primary, #0066cc) 5%, var(--bspc-bg-white, #fff));
  border: 1px solid color-mix(in srgb, var(--bspc-blue-primary, #0066cc) 17%, var(--bspc-border-medium, #e6e6ea));
  border-radius: 16px;
}
.bpc-sl__picker-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; }
.bpc-sl__picker-step > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--bspc-blue-primary, #0066cc);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.bpc-sl__picker-step b { display: block; color: var(--bspc-text-primary, #1d1d1f); font-size: 14px; line-height: 1.35; }
.bpc-sl__picker-step small { display: block; margin-top: 2px; color: var(--bspc-text-secondary, #6e6e73); font-size: 11.5px; font-weight: 500; line-height: 1.45; }
.bpc-sl__picker-search { position: relative; }
.bpc-sl__picker-search::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 16px;
  height: 16px;
  border: 2px solid #787880;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.bpc-sl__picker-search::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% + 5px);
  left: 28px;
  width: 7px;
  height: 2px;
  background: #787880;
  transform: rotate(45deg);
  pointer-events: none;
}
.bpc-sl__picker-search .bpc-sl__picker-q { min-height: 52px; padding-left: 43px; background: var(--bspc-bg-white, #fff); }
.bpc-sl__picker-help { margin: -2px 1px 0; color: var(--bspc-text-secondary, #6e6e73); font-size: 11.5px; line-height: 1.4; }
.bpc-sl__picker.is-manual .bpc-sl__picker-help { display: none; }
.bpc-sl__picker-hits {
  margin-top: 0;
  max-height: 318px;
  overflow: auto;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}
.bpc-sl__picker-results,
.bpc-sl__picker-empty { margin: 0; padding: 10px 12px; color: var(--bspc-text-secondary, #6e6e73); font-size: 12px; line-height: 1.4; }
.bpc-sl__picker-results { padding-bottom: 6px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.bpc-sl__picker-hit { min-height: 48px; transition: background-color .16s ease; }
.bpc-sl__picker-hit:hover,
.bpc-sl__picker-hit:focus-visible { background: #eef6ff; }
.bpc-sl__picker-hit--alt { color: var(--bspc-blue-primary, #0066cc); font-weight: 700; }
.bpc-sl__picker-picked { min-height: 52px; margin-top: 0; }
.bpc-sl__picker-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.bpc-sl__picker-x:hover { background: rgba(0, 0, 0, .06); }
.bpc-sl__picker-manual-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--bspc-blue-primary, #0066cc);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--bspc-blue-primary, #0066cc) 55%, var(--bspc-border-medium, #d2d2d7));
  border-radius: 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
}
.bpc-sl__picker-manual-toggle:hover { background: rgba(0, 102, 204, .06); }
.bpc-sl__picker-manual-toggle > span:first-child { font-size: 17px; line-height: 1; }
.bpc-sl__picker-manual {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px 13px;
}
.bpc-sl__picker-manual[hidden] { display: none; }
.bpc-sl__picker-manual b { color: var(--bspc-text-primary, #1d1d1f); font-size: 13px; }
.bpc-sl__picker-manual span { font-size: 12px; line-height: 1.5; }
.bpc-sl__picker-hint { margin: 0; text-align: center; }
.bpc-sl__submit { transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.bpc-sl__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(0, 102, 204, .22); }

@media (max-width: 559px) {
  .bpc-sl { padding: 13px; }
  .bpc-sl__form { padding: 16px; border-radius: 17px; }
  .bpc-sl__picker { padding: 13px; }
  .bpc-sl__picker-picked { align-items: flex-start; flex-wrap: wrap; }
  .bpc-sl__picker-picked b { flex-basis: calc(100% - 50px); }
  .bpc-sl__picker-price { order: 3; width: 100%; padding-left: 0; }
  .bpc-sl__picker-x { margin-left: auto; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bpc-sl__picker,
  :root:not([data-theme="light"]) .bpc-sl__picker-hits { background: #202127; border-color: #3a3a41; }
  :root:not([data-theme="light"]) .bpc-sl__picker-hit:hover,
  :root:not([data-theme="light"]) .bpc-sl__picker-hit:focus-visible { background: #263a50; }
}
[data-theme="dark"] .bpc-sl__picker,
[data-theme="dark"] .bpc-sl__picker-hits { background: #202127; border-color: #3a3a41; }
[data-theme="dark"] .bpc-sl__picker-hit:hover,
[data-theme="dark"] .bpc-sl__picker-hit:focus-visible { background: #263a50; }
