/*==============================================================================
  Booking widget — four sections: Client Information, Property Details,
  Estimate, Checkout.

  Same black / white / yellow system as the rest of the site; this file
  only owns the widget's internals. Loaded after css/style.css so it can
  lean on the tokens declared there.
==============================================================================*/

.bk {
  max-width: 780px;
  margin: 0 auto;
}

/*------------------------------------------------------------------
  Step indicator
------------------------------------------------------------------*/
.bk-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 32px;
}

.bk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bk-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: var(--t);
}
.bk-step.active .bk-num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
}
.bk-step.done .bk-num {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--primary);
}

.bk-name {
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  transition: var(--t);
}
.bk-step.active .bk-name { color: var(--ink); }
.bk-step.done .bk-name { color: var(--ink-2); }

.bk-bar {
  flex: 1;
  max-width: 70px;
  height: 2px;
  background: var(--line-2);
  margin: 18px 6px 0;
  transition: background var(--t);
}
.bk-bar.done { background: var(--dark); }

/*------------------------------------------------------------------
  Panels + cards
------------------------------------------------------------------*/
.bk-panel { display: none; }
.bk-panel.active { display: block; animation: bkIn 0.3s var(--ease); }

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

.bk-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
}

.bk-card-title {
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dkr);
  margin: 0 0 6px;
}
.bk-card-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 22px;
}

/*------------------------------------------------------------------
  Fields
------------------------------------------------------------------*/
.bk-field { margin-bottom: 18px; }
.bk-field:last-child { margin-bottom: 0; }

.bk-field > label {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.bk-field > label .opt {
  font-weight: 400;
  color: var(--muted);
}

.bk-field input,
.bk-field select,
.bk-field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 214, 53, 0.28);
}
.bk-field input.err,
.bk-field select.err,
.bk-field textarea.err {
  border-color: #d94141;
  background: #fffafa;
}

.bk-hint {
  display: none;
  font-size: 0.82rem;
  color: #b3261e;
  margin-top: 6px;
}
.bk-hint.show { display: block; }

.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 560px) { .bk-row { grid-template-columns: 1fr; } }

/*------------------------------------------------------------------
  Selectable option cards
------------------------------------------------------------------*/
.bk-opts { display: grid; gap: 9px; }
.bk-opts.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .bk-opts.cols2 { grid-template-columns: 1fr; } }

.bk-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.bk-opt:hover { border-color: var(--ink-2); }
.bk-opt:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Real input kept in the DOM for keyboard + form semantics, visually hidden */
.bk-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.bk-opt .tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.bk-opt .tick::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  transition: var(--t);
}
.bk-opt.sel { border-color: var(--dark); background: #fffdf3; box-shadow: var(--shadow-s); }
.bk-opt.sel .tick { border-color: var(--dark); }
.bk-opt.sel .tick::after { background: var(--primary-dk); }

/* Checkbox variant (multi-select) */
.bk-opt.check .tick { border-radius: 5px; }
.bk-opt.check .tick::after { border-radius: 2px; }

/* block, so the sub-line sits under the label rather than running on
   after it — these are inline spans in the markup */
.bk-opt-main {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.35;
}
.bk-opt-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

/* Service-specific blocks toggle on selection */
.bk-svc-block { display: none; }
.bk-svc-block.active { display: block; }

/*------------------------------------------------------------------
  Estimate
------------------------------------------------------------------*/
.bk-est {
  background: var(--dark);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
  color: #fff;
}
.bk-est-tag {
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.bk-est-range {
  font-family: "Roboto", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}
.bk-est-range .plus {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
}
.bk-est-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.bk-est-lines {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
  margin-bottom: 16px;
}
.bk-est-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  padding: 5px 0;
}
.bk-est-line span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }

.bk-est-spec {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}
.bk-est-spec .r { display: flex; justify-content: space-between; gap: 16px; }
.bk-est-spec .r span:last-child { color: rgba(255, 255, 255, 0.9); font-weight: 600; text-align: right; }

/* On-site-quote variant */
.bk-visit {
  background: var(--primary-tint);
  border: 1px solid rgba(253, 214, 53, 0.7);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
}
.bk-visit h4 { margin: 0 0 10px; font-size: 1.15rem; }
.bk-visit p { margin: 0; color: #5c4a00; font-size: 0.95rem; line-height: 1.65; }

/*------------------------------------------------------------------
  Checkout
------------------------------------------------------------------*/
.bk-pay-opt {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
  background: var(--white);
  transition: var(--t);
}
.bk-pay-opt.sel { border-color: var(--dark); background: #fffdf3; box-shadow: var(--shadow-s); }

/* Deposits switched off: still visible so the layout can be reviewed,
   but visibly not available. See PAYMENTS_ENABLED in js/booking.js. */
.bk-pay-opt.is-off { opacity: 0.55; }
.bk-pay-opt.is-off h5::after {
  content: "Coming soon";
  display: inline-block;
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--light);
  border: 1px solid var(--line-2);
  font-family: "Open Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}
.bk-pay-opt h5 { margin: 0 0 5px; font-size: 1rem; }
.bk-pay-opt p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

.bk-pay-btns { display: grid; gap: 10px; margin-top: 16px; }

.bk-btn-pay {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--t);
}
.bk-btn-pay:disabled { opacity: 0.45; cursor: not-allowed; }

/* NB: the modifier is `is-card`, not a bare `card` — that collides with
   Bootstrap's card component, which sets flex-direction:column and stacks
   the button's label vertically. */
.bk-btn-pay.is-card { background: var(--dark); color: var(--primary); }
.bk-btn-pay.is-card:hover:not(:disabled) { background: #000; transform: translateY(-2px); }

.bk-consent {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.bk-chk {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}
.bk-chk:last-child { margin-bottom: 0; }
.bk-chk input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--dark);
  cursor: pointer;
}
.bk-chk-text { font-size: 0.88rem; color: var(--ink-2); line-height: 1.6; }
.bk-chk-text strong { color: var(--ink); }

/*------------------------------------------------------------------
  Navigation buttons
------------------------------------------------------------------*/
.bk-btns { display: flex; gap: 10px; }
.bk-btns .bk-back { flex: 1; }
.bk-btns .bk-next { flex: 2; }

.bk-back,
.bk-next {
  padding: 15px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--t);
}
.bk-back {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.bk-back:hover { background: var(--light); border-color: var(--ink-2); }
.bk-next {
  background: var(--dark);
  color: var(--primary);
  border: 1px solid var(--dark);
}
.bk-next:hover:not(:disabled) { background: #000; transform: translateY(-2px); }
.bk-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.bk-err {
  display: none;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #fdecec;
  border: 1px solid #f2b8b8;
  color: #9b1c1c;
  font-size: 0.9rem;
}
.bk-err.show { display: block; }

/*------------------------------------------------------------------
  Success
------------------------------------------------------------------*/
.bk-success {
  display: none;
  text-align: center;
  padding: clamp(34px, 5vw, 52px) 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bk-success.show { display: block; }
.bk-success-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e8f7ec;
  color: #14622f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.bk-success h3 { margin-bottom: 12px; }
.bk-success p { color: var(--muted); font-size: 0.98rem; }
.bk-success .ref {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--light);
  border: 1px solid var(--line);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
