/* Birthday reservation widget. Relies on the CSS variables defined in birthday.html (:root). */
.reserve-section { position: relative; z-index: 1; padding: 2rem 1.2rem 3rem; scroll-margin-top: 1rem; }
.reserve-head { text-align: center; max-width: 760px; margin: 0 auto 1.8rem; }
.reserve-title {
  font-family: 'Fredoka One', cursive; font-size: clamp(2rem, 5.5vw, 3.2rem); color: var(--white);
  text-shadow: 3px 3px 0 var(--hot-pink), 6px 6px 0 rgba(123,47,190,.6); line-height: 1.1; margin-bottom: .6rem;
}
.reserve-sub { font-family: 'Bubblegum Sans', cursive; font-size: 1.1rem; color: var(--teal); }

.rv { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.rv-card {
  background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.12); border-radius: 24px;
  padding: 1.5rem 1.4rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rv-step { font-family: 'Fredoka One', cursive; font-size: 1.35rem; color: var(--yellow); margin-bottom: .9rem; display: flex; gap: .6rem; align-items: center; }
.rv-step b {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--hot-pink), var(--purple)); color: #fff; font-size: 1rem;
}
.rv-note { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.rv-hint { color: var(--teal); }

/* Package picker */
.rv-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: .9rem; }
.rv-pkg { position: relative; display: block; cursor: pointer; }
.rv-pkg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rv-pkg-body {
  height: 100%; border: 2px solid rgba(255,255,255,.18); border-radius: 18px; padding: .9rem 1rem;
  background: rgba(0,0,0,.18); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rv-pkg:hover .rv-pkg-body { transform: translateY(-3px); }
.rv-pkg input:focus-visible + .rv-pkg-body { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rv-pkg input:checked + .rv-pkg-body { border-color: var(--teal); box-shadow: 0 0 26px rgba(0,212,224,.38); background: rgba(0,212,224,.12); }
.rv-pkg-name { font-family: 'Fredoka One', cursive; color: var(--hot-pink); font-size: 1.05rem; }
.rv-pkg-price { font-family: 'Fredoka One', cursive; color: var(--yellow); font-size: 1.7rem; }
.rv-tag { display: inline-block; margin-top: .3rem; padding: .1rem .55rem; border-radius: 50px; font-size: .75rem; font-weight: 800; background: rgba(255,215,0,.16); color: var(--yellow); }

/* Options row */
.rv-options { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center; margin-top: 1.1rem; }
.rv-stepper { display: inline-flex; align-items: center; gap: .6rem; }
.rv-stepper button {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--teal); background: transparent; color: var(--teal);
  font-size: 1.4rem; font-family: 'Fredoka One', cursive; cursor: pointer; line-height: 1;
}
.rv-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.rv-stepper button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rv-length { font-family: 'Fredoka One', cursive; font-size: 1.15rem; min-width: 7.5rem; text-align: center; }
.rv-check { display: inline-flex; gap: .55rem; align-items: flex-start; cursor: pointer; max-width: 30rem; font-size: .95rem; line-height: 1.4; }
.rv-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--hot-pink); flex: none; }
.rv-check input:disabled + span { opacity: .8; }

.rv-kids { flex: 1 1 18rem; max-width: 26rem; }
.rv-price { margin-top: 1.1rem; border-top: 1px dashed rgba(255,255,255,.25); padding-top: .9rem; display: grid; gap: .25rem; max-width: 26rem; }
.rv-price div { display: flex; justify-content: space-between; gap: 1rem; }
.rv-price .rv-total { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--yellow); margin-top: .2rem; }

/* Calendar + timeline */
.rv-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .rv-cal-wrap { grid-template-columns: minmax(0, 1fr); } }
.rv-month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.rv-month-title { font-family: 'Fredoka One', cursive; font-size: 1.3rem; }
.rv-nav { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; border-radius: 50px; padding: .3rem .9rem; font-size: 1rem; cursor: pointer; }
.rv-nav:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.rv-nav:disabled { opacity: .3; cursor: not-allowed; }
.rv-nav:focus-visible, .rv-day:focus-visible, .rv-slot:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rv-dow { text-align: center; font-size: .75rem; font-weight: 800; color: var(--teal); padding: .2rem 0; }
.rv-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 2.6rem; border-radius: 12px; border: 2px solid transparent;
  background: rgba(255,255,255,.1); color: #fff; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem; cursor: pointer;
}
.rv-day:hover:not(:disabled) { border-color: var(--teal); }
.rv-day small { position: absolute; bottom: 3px; left: 0; right: 0; font-size: .56rem; font-weight: 700; opacity: .85; }
.rv-day.is-heat {
  background: hsla(var(--h), 68%, 30%, .78); border-color: hsla(var(--h), 80%, 55%, .55); text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.rv-day.is-heat:hover { border-color: #fff; }
.rv-day.lvl-full { background: repeating-linear-gradient(135deg, hsla(0, 70%, 32%, .9), hsla(0, 70%, 32%, .9) 7px, hsla(0, 70%, 26%, .9) 7px, hsla(0, 70%, 26%, .9) 14px); }
.rv-day .ic { position: absolute; top: 2px; right: 4px; font-size: .68rem; line-height: 1; }
.rv-day.is-soon { color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); cursor: not-allowed; }
.rv-day.is-closed {
  color: rgba(255,255,255,.35); cursor: not-allowed; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 6px, rgba(255,255,255,.01) 6px, rgba(255,255,255,.01) 12px);
}
/* Owner view (?viewBookings=1): non-bookable days become clickable and get a dashed outline */
.rv-day.is-soon:not(:disabled), .rv-day.is-closed:not(:disabled) { cursor: pointer; outline: 2px dashed rgba(255,215,0,.45); outline-offset: -3px; }
.rv-day.is-blank { visibility: hidden; }
.rv-day.is-today { box-shadow: inset 0 0 0 2px rgba(255,215,0,.55); }
.rv-day.is-selected { border-color: var(--yellow); background: linear-gradient(135deg, var(--hot-pink), var(--purple)); color: #fff; }
.rv-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; font-size: .78rem; color: rgba(255,255,255,.8); }
.rv-legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; margin-right: .35rem; vertical-align: -2px; border: 1px solid rgba(255,255,255,.3); }
.rv-legend i.rv-gradient { width: 4.5rem; height: .7rem; vertical-align: 0; background: linear-gradient(90deg, hsl(135,68%,30%), hsl(68,68%,30%), hsl(0,68%,30%)); }

.rv-timeline h3 { font-family: 'Fredoka One', cursive; font-size: 1.15rem; margin-bottom: .1rem; }
.rv-slots { margin-top: .8rem; display: grid; gap: 3px; max-height: 31rem; overflow-y: auto; padding-right: 4px; }
.rv-slot {
  display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: .6rem; text-align: left; min-height: 2.3rem; width: 100%;
  border-radius: 10px; border: 2px solid transparent; padding: .2rem .7rem; font: inherit; font-size: .88rem; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.1);
}
.rv-slot .t { font-weight: 800; }
.rv-slot:hover:not(:disabled):not(.is-chosen) { border-color: var(--teal); }
.rv-slot.is-free { background: rgba(0,212,224,.14); }
.rv-slot.is-tight { background: rgba(255,255,255,.07); color: rgba(255,255,255,.65); }
.rv-slot.is-buffer { background: repeating-linear-gradient(45deg, rgba(255,122,0,.2), rgba(255,122,0,.2) 6px, rgba(255,122,0,.08) 6px, rgba(255,122,0,.08) 12px); }
.rv-slot.is-taken { background: rgba(233,30,140,.35); cursor: not-allowed; }
.rv-slot.is-soon, .rv-slot.is-closed { opacity: .45; cursor: not-allowed; background: rgba(255,255,255,.04); }
.rv-slot.is-chosen { background: linear-gradient(135deg, var(--hot-pink), var(--purple)); border-color: var(--yellow); }
.rv-manual { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,.25); }

/* Form */
.rv-form { display: grid; gap: 1rem; }
.rv-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .9rem 1.1rem; }
.rv-field { display: grid; gap: .3rem; align-content: start; }
.rv-field.wide { grid-column: 1 / -1; }
.rv-field label, .rv-label { font-weight: 800; font-size: .9rem; }
.rv input[type=text], .rv input[type=tel], .rv input[type=email], .rv input[type=number], .rv input[type=date], .rv select, .rv textarea {
  width: 100%; padding: .65rem .8rem; border-radius: 12px; border: 2px solid rgba(255,255,255,.22); background: rgba(0,0,0,.28);
  color: #fff; font: inherit; font-size: 1rem; color-scheme: dark;
}
.rv input:focus, .rv select:focus, .rv textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,224,.3); }
.rv [aria-invalid=true] { border-color: #ff6b6b !important; }
.rv-err { color: #ffb3b3; font-size: .82rem; min-height: 1em; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-selected {
  border: 2px dashed var(--teal); border-radius: 16px; padding: .8rem 1rem; background: rgba(0,212,224,.08); font-weight: 800;
}
.rv-selected.is-empty { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); background: transparent; font-weight: 600; }
.rv-submit {
  justify-self: start; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--hot-pink), var(--purple)); color: #fff;
  font-family: 'Fredoka One', cursive; font-size: 1.3rem; padding: .9rem 2.4rem; border-radius: 50px; box-shadow: 0 8px 30px rgba(233,30,140,.4);
  transition: transform .2s, box-shadow .2s;
}
.rv-submit:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(233,30,140,.6); }
.rv-submit:disabled { opacity: .5; cursor: not-allowed; }
.rv-submit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Messages */
.rv-banner { border-radius: 14px; padding: .8rem 1rem; font-weight: 700; line-height: 1.45; }
.rv-banner.warn { background: rgba(255,122,0,.2); border: 2px solid var(--orange); }
.rv-banner.err { background: rgba(255,80,80,.2); border: 2px solid #ff6b6b; }
.rv-banner.ok { background: rgba(0,212,224,.15); border: 2px solid var(--teal); }
.rv-loading { text-align: center; padding: 2rem; font-family: 'Bubblegum Sans', cursive; font-size: 1.2rem; color: var(--teal); }
.rv-success { text-align: center; padding: 2rem 1.4rem; }
.rv-success h3 { font-family: 'Fredoka One', cursive; font-size: 2rem; color: var(--yellow); margin-bottom: .6rem; }
.rv-ref { display: inline-block; font-family: 'Fredoka One', cursive; font-size: 1.6rem; letter-spacing: .08em; color: var(--teal); border: 2px dashed var(--teal); border-radius: 14px; padding: .3rem 1rem; margin: .5rem 0 1rem; }
.rv-success p { margin: .5rem auto; max-width: 36rem; line-height: 1.55; }
.rv-live { font-size: .75rem; color: rgba(255,255,255,.55); text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pkg-select {
  display: inline-block; margin: 0 0 1.2rem; padding: .55rem 1.3rem; border-radius: 50px; text-decoration: none; color: #fff;
  font-family: 'Fredoka One', cursive; background: linear-gradient(135deg, var(--hot-pink), var(--purple));
}
.pkg-select:hover { filter: brightness(1.15); }

@media (prefers-reduced-motion: reduce) { .rv * { transition: none !important; } }
