/* Vouchiva Appointments — wizard pubblico. Stessa linea grafica di Vouchiva. */
.vchapp-outer { --vch-primary: #4038C9; --vch-accent: #5B4FE8; --vch-gradient: linear-gradient(135deg,#4038C9,#5B4FE8); --vch-text: #1d1d2b; --vch-muted: #6b6b80; --vch-border: #e3e3ee; --vch-bg: #f7f6ff; --vch-radius: 12px;
  width: 100% !important; max-width: 860px !important; margin: 24px auto !important; padding: 0 !important; box-sizing: border-box; color: var(--vch-text); font-family: inherit; }
.vchapp-outer *, .vchapp-outer *::before, .vchapp-outer *::after { box-sizing: border-box; }
.vchapp-booking { width: 100%; }
.vchapp-loading { display: flex; justify-content: center; padding: 60px 0; }
.vchapp-spinner { width: 34px; height: 34px; border: 3px solid #e3e3ee; border-top-color: var(--vch-primary); border-radius: 50%; animation: vchapp-spin .8s linear infinite; }
.vchapp-spinner.small { width: 22px; height: 22px; margin: 14px auto; }
@keyframes vchapp-spin { to { transform: rotate(360deg); } }
.vchapp-stepper { display: flex; gap: 8px; margin: 0 0 18px; }
.vchapp-step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--vch-radius); background: #fff; border: 1px solid var(--vch-border); font-size: 13px; font-weight: 600; color: var(--vch-muted); }
.vchapp-step-n { width: 24px; height: 24px; border-radius: 50%; background: #ececf6; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.vchapp-step.active { color: var(--vch-primary); border-color: var(--vch-primary); }
.vchapp-step.active .vchapp-step-n, .vchapp-step.done .vchapp-step-n { background: var(--vch-gradient); color: #fff; }
.vchapp-panel { background: #fff; border: 1px solid var(--vch-border); border-radius: 16px; padding: 22px; box-shadow: 0 6px 24px rgba(64,56,201,.06); }
.vchapp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.vchapp-pill, .vchapp-preset { border: 1px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-text) !important; border-radius: 50px !important; padding: 8px 16px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; line-height: 1.2 !important; }
.vchapp-pill.active, .vchapp-preset.active { background: var(--vch-gradient) !important; color: #fff !important; border-color: transparent !important; }
.vchapp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.vchapp-card { border: 2px solid var(--vch-border); border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, transform .15s; }
.vchapp-card:hover { transform: translateY(-2px); border-color: var(--vch-accent); }
.vchapp-card.selected { border-color: var(--vch-primary); box-shadow: 0 0 0 3px var(--vch-ring, rgba(91,79,232,.18)); }
.vchapp-card-img { height: 130px; background-size: cover; background-position: center; }
.vchapp-card-body { padding: 14px; }
.vchapp-card h3 { margin: 0 0 6px !important; font-size: 16px !important; color: var(--vch-text) !important; }
.vchapp-card p { margin: 0 0 10px !important; font-size: 13px; color: var(--vch-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vchapp-card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--vch-muted); }
.vchapp-price { color: var(--vch-primary); font-weight: 800; }
.vchapp-options { display: grid; gap: 14px; margin: 6px 0 4px; padding: 16px; background: var(--vch-bg); border-radius: var(--vch-radius); }
.vchapp-field { margin: 0 0 14px; }
.vchapp-field label { display: block; font-weight: 700; font-size: 13px; margin: 0 0 6px !important; color: var(--vch-text); }
.vchapp-field input, .vchapp-field select, .vchapp-field textarea, .vchapp-inline input { width: 100% !important; border: 1px solid var(--vch-border) !important; border-radius: 10px !important; padding: 11px 13px !important; font-size: 15px !important; background: #fff !important; color: var(--vch-text) !important; box-shadow: none !important; height: auto !important; }
.vchapp-field input:focus, .vchapp-field select:focus, .vchapp-field textarea:focus, .vchapp-inline input:focus { outline: none; border-color: var(--vch-primary) !important; box-shadow: 0 0 0 3px rgba(91,79,232,.18) !important; }
.vchapp-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.vchapp-num { display: inline-flex; align-items: center; gap: 14px; }
.vchapp-num button { width: 38px !important; height: 38px !important; border-radius: 50% !important; border: 1px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-primary) !important; font-size: 20px !important; cursor: pointer; padding: 0 !important; line-height: 1 !important; }
.vchapp-num span { font-weight: 800; font-size: 18px; min-width: 20px; text-align: center; }
.vchapp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vchapp-inline { display: flex; gap: 8px; }
.vchapp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.vchapp-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.vchapp-btn { border-radius: 50px !important; padding: 12px 26px !important; font-size: 15px !important; font-weight: 700 !important; cursor: pointer; border: 1px solid transparent !important; line-height: 1.2 !important; box-shadow: none !important; text-decoration: none !important; }
.vchapp-btn.primary { background: var(--vch-gradient) !important; color: #fff !important; }
.vchapp-btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.vchapp-btn.ghost { background: #fff !important; color: var(--vch-primary) !important; border-color: var(--vch-border) !important; }
.vchapp-btn.danger { color: #d63638 !important; }
.vchapp-btn:disabled { opacity: .5; cursor: not-allowed; }
.vchapp-cal-box { max-width: 420px; margin: 0 auto 14px; transition: opacity .15s; }
.vchapp-cal-box.loading { opacity: .5; }
.vchapp-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; text-transform: capitalize; }
.vchapp-icon { width: 36px !important; height: 36px !important; border-radius: 50% !important; border: 1px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-primary) !important; font-size: 20px !important; cursor: pointer; padding: 0 !important; line-height: 1 !important; }
.vchapp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vchapp-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--vch-muted); padding: 4px 0; text-transform: uppercase; }
.vchapp-day { aspect-ratio: 1; border-radius: 10px !important; border: 1px solid transparent !important; background: transparent !important; color: #b9b9c8 !important; font-size: 14px !important; font-weight: 600 !important; cursor: default; padding: 0 !important; box-shadow: none !important; }
.vchapp-day.ok { background: var(--vch-bg) !important; color: var(--vch-primary) !important; cursor: pointer; }
.vchapp-day.ok:hover { border-color: var(--vch-accent) !important; }
.vchapp-day.closed { text-decoration: line-through; opacity: .55; background: #f3f3f6 !important; }
.vchapp-closed-note { font-size: 13px; color: #6b6b7b; margin: 8px 2px 0; }
.vchapp-day.sel { background: var(--vch-gradient) !important; color: #fff !important; }
.vchapp-slots h4 { margin: 8px 0 12px !important; text-transform: capitalize; font-size: 15px !important; }
.vchapp-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.vchapp-slot { border: 1px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-text) !important; border-radius: 10px !important; padding: 10px 6px !important; font-weight: 700 !important; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: none !important; }
.vchapp-slot small { font-size: 11px; font-weight: 600; color: #d97706; }
.vchapp-slot:hover { border-color: var(--vch-accent) !important; }
.vchapp-slot.sel { background: var(--vch-gradient) !important; color: #fff !important; border-color: transparent !important; }
.vchapp-slot.sel small { color: #fff; }
.vchapp-recap { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--vch-bg); border-radius: var(--vch-radius); margin-bottom: 18px; }
.vchapp-recap span { color: var(--vch-muted); font-size: 14px; text-transform: capitalize; }
.vchapp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.vchapp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--vch-bg); color: var(--vch-primary); border-radius: 50px; padding: 5px 6px 5px 14px; font-weight: 800; letter-spacing: .5px; font-size: 13px; }
.vchapp-chip button { border: 0 !important; background: #fff !important; color: var(--vch-primary) !important; width: 22px !important; height: 22px !important; border-radius: 50% !important; cursor: pointer; padding: 0 !important; line-height: 1 !important; }
.vchapp-totals { border-top: 1px solid var(--vch-border); margin-top: 6px; }
.vchapp-trow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--vch-border); font-size: 15px; }
.vchapp-trow.total { font-size: 18px; font-weight: 800; color: var(--vch-primary); border-bottom: 0; }
.vchapp-note { background: var(--vch-bg); border-left: 3px solid var(--vch-accent); border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.vchapp-alert { background: #fcf0f1; color: #b32d2e; border: 1px solid #f3c4c5; border-radius: var(--vch-radius); padding: 12px 16px; margin: 0 0 14px; font-size: 14px; }
.vchapp-empty, .vchapp-muted { color: var(--vch-muted); text-align: center; margin: 14px 0; }
.vchapp-done { text-align: center; }
.vchapp-done .vchapp-totals { text-align: left; margin-top: 18px; }
.vchapp-badge-big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; }
.vchapp-badge-big.ok { background: linear-gradient(135deg,#00a32a,#2fbf5b); }
.vchapp-badge-big.wait { background: var(--vch-gradient); }
.vchapp-badge-big.off { background: #d63638; }
.vchapp-confirm { margin-top: 16px; padding: 14px; background: #fcf0f1; border-radius: var(--vch-radius); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.vchapp-confirm p { flex-basis: 100%; margin: 0; }
.vchapp-done > .vchapp-btn { margin-top: 18px; }
@media (max-width: 640px) { .vchapp-step-l { display: none; } .vchapp-step { justify-content: center; } .vchapp-grid2 { grid-template-columns: 1fr; } .vchapp-panel { padding: 16px; } .vchapp-nav .vchapp-btn { padding: 12px 18px !important; } }

/* Scelta della risorsa dopo l'orario */
.vchapp-resbox { margin-top: 18px; }
.vchapp-resbox h4 { margin: 0 0 10px; }
.vchapp-resgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vchapp-res { border: 1px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-text) !important; border-radius: 12px !important; padding: 14px 12px !important; font-weight: 700 !important; cursor: pointer; }
.vchapp-res.sel { border-color: var(--vch-primary) !important; background: var(--vch-primary) !important; color: #fff !important; }
.vchapp-res { transition: border-color .15s, box-shadow .15s, transform .15s; }
.vchapp-res:hover { border-color: var(--vch-accent) !important; box-shadow: 0 4px 14px rgba(0,0,0,.08) !important; transform: translateY(-1px); }
.vchapp-res.sel:hover { border-color: var(--vch-primary) !important; }

.vchapp-durfield { max-width: 340px; margin: 0 auto 20px !important; text-align: center; }
.vchapp-durfield label { text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; font-weight: 700; opacity: .7; text-align: center; }
.vchapp-durfield select { -webkit-appearance: none; appearance: none; cursor: pointer; text-align: center; text-align-last: center; font-weight: 700 !important; border-radius: 999px !important; padding: 12px 42px 12px 22px !important; border: 1.5px solid var(--vch-primary) !important; box-shadow: 0 2px 8px rgba(0,0,0,.05) !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center !important; transition: box-shadow .15s, border-color .15s; }
.vchapp-durfield select:hover { border-color: var(--vch-accent) !important; box-shadow: 0 4px 14px rgba(0,0,0,.1) !important; }

/* Ospite */
.vchapp-guestbox { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin: 0 0 16px; border-radius: 14px; background: var(--vch-bg); border: 1px solid var(--vch-border); }
.vchapp-guestbox strong { color: var(--vch-text); font-size: 15px; }
.vchapp-guestbox span { color: var(--vch-muted); font-size: 13px; }
/* Extra */
.vchapp-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.vchapp-extra { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 2px solid var(--vch-border); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vchapp-extra:hover { border-color: var(--vch-accent); transform: translateY(-1px); }
.vchapp-extra.on { border-color: var(--vch-primary); box-shadow: 0 0 0 3px var(--vch-ring, rgba(91,79,232,.16)); background: var(--vch-bg); }
.vchapp-extra-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.vchapp-extra-t strong { font-size: 14.5px; color: var(--vch-text); }
.vchapp-extra-t small { font-size: 12.5px; color: var(--vch-muted); }
.vchapp-extra-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid var(--vch-border); color: var(--vch-muted); }
.vchapp-extra.on .vchapp-extra-tick { background: var(--vch-gradient); border-color: transparent; color: #fff; }
.vchapp-qty { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.vchapp-qty button { width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 50% !important; border: 2px solid var(--vch-border) !important; background: #fff !important; color: var(--vch-text) !important; font-size: 17px !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; }
.vchapp-qty span { min-width: 22px; text-align: center; font-weight: 800; }
.vchapp-vatnote { font-size: 12.5px; color: var(--vch-muted); margin: -6px 0 10px; text-align: right; }

/* Servizio scelto altrove: passaggio 1 ridotto */
.vchapp-compact .vchapp-cards { grid-template-columns: minmax(0, 1fr); }
.vchapp-compact .vchapp-card { cursor: default; }
.vchapp-compact .vchapp-card:hover { transform: none; }
.vchapp-linkbtn { background: none; border: 0; padding: 4px 0; margin: 2px 0 8px; color: var(--vch-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.vchapp-guestblock { margin: 0 0 14px; }
.vchapp-opt { margin: 10px 0 0; padding: 10px 14px; border: 1px dashed var(--vch-border); border-radius: 12px; }
.vchapp-opt summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--vch-primary); }
.vchapp-opt[open] summary { margin-bottom: 12px; }
