:root {
  --fondo: #ffffff;
  --carta: #fbfaf7;
  --inchiostro: #16181d;
  --grigio: #6d6f75;
  --linea: rgba(22, 24, 29, 0.09);
  --crema: #f6f1e7;
  --accento: #e2622a;
  --verde: #2f7d57;
  --pillola: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.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: 16px;
}

.card {
  position: relative;
  width: min(440px, 92vw);
  padding: clamp(20px, min(5vw, 4.5vh), 30px);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, var(--carta));
  border: 1px solid var(--linea);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(22, 24, 29, 0.05),
    0 8px 18px -8px rgba(22, 24, 29, 0.12),
    0 30px 60px -28px rgba(22, 24, 29, 0.22);
  overflow: visible;
}
.card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 120%, rgba(47, 125, 87, 0.16), transparent 60%);
  opacity: 0;
  pointer-events: none;
}

.card__head { display: flex; align-items: center; gap: 12px; }
.card__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--inchiostro);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 14px -6px rgba(22, 24, 29, 0.5);
}
.card__mark svg { width: 20px; height: 20px; fill: none; stroke: var(--crema); stroke-width: 1.7; stroke-linejoin: round; }
.card__name { display: block; font-weight: 640; font-size: 15px; letter-spacing: -0.01em; }
.card__where { display: block; font-size: 12.5px; color: var(--grigio); margin-top: 1px; }

.card__title {
  margin: clamp(14px, 3vh, 22px) 0 6px;
  font-size: clamp(20px, min(5.6vw, 4.6vh), 25px);
  line-height: 1.15;
  font-weight: 620;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.card__text { margin: 0; font-size: clamp(13px, min(3.5vw, 2.9vh), 14.5px); line-height: 1.45; color: var(--grigio); }

.steps { display: flex; gap: 6px; margin: clamp(14px, 3.2vh, 22px) 0 10px; height: 3px; opacity: 0; }
.steps span { flex: 0 0 26px; height: 3px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.steps i { display: block; height: 100%; width: 100%; background: var(--accento); transform: scaleX(0); transform-origin: left; border-radius: 3px; }

.quote {
  position: relative;
  height: var(--pillola);
  width: 196px;
  max-width: 100%;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--crema);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 10px 22px -12px rgba(22, 24, 29, 0.7),
    0 2px 5px rgba(22, 24, 29, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.quote__shine {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 3;
}
.quote__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
}
.quote__idle {
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.quote__idle svg, .quote__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.quote__service { padding: 0 6px 0 18px; gap: 2px; visibility: hidden; }
.quote__ask { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 241, 231, 0.55); margin-right: 8px; }
.quote__chip {
  position: relative; z-index: 1;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: none; color: rgba(246, 241, 231, 0.75);
  font: inherit; font-size: 14px; font-weight: 560;
  cursor: pointer;
}
.quote__chip { transition: color 0.22s ease; }
.quote__chip.is-on, .quote__chip.is-under { color: var(--inchiostro); }
.quote__mark {
  position: absolute; top: 6px; left: 0;
  height: 40px; width: 70px;
  border-radius: 999px;
  background: var(--crema);
  box-shadow: 0 1px 0 #fff inset, 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  opacity: 0;
}

.quote__mail { padding: 0 6px 0 8px; gap: 8px; visibility: hidden; }
.quote__picked {
  height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.1);
  box-shadow: 0 0 0 1px rgba(246, 241, 231, 0.14) inset;
  font-size: 13.5px; font-weight: 560;
}
.quote__field { flex: 1 1 auto; min-width: 0; }
.quote__field input {
  width: 100%;
  height: 40px;
  border: 0; outline: 0;
  background: none;
  color: var(--crema);
  font: inherit; font-size: 14.5px;
  caret-color: var(--accento);
}
.quote__field input::placeholder { color: rgba(246, 241, 231, 0.42); }
.quote__send {
  position: relative;
  flex: 0 0 40px; height: 40px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accento); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -6px rgba(226, 98, 42, 0.9);
  cursor: pointer;
}
.quote__spin {
  position: absolute; inset: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
}

.quote__done { justify-content: center; gap: 9px; padding: 0 24px; font-size: 15px; font-weight: 600; visibility: hidden; cursor: pointer; }
.quote__tick { width: 18px; height: 18px; fill: none; stroke: #8fe0b4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.envelope {
  position: absolute;
  width: 34px; height: 24px;
  left: 0; top: 0;
  fill: var(--crema);
  stroke: var(--inchiostro);
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(22, 24, 29, 0.25));
  z-index: 4;
}
.envelope__flap { fill: none; }

.card__note { margin: 14px 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--grigio); }
.card__note span { display: inline-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));
  opacity: 0; pointer-events: none; z-index: 10;
}

@media (hover: hover) {
  .quote__chip:not(.is-under):hover { color: #fff; }
}
@media (max-width: 420px) {
  :root { --pillola: 48px; }
  .quote__ask { display: none; }
  .quote__service { padding-left: 6px; }
  .quote__chip { padding: 0 11px; font-size: 13.5px; height: 36px; }
  .quote__mark { height: 36px; top: 6px; }
  .quote__picked { padding: 0 11px; height: 36px; }
  .quote__send { flex-basis: 36px; height: 36px; }
}
