body { background: var(--wash); }

.ck-main { padding: 28px 0 72px; }

.ck-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.ck-back {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ck-secure {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ck-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
}
.ck-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.ck-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #d5e2de;
}
.ck-steps b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d5e2de;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.ck-steps .is-active { color: var(--ink); }
.ck-steps .is-active b {
  background: var(--ink);
  color: var(--lime);
}

.ck-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.ck-card {
  background: var(--white);
  border-radius: 28px;
  padding: 28px 24px;
  margin-bottom: 16px;
}
.ck-form h1 {
  margin: 0 0 22px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 400;
}
.ck-form h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  max-width: none;
}
.ck-form h3 {
  margin: 28px 0 16px;
  font-size: 18px;
  font-weight: 700;
  grid-column: 1 / -1;
}
.ck-form[hidden],
.ck-side[hidden],
.ck-done[hidden],
#agendamento[hidden],
#cnh[hidden],
#pagamento[hidden],
#confirmacao[hidden],
.pay-pix-result[hidden],
.pay-qr-wrap[hidden],
img[data-pix-qr][hidden],
.liv-box[hidden],
.cal-wrap[hidden],
[data-pay-error][hidden],
[data-pix-wait][hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}
.ck-left { min-width: 0; }
#dados {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}
.ck-form h1, .ck-form h2 { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
}
.field input,
.field select {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--lime);
  border-color: var(--ink);
}
.field small {
  color: var(--muted);
  font-size: 12px;
}
.field.is-invalid input,
.field.is-invalid select {
  border-color: #c0392b;
}

.plus-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.plus-kicker {
  margin: 0 0 4px;
  color: var(--lime);
  background: var(--ink);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.plus-head h2 { margin: 8px 0 0; }
.plus-price {
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.plus-price span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.plus-list {
  margin: 16px 0;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 350;
  line-height: 24px;
}
.plus-note { color: var(--muted); font-size: 14px; }
.plus-choice {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--mint);
}

.ck-totals .tot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
}
.tot-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
  font-size: 20px;
}
.ck-submit { width: 100%; margin-top: 18px; }
.ck-error { color: #c0392b; font-size: 14px; margin: 8px 0 0; }

.side-card {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  padding: 22px;
}
.side-off {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 6px 10px;
}
.side-tag {
  display: inline-flex;
  margin: 0 0 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}
.side-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  background: #f0f4f3;
}
.side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.side-from {
  margin: 0;
  text-decoration: line-through;
  color: var(--muted);
  font-size: 16px;
}
.side-to {
  margin: 4px 0 8px;
  font-size: 28px;
  font-weight: 400;
}
.side-to strong { font-weight: 700; }
.side-pay { margin: 0; color: var(--muted); font-size: 14px; }

.ck-lead { color: var(--muted); font-size: 16px; line-height: 24px; margin: 0 0 22px; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  height: 52px;
  padding: 0 28px;
}

.mode-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.mode-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 16px 16px 14px;
  cursor: pointer;
  color: var(--ink);
}
.mode-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.mode-card small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.mode-card em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.mode-card.is-on {
  border-color: var(--ink);
  background: var(--mint);
}
.mode-card.is-off { opacity: 0.48; cursor: not-allowed; }
.mode-badge {
  display: inline-flex;
  background: var(--ink);
  color: var(--lime);
  border-radius: 100px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.liv-box {
  border: 1px solid var(--ink);
  background: var(--mint);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 8px;
}

.cal-board {
  display: grid;
  gap: 18px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  cursor: pointer;
  font-size: 22px;
}
.cal-dows, .cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-dows span { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-day {
  border: 0;
  background: transparent;
  border-radius: 12px;
  min-height: 42px;
  cursor: pointer;
  font-weight: 600;
}
.cal-day.is-on { background: var(--ink); color: var(--lime); }
.cal-day.is-off { opacity: 0.28; cursor: not-allowed; }
.slots-empty { color: var(--muted); }
.slot-group { margin: 0 0 14px; }
.slot-group b { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.slot.is-on { border-color: var(--ink); background: var(--mint); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-g { background: #22a45a; }
.dot-o { background: #e0a106; }
.dot-r { background: #d4533a; }
.slots-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

.note {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 22px;
}
.note-ok { background: #eefbf1; color: #145c32; }
.note-warn { background: #fff4e8; color: #8a4b12; }
.cnh-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
}
.cnh-check input { margin-top: 4px; }

.pay-test-banner {
  margin: -12px 0 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff8e6;
  color: #7a5a00;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.pay-total {
  font-size: 18px;
  margin: 0 0 20px;
}
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 2px solid #d5e2de;
  font-weight: 700;
  cursor: pointer;
}
.pay-method.is-on {
  border-color: var(--ink);
  background: var(--mint);
}
.pay-method input { accent-color: var(--ink); }
.pay-panel { margin-bottom: 8px; }
.pay-hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  margin: 0 0 8px;
}
.pay-pix-idle {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f8f7;
  color: var(--muted);
  font-size: 14px;
}
.pay-pix-result {
  display: grid;
  gap: 12px;
}
.pay-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #f7faf9;
  border-radius: 16px;
}
.pay-qr-wrap img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.pay-wait {
  color: #145c32;
  font-weight: 600;
  margin: 0;
}
.pay-recap {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}
.pay-recap div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  align-items: baseline;
}
.pay-recap dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pay-recap dd {
  margin: 0;
  font-weight: 700;
}

@media (min-width: 980px) {
  #dados {
    grid-template-columns: 1fr 1fr;
  }
  .field-full { grid-column: 1 / -1; }
  .ck-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
  .ck-side { position: sticky; top: 24px; }
  .ck-form h1 { font-size: 32px; line-height: 38px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .cal-board { grid-template-columns: 1fr 1fr; align-items: start; }
}
