:root {
  --fondo: #ffffff;
  --carta: #fbfcfb;
  --inchiostro: #17201b;
  --grigio: #6c756f;
  --tenue: #aab2ad;
  --linea: rgba(23, 32, 27, 0.08);
  --vassoio: #f1f4f2;
  --accento: #5f8d72;
  --accento-scuro: #3c6650;
  --accento-tenue: rgba(95, 141, 114, 0.14);
  --bottone: #1c3127;
  --riga: clamp(30px, 8vh, 40px);
  --scelta: clamp(46px, 11.6vh, 60px);
  --giorno: clamp(44px, 11.4vh, 56px);
  --ora: clamp(28px, 7.6vh, 36px);
  --cta: clamp(42px, 10.6vh, 50px);
  --font: 'Mona Sans Variable', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(6px, 2vh, 28px) 12px;
}

/* ---------- the card ---------- */
.vb {
  position: relative;
  width: min(376px, 92vw);
  padding: clamp(11px, 2.6vh, 18px) clamp(12px, 3.6vw, 18px);
  border-radius: 24px;
  background:
    radial-gradient(90% 48% at 100% 0%, rgba(95, 141, 114, 0.09), transparent 64%),
    radial-gradient(70% 40% at 0% 100%, rgba(95, 141, 114, 0.04), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--carta));
  border: 1px solid rgba(23, 32, 27, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(23, 32, 27, 0.05),
    0 10px 24px -8px rgba(23, 32, 27, 0.12),
    0 34px 70px -28px rgba(23, 32, 27, 0.25);
  isolation: isolate;
}
.vb::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)'/%3E%3C/svg%3E");
  z-index: 6;
}

.vb__head { display: flex; align-items: center; gap: 10px; height: clamp(30px, 8vh, 36px); margin-bottom: clamp(6px, 1.6vh, 12px); }
.vb__logo {
  width: clamp(30px, 8vh, 34px); height: clamp(30px, 8vh, 34px); border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #2a4437, #16271f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 5px 12px -4px rgba(22, 39, 31, 0.55);
}
.vb__logo svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vb__logo .vb__leaf { stroke: none; fill: #9cc4ab; }
.vb__meta { display: flex; flex-direction: column; line-height: 1.15; flex: 1; min-width: 0; }
.vb__brand { font-size: 12px; color: var(--grigio); font-weight: 500; }
.vb__title { font-weight: 660; font-size: 16px; letter-spacing: -0.015em; font-stretch: 104%; }
.vb__len {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--grigio); white-space: nowrap;
  padding: 5px 9px 5px 7px; border-radius: 99px;
  background: rgba(23, 32, 27, 0.035);
  border: 1px solid var(--linea);
}
.vb__len svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* ---------- the steps ---------- */
.vb__body { position: relative; }
.steps { position: relative; }
.st { position: relative; overflow: hidden; }
.st + .st::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linea); opacity: 0; transition: opacity 0.3s ease; }
.st.is-done + .st::before, .st.is-done + .st.is-done::before { opacity: 1; }
.st__row {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: var(--riga);
  text-align: left;
  border-radius: 10px;
  cursor: default;
}
.st.is-done .st__row { cursor: pointer; }
.st__q, .st__k { position: absolute; left: 0; top: 50%; transform: translateY(-50%); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.3, 1.4, 0.5, 1); white-space: nowrap; }
.st__q { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.st__k { font-size: 12.5px; font-weight: 500; color: var(--grigio); opacity: 0; transform: translateY(-20%); }
.st.is-done .st__q { opacity: 0; transform: translateY(-90%); }
.st.is-done .st__k { opacity: 1; transform: translateY(-50%); }
.st__val {
  margin-left: auto;
  display: block; overflow: hidden;
  max-width: 68%;
  height: 20px; line-height: 20px;
  padding-left: 56px;
}
.st__vin { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.st__vin svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--accento-scuro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.st__vin svg .fill { fill: var(--accento-scuro); stroke: none; }
.st__edit {
  width: 24px; height: 24px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--tenue);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), color 0.2s ease, background 0.2s ease;
}
.st__edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.st.is-done .st__edit { opacity: 1; transform: scale(1); }
@media (hover: hover) {
  .st.is-done .st__row:hover .st__edit { color: var(--accento-scuro); background: var(--accento-tenue); }
}
.st.is-done .st__row.is-hover .st__edit { color: var(--accento-scuro); background: var(--accento-tenue); }
.st__body { overflow: hidden; }
.st__pad { padding: 2px 1px clamp(8px, 2vh, 12px); }

:where(.st__row, .seg__opt, .field__go, .tag, .day, .slot, .cta, .ok__again):focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }

/* the segmented choice of the pet */
.seg {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 4px; border-radius: 16px;
  background: var(--vassoio);
  box-shadow: inset 0 1px 2px rgba(23, 32, 27, 0.06), inset 0 0 0 1px rgba(23, 32, 27, 0.03);
}
.seg__mark {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 1px 2px rgba(23, 32, 27, 0.08), 0 6px 14px -6px rgba(23, 32, 27, 0.22), 0 0 0 1px rgba(23, 32, 27, 0.04);
  opacity: 0;
}
.seg__opt {
  position: relative; z-index: 1;
  height: var(--scelta);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 12px;
  font-size: 12px; font-weight: 540; color: var(--grigio);
  transition: color 0.25s ease;
}
.seg__opt svg { width: clamp(20px, 5.2vh, 24px); height: clamp(20px, 5.2vh, 24px); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.seg__opt svg .fill { fill: currentColor; stroke: none; }
.seg__opt[aria-checked='true'] { color: var(--inchiostro); }
.seg__opt[aria-checked='true'] svg { color: var(--accento-scuro); }
@media (hover: hover) { .seg__opt:hover { color: var(--inchiostro); } }
.seg__opt.is-hover { color: var(--inchiostro); }

/* the name field with the label that rises */
.field {
  position: relative;
  height: clamp(44px, 11vh, 52px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.11), 0 1px 2px rgba(23, 32, 27, 0.05);
  transition: box-shadow 0.25s ease;
}
.field.is-focus { box-shadow: 0 0 0 1.5px var(--accento), 0 0 0 5px var(--accento-tenue), 0 1px 2px rgba(23, 32, 27, 0.05); }
.field.is-invalid { box-shadow: 0 0 0 1.5px var(--inchiostro), 0 0 0 5px rgba(23, 32, 27, 0.06); }
.field__in {
  position: absolute; inset: 0;
  width: 100%; border: 0; outline: 0; background: none;
  padding: 16px 52px 0 14px;
  font: inherit; font-size: 15px; font-weight: 560; color: var(--inchiostro);
  caret-color: var(--accento);
  border-radius: inherit;
}
.field__label {
  position: absolute; left: 14px; top: 50%;
  margin-top: -9px; line-height: 18px;
  font-size: 14px; color: var(--grigio);
  transform-origin: 0 50%;
  pointer-events: none;
}
.field__go {
  position: absolute; right: 6px; top: 50%;
  width: clamp(32px, 8.4vh, 38px); height: clamp(32px, 8.4vh, 38px); margin-top: calc(clamp(32px, 8.4vh, 38px) / -2);
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(160deg, var(--accento), var(--accento-scuro));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 10px -4px rgba(60, 102, 80, 0.7);
  transition: filter 0.2s ease;
}
.field__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .field__go:hover { filter: brightness(1.08); } }
.field__go.is-hover { filter: brightness(1.08); }

/* gentle help line */
.help {
  display: flex; align-items: center; gap: 6px;
  margin: 0; height: 0; overflow: hidden; opacity: 0;
  font-size: 12px; font-weight: 520; color: var(--inchiostro);
}
.help svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--accento-scuro); stroke-width: 1.5; stroke-linecap: round; }

/* the reason pills */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  position: relative;
  display: inline-flex; align-items: center;
  height: clamp(30px, 7.8vh, 36px);
  padding: 0 12px 0 12px;
  border-radius: 99px;
  font-size: 13px; font-weight: 540;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.11), 0 1px 2px rgba(23, 32, 27, 0.04);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, padding 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.tag svg { width: 0; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: width 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), margin 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.tag__tick { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.35s ease 0.08s; }
.tag[aria-pressed='true'] { background: var(--accento-tenue); color: var(--accento-scuro); box-shadow: 0 0 0 1px rgba(95, 141, 114, 0.45); padding-left: 9px; }
.tag[aria-pressed='true'] svg { width: 14px; margin-right: 4px; }
.tag[aria-pressed='true'] .tag__tick { stroke-dashoffset: 0; }
@media (hover: hover) { .tag:hover { box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.24), 0 1px 2px rgba(23, 32, 27, 0.04); } .tag[aria-pressed='true']:hover { box-shadow: 0 0 0 1px rgba(95, 141, 114, 0.7); } }
.tag.is-hover { box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.24); }
.tag--next { background: var(--bottone); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 4px 10px -4px rgba(28, 49, 39, 0.6); padding: 0 10px 0 13px; gap: 4px; }
.tag--next svg { width: 15px; height: 15px; }
@media (hover: hover) { .tag--next:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 14px -4px rgba(28, 49, 39, 0.7); } }
.tag--next.is-hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 14px -4px rgba(28, 49, 39, 0.7); }

/* the days and the times */
.days { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: clamp(6px, 1.4vh, 9px); }
.days__mark, .times__mark {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px;
  background: linear-gradient(170deg, #2a4437, var(--bottone));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 6px 14px -6px rgba(28, 49, 39, 0.7);
  opacity: 0;
}
.times__mark { border-radius: 10px; }
.day {
  position: relative; z-index: 1;
  height: var(--giorno);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: color 0.25s ease, box-shadow 0.25s ease;
}
.day__w { font-size: 10.5px; font-weight: 540; color: var(--grigio); transition: color 0.25s ease; }
.day__n { font-size: 15px; font-weight: 660; font-stretch: 106%; line-height: 1.1; }
.day__f { font-size: 9.5px; color: var(--accento-scuro); font-weight: 560; transition: color 0.25s ease; }
.day[aria-checked='true'] { color: #fff; box-shadow: none; }
.day[aria-checked='true'] .day__w, .day[aria-checked='true'] .day__f { color: rgba(255, 255, 255, 0.72); }
@media (hover: hover) { .day:hover { box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.2); } .day[aria-checked='true']:hover { box-shadow: none; } }
.day.is-hover { box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.2); }
.times { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.slot {
  position: relative; z-index: 1;
  height: var(--ora);
  border-radius: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 580;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.1);
  transition: color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.slot[aria-checked='true'] { color: #fff; box-shadow: none; }
.slot:disabled { cursor: default; color: var(--tenue); }
.slot.is-taken { background: repeating-linear-gradient(135deg, rgba(23, 32, 27, 0.035) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.05); }
.slot.is-taken span { text-decoration: line-through; text-decoration-color: rgba(23, 32, 27, 0.25); }
@media (hover: hover) { .slot:not(:disabled):hover { box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.24); } .slot[aria-checked='true']:hover { box-shadow: none; } }
.slot.is-hover { box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.24); }
.times + .help { margin-top: 0; }

/* ---------- the booked visit ---------- */
.ok { display: none; text-align: center; padding: clamp(4px, 1.2vh, 10px) 4px clamp(10px, 2.4vh, 16px); overflow: hidden; }
.ok__tick { width: clamp(40px, 10.4vh, 48px); height: clamp(40px, 10.4vh, 48px); display: block; margin: 0 auto clamp(6px, 1.6vh, 10px); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ok__ring { stroke: var(--accento); stroke-width: 2; fill: var(--accento-tenue); }
.ok__check { stroke: var(--accento-scuro); stroke-width: 2.6; }
.ok__title { margin: 0 0 clamp(6px, 1.4vh, 10px); font-size: clamp(18px, 4.8vh, 21px); font-weight: 680; letter-spacing: -0.02em; font-stretch: 108%; }
.ok__line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 7px;
  margin: 0 0 clamp(6px, 1.4vh, 10px);
  font-size: 14px; font-weight: 600;
}
.tok {
  display: inline-block;
  padding: 3px 9px; border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.1), 0 2px 6px -3px rgba(23, 32, 27, 0.2);
  white-space: nowrap;
}
.tok--fly { position: absolute; left: 0; top: 0; margin: 0; z-index: 8; pointer-events: none; font-size: 14px; font-weight: 600; }
.ok__sep { color: var(--tenue); }
.ok__sub { margin: 0 0 clamp(4px, 1vh, 8px); font-size: 12px; color: var(--grigio); }
.ok__again { font-size: 12.5px; font-weight: 600; color: var(--accento-scuro); padding: 6px 10px; border-radius: 9px; transition: background 0.2s ease; }
@media (hover: hover) { .ok__again:hover { background: var(--accento-tenue); } }
.ok__again.is-hover { background: var(--accento-tenue); }

/* ---------- the button ---------- */
.cta {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--cta);
  margin-top: clamp(4px, 1vh, 8px);
  border-radius: 15px;
  color: #fff;
  font-size: 15px; font-weight: 620; font-stretch: 100%;
  isolation: isolate;
  transition: color 0.3s ease, font-stretch 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  background: linear-gradient(170deg, #2a4437, var(--bottone));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 8px 18px -8px rgba(28, 49, 39, 0.75);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.cta:not(.is-ready):not(.is-booked) { color: var(--grigio); }
.cta:not(.is-ready):not(.is-booked) .cta__bg { background: var(--vassoio); box-shadow: inset 0 0 0 1px rgba(23, 32, 27, 0.05); }
.cta.is-booked .cta__bg { background: linear-gradient(170deg, var(--accento), var(--accento-scuro)); }
.cta__sheen {
  position: absolute; top: 0; bottom: 0; left: -45%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(190, 230, 205, 0.35), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
@media (hover: hover) { .cta.is-ready:hover { font-stretch: 112%; } }
.cta.is-ready.is-hover { font-stretch: 112%; }
.cta__spin, .cta__done { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; display: none; }
.cta__spin circle { stroke-width: 2; stroke-dasharray: 26 60; }
.cta__done { stroke-width: 2.2; }
.cta.is-busy .cta__spin { display: block; }
.cta.is-booked .cta__done { display: block; }

.pointer {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  fill: var(--inchiostro); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

@media (max-height: 470px) {
  .vb__len { display: none; }
}
