/* Booking page animations (animation only — no colour or layout changes).
   Loaded after booking-gold.css. Everything is switched off for people who prefer reduced motion. */

/* ---------- each step slides in; its contents rise one by one ---------- */
html body.bk-gold .booking-step:not(.hidden) { animation: bk-step-in .55s cubic-bezier(.2,.8,.2,1) both; }
html body.bk-gold .booking-step:not(.hidden) > * { animation: bk-rise .6s cubic-bezier(.2,.8,.2,1) both; }
html body.bk-gold .booking-step:not(.hidden) > :nth-child(2) { animation-delay: .07s; }
html body.bk-gold .booking-step:not(.hidden) > :nth-child(3) { animation-delay: .14s; }
html body.bk-gold .booking-step:not(.hidden) > :nth-child(4) { animation-delay: .21s; }
html body.bk-gold .booking-step:not(.hidden) > :nth-child(5) { animation-delay: .28s; }
@keyframes bk-step-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- progress dots ---------- */
html body.bk-gold .step-dot.active { animation: bk-dot-pulse 2s ease-out infinite; }
html body.bk-gold .step-dot.done { animation: bk-dot-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bk-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,75,.55); } 70%,100% { box-shadow: 0 0 0 11px rgba(201,168,75,0); } }
@keyframes bk-dot-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* ---------- "Service: …" bar drops in with a gold sweep ---------- */
html body.bk-gold #chosen-service { position: relative; overflow: hidden; animation: bk-drop .55s cubic-bezier(.2,.9,.3,1.2) both; }
html body.bk-gold #chosen-service::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(232,212,139,.35), transparent); animation: bk-sweep 1.1s .25s ease both; }
@keyframes bk-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bk-sweep { from { left: -50%; } to { left: 130%; } }

/* ---------- service list ---------- */
html body.bk-gold .svc-item { position: relative; border-radius: 12px; animation: bk-item-in .6s cubic-bezier(.2,.8,.2,1) both;
  transition: background .2s, transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s, opacity .35s, filter .35s;
  -webkit-tap-highlight-color: transparent; }
html body.bk-gold .svc-item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: #C9A84B;
  transform: scaleY(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
html body.bk-gold .svc-ring { position: relative; transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s; }
html body.bk-gold .svc-ring img { transition: transform .5s ease; }
html body.bk-gold .svc-name { transition: letter-spacing .3s, color .3s; }
@keyframes bk-item-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
/* cascade: the two columns alternate down the list */
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(1) { animation-delay: .05s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(1) { animation-delay: .10s; }
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(2) { animation-delay: .15s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(2) { animation-delay: .20s; }
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(3) { animation-delay: .25s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(3) { animation-delay: .30s; }
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(4) { animation-delay: .35s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(4) { animation-delay: .40s; }
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(5) { animation-delay: .45s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(5) { animation-delay: .50s; }
html body.bk-gold .svc-col:nth-child(1) .svc-item:nth-child(n+6) { animation-delay: .55s; }
html body.bk-gold .svc-col:nth-child(2) .svc-item:nth-child(n+6) { animation-delay: .60s; }

@media (hover: hover) {
  html body.bk-gold .svc-item:hover { transform: translateX(5px); border-bottom-color: rgba(201,168,75,.7); }
  html body.bk-gold .svc-item:hover::before { transform: scaleY(1); }
  html body.bk-gold .svc-item:hover .svc-ring { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 5px rgba(201,168,75,.16), 0 0 22px rgba(201,168,75,.5); }
  html body.bk-gold .svc-item:hover .svc-ring img { transform: scale(1.18); }
  html body.bk-gold .svc-item:hover .svc-name { letter-spacing: .12em; }
}
html body.bk-gold .svc-item:focus-visible::before { transform: scaleY(1); }
html body.bk-gold .svc-item:active { transform: scale(.975); }

/* ---------- the moment a service is picked ---------- */
html body.bk-gold .svc-poster.is-picking { pointer-events: none; }
html body.bk-gold .svc-poster.is-picking .svc-item:not(.is-picked) { opacity: .2; filter: blur(1.4px); transform: scale(.96); }
html body.bk-gold .svc-item.is-picked { z-index: 2; transform: scale(1.035); background: rgba(201,168,75,.16);
  box-shadow: 0 0 0 1px rgba(201,168,75,.65), 0 12px 38px rgba(201,168,75,.3); animation: bk-picked-flash .7s ease both; }
html body.bk-gold .svc-item.is-picked::before { transform: scaleY(1); }
html body.bk-gold .svc-item.is-picked .svc-ring { animation: bk-ring-pop .6s cubic-bezier(.3,1.6,.5,1) both; box-shadow: 0 0 0 6px rgba(201,168,75,.2), 0 0 30px rgba(201,168,75,.7); }
html body.bk-gold .svc-item.is-picked .svc-ring::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #D4AF37, #C9A84B); color: #1a1405; font-size: 1.3rem; animation: bk-check .5s .1s cubic-bezier(.3,1.7,.5,1) both; }
html body.bk-gold .svc-item.is-picked .svc-name { background: linear-gradient(90deg, #C9A84B, #F1DE9B, #C9A84B); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: bk-shimmer 1s linear infinite; }
@keyframes bk-picked-flash { 0% { background: rgba(201,168,75,.5); } 100% { background: rgba(201,168,75,.16); } }
@keyframes bk-ring-pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1.12); } }
@keyframes bk-check { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0); } }
@keyframes bk-shimmer { from { background-position: 0 0; } to { background-position: -220% 0; } }

/* shockwave + sparkles (created by js/booking-anim.js) */
.bk-wave { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 2px solid #E8D48B; pointer-events: none; z-index: 4;
  animation: bk-wave .8s ease-out forwards; }
.bk-wave.w2 { animation-delay: .15s; }
@keyframes bk-wave { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.bk-spark { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #E8D48B; box-shadow: 0 0 8px #C9A84B; pointer-events: none; z-index: 5;
  animation: bk-spark .85s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bk-spark { from { transform: translate(0,0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.15); opacity: 0; } }

/* ---------- time slots ---------- */
html body.bk-gold #slot-grid > .slot-btn { animation: bk-pop .45s cubic-bezier(.3,1.5,.5,1) both; transition: all .15s, transform .2s; }
html body.bk-gold #slot-grid > .slot-btn:nth-child(1) { animation-delay: .02s; } html body.bk-gold #slot-grid > .slot-btn:nth-child(2) { animation-delay: .05s; }
html body.bk-gold #slot-grid > .slot-btn:nth-child(3) { animation-delay: .08s; } html body.bk-gold #slot-grid > .slot-btn:nth-child(4) { animation-delay: .11s; }
html body.bk-gold #slot-grid > .slot-btn:nth-child(5) { animation-delay: .14s; } html body.bk-gold #slot-grid > .slot-btn:nth-child(6) { animation-delay: .17s; }
html body.bk-gold #slot-grid > .slot-btn:nth-child(7) { animation-delay: .20s; } html body.bk-gold #slot-grid > .slot-btn:nth-child(8) { animation-delay: .23s; }
html body.bk-gold #slot-grid > .slot-btn:nth-child(n+9) { animation-delay: .26s; }
@keyframes bk-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { html body.bk-gold .slot-btn:hover:not(:disabled) { transform: translateY(-3px); } }
html body.bk-gold .slot-btn:active:not(:disabled) { transform: scale(.94); }
html body.bk-gold .slot-btn.selected { animation: bk-select-bounce .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bk-select-bounce { 0% { transform: scale(.9); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
html body.bk-gold #btn-to-details:not(:disabled) { animation: bk-nudge 1.4s ease-in-out 3; }
@keyframes bk-nudge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ---------- buttons: shine + press ---------- */
html body.bk-gold .booking-step button { transition: transform .2s, box-shadow .25s, background-color .2s, opacity .2s; }
html body.bk-gold .booking-step button:active:not(:disabled) { transform: scale(.97); }
html body.bk-gold .booking-step button.bg-medical-600 { position: relative; overflow: hidden; }
html body.bk-gold .booking-step button.bg-medical-600::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); }
@media (hover: hover) {
  html body.bk-gold .booking-step button.bg-medical-600:hover:not(:disabled) { transform: translateY(-2px); }
  html body.bk-gold .booking-step button.bg-medical-600:hover:not(:disabled)::after { animation: bk-shine .8s ease; }
}
html body.bk-gold .booking-step button:disabled { transition: opacity .3s; }
@keyframes bk-shine { from { left: -60%; } to { left: 130%; } }

/* ---------- success screen ---------- */
html body.bk-gold #step-success > div:first-child { position: relative; animation: bk-success-pop .8s cubic-bezier(.3,1.6,.5,1) both; }
html body.bk-gold #step-success > div:first-child::before,
html body.bk-gold #step-success > div:first-child::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: bk-success-ring 2s ease-out infinite; }
html body.bk-gold #step-success > div:first-child::after { animation-delay: 1s; }
@keyframes bk-success-pop { 0% { transform: scale(0) rotate(-120deg); } 100% { transform: none; } }
@keyframes bk-success-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html body.bk-gold *, html body.bk-gold *::before, html body.bk-gold *::after { animation: none !important; }
  .bk-wave, .bk-spark { display: none !important; }
}
