.gbk-wrap{max-width:720px;margin:18px 0;padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.gbk-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gbk-grid label{display:flex;flex-direction:column;font-weight:700;font-size:14px;gap:6px}
.gbk-grid input,.gbk-grid select,.gbk-grid textarea{padding:10px;border:1px solid #e5e7eb;border-radius:10px;font-weight:600}
.gbk-btn{margin-top:12px;padding:10px 14px;border:0;border-radius:12px;background:#111827;color:#fff;font-weight:800;cursor:pointer}
.gbk-msg{margin-top:10px;font-weight:700}
@media(max-width:640px){.gbk-grid{grid-template-columns:1fr}}

.gbk-small{display:block;margin-top:6px;font-size:12px;color:#6b7280;font-weight:600}

.gbk-addons{padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}
.gbk-addons-title{font-weight:900;margin-bottom:8px}
.gbk-addons-list{display:flex;flex-wrap:wrap;gap:10px}
.gbk-addon-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;font-weight:700}
.gbk-addon-item small{font-weight:700;color:#64748b}

@media(max-width:480px){
  .gbk-wrap{margin:10px 0;padding:12px;border-radius:12px}
  .gbk-grid input,.gbk-grid select,.gbk-grid textarea{padding:12px;font-size:16px}
  .gbk-btn{width:100%;padding:12px 14px;font-size:16px}
  .gbk-addon-item{width:100%;justify-content:space-between;border-radius:12px}
  .gbk-addons-list{flex-direction:column;align-items:stretch}
}


/* Phase 4A-1 Confirmation polish */
.gbk-confirm-card{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#fff;margin-top:12px}
.gbk-confirm-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gbk-confirm-title{font-weight:900;font-size:18px}
.gbk-confirm-id{font-weight:800;font-size:13px;opacity:.8}
.gbk-confirm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.gbk-k{font-size:12px;font-weight:800;opacity:.75;margin-bottom:2px}
.gbk-v{font-size:14px;font-weight:700}
.gbk-confirm-note{margin-top:10px;padding-top:10px;border-top:1px dashed #e5e7eb}
.gbk-confirm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.gbk-btn-secondary{background:#fff;color:#111;border:1px solid #e5e7eb}
@media(max-width:480px){
  .gbk-confirm-grid{grid-template-columns:1fr}
  .gbk-confirm-actions .gbk-btn{width:100%}
}

/* Phase 4A-2 Mobile flow */
.gbk-inline-errors{margin-top:10px;padding:10px;border:1px solid #fecaca;background:#fff1f2;border-radius:14px;font-weight:800}
.gbk-inline-errors .gbk-small{font-weight:700;opacity:.9}
@media(max-width:480px){
  .gbk-stickybar{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:rgba(255,255,255,.96);border-top:1px solid #e5e7eb;padding:10px}
  .gbk-stickybar .gbk-btn{width:100%}
  body{padding-bottom:72px}
}

/* Phase 4A-3 Trust & feedback */
.gbk-banner{margin-top:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-radius:14px;border:1px solid #e5e7eb;background:#f9fafb;font-weight:900}
.gbk-banner.gbk-ok{border-color:#bbf7d0;background:#f0fdf4}
.gbk-banner.gbk-err{border-color:#fecaca;background:#fff1f2}
.gbk-loading{opacity:.7;pointer-events:none}
.gbk-spinner{display:inline-block;width:14px;height:14px;border:2px solid #e5e7eb;border-top-color:#111;border-radius:999px;vertical-align:-2px;margin-right:8px;animation:gbkspin .9s linear infinite}
@keyframes gbkspin{to{transform:rotate(360deg)}}


/* ================================
   GBK App-Style Booking (Phase 1)
   Opt-in via [gbk_booking style="app"]
   ================================ */

.gbk-booking-app{
  --gbk-primary:#2ec4b6;
  --gbk-secondary:#7b61ff;
  --gbk-bg:#f8fafc;
  --gbk-card:#ffffff;
  background:linear-gradient(180deg, rgba(46,196,182,0.10), rgba(123,97,255,0.06));
  border-radius:22px;
  padding:20px;
  box-shadow:0 16px 50px rgba(15,23,42,0.10);
}

/* Title */
.gbk-booking-app h3{
  font-size:20px;
  margin:0 0 14px 0;
  letter-spacing:-0.2px;
}

/* Grid becomes card-like sections */
.gbk-booking-app .gbk-grid{
  background:var(--gbk-card);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 28px rgba(15,23,42,0.06);
}

/* Labels + inputs */
.gbk-booking-app label{
  display:block;
  margin:0 0 12px 0;
  font-weight:600;
  color:#0f172a;
}

.gbk-booking-app input,
.gbk-booking-app select,
.gbk-booking-app textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.10);
  padding:12px 14px;
  margin-top:6px;
  background:rgba(248,250,252,0.9);
  transition:box-shadow .15s ease, transform .10s ease, border-color .15s ease;
}

/* Utility: visually hide inputs/selects while keeping them in DOM for submission */
.gbk-booking-app .gbk-visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Card selections (Services step) */
.gbk-booking-app .gbk-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}

.gbk-booking-app .gbk-option{
  display:flex;
  position:relative;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(248,250,252,0.95);
  border:1px solid rgba(15,23,42,0.10);
  font-weight:900;
  color:#0f172a;
  box-shadow:0 10px 22px rgba(15,23,42,0.05);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.gbk-booking-app .gbk-option:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 14px 30px rgba(15,23,42,0.08);
}

.gbk-booking-app .gbk-option.is-selected{
  border:2px solid var(--gbk-primary);
  background:linear-gradient(180deg, rgba(46,196,182,0.18), rgba(123,97,255,0.12));
  box-shadow:
    0 0 0 6px rgba(46,196,182,0.22),
    0 18px 40px rgba(15,23,42,0.12);
  transform:translateY(-1px) scale(1.02);
}

.gbk-booking-app .gbk-option.is-selected::after{
  content:"✓";
  position:absolute;
  top:10px;
  right:10px;
  width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--gbk-primary), var(--gbk-secondary));
  color:#ffffff;
  font-size:13px;
  line-height:1;
  box-shadow:0 10px 22px rgba(15,23,42,0.16);
}

@media (max-width: 520px){
  .gbk-booking-app .gbk-cards{ grid-template-columns:1fr; }
}

.gbk-booking-app input:focus,
.gbk-booking-app select:focus,
.gbk-booking-app textarea:focus{
  outline:none;
  border-color:rgba(46,196,182,0.75);
  box-shadow:0 0 0 4px rgba(46,196,182,0.18), 0 8px 22px rgba(123,97,255,0.10);
}

/* Buttons */
.gbk-booking-app button,
.gbk-booking-app .button,
.gbk-booking-app .gbk-button{
  background:linear-gradient(135deg, var(--gbk-primary), var(--gbk-secondary));
  color:#ffffff;
  border:none;
  border-radius:999px;
  padding:12px 18px;
  font-weight:800;
  letter-spacing:0.2px;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(123,97,255,0.22);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.gbk-booking-app button:hover,
.gbk-booking-app .button:hover,
.gbk-booking-app .gbk-button:hover{
  transform:translateY(-1px) scale(1.02);
  filter:saturate(1.05);
  box-shadow:0 16px 34px rgba(46,196,182,0.22);
}

/* ================================
   GBK App-Style Booking (Phase 2)
   Step wizard UI (JS-driven)
   ================================ */

.gbk-booking-app .gbk-stepper{
  margin:12px 0 16px 0;
}

.gbk-booking-app .gbk-stepper-top{
  display:flex;
  position:relative;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.gbk-booking-app .gbk-stepper-label{
  font-weight:900;
  color:#0f172a;
}

.gbk-booking-app .gbk-stepper-dots{
  display:flex;
  gap:6px;
}

.gbk-booking-app .gbk-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(15,23,42,0.12);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,0.7);
  cursor:pointer;
  transition:transform .12s ease, background .12s ease;
}
.gbk-booking-app .gbk-dot.is-active{
  background:linear-gradient(135deg, var(--gbk-primary), var(--gbk-secondary));
  transform:scale(1.15);
}
.gbk-booking-app .gbk-dot.is-done{
  background:rgba(46,196,182,0.70);
}

.gbk-booking-app .gbk-stepper-track{
  height:10px;
  border-radius:999px;
  background:rgba(15,23,42,0.08);
  overflow:hidden;
}

.gbk-booking-app .gbk-stepper-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--gbk-primary), var(--gbk-secondary));
  transition:width .25s ease;
}

.gbk-booking-app .gbk-wizard{
  position:relative;
}

.gbk-booking-app .gbk-step{
  display:none;
  animation:gbkStepIn .18s ease;
}

.gbk-booking-app .gbk-step.is-active{
  display:block;
}

.gbk-booking-app .gbk-step-title{
  font-weight:900;
  letter-spacing:-0.2px;
  margin:0 0 10px 0;
}

.gbk-booking-app .gbk-confirm-hint{
  background:linear-gradient(180deg, rgba(46,196,182,0.10), rgba(123,97,255,0.06));
  border:1px solid rgba(15,23,42,0.08);
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:12px;
}

.gbk-booking-app .gbk-confirm-hint-title{
  font-weight:900;
  margin-bottom:4px;
}

.gbk-booking-app .gbk-stepnav{
  display:flex;
  position:relative;
  align-items:center;
  gap:10px;
  margin-top:14px;
}

.gbk-booking-app .gbk-stepnav-spacer{ flex:1; }

/* Phase 3: Sticky bottom action bar (app-style only) */
.gbk-booking-app .gbk-appbar{
  margin-top:14px;
}
.gbk-booking-app .gbk-appbar-inner{
  display:flex;
  position:relative;
  align-items:center;
  gap:12px;
}
.gbk-booking-app .gbk-appbar-summary{
  min-width:0;
}
.gbk-booking-app .gbk-appbar-title{
  font-weight:900;
  font-size:14px;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gbk-booking-app .gbk-appbar-sub{
  font-weight:700;
  font-size:12px;
  color:#475569;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:2px;
}
.gbk-booking-app .gbk-appbar-actions{
  margin-top:0;
}
.gbk-booking-app .gbk-appbar-actions .gbk-btn{
  margin-top:0;
}
.gbk-booking-app .gbk-appbar-actions [data-gbk-next],
.gbk-booking-app .gbk-appbar-actions #gbk-submit{
  flex:1;
}
.gbk-booking-app .gbk-appbar-actions [data-gbk-back]{
  flex:0 0 auto;
}

@media (max-width: 768px){
  body.gbk-has-appbar{ padding-bottom: calc(var(--gbk-appbar-h, 92px) + 12px); }
  .gbk-booking-app .gbk-appbar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,0.92);
    border-top:1px solid rgba(15,23,42,0.10);
    backdrop-filter:blur(10px);
  }
  .gbk-booking-app .gbk-appbar-inner{
    max-width:720px;
    margin:0 auto;
    width:100%;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .gbk-booking-app .gbk-appbar-actions{
    display:flex;
    gap:10px;
    margin-left:auto;
    width:100%;
    flex-wrap:wrap;
  }
  .gbk-booking-app .gbk-appbar-summary{
    flex:1;
  }
  .gbk-booking-app .gbk-appbar-actions .gbk-btn{
    padding:12px 16px;
  }
  .gbk-booking-app .gbk-appbar-actions [data-gbk-next],
  .gbk-booking-app .gbk-appbar-actions #gbk-submit{
    flex: 1 1 160px;
    min-width: 160px;
  }
  .gbk-booking-app .gbk-appbar-actions [data-gbk-back]{
    flex: 0 0 auto;
    min-width: 96px;
  }
  @media (max-width: 380px){
    .gbk-booking-app .gbk-appbar-actions [data-gbk-next],
    .gbk-booking-app .gbk-appbar-actions #gbk-submit{
      min-width: 0;
      flex: 1 1 100%;
    }
  }
}

.gbk-booking-app .gbk-btn-secondary{
  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid rgba(15,23,42,0.12) !important;
  box-shadow:none !important;
}

.gbk-booking-app .gbk-btn-secondary:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 10px 24px rgba(15,23,42,0.08) !important;
}

.gbk-booking-app .gbk-shake{
  animation:gbkShake .33s ease;
}

@keyframes gbkStepIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes gbkShake{
  0%,100%{ transform:translateX(0); }
  20%{ transform:translateX(-6px); }
  40%{ transform:translateX(6px); }
  60%{ transform:translateX(-4px); }
  80%{ transform:translateX(4px); }
}

.gbk-booking-app button:active,
.gbk-booking-app .button:active,
.gbk-booking-app .gbk-button:active{
  transform:translateY(0) scale(0.99);
}

@media (max-width: 768px){
  .gbk-booking-app{
    padding:16px;
    border-radius:20px;
  }
  .gbk-booking-app .gbk-grid{
    padding:14px;
  }
  .gbk-booking-app input,
  .gbk-booking-app select,
  .gbk-booking-app textarea{
    padding:14px 14px;
  }
}

/* App-style add-on pills */
.gbk-booking-app .gbk-addons-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-top:8px;
}

.gbk-booking-app .gbk-addon-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:2px solid transparent;
  cursor:pointer;
  user-select:none;
  transition:transform .12s ease, box-shadow .12s ease;
}

.gbk-booking-app .gbk-addon-pill small{
  opacity:.75;
  font-size:12px;
}

.gbk-booking-app .gbk-addon-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
}

.gbk-booking-app .gbk-addon-pill.is-selected{
  background:#ecfdfb;
  border-color:rgba(46,196,182,0.7);
}

.gbk-booking-app .gbk-addon-pill:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(123,97,255,0.18);
}


/* App-style invalid field state */
.gbk-booking-app .gbk-invalid{outline:none; box-shadow: 0 0 0 3px rgba(123,97,255,.25); border-color: var(--gbk-secondary) !important;}


/* Required notes (app-style wizard) */
.gbk-booking-app .gbk-required-note{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.2px;
  background:rgba(123,97,255,0.12);
  color:#4b2cff;
  vertical-align:middle;
}

/* Lock navigation after confirmation */
.gbk-booking-app.gbk-booking-confirmed .gbk-stepper{
  opacity:0.85;
}
.gbk-booking-app.gbk-booking-confirmed .gbk-dot{
  pointer-events:none;
  opacity:0.55;
}

/* After confirmation, hide the primary action button (safety net) */
.gbk-booking-app.gbk-booking-confirmed .gbk-appbar-next{
  display:none !important;
}



/* Phase 4: success animation + restart CTA (app-style) */
.gbk-booking-app .gbk-confirm-card.gbk-phase4{
  border-color: rgba(46,196,182,0.35);
  box-shadow: 0 18px 44px rgba(15,23,42,0.08);
}

.gbk-booking-app .gbk-success-check{
  width:56px;
  height:56px;
  margin: 2px 0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(46,196,182,0.10);
}

.gbk-booking-app .gbk-success-check svg{
  width:40px;
  height:40px;
}

.gbk-booking-app .gbk-check-circle{
  stroke: rgba(123,97,255,0.55);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: gbkCheckCircle .7s ease forwards;
}

.gbk-booking-app .gbk-check-path{
  stroke: rgba(46,196,182,1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: gbkCheckPath .55s .25s ease forwards;
}

@keyframes gbkCheckCircle{ to{ stroke-dashoffset: 0; } }
@keyframes gbkCheckPath{ to{ stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce){
  .gbk-booking-app .gbk-check-circle,
  .gbk-booking-app .gbk-check-path{
    animation:none;
    stroke-dashoffset: 0;
  }
}
