/* ========================================================
   CARTOON / PLAYFUL POP THEME
   - Bold outlines (2.5px - 3px solid #163b34)
   - Retro comic hard drop-shadows (4px to 8px)
   - Warm creamy paper background with playful pop colors
   - Tactile, bouncy buttons with physical click response
   ======================================================== */
:root {
  --cb-ink: #163b34;
  --cb-coral: #ff5a3c;
  --cb-coral-hover: #ff4322;
  --cb-yellow: #ffd166;
  --cb-mint: #d8f3eb;
  --cb-mint-dark: #1f6f63;
  --cb-cream: #fffdf5;
  --cb-card-bg: #ffffff;
  --cb-muted: #5e7470;
  --cb-line: #163b34;
  --cb-radius: 20px;
}

.cb-booking {
  box-sizing: border-box;
  max-width: 1060px;
  margin: 24px auto;
  padding: clamp(20px, 3.8vw, 42px);
  border: 3px solid var(--cb-ink);
  border-radius: 30px;
  background: var(--cb-cream);
  box-shadow: 10px 10px 0 var(--cb-yellow), 10px 10px 0 3px var(--cb-ink);
  color: var(--cb-ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}
.cb-booking * { box-sizing: border-box; }

/* Page Background */
.cb-portal {
  margin: 0;
  background-color: #f7eedb;
  background-image: radial-gradient(#e5d7be 15%, transparent 16%);
  background-size: 20px 20px;
  padding: 24px 12px;
}

/* Headings & Texts */
.cb-booking h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cb-ink);
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--cb-yellow) 65%);
  padding: 0 4px;
}
.cb-booking > p {
  margin: 4px 0 24px;
  color: var(--cb-muted);
  font-weight: 500;
  font-size: 1.02rem;
  max-width: 65ch;
}
.cb-booking p { margin: 12px 0; }
.cb-booking label {
  display: block;
  margin: 12px 0;
  font-weight: 700;
  color: var(--cb-ink);
  font-size: 0.95rem;
}
.cb-booking legend {
  color: var(--cb-ink);
  font-weight: 900;
  font-size: 1.08rem;
}
.cb-booking option { color: var(--cb-ink); background: #fff; }
.cb-booking ::placeholder { color: #8fa3a0; opacity: 1; font-weight: 500; }

/* Chunky Cartoon Inputs & Controls */
.cb-booking input:not([type=checkbox]):not([type=radio]),
.cb-booking select,
.cb-booking textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 7px;
  border: 2.5px solid var(--cb-ink);
  border-radius: 14px;
  background: #ffffff;
  color: var(--cb-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  height: auto;
  box-shadow: 2px 2px 0 var(--cb-ink);
  transition: all 0.12s ease;
}
.cb-booking textarea { min-height: 96px; resize: vertical; }
.cb-booking select { cursor: pointer; }
.cb-booking input:focus,
.cb-booking select:focus,
.cb-booking textarea:focus {
  background: #fff;
  border-color: var(--cb-ink);
  box-shadow: 4px 4px 0 var(--cb-coral);
  outline: none;
  transform: translate(-1px, -1px);
}
.cb-booking :focus-visible { outline: 3px dashed var(--cb-coral); outline-offset: 3px; }

/* Radios & Checkboxes */
.cb-booking input[type=checkbox],
.cb-booking input[type=radio] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 2px 0 0;
  accent-color: var(--cb-coral);
  cursor: pointer;
}

/* Cartoon Tactile Buttons */
.cb-booking button {
  background: var(--cb-coral);
  color: #fff;
  border: 2.5px solid var(--cb-ink);
  border-radius: 999px;
  padding: 12px 26px;
  font: 800 16px/1.3 system-ui, sans-serif;
  cursor: pointer;
  margin: 0;
  box-shadow: 3px 3px 0 var(--cb-ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
}
.cb-booking button:hover { filter: brightness(1.06); }
.cb-booking button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--cb-ink);
}
.cb-booking button:disabled { opacity: 0.55; cursor: not-allowed; }
.cb-booking .nice-select { display: none !important; }
.cb-booking select { display: block !important; visibility: visible !important; }
.cb-booking [hidden] { display: none !important; }
.cb-booking .cb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-booking a { color: var(--cb-ink); font-weight: 700; text-decoration: underline wavy var(--cb-coral) 2px; }

/* Layout: Summary Sidebar + Steps Column */
.cb-form {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 24px 34px;
  align-items: start;
}
.cb-form > .cb-summary {
  grid-column: 1;
  grid-row: 1 / span 20;
  position: sticky;
  top: 20px;
}
.cb-form > .cb-step-indicator,
.cb-form > .cb-step {
  grid-column: 2;
}

/* Step Indicator Pills */
.cb-step-indicator {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cb-step-indicator li {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--cb-ink);
  border: 2px solid var(--cb-ink);
  box-shadow: 2px 2px 0 var(--cb-ink);
  transition: transform 0.15s ease;
}
.cb-step-indicator li.cb-current {
  background: var(--cb-coral);
  color: #fff;
  border-color: var(--cb-ink);
  box-shadow: 3px 3px 0 var(--cb-yellow), 3px 3px 0 2px var(--cb-ink);
  transform: translateY(-2px);
}
.cb-step-indicator li.cb-done {
  background: var(--cb-yellow);
  color: var(--cb-ink);
}
.cb-step-indicator li.cb-done::before {
  content: "\2713\00a0";
}

/* Step Cards */
.cb-step {
  position: relative;
  background: #ffffff;
  border: 3px solid var(--cb-ink);
  border-radius: var(--cb-radius);
  padding: 28px;
  box-shadow: 6px 6px 0 var(--cb-yellow), 6px 6px 0 3px var(--cb-ink);
}
.cb-step-off { display: none !important; }
.cb-booking .cb-step h3 {
  margin: 0 0 20px;
  padding-right: 110px;
  min-height: 86px;
  display: flex;
  align-items: center;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--cb-ink);
  font-family: inherit;
  text-decoration: underline wavy var(--cb-yellow) 3.5px;
  text-underline-offset: 8px;
}

/* Cartoon Image Square Placeholders */
.cb-cartoon { margin: 0; }
.cb-step > .cb-cartoon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 86px;
}
.cb-img-square {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  border: 2.5px solid var(--cb-ink);
  background: var(--cb-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23163b34' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 10l4 12 12 4-12 4-4 12-4-12-12-4 12-4z' fill='%23ffd166'/%3E%3Ccircle cx='48' cy='46' r='6' fill='%23ffffff'/%3E%3Ccircle cx='16' cy='46' r='4' fill='%23ffffff'/%3E%3C/svg%3E") center/52% no-repeat;
  box-shadow: 3px 3px 0 var(--cb-ink);
  transform: rotate(-3deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cb-step:hover .cb-img-square {
  transform: rotate(3deg) scale(1.04);
}

.cb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.cb-step-error {
  color: #c92424;
  font-weight: 800;
  font-size: 0.94rem;
  margin: 10px 0 0;
  background: #ffe3e3;
  padding: 8px 12px;
  border: 2px solid #c92424;
  border-radius: 10px;
  display: inline-block;
}
.cb-step-error:empty { display: none; }

.cb-stepnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed #d5dedc;
}
.cb-booking .cb-back {
  background: #ffffff;
  color: var(--cb-ink);
  border: 2.5px solid var(--cb-ink);
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-booking .cb-back:hover {
  background: var(--cb-mint);
  filter: none;
}
.cb-booking .cb-next, .cb-booking .cb-submit { margin-left: auto; }
.cb-booking .cb-submit {
  background: var(--cb-coral);
  color: #fff;
  font-size: 1.05rem;
  padding: 13px 32px;
  box-shadow: 4px 4px 0 var(--cb-yellow), 4px 4px 0 2.5px var(--cb-ink);
}
.cb-notice, .cb-policy, .cb-small { font-size: 0.9rem; color: var(--cb-muted); }
.cb-notice {
  background: #fff8e5;
  border: 2px solid var(--cb-ink);
  box-shadow: 2px 2px 0 var(--cb-ink);
  padding: 12px 14px;
  border-radius: 12px;
  color: #553e0e;
  font-weight: 600;
}

/* Playful Chips */
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}
.cb-booking button.cb-chip {
  background: #fff;
  color: var(--cb-ink);
  border: 2px solid var(--cb-ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--cb-ink);
}
.cb-booking button.cb-chip:hover {
  border-color: var(--cb-ink);
  background: #fff5dc;
  filter: none;
}
.cb-booking button.cb-chip-on {
  background: var(--cb-ink);
  color: #fff;
  border-color: var(--cb-ink);
  box-shadow: 3px 3px 0 var(--cb-coral);
}
.cb-booking button.cb-chip-on::before { content: "\2713\00a0 "; }
.cb-booking button.cb-chip-on:hover { background: var(--cb-ink); }

/* Playful Extras Section */
.cb-extras {
  border: 2.5px solid var(--cb-ink);
  border-radius: var(--cb-radius);
  background: var(--cb-mint);
  padding: 18px 20px 8px;
  margin: 14px 0;
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-extras legend {
  font-weight: 900;
  padding: 4px 12px;
  background: var(--cb-yellow);
  border: 2px solid var(--cb-ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--cb-ink);
}
.cb-extras .cb-grid { gap: 0 16px; }
.cb-extras label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 2px solid var(--cb-ink);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--cb-ink);
  transition: transform 0.1s;
}
.cb-extras label:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-extras label input {
  width: 76px;
  flex: 0 0 76px;
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  border-width: 2px;
}
.cb-extras-none {
  padding: 14px 16px;
  border: 2px dashed var(--cb-ink);
  border-radius: 14px;
  background: #fff;
  color: var(--cb-muted);
  margin: 16px 0;
}
.cb-form .cb-extras-hint {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--cb-muted);
  font-style: italic;
}

/* Playful Comic Summary Box */
.cb-summary {
  border: 3px solid var(--cb-ink);
  border-radius: var(--cb-radius);
  padding: 22px 20px;
  background: #fff6ce;
  box-shadow: 6px 6px 0 var(--cb-coral), 6px 6px 0 3px var(--cb-ink);
  overflow: hidden;
}
.cb-booking .cb-summary h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cb-ink);
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-right: 64px;
  font-family: inherit;
}
.cb-cartoon-summary {
  float: right;
  width: 54px;
  margin: 0;
}
.cb-cartoon-summary .cb-img-square {
  border-radius: 14px;
  transform: rotate(5deg);
  background-color: var(--cb-coral);
  box-shadow: 2px 2px 0 var(--cb-ink);
}
.cb-summary dl {
  margin: 0;
  clear: both;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.cb-summary dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #637772;
  font-weight: 800;
  padding: 10px 0 2px;
  border-top: 2px dashed #ded09f;
}
.cb-summary dt:first-of-type { border-top: 0; }
.cb-summary dd {
  margin: 0;
  padding: 0 0 4px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--cb-ink);
}
.cb-summary p:has(> .cb-sum-total) {
  background: #ffffff;
  border: 2.5px solid var(--cb-ink);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0 10px;
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-sum-total {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cb-coral);
}
.cb-sum-total.cb-sum-pending {
  color: #8a9a96;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
}
.cb-sum-note {
  font-size: 0.86rem;
  color: #6d7b78;
  margin: 0;
}

/* Price & Payment */
.cb-booking .cb-estimate {
  margin: 4px 0 14px;
  background: var(--cb-ink);
  box-shadow: 3px 3px 0 var(--cb-coral);
}
.cb-price:not(:empty),
.cb-feedback:not(:empty) {
  padding: 18px 20px;
  background: var(--cb-mint);
  border: 2.5px solid var(--cb-ink);
  margin: 14px 0;
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-price strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: var(--cb-coral);
}
.cb-payment-choice {
  border: 2.5px solid var(--cb-ink);
  border-radius: var(--cb-radius);
  background: #fffdf4;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-booking .cb-cartoon-small {
  float: right;
  width: 68px;
  margin: 0 0 8px 12px;
}
.cb-booking .cb-cartoon-small .cb-img-square {
  background-color: var(--cb-yellow);
}
.cb-booking .cb-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  margin: 10px 0;
}
.cb-booking .cb-payment-choice .cb-check {
  clear: both;
  padding: 14px 16px;
  border: 2px solid var(--cb-ink);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--cb-ink);
  transition: transform 0.1s;
}
.cb-booking .cb-payment-choice .cb-check:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--cb-ink);
}
.cb-booking .cb-payment-choice .cb-check:has(input:checked) {
  background: var(--cb-mint);
  border-color: var(--cb-ink);
  box-shadow: 3px 3px 0 var(--cb-coral);
}
.cb-booking .cb-payment-choice .cb-check span { flex: 1; }

/* Chunky Cartoon Calendar Popup */
.cb-booking .cb-cal-btn {
  margin: 10px 0 0;
  padding: 10px 18px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--cb-ink);
  border: 2px solid var(--cb-ink);
  box-shadow: 2px 2px 0 var(--cb-ink);
}
.cb-booking .cb-cal-btn:hover {
  background: var(--cb-yellow);
  filter: none;
}
.cb-cal {
  position: fixed;
  z-index: 9999;
  width: 330px;
  max-width: calc(100vw - 20px);
  background: #fffdf5;
  border: 3px solid var(--cb-ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--cb-yellow), 6px 6px 0 3px var(--cb-ink);
  padding: 16px;
  color: var(--cb-ink);
  font: 700 15px/1.4 system-ui, sans-serif;
}
.cb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cb-cal-head strong { font-size: 1.1rem; color: var(--cb-ink); font-weight: 900; }
.cb-cal-nav {
  background: var(--cb-coral) !important;
  color: #fff !important;
  border: 2px solid var(--cb-ink) !important;
  border-radius: 999px !important;
  box-shadow: 2px 2px 0 var(--cb-ink) !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  cursor: pointer;
  font-weight: 900;
}
.cb-cal-week, .cb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cb-cal-week {
  margin-bottom: 6px;
  color: var(--cb-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
}
.cb-cal-day {
  background: #fff !important;
  color: var(--cb-ink) !important;
  border: 2px solid var(--cb-ink) !important;
  border-radius: 10px !important;
  box-shadow: 1px 1px 0 var(--cb-ink) !important;
  padding: 7px 0 !important;
  margin: 0 !important;
  cursor: pointer;
  font-weight: 800;
}
.cb-cal-day:hover:not(:disabled) {
  background: var(--cb-yellow) !important;
}
.cb-cal-day.cb-cal-today {
  outline: 3px solid var(--cb-coral);
  outline-offset: 1px;
}
.cb-cal-day.cb-cal-sel {
  background: var(--cb-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.cb-cal-day:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none !important;
}
.cb-cal-day.cb-cal-off {
  background: #edf1f0 !important;
  color: #a4b4b1 !important;
}
.cb-cal-blank { height: 36px; }

/* Responsive adjustments */
@media(max-width: 860px) {
  .cb-form {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .cb-form > .cb-summary {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .cb-form > .cb-step-indicator,
  .cb-form > .cb-step {
    grid-column: 1;
  }
}
@media(max-width: 600px) {
  .cb-booking {
    padding: 18px 14px;
    margin: 12px auto;
    border-radius: 22px;
  }
  .cb-grid { grid-template-columns: 1fr; }
  .cb-step { padding: 20px 16px; }
  .cb-step > .cb-cartoon {
    top: 18px;
    right: 14px;
    width: 68px;
  }
  .cb-booking .cb-step h3 {
    padding-right: 76px;
    min-height: 68px;
  }
  .cb-stepnav { flex-direction: column-reverse; }
  .cb-booking .cb-stepnav button { width: 100%; margin: 0; }
  .cb-booking .cb-estimate { width: 100%; }
}

/* v1.1.12 port additions: rules the new theme does not carry, plus photo
   styling so the real cartoon images fit the new square design. The live
   form keeps its <img> cartoons; these rules give them the same square,
   border, shadow and tilt treatment as the theme's placeholders. */
.cb-booking input[type=date].cb-cal-native{display:none !important}
.cb-booking .cb-cal-display{cursor:pointer}
.cb-pay-note,.cb-pay-unavailable,.cb-pay-not-connected{font-size:.95rem;color:var(--cb-muted)}
.cb-cal-foot{font-size:.8rem;font-weight:400;color:var(--cb-muted);margin:10px 0 0}
.cb-booking h1{margin:0 0 6px;font-size:clamp(26px,3.4vw,36px);line-height:1.2;font-weight:900;letter-spacing:-0.02em;color:var(--cb-ink)}
.cb-step > .cb-cartoon img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;border:2.5px solid var(--cb-ink);background:var(--cb-mint);box-shadow:3px 3px 0 var(--cb-ink);transform:rotate(-3deg);transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.cb-step:hover .cb-cartoon img{transform:rotate(3deg) scale(1.04)}
.cb-cartoon-summary img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;border:2.5px solid var(--cb-ink);background:var(--cb-coral);box-shadow:2px 2px 0 var(--cb-ink);transform:rotate(5deg)}
.cb-booking .cb-cartoon-small img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;border:2.5px solid var(--cb-ink);background:var(--cb-yellow);box-shadow:3px 3px 0 var(--cb-ink);transform:rotate(-3deg)}

/* v1.2.1: the success message contains a long private payment link. Let
   the step column shrink beside the sidebar, and let long links wrap
   inside the box instead of running past its edge. */
.cb-form > .cb-step-indicator,.cb-form > .cb-step{min-width:0}
.cb-feedback{overflow-wrap:anywhere}
.cb-feedback a{overflow-wrap:anywhere;word-break:break-all}
