/* Booking dialog in the site's warm workshop palette. */
.modal-backdrop:has(.bk-step) { background: #26190f70; backdrop-filter: blur(7px); padding: 24px; }
.modal:has(.bk-step) {
  --bk-ink: #382013;
  --bk-body: #684d3b;
  --bk-line: #dfcdb5;
  --glyph-light: #eed8bc;
  --glyph-deep: #ae704d;
  width: min(820px, 100%);
  max-width: 820px;
  max-height: calc(100dvh - 48px);
  border: 1px solid #dbc4a7;
  border-radius: 12px;
  background: #fffbf4;
  color: var(--bk-ink);
  box-shadow: 0 24px 90px #27190e35;
}
.modal:has(.bk-step) .modal-header {
  align-items: flex-start;
  gap: 20px;
  padding: 25px 30px 21px;
  background: #f5e7d3;
  border-bottom: 1px solid var(--bk-line);
}
.modal:has(.bk-step) .modal-header h2 {
  margin: 0;
  color: var(--bk-ink);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.modal:has(.bk-step) .modal-header p { margin-top: 9px; color: var(--bk-body); font-size: 16px; line-height: 1.45; }
.modal:has(.bk-step) .close-button { flex: 0 0 42px; width: 42px; height: 42px; min-width: 42px; background: #fff8ec; color: #5c3821; border: 1px solid #d8c0a1; border-radius: 6px; }
.modal:has(.bk-step) .modal-body { padding: 22px 30px 28px; background: #fffbf4; overscroll-behavior: contain; scrollbar-color: #c6a984 #fff7eb; }
.modal:has(.bk-step) .step-track { gap: 6px; margin: 0 0 20px; }
.modal:has(.bk-step) .step-track span { height: 4px; border-radius: 2px; background: #eaddc9; }
.modal:has(.bk-step) .step-track span.active { background: #8b472b; }
.modal:has(.bk-step) .choice-grid { gap: 11px; }
.modal:has(.bk-step) .choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0,1fr) 22px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 91px;
  padding: 12px;
  border: 1px solid var(--bk-line);
  border-radius: 7px;
  background: #fffaf1;
  color: var(--bk-ink);
  text-align: left;
}
.modal:has(.bk-step) .choice-card strong { color: var(--bk-ink); font-size: 17px; font-weight: 700; line-height: 1.3; }
.modal:has(.bk-step) .bk-service-art { display: grid; place-items: center; width: 74px; height: 65px; }
.modal:has(.bk-step) .bk-service-art img { width: 100%; height: 100%; object-fit: contain; }
.modal:has(.bk-step) .bk-select-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #c5a98b; border-radius: 50%; background: #fffdf8; }
.modal:has(.bk-step) .bk-select-mark .icon { width: 14px; height: 14px; opacity: 0; }
.modal:has(.bk-step) .choice-card.selected { border-color: #8a482a; background: #f5e5cd; box-shadow: inset 0 0 0 1px #8a482a; }
.modal:has(.bk-step) .choice-card.selected .bk-select-mark { background: #643a23; border-color: #643a23; color: #fff9ee; }
.modal:has(.bk-step) .choice-card.selected .bk-select-mark .icon { opacity: 1; }
.modal:has(.bk-step) .modal-footer { gap: 18px; padding: 18px 30px; background: #f7ecdc; border-top: 1px solid var(--bk-line); }
.modal:has(.bk-step) .modal-footer small { max-width: 32ch; color: var(--bk-body); font-size: 14px; line-height: 1.4; }
.modal:has(.bk-step) .btn-primary { min-height: 49px; border-radius: 6px; padding: 12px 21px; background: #4b2819; border-color: #4b2819; color: #fffaf1; font-size: 16px; font-weight: 700; }
.modal:has(.bk-step) .btn-primary:disabled { background: #d4c1aa; border-color: #d4c1aa; color: #6c543f; opacity: 1; cursor: default; }
.modal:has(.bk-step) .selected-service { align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--bk-line); border-radius: 7px; background: #f6ecdc; }
.modal:has(.bk-step) .selected-service .service-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 7px; background: #ead6b8; color: #7e4224; }
.modal:has(.bk-step) .selected-service strong { color: var(--bk-ink); font-size: 19px; line-height: 1.3; }
.modal:has(.bk-step) .selected-service p { margin-top: 5px; color: var(--bk-body); font-size: 14px; }
.modal:has(.bk-step) .selected-service button { min-height: 44px; padding: 8px; color: #874327; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.modal:has(.bk-step) .notice { margin: 0 0 23px; padding: 12px 14px; gap: 10px; border-radius: 6px; background: #f3eadc; color: var(--bk-body); font-size: 14px; line-height: 1.45; }
.modal:has(.bk-step) .notice .icon { flex: 0 0 18px; width: 18px; height: 18px; color: #865133; }
.modal:has(.bk-step) .bk-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.modal:has(.bk-step) .bk-group legend { margin-bottom: 16px; padding: 0; color: var(--bk-ink); font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.modal:has(.bk-step) .bk-contact { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bk-line); }
.modal:has(.bk-step) .bk-contact .form-section-title { display: none; }
.modal:has(.bk-step) .form-grid { gap: 18px 16px; }
.modal:has(.bk-step) .field { min-width: 0; }
.modal:has(.bk-step) .field label { display: block; margin-bottom: 7px; color: var(--bk-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.modal:has(.bk-step) .field label span { display: block; margin: 2px 0 0; color: var(--bk-body); font-size: 13px; font-weight: 400; }
.modal:has(.bk-step) :is(input:not([type=checkbox]),select,textarea) { width: 100%; min-width: 0; min-height: 49px; padding: 12px 13px; border: 1px solid #cbb49a; border-radius: 6px; background: #fffefb; color: var(--bk-ink); font: inherit; font-size: 16px; box-shadow: none; }
.modal:has(.bk-step) textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.modal:has(.bk-step) ::placeholder { color: #89735e; opacity: 1; }
.modal:has(.bk-step) .check-row { align-items: flex-start; gap: 11px; margin-top: 22px; color: var(--bk-body); font-size: 14px; line-height: 1.55; }
.modal:has(.bk-step) .check-row input { flex: 0 0 21px; width: 21px; height: 21px; margin-top: 1px; accent-color: #653922; }
.modal:has(.bk-step) .check-row button { color: #874327; text-decoration: underline; text-underline-offset: 3px; }
.modal:has(.bk-step) .booking-quote { margin-bottom: 22px; padding: 17px; border: 1px solid #d9bd98; border-radius: 7px; background: #f6e5cc; color: var(--bk-ink); }
.modal:has(.bk-step) .booking-quote strong { color: var(--bk-ink); font-size: 34px; letter-spacing: -.04em; }
.modal:has(.bk-step) :is(a,button,input,textarea,select):focus-visible { outline: 3px solid #9a5935; outline-offset: 3px; }
@media (hover:hover) { .modal:has(.bk-step) .choice-card:hover { border-color: #9f6944; background: #f9efdf; } }
@media (max-width:650px) {
  .modal-backdrop:has(.bk-step) { padding: 8px; }
  .modal:has(.bk-step) { max-height: calc(100dvh - 16px); border-radius: 9px; }
  .modal:has(.bk-step) .modal-header { padding: 20px 17px 17px; gap: 10px; }
  .modal:has(.bk-step) .modal-body { padding: 17px; }
  .modal:has(.bk-step) .choice-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .modal:has(.bk-step) .choice-card { grid-template-columns: 66px minmax(0,1fr) 22px; min-height: 80px; padding: 9px 12px; }
  .modal:has(.bk-step) .bk-service-art { width: 66px; height: 58px; }
  .modal:has(.bk-step) .modal-footer { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; padding: 12px 17px; }
  .modal:has(.bk-step) .modal-footer small { max-width: none; font-size: 12px; }
  .modal:has(.bk-step) .modal-footer .btn { width: 100%; min-height: 50px; }
  .modal:has(.bk-step) .form-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .modal:has(.bk-step) .selected-service { flex-wrap: wrap; padding: 12px; gap: 9px; }
  .modal:has(.bk-step) .selected-service > div:nth-child(2) { flex: 1; min-width: 0; }
}
