/* 5G LAB – stile delle pagine con modulo */

/* ─── PAGINE CON MODULO (preventivo, riparazioni) ─────────────── */
.page-hero {
  background: radial-gradient(900px 400px at 90% 0%, rgba(200,40,155,.28), transparent 60%), var(--navy);
  color: #fff;
  padding-block: clamp(40px, 7vw, 72px);
}
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.8); font-size: 17px; max-width: 640px; }
.page-hero .ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; list-style: none; padding: 0; }
.page-hero .ticks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.page-hero .ticks svg { width: 18px; height: 18px; color: var(--ciano); }

.form-section { padding-block: clamp(32px, 6vw, 56px) clamp(56px, 9vw, 96px); background: var(--bg-soft); }
.form-wrap { max-width: 780px; margin: 0 auto; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); margin-bottom: 18px; }
.step-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.step-card h2 .n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: 'Rajdhani', sans-serif; font-size: 18px; flex-shrink: 0;
}
.step-card .hint { margin-top: 6px; color: var(--muted); font-size: 14px; }
.step-body { margin-top: 20px; }

/* scelta servizi */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--navy); height: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.tile label svg { width: 24px; height: 24px; color: var(--viola); }
.tile label small { font-weight: 500; font-size: 12px; color: var(--muted); }
.tile input:checked + label { border-color: var(--magenta); background: #fdf2fa; }
.tile input:focus-visible + label { outline: 3px solid rgba(90,80,175,.35); outline-offset: 2px; }

/* campi */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld label, .fld .lbl { font-size: 13px; font-weight: 700; color: var(--navy); }
.fld label .opt { font-weight: 500; color: var(--muted); }
.fld input[type=text], .fld input[type=tel], .fld input[type=email], .fld textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d9d9e6; border-radius: 10px; background: #fff; width: 100%;
}
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--viola); box-shadow: 0 0 0 3px rgba(90,80,175,.15); }
.fld .help { font-size: 12.5px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 9px 16px; border: 1.5px solid #d9d9e6; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--navy); background: #fff;
}
.seg input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid rgba(90,80,175,.35); outline-offset: 2px; }

/* caricamento bollette */
.drop {
  border: 2px dashed #c9c5ea; border-radius: 14px; padding: 26px 18px; text-align: center;
  background: #faf9ff; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.over { border-color: var(--magenta); background: #fdf2fa; }
.drop svg { width: 36px; height: 36px; color: var(--viola); margin: 0 auto 8px; }
.drop b { display: block; color: var(--navy); font-size: 16px; }
.drop span { font-size: 13px; color: var(--muted); }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.files li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.files img, .files .pdf { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.files .pdf { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #c0392b; }
.files .meta { flex: 1; min-width: 0; }
.files .meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.files .meta span { font-size: 12px; color: var(--muted); }
.files button { background: none; border: none; font-size: 22px; line-height: 1; color: #c0392b; cursor: pointer; padding: 4px 8px; }
.tip { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; }

/* privacy e invio */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--magenta); flex-shrink: 0; }
.check a { color: var(--viola); font-weight: 600; }
.submit-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.submit-row .btn { font-size: 16px; padding: 16px 28px; border: none; cursor: pointer; font-family: inherit; }
.submit-row .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-error {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px;
}
.form-error a { color: #991b1b; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.invalid { border-color: #ef4444 !important; }
.tiles.invalid label { border-color: #fca5a5; }

/* conferma */
.done { text-align: center; padding: clamp(28px, 6vw, 48px) clamp(20px, 4vw, 40px); }
.done .ok {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  background: #dcfce7; color: #16a34a; display: grid; place-items: center;
}
.done .ok svg { width: 40px; height: 40px; }
.done h2 { justify-content: center; font-size: 26px; }
.done p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.done .num { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); font-weight: 800; color: var(--navy); letter-spacing: .03em; }
.done .btn { margin-top: 24px; }

/* box "perché ci prendiamo il tempo" */
.why-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); margin-bottom: 18px; }
.why-box h2 { font-size: 20px; font-weight: 800; }
.why-box > p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 15px; }
.why-rows { display: grid; gap: 12px; margin-top: 18px; }
.why-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.why-row .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.why-row .ico svg { width: 20px; height: 20px; color: #fff; }
.why-row b { display: block; font-size: 15px; }
.why-row span { font-size: 14px; color: rgba(255,255,255,.75); }

/* blocchi di domande che compaiono in base ai servizi scelti */
.block + .block { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--navy); }
.block-title svg { width: 22px; height: 22px; color: var(--magenta); }
.block-intro { margin-top: 4px; font-size: 14px; color: var(--muted); }
.block .grid-2 { margin-top: 14px; }
.block.conv { background: #fdf2fa; border: 1px solid #f5d0ea !important; border-radius: 14px; padding: 18px !important; margin-top: 22px; }
.block.conv + .block { border-top: none; }
.fld select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 40px 12px 14px; border: 1.5px solid #d9d9e6; border-radius: 10px; width: 100%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314143C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none;
}
.fld select:focus { outline: none; border-color: var(--viola); box-shadow: 0 0 0 3px rgba(90,80,175,.15); }
.euro { position: relative; }
.euro::before { content: '€'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.euro input { padding-left: 32px !important; }
.seg.invalid label { border-color: #fca5a5; }
.reminder { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; }
.reminder svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--viola); margin-top: 2px; }

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* listino prezzi indicativi (riparazioni, assistenza) */
.listino { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.listino li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.listino li.sped { background: #fdf2fa; border-color: #f5d0ea; }
.listino b { display: block; color: var(--navy); font-size: 15px; }
.listino span small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.listino em { font-style: normal; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 26px; color: var(--magenta); white-space: nowrap; }
.listino em small { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.prezzi h2 { font-size: 20px; }

/* codice fiscale sempre in maiuscolo */
.cf-input { text-transform: uppercase; letter-spacing: .04em; }
.cf-input::placeholder { text-transform: none; letter-spacing: 0; }

/* invito a seguire la pratica, nella schermata di conferma */
.done .segui { margin-top: 14px; font-size: 14.5px; }
.done .segui a { color: var(--viola); font-weight: 700; }
