/* ============================================================================
   Balloon Gram — booking modal, Balloon Box style switcher, first-visit popup.
   Uses the brand tokens already defined in index.html (--pink, --teal, …).
   ========================================================================= */

/* ── Balloon Box style switcher (#balloon-box on the homepage) ───────────── */
.bb-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 4px;
}
.bb-tab {
  font-family: inherit; font-weight: 800; font-size: .84rem;
  color: #6b7280; background: #fff;
  border: 2px solid #ececec; border-radius: 50px;
  padding: 9px 16px; cursor: pointer; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.bb-tab:hover { border-color: #d8d8d8; color: var(--dark); }
.bb-tab.active {
  background: var(--dark); border-color: var(--dark); color: #fff;
  transform: translateY(-1px);
}
.bb-cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Artwork panel cross-fades between styles. */
.bb-image img { transition: opacity .18s ease; }
/* Portrait poster art shouldn't be cropped to the landscape frame. */
.bb-image.fit-contain {
  background: linear-gradient(135deg, #1e2a3a 0%, #2d1b4e 55%, #1e2a3a 100%);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
}
.bb-image.fit-contain img {
  object-fit: contain;
  max-height: 460px;
  width: auto; max-width: 100%;
  box-shadow: none;
  border-radius: 14px;
}

/* ── Nav spacing ────────────────────────────────────────────────────────────
   The nav is justify-content: space-between, which on wide screens is fine but
   leaves the links crowding the "Balloon Gram" wordmark once the logo text is
   long. A flex gap enforces a minimum breathing space regardless of width. */
nav { gap: 20px; }
@media (min-width: 940px) {
  nav { gap: 32px; }
  .nav-logo  { margin-right: 8px; }
  .nav-links { gap: 26px; }
}

/* ── Nav cart button ────────────────────────────────────────────────────── */
.bg-cart {
  position: relative; flex-shrink: 0;
  width: 40px; height: 40px; margin-left: auto; margin-right: 10px;
  border: none; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--dark); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.bg-cart:hover { background: rgba(255,107,168,.12); color: var(--pink); }
.bg-cart.has-items { color: var(--pink); }
.bg-cart-count {
  position: absolute; top: 1px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 50px; background: var(--pink); color: #fff;
  font-size: .68rem; font-weight: 900; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
/* The hamburger sits to its right on mobile, so don't double up the margin. */
@media (max-width: 939px) { .bg-cart { margin-right: 4px; } }

/* ── Shared overlay ─────────────────────────────────────────────────────── */
.bg-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18, 24, 34, .68);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .25s;
  overflow-y: auto;
}
.bg-overlay.open { opacity: 1; pointer-events: auto; }

/* ── First-visit popup ──────────────────────────────────────────────────── */
.popup-card {
  background: #fff; border-radius: 24px; max-width: 440px; width: 100%;
  overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.32);
  transform: translateY(14px) scale(.97); transition: transform .28s;
  position: relative;
}
.bg-overlay.open .popup-card { transform: none; }

/* ── Paginated slides — one box at a time ───────────────────────────────── */
.popup-slides { display: flex; transition: transform .42s cubic-bezier(.4,0,.2,1); }
.popup-slide  { flex: 0 0 100%; min-width: 0; }

.popup-kicker {
  display: inline-block;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 50px;
}

/* Photo-led banner: artwork fills the panel, kicker floats over it. */
.popup-banner.has-img {
  padding: 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e2a3a 0%, #2d1b4e 55%, #1e2a3a 100%);
}
.popup-img {
  display: block; width: 100%; height: 260px;
  object-fit: cover; object-position: center 52%;
}
/* Portrait poster art (Boo Box): fit the whole thing rather than cropping its
   own title out of frame. The dark panel behind it matches the artwork. */
.popup-banner.fit-contain .popup-img {
  object-fit: contain; object-position: center; padding: 10px 0;
}
.popup-banner.has-img .popup-kicker {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

.popup-body { padding: 24px 28px 20px; text-align: center; }
.popup-body h3 {
  font-family: 'Pacifico', cursive; font-size: 1.6rem; color: var(--dark);
  margin-bottom: 10px; line-height: 1.25;
}
.popup-body p { font-size: .93rem; color: #666; line-height: 1.7; margin-bottom: 18px; }
.popup-actions { display: flex; flex-direction: column; gap: 9px; }
.popup-actions .bk-btn { width: 100%; text-align: center; text-decoration: none; }

.popup-arrow {
  position: absolute; top: 130px; transform: translateY(-50%); z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(18,24,34,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
  transition: background .18s, border-color .18s;
}
.popup-arrow:hover { background: rgba(18,24,34,.82); border-color: rgba(255,255,255,.6); }
.popup-arrow.prev { left: 12px; }
.popup-arrow.next { right: 12px; }

.popup-foot {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 4px 30px 22px; text-align: center;
}
.popup-dots { display: flex; gap: 7px; }
.popup-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
  cursor: pointer; background: #dcdcdc; transition: background .2s, width .2s;
}
.popup-dot.on { background: var(--pink); width: 20px; border-radius: 50px; }
.popup-dismiss {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: .85rem; color: #999; font-weight: 700; padding: 4px;
}
.popup-dismiss:hover { color: var(--dark); }
.popup-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.popup-close:hover { background: rgba(255,255,255,.34); }
/* On a light header the white-on-white default would be invisible. */
.popup-close.dark { background: #f0f0f0; color: #888; }
.popup-close.dark:hover { background: #e2e2e2; color: var(--dark); }

/* ── Booking modal ──────────────────────────────────────────────────────── */
.bk-card {
  background: #fff; border-radius: 24px; width: 100%; max-width: 720px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32); overflow: hidden;
  transform: translateY(14px) scale(.985); transition: transform .28s;
  margin: auto;
}
.bg-overlay.open .bk-card { transform: none; }

.bk-head {
  background: linear-gradient(135deg, var(--pink) 0%, var(--teal) 100%);
  padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.bk-head h3 { color: #fff; font-size: 1.15rem; font-weight: 900; }
.bk-head .bk-step-label { color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 700; }
.bk-close {
  background: rgba(255,255,255,.22); border: none; color: #fff; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bk-close:hover { background: rgba(255,255,255,.4); }

.bk-progress { display: flex; height: 4px; background: #f0f0f0; }
.bk-progress span { flex: 1; background: #f0f0f0; transition: background .3s; }
.bk-progress span.on { background: var(--teal); }

.bk-body { padding: 24px 26px 26px; max-height: 66vh; overflow-y: auto; }
.bk-step { display: none; }
.bk-step.on { display: block; }

.bk-legend {
  font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.bk-legend + .bk-legend, .bk-group + .bk-legend { margin-top: 26px; }
.bk-group { display: flex; flex-direction: column; gap: 10px; }

/* selectable service tile */
.bk-tile {
  border: 2px solid #ececec; border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: border-color .18s, background .18s;
  display: flex; align-items: flex-start; gap: 12px; background: #fff;
}
.bk-tile:hover { border-color: #d8d8d8; }
.bk-tile.on { border-color: var(--teal); background: rgba(62,201,192,.06); }
.bk-tile.disabled { opacity: .5; cursor: not-allowed; background: #fafafa; }
.bk-tile input { margin-top: 3px; accent-color: var(--teal); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.bk-tile-main { flex: 1; min-width: 0; }
.bk-tile-name { font-weight: 800; color: var(--dark); font-size: .96rem; }
.bk-tile-desc { font-size: .82rem; color: #777; line-height: 1.55; margin-top: 3px; }
.bk-tile-price { font-weight: 900; color: var(--dark); font-size: .9rem; white-space: nowrap; }
.bk-tile-note {
  display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 800;
  color: #a07800; background: rgba(255,217,90,.28); padding: 3px 9px; border-radius: 50px;
}

/* stepper for hours / 15-min blocks */
.bk-stepper { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bk-stepper label { font-size: .82rem; color: #666; font-weight: 700; flex: 1; }
.bk-step-btn {
  width: 30px; height: 30px; border-radius: 9px; border: 2px solid #e4e4e4;
  background: #fff; cursor: pointer; font-weight: 900; color: var(--dark); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.bk-step-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.bk-step-btn:disabled { opacity: .35; cursor: not-allowed; }
.bk-step-val { min-width: 74px; text-align: center; font-weight: 900; color: var(--dark); font-size: .9rem; }

/* box type picker */
.bk-boxpick { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 4px; }
@media (min-width: 560px) { .bk-boxpick { grid-template-columns: repeat(3, 1fr); } }
.bk-boxopt {
  border: 2px solid #ececec; border-radius: 13px; padding: 12px 11px; cursor: pointer;
  text-align: center; transition: border-color .18s, background .18s; background: #fff;
}
.bk-boxopt:hover { border-color: #d8d8d8; }
.bk-boxopt.on { border-color: var(--purple); background: rgba(167,139,250,.08); }
.bk-boxopt-emoji { font-size: 1.5rem; }
.bk-boxopt-name  { font-weight: 800; font-size: .82rem; color: var(--dark); margin-top: 4px; }
.bk-boxopt-desc  { font-size: .7rem; color: #888; line-height: 1.45; margin-top: 3px; }

.bk-boxrow { border: 1px solid #eee; border-radius: 14px; padding: 13px 15px; }
.bk-boxrow + .bk-boxrow { margin-top: 10px; }
.bk-boxrow-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 800; font-size: .88rem; color: var(--dark); margin-bottom: 9px;
}
.bk-boxrow-tag {
  font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(62,201,192,.16); color: #1f8f88; padding: 3px 9px; border-radius: 50px;
}

/* form fields */
.bk-field { margin-bottom: 14px; }
.bk-field label { display: block; font-size: .8rem; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.bk-field label .req { color: var(--pink); }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; padding: 11px 13px; border: 2px solid #ececec; border-radius: 11px;
  font-family: inherit; font-size: .92rem; color: var(--dark); background: #fff;
  transition: border-color .18s;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus {
  outline: none; border-color: var(--teal);
}
.bk-field textarea { resize: vertical; min-height: 74px; }
.bk-row2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .bk-row2 { grid-template-columns: 1fr 1fr; } }

/* summary */
.bk-sum { border: 1px solid #eee; border-radius: 15px; overflow: hidden; }
.bk-sumline {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 16px; border-bottom: 1px dashed #eee; font-size: .89rem; color: #444;
}
.bk-sumline:last-child { border-bottom: none; }
.bk-sumline b { color: var(--dark); font-weight: 800; white-space: nowrap; }
.bk-sumline small { display: block; color: #999; font-size: .76rem; margin-top: 2px; }
.bk-sumline.free b { color: var(--teal); }
.bk-sumline.total {
  background: var(--soft); font-size: 1.05rem; font-weight: 900; color: var(--dark);
  border-top: 2px solid #eee;
}
.bk-sumline.total b { font-size: 1.2rem; }

.bk-perk {
  background: rgba(255,217,90,.18); border: 1px solid rgba(255,217,90,.5);
  border-radius: 13px; padding: 12px 15px; margin-top: 13px;
  font-size: .85rem; color: #7a5c00; font-weight: 700; line-height: 1.6;
}

.bk-note { font-size: .78rem; color: #999; line-height: 1.6; margin-top: 12px; text-align: center; }

/* inquiry / error banners */
.bk-alert {
  border-radius: 13px; padding: 13px 16px; font-size: .86rem; line-height: 1.65;
  margin-bottom: 16px; display: none;
}
.bk-alert.on { display: block; }
.bk-alert.info  { background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.4); color: #5b3fa8; }
.bk-alert.error { background: rgba(255,107,168,.1); border: 1px solid rgba(255,107,168,.4); color: #b3245e; }
.bk-alert ul { margin: 7px 0 0; padding-left: 18px; }
.bk-alert li { margin-bottom: 4px; }

/* footer actions */
.bk-foot {
  padding: 16px 26px 20px; border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  background: #fff;
}
.bk-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 900; font-size: .92rem;
  padding: 13px 26px; border-radius: 50px; transition: transform .18s, box-shadow .18s, opacity .18s;
}
.bk-btn:disabled { opacity: .55; cursor: not-allowed; }
.bk-btn-primary { background: var(--pink); color: #fff; flex: 1; }
.bk-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,168,.42); }
.bk-btn-ghost { background: none; color: #888; padding: 13px 16px; }
.bk-btn-ghost:hover { color: var(--dark); }
.bk-btn-outline {
  background: none; color: var(--pink); border: 2px solid var(--pink);
  padding: 11px 24px; display: inline-block;
}
.bk-btn-outline:hover { background: rgba(255,107,168,.08); }

/* confirmation */
.bk-done { text-align: center; padding: 14px 0 6px; }
.bk-done-mark {
  width: 62px; height: 62px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 1.9rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.bk-done h4 { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: var(--dark); margin-bottom: 10px; }
.bk-done p  { font-size: .93rem; color: #666; line-height: 1.7; }

/* spinner */
.bk-spin {
  display: inline-block; width: 13px; height: 13px; margin-right: 7px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: bkspin .7s linear infinite; vertical-align: -2px;
}
@keyframes bkspin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .bg-overlay { padding: 0; align-items: stretch; }
  .bk-card    { border-radius: 0; max-width: none; min-height: 100%; }
  .bk-body    { max-height: none; flex: 1; }
  .bk-foot    { position: sticky; bottom: 0; }
}
