/* Booking screens in the Pro Sprinkler brand. Everything is scoped under .pb so the
   staff app (Routes, Settings) keeps its own look. Colors come from Settings > brand. */
.pb {
  --pb-slate: #304848; --pb-green: #2D7D32; --pb-blue: #0092BA; --pb-header: #F2F2F2;
  --pb-white: #fff; --pb-line: #dfe5e5; --pb-soft: #f6f8f8; --pb-muted: #5b6b6b; --pb-bad: #b42318;
  font-family: Mukta, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300; font-size: 18px; line-height: 1.45; color: var(--pb-slate);
  background: var(--pb-white); max-width: 720px; margin: 0 auto; min-height: 100%;
  display: flex; flex-direction: column;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb button { font: inherit; color: inherit; cursor: pointer; }
.pb a { color: var(--pb-blue); font-weight: 600; text-decoration: none; }
.pb a:hover { text-decoration: underline; }

.pb-preview { background: #fff4d6; color: #7a4b00; font-size: 14px; font-weight: 500; text-align: center; padding: 6px 12px; }
.pb-head { background: var(--pb-header); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.pb-logo { height: 44px; width: auto; display: block; }
.pb-mode { font-size: 13px; font-weight: 600; color: var(--pb-white); background: var(--pb-slate); border-radius: 999px; padding: 2px 10px; }
.pb-progress { height: 5px; background: var(--pb-line); }
.pb-progress span { display: block; height: 100%; background: var(--pb-green); transition: width .25s; }

.pb-main { flex: 1; padding: 20px 20px 28px; }
.pb h1 { font-weight: 800; color: var(--pb-blue); font-size: 30px; line-height: 1.15; margin: 4px 0 8px; letter-spacing: -.2px; }
.pb h2.pb-sub { font-weight: 800; font-size: 20px; color: var(--pb-slate); margin: 22px 0 10px; }
.pb-help { color: var(--pb-muted); margin: 0 0 18px; }
.pb-quiet { color: var(--pb-muted); font-size: 16px; margin: 16px 0; }
.pb-opt { color: var(--pb-muted); font-weight: 300; }
.pb-back { background: none; border: 0; padding: 4px 0; margin: 0 0 6px; color: var(--pb-muted); font-size: 16px; font-weight: 500; }
.pb-back:hover { color: var(--pb-slate); }
.pb-link { background: none; border: 0; padding: 0; color: var(--pb-blue) !important; font-weight: 600; text-decoration: underline; }

/* Buttons */
.pb-btn { display: block; width: 100%; margin-top: 22px; padding: 14px 18px; border: 0; border-radius: 999px;
  background: var(--pb-slate); color: var(--pb-white) !important; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.pb-btn-go { background: var(--pb-green); }
.pb-btn:hover { filter: brightness(1.08); }
.pb-btn[aria-disabled="true"], .pb-btn:disabled { opacity: .45; }
.pb-btn-small { width: auto; align-self: flex-start; display: inline-block; margin: 10px 0 0; padding: 8px 16px; font-size: 15px; }

/* Job cards */
.pb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--pb-white);
  border: 1.5px solid var(--pb-line); border-radius: 14px; padding: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pb-card:hover { border-color: var(--pb-green); box-shadow: 0 4px 14px rgba(48, 72, 72, .12); transform: translateY(-1px); }
.pb-card img, .pb-img-empty { width: 100%; height: 110px; object-fit: contain; display: block; margin-bottom: 8px; }
.pb-img-empty { background: var(--pb-soft); border-radius: 8px; }
.pb-card-text { display: flex; flex-direction: column; gap: 2px; }
.pb-card-name { font-weight: 800; font-size: 19px; line-height: 1.2; }
.pb-card-price { font-weight: 600; color: var(--pb-green); font-size: 16px; }
.pb-card-price em { font-style: normal; color: var(--pb-blue); display: block; font-size: .92em; }
.pb-card-blurb { font-size: 15px; color: var(--pb-muted); line-height: 1.35; margin-top: 2px; }
.pb-card-plan { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; border: 2.5px solid var(--pb-green); background: linear-gradient(135deg, #f3faf3, #fff 60%); padding: 16px; }
.pb-card-plan img, .pb-card-plan .pb-img-empty { width: 42%; max-width: 240px; height: 130px; margin: 0; }
.pb-card-plan .pb-card-name { font-size: 23px; }
.pb-card-plan .pb-card-price { font-size: 18px; }
.pb-badge { position: absolute; top: -11px; left: 14px; background: var(--pb-green); color: var(--pb-white); font-size: 13px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; }

/* Choices */
.pb-choices { display: grid; gap: 10px; }
.pb-choices-4 { grid-template-columns: repeat(4, 1fr); }
.pb-choices-2 { grid-template-columns: 1fr 1fr; }
.pb-choice { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; text-align: center;
  border: 1.5px solid var(--pb-line); background: var(--pb-white); border-radius: 12px; padding: 14px 10px; }
.pb-choice b { font-weight: 800; font-size: 20px; }
.pb-choice span { font-size: 15px; color: var(--pb-muted); line-height: 1.3; }
.pb-choices-2 .pb-choice b { font-size: 18px; }
.pb-choice-wide { width: 100%; margin-top: 10px; flex-direction: row; gap: 10px; }
.pb-choice-wide b { font-size: 18px; }
.pb-choice:hover, .pb-chip:hover, .pb-part:hover, .pb-time:hover { border-color: var(--pb-green); }
.pb-choice.on, .pb-chip.on, .pb-part.on, .pb-time.on { border-color: var(--pb-green); background: #eef7ee; box-shadow: inset 0 0 0 1px var(--pb-green); }
.pb-choice.on span { color: var(--pb-slate); }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip { border: 1.5px solid var(--pb-line); background: var(--pb-white); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 500; }

/* Parts picker */
.pb-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pb-part { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--pb-line);
  background: var(--pb-white); border-radius: 12px; padding: 12px 6px 10px; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; }
.pb-part svg { width: 54px; height: 54px; }
.pb-part.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: var(--pb-white); background: var(--pb-green);
  width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 20px; text-align: center; }

/* Fields */
.pb-field { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.pb-field input, .pb-field textarea { font: inherit; font-weight: 400; font-size: 18px; color: var(--pb-slate); border: 1.5px solid #c9d3d3; border-radius: 10px;
  padding: 11px 12px; background: var(--pb-white); width: 100%; }
.pb-field input:focus, .pb-field textarea:focus { outline: 3px solid rgba(0, 146, 186, .25); border-color: var(--pb-blue); }
.pb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-row .pb-zip { max-width: 160px; }

/* Times */
.pb-times { display: flex; flex-direction: column; gap: 10px; }
.pb-time { display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; border: 1.5px solid var(--pb-line);
  background: var(--pb-white); border-radius: 14px; padding: 14px 18px; }
.pb-time-date { font-weight: 800; font-size: 21px; }
.pb-time-win { font-weight: 500; color: var(--pb-green); font-size: 18px; }
.pb-time-staff { font-size: 14px; color: var(--pb-muted); margin-top: 2px; }
.pb-spinner { width: 42px; height: 42px; border: 4px solid var(--pb-line); border-top-color: var(--pb-green); border-radius: 50%; margin: 30px auto; animation: pbspin .8s linear infinite; }
@keyframes pbspin { to { transform: rotate(360deg); } }

/* Notes, upsell, review, done */
.pb-note { background: var(--pb-soft); border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 16px; }
.pb-upsell { display: flex; flex-direction: column; background: #eef7ee; border: 1.5px solid #b7dcb9; border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 16px; }
.pb-upsell-quiet { background: #f1f8fb; border-color: #bfe1ec; }
.pb-error { margin-top: 14px; color: var(--pb-bad); background: #fdf0ef; border-radius: 10px; padding: 10px 14px; font-size: 16px; font-weight: 500; }
.pb-review { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 8px 0 0; font-size: 17px; }
.pb-review dt { font-weight: 800; }
.pb-review dd { margin: 0; }
.pb-done-head { display: flex; align-items: center; gap: 12px; }
.pb-check { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--pb-green); color: var(--pb-white); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.pb-booking { font-size: 20px; font-weight: 500; margin: 10px 0 4px; padding: 14px 18px; border-left: 5px solid var(--pb-green); background: var(--pb-soft); border-radius: 0 12px 12px 0; }
.pb-expect { font-size: 17px; }
.pb-expect p { margin: 6px 0; }
.pb-expect ul { margin: 6px 0; padding-left: 22px; }
.pb-checklist { list-style: none; padding-left: 0 !important; }
.pb-checklist li { padding-left: 28px; position: relative; margin: 4px 0; }
.pb-checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--pb-green); font-weight: 800; }
.pb-foot { text-align: center; font-size: 15px; color: var(--pb-muted); padding: 14px 16px 22px; border-top: 1px solid var(--pb-line); }

@media (max-width: 560px) {
  .pb { font-size: 17px; }
  .pb h1 { font-size: 26px; }
  .pb-main { padding: 16px 16px 24px; }
  .pb-cards { grid-template-columns: 1fr; }
  .pb-card { flex-direction: row; align-items: center; gap: 12px; }
  .pb-card img, .pb-img-empty { width: 92px; height: 92px; flex: none; margin: 0; }
  .pb-card-plan img, .pb-card-plan .pb-img-empty { width: 110px; height: 110px; }
  .pb-card-plan .pb-card-name { font-size: 21px; }
  .pb-choices-4 { grid-template-columns: 1fr 1fr; }
  .pb-choices-2 { grid-template-columns: 1fr; }
  .pb-parts { grid-template-columns: repeat(3, 1fr); }
  .pb-review { grid-template-columns: 1fr; gap: 2px; }
  .pb-review dd { margin-bottom: 10px; }
  .pb-logo { height: 36px; }
}

/* ---- Staff mode: customer search, history, overrides ---- */
.pb-field select { font: inherit; font-weight: 400; font-size: 17px; color: var(--pb-slate); border: 1.5px solid #c9d3d3; border-radius: 10px; padding: 10px 12px; background: var(--pb-white); width: 100%; }
.pb-results { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 8px; }
.pb-result { display: flex; flex-direction: column; text-align: left; border: 1.5px solid var(--pb-line); background: var(--pb-white); border-radius: 10px; padding: 8px 12px; }
.pb-result:hover { border-color: var(--pb-green); background: #f3faf3; }
.pb-result span { font-size: 15px; color: var(--pb-muted); }
.pb-new { margin-top: 4px; }
.pb-cust { border: 1.5px solid var(--pb-green); background: #f3faf3; border-radius: 12px; padding: 12px 14px; }
.pb-cust-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pb-cust-top span { font-size: 15px; color: var(--pb-muted); }
.pb-hist { margin-top: 10px; font-size: 15px; }
.pb-hist-h { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--pb-muted); margin-bottom: 4px; }
.pb-hist-row { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid #d9eadb; }
.pb-hist-row em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pb-white); background: var(--pb-blue); border-radius: 999px; padding: 0 6px; }
.pb-ovbtn { display: inline-block; margin-top: 14px; font-size: 16px; }
.pb-ovform { margin-top: 18px; border: 1.5px dashed #e0a43a; background: #fffaf0; border-radius: 12px; padding: 6px 16px 16px; }
.pb-ovform h2.pb-sub { margin-top: 8px; color: #8a5300; }
.pb-ov { color: #8a5300; font-weight: 600; }
.pb-ovnote { background: #fff4d6; color: #7a4b00; }
.pb-by { margin-top: 18px; max-width: 360px; }
@media (max-width: 560px) { .pb-hist-row { grid-template-columns: 1fr; gap: 0; padding: 6px 0; } }

/* Spam trap: invisible to people, tempting to bots. */
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-closed { padding: 36px 24px 44px; text-align: center; }
.pb-closed p { font-size: 19px; }
