/* VidaPlena V2.0 · agendamento.css — Diálogo de agendamento simulado em três etapas. */

.vb {
  width: min(1000px, -32px + 100vw);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0px;
  border: 0px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: rgba(2, 18, 24, 0.6) 0px 40px 120px;
  font-family: var(--sans);
}
.vb::backdrop {
  background: rgba(4, 25, 32, 0.72);
  backdrop-filter: blur(6px);
}
.vb[open] {
  display: flex;
}
.vb-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.vb-head {
  padding: 26px clamp(20px, 3.5vw, 36px) 0px;
  background: linear-gradient(180deg,#f3ebdf,var(--paper));
}
.vb-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.vb-overline {
  margin: 0px;
  color: var(--copper);
  font: 700 .7rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vb-head h2 {
  margin: 6px 0px 0px;
  font: 500 clamp(2rem,3.4vw,2.8rem)/1 var(--serif);
  color: var(--ink);
}
.vb-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}
.vb-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.vb-close:hover {
  background: var(--sand);
}
.vb-stepper {
  list-style: none;
  margin: 22px 0px 0px;
  padding: 0px 0px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.vb-stepper li {
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.vb-stepper li:not(:last-child)::after {
  content: "";
  flex: 1 1 0%;
  height: 1px;
  background: var(--line);
  margin-right: 8px;
}
.vb-step-n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.8rem;
}
.vb-stepper li.is-current {
  color: var(--ink);
}
.vb-stepper li.is-current .vb-step-n {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}
.vb-stepper li.is-done .vb-step-n {
  background: #dcebe7;
  border-color: #9fc2ba;
  color: var(--teal);
}
.vb-stepper li.is-done::after {
  background: #9fc2ba;
}
.vb-flow {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 290px;
  gap: clamp(20px, 3vw, 32px);
  padding: 24px clamp(20px, 3.5vw, 36px) 28px;
  align-items: start;
}
.vb-main {
  min-width: 0px;
}
.vb-step h3 {
  margin: 0px 0px 18px;
  font: 500 1.8rem/1.1 var(--serif);
  color: var(--ink);
  outline: none;
}
.vb-field {
  border: 0px;
  margin: 0px 0px 22px;
  padding: 0px;
  min-width: 0px;
}
.vb-field legend {
  padding: 0px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}
.vb-legend-note {
  font-weight: 500;
  color: var(--muted);
}
.vb input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0px;
  pointer-events: none;
}
.vb-segment {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--sand);
  gap: 4px;
}
.vb-segment label {
  position: relative;
  cursor: pointer;
}
.vb-segment span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.vb-segment input:checked + span {
  background: #ffffff;
  color: var(--ink);
  box-shadow: rgba(16, 44, 54, 0.12) 0px 2px 8px;
}
.vb-segment input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.vb-services, .vb-pros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 10px;
}
.vb-pros {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
.vb-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.vb label {
  -webkit-tap-highlight-color: transparent;
}
.vb-card-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.vb-card-box strong {
  font-size: 0.98rem;
  color: var(--ink);
}
.vb-card-box small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.vb-card-box::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c9b79f;
  background: #ffffff;
}
.vb-card:hover .vb-card-box {
  border-color: #b9a58a;
}
.vb-card input:checked + .vb-card-box {
  border: 2px solid var(--teal);
  padding: 13px 39px 13px 15px;
  background: #eef5f3;
  box-shadow: rgba(29, 83, 97, 0.6) 0px 6px 18px -10px;
}
.vb-card input:checked + .vb-card-box::after {
  border-color: var(--teal);
  background: var(--teal) no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vb-card input:focus-visible + .vb-card-box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.vb-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0px, 1fr));
  gap: 8px;
}
.vb-day {
  position: relative;
  cursor: pointer;
}
.vb-day-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s, background-color 0.2s;
}
.vb-day-box small, .vb-day-box strong {
  transition: color 0.2s;
}
.vb-day-box small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.vb-day-box strong {
  font: 500 1.5rem/1 var(--serif);
  color: var(--ink);
}
.vb-day:hover .vb-day-box {
  border-color: #b9a58a;
}
.vb-day input:checked + .vb-day-box {
  background: var(--teal);
  border-color: var(--teal);
}
.vb-day input:checked + .vb-day-box small,
.vb-day input:checked + .vb-day-box strong {
  color: #ffffff;
}
.vb-day input:focus-visible + .vb-day-box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.vb-day.is-closed {
  cursor: not-allowed;
}
.vb-day.is-closed .vb-day-box {
  background: transparent;
  border-style: dashed;
  opacity: 0.55;
}
.vb-slots {
  display: grid;
  gap: 14px;
}
.vb-slot-title {
  margin: 0px 0px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.vb-slot-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0px, 1fr));
  gap: 8px;
}
.vb-slot {
  position: relative;
  cursor: pointer;
}
.vb-slot span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.vb-slot:hover span {
  border-color: #b9a58a;
}
.vb-slot input:checked + span {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}
.vb-slot input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.vb-slot.is-taken {
  cursor: not-allowed;
}
.vb-slot.is-taken span {
  background: transparent;
  border-style: dashed;
  color: #8c9a9c;
  text-decoration: line-through;
}
.vb-empty {
  margin: 0px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.vb-note {
  margin: 0px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.vb-review {
  margin: 0px 0px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}
.vb-review .vb-row {
  display: grid;
  grid-template-columns: 130px minmax(0px, 1fr);
  gap: 12px;
  padding: 12px 16px;
}
.vb-review .vb-row + .vb-row {
  border-top: 1px solid #eee4d6;
}
.vb-review dt {
  color: var(--muted);
  font-size: 0.84rem;
}
.vb-review dd {
  margin: 0px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.vb-prep {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f1e8db;
  margin-bottom: 18px;
}
.vb-prep h4 {
  margin: 0px 0px 6px;
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.vb-prep p {
  margin: 0px;
  color: #3d5257;
  font-size: 0.9rem;
  line-height: 1.6;
}
.vb-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.vb-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0px 0px;
  accent-color: var(--teal);
}
.vb-error {
  min-height: 1.4em;
  margin: 6px 0px 0px;
  color: var(--error);
  font-weight: 700;
  font-size: 0.86rem;
}
.vb-error:empty {
  min-height: 0px;
  margin: 0px;
}
.vb-nav {
  position: sticky;
  bottom: 0px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 0px 2px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.vb-nav-hint {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.vb-nav [data-back]:not([hidden]) + .vb-nav-hint {
  margin-left: 4px;
}
.vb-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 .9rem var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.vb-btn--gold {
  background: var(--gold);
  color: #092b35;
}
.vb-btn--gold:hover {
  background: var(--gold-hi);
}
.vb-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.vb-btn--ghost:hover {
  background: var(--sand);
}
.vb-btn:focus-visible, .vb-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.vb-aside {
  position: sticky;
  top: 0px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg,var(--petrol),var(--deep));
  color: #f4efe6;
}
.vb-aside h3 {
  margin: 0px 0px 14px;
  font: 500 1.5rem/1.1 var(--serif);
  color: #ffffff;
}
.vb-summary {
  margin: 0px;
  display: grid;
  gap: 12px;
}
.vb-summary .vb-row {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.vb-summary dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.vb-summary dd {
  margin: 0px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}
.vb-summary .is-empty dd {
  color: #8fa7a9;
  font-weight: 500;
}
.vb-aside-note {
  margin: 14px 0px 0px;
  font-size: 0.78rem;
  color: #b8cbcc;
}
.vb-done {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) 36px;
  text-align: center;
}
.vb-done-mark {
  width: 72px;
  height: 72px;
  margin: 0px auto 14px;
}
.vb-done-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vb-done-mark circle {
  stroke: #9fc2ba;
  stroke-width: 2;
  fill: #eef5f3;
}
.vb-done-mark path {
  stroke: var(--teal);
  stroke-width: 3.5;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: vbCheck .6s .15s var(--ease) forwards;
}
@keyframes vbCheck {    100% { stroke-dashoffset: 0; } }
.vb-done h3 {
  margin: 0px;
  font: 500 clamp(2rem,3.4vw,2.6rem)/1.05 var(--serif);
  outline: none;
}
.vb-code {
  margin: 10px 0px 22px;
  color: var(--muted);
}
.vb-code strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.vb-done .vb-review {
  max-width: 560px;
  margin: 0px auto 22px;
  text-align: left;
}
.vb-next {
  max-width: 560px;
  margin: 0px auto 18px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f1e8db;
}
.vb-next h4 {
  margin: 0px 0px 8px;
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.vb-next ul {
  margin: 0px;
  padding-left: 18px;
  color: #3d5257;
  font-size: 0.9rem;
  line-height: 1.7;
}
.vb-done .vb-note {
  max-width: 560px;
  margin: 0px auto;
}
.vb-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .vb-flow {
    grid-template-columns: minmax(0px, 1fr) 250px;
  }
  .vb-slot-row {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }
}

@media (max-width: 760px) {
  .vb {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0px;
  }
  .vb-shell {
    max-height: 100dvh;
  }
  .vb-head {
    padding: 18px 16px 0px;
  }
  .vb-stepper {
    margin-top: 16px;
    padding-bottom: 14px;
    display: flex;
  }
  .vb-stepper li {
    flex: 1 1 0px;
    min-width: 0px;
  }
  .vb-stepper li.is-current {
    flex: 2.4 1 0px;
  }
  .vb-stepper li:not(.is-current) .vb-step-l {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0px, 0px, 0px, 0px);
  }
  .vb-flow {
    grid-template-columns: 1fr;
    padding: 16px 16px 0px;
    gap: 14px;
  }
  .vb-aside {
    order: -1;
    position: static;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .vb-aside h3, .vb-aside-note {
    display: none;
  }
  .vb-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .vb-summary .vb-row {
    padding: 0px;
    border: 0px;
    display: flex;
    gap: 6px;
    align-items: baseline;
  }
  .vb-summary .is-empty {
    display: none;
  }
  .vb-summary dt {
    font-size: 0.62rem;
  }
  .vb-summary dd {
    font-size: 0.82rem;
  }
  .vb-services {
    grid-template-columns: 1fr;
  }
  .vb-days {
    grid-template-columns: repeat(7, minmax(0px, 1fr));
    gap: 5px;
  }
  .vb-day-box {
    min-height: 56px;
  }
  .vb-day-box strong {
    font-size: 1.25rem;
  }
  .vb-slot-row {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }
  .vb-nav {
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }
  .vb-nav-hint {
    display: none;
  }
  .vb-nav .vb-btn {
    flex: 1 1 0%;
    padding: 0px 14px;
    font-size: 0.88rem;
  }
  .vb-review .vb-row {
    grid-template-columns: 104px minmax(0px, 1fr);
  }
}

@media (max-width: 420px) {
  .vb-pros {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-done-mark path {
    animation: auto ease 0s 1 normal none running none;
    stroke-dashoffset: 0;
  }
  .vb::backdrop {
    backdrop-filter: none;
  }
}
