/* Booking — sits on page.css and only adds what the flow itself needs. */

.bk { margin: 34px 0 8px; }

.bk-step { margin: 0 0 26px; }
.bk-step[hidden] { display: none; }

.bk-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.bk-num {
  font-size: 11px; letter-spacing: .12em; color: #9B9890;
  font-variant-numeric: tabular-nums;
}
.bk-head h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.25; }
.bk-back {
  margin-left: auto; border: 0; background: none; padding: 0; cursor: pointer;
  white-space: nowrap; align-self: baseline;
  font: inherit; font-size: 12.5px; color: #4A6E62; text-decoration: underline;
  text-underline-offset: 3px;
}
.bk-back:hover { color: #2C2C2A; }

.bk-quiet { margin: 0 0 14px; color: #9B9890; font-size: 13px; line-height: 1.6; }
.bk-empty { margin: 10px 0 0; color: #6B655B; font-size: 13.5px; line-height: 1.7; }

/* 01 — the meeting types */
.bk-types { display: grid; gap: 10px; }
@media (min-width: 720px) { .bk-types { grid-template-columns: repeat(3, 1fr); } }

.bk-type {
  /* A button centres its own content, so in a stretched grid row the card
     with the shortest description floats away from its neighbours. Made a
     column that starts at the top, all three read off the same line. */
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  width: 100%; text-align: left; cursor: pointer;
  background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 18px;
  padding: 18px 18px 16px; font: inherit; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bk-type:hover { border-color: #CFCEC9; box-shadow: 0 10px 30px rgba(44, 44, 42, .06); }
.bk-type:focus-visible { outline: 2px solid #4A6E62; outline-offset: 2px; }
.bk-type[aria-pressed="true"] { border-color: #4A6E62; box-shadow: 0 0 0 1px #4A6E62 inset; }
.bk-type h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.bk-type .bk-mins { display: block; margin: 0 0 8px; font-size: 11.5px; color: #4A6E62; letter-spacing: .02em; }
.bk-type p { margin: 0; font-size: 13px; line-height: 1.6; color: #6B655B; }

/* 02 — days, then times */
.bk-days {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.bk-day {
  flex: 0 0 auto; cursor: pointer; font: inherit; color: inherit; text-align: center;
  background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 14px;
  padding: 10px 14px; min-width: 74px; line-height: 1.3;
  transition: border-color .18s ease, background .18s ease;
}
.bk-day:hover { border-color: #CFCEC9; }
.bk-day:focus-visible { outline: 2px solid #4A6E62; outline-offset: 2px; }
.bk-day[aria-selected="true"] { background: #2C2C2A; border-color: #2C2C2A; color: #FFFFFF; }
.bk-day .dw { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.bk-day .dd { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.bk-day .dm { display: block; font-size: 10.5px; opacity: .7; }

.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-time {
  cursor: pointer; font: inherit; color: inherit;
  background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 12px;
  padding: 11px 8px; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.bk-time:hover { border-color: #4A6E62; }
.bk-time:focus-visible { outline: 2px solid #4A6E62; outline-offset: 2px; }
.bk-time[aria-pressed="true"] { background: #4A6E62; border-color: #4A6E62; color: #FFFFFF; }

/* 03 — the details */
.bk-chosen {
  margin: 0 0 18px; padding: 12px 15px; border-radius: 14px;
  background: #F2F1EE; color: #2C2C2A; font-size: 13.5px; line-height: 1.5;
}
.bk-form { display: grid; gap: 14px; }
@media (min-width: 720px) { .bk-form { grid-template-columns: 1fr 1fr; } .bk-wide { grid-column: 1 / -1; } }
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field label { font-size: 12.5px; color: #6B655B; }
.bk-opt { color: #9B9890; }
.bk-field input, .bk-field textarea {
  font: inherit; font-size: 15px; color: #2C2C2A; background: #FFFFFF;
  border: 1px solid #EAEAEA; border-radius: 12px; padding: 12px 14px; width: 100%;
  box-sizing: border-box; transition: border-color .18s ease;
}
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: #4A6E62; }
.bk-field textarea { resize: vertical; min-height: 96px; }
.bk-field input[aria-invalid="true"] { border-color: #B4483C; }

/* Off-screen rather than display:none, which some fillers skip. */
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-actions { display: flex; flex-direction: column; gap: 10px; }
.bk-go {
  cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 500;
  background: #2C2C2A; color: #FFFFFF; border: 0; border-radius: 999px;
  padding: 15px 26px; align-self: flex-start; transition: opacity .18s ease;
}
.bk-go:hover { opacity: .88; }
.bk-go:focus-visible { outline: 2px solid #4A6E62; outline-offset: 3px; }
.bk-go[disabled] { opacity: .5; cursor: default; }
.bk-err { margin: 0; color: #B4483C; font-size: 13px; line-height: 1.6; }
.bk-err[hidden] { display: none; }

/* 04 — done */
.bk-done { text-align: left; }
.bk-tick {
  width: 46px; height: 46px; border-radius: 50%; background: #E4EBE6; color: #41604F;
  display: flex; align-items: center; justify-content: center; margin: 0 0 16px;
}
.bk-done h2 { margin: 0 0 8px; font-size: 26px; font-weight: 400; }
.bk-done-when { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; color: #2C2C2A; }
.bk-link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  font-size: 13px; color: #9B9890; text-decoration: underline; text-underline-offset: 3px;
}
.bk-link:hover { color: #2C2C2A; }

.bk-aside { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .bk-type, .bk-day, .bk-time, .bk-go { transition: none; }
}

/* The zone the times are being read in. A select rather than a toggle: a
   brand in Milan booking for a colleague in New York needs a third answer. */
.bk-zone {
  appearance: none;
  border: 1px solid #E4E1DA; border-radius: 999px;
  background: #FFFFFF; color: #2C2C2A;
  padding: 5px 26px 5px 12px; font: inherit; font-size: 12.5px;
  cursor: pointer;
  /* page.css gives every input, textarea and select width:100%, which is
     right for a stacked form and wrong for a control that sits inside a
     sentence. This one sizes to its longest option and no further. */
  width: auto; max-width: 100%; flex: 0 1 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239B9890' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
}
.bk-zone:hover { border-color: #CFCEC9; }
.bk-zone:focus-visible { outline: 2px solid #4A6E62; outline-offset: 2px; }
.bk-zone-note { display: block; margin-top: 6px; color: #9B9890; font-size: 12px; }

.bk-chosen-alt { margin: 4px 0 0; color: #9B9890; font-size: 12.5px; }

/* Guests. The wrapper is drawn to look like the other inputs, because it is
   one: the real field sits inside it and grows along the last chip's row. */
.bk-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  border: 1px solid #E4E1DA; border-radius: 12px; background: #FFFFFF;
  padding: 7px 9px; cursor: text; min-height: 44px;
}
.bk-chips:focus-within { border-color: #4A6E62; }
.bk-chiplist { display: contents; margin: 0; padding: 0; list-style: none; }
.bk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; padding: 4px 6px 4px 10px;
  border-radius: 999px; background: #F3F1EC; color: #2C2C2A;
  font-size: 12.5px; line-height: 1.4;
}
.bk-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-chip-x {
  flex: none; width: 18px; height: 18px; padding: 0;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
  color: #6B655B; font-size: 15px; line-height: 1; cursor: pointer;
}
.bk-chip-x:hover { background: #E4E1DA; color: #2C2C2A; }
.bk-chip-x:focus-visible { outline: 2px solid #4A6E62; outline-offset: 1px; }
.bk-chips input {
  flex: 1 1 120px; min-width: 120px; width: auto;
  border: 0; outline: none; background: transparent;
  /* 16px: anything smaller and iOS zooms the page when the field is tapped. */
  padding: 4px 2px; font: inherit; font-size: 16px; color: #2C2C2A;
}
.bk-chips input:disabled { cursor: not-allowed; }
.bk-help { margin: 6px 0 0; color: #9B9890; font-size: 12px; line-height: 1.6; }
.bk-help.is-bad { color: #B4483C; }

.bk-done-who { margin: 6px 0 0; color: #6B655B; font-size: 13.5px; }

@media (max-width: 560px) {
  .bk-zone { font-size: 12px; }
}

/* The second clock belongs to the line above it, not to the form below. */
.bk-chosen:has(+ .bk-chosen-alt:not([hidden])) { margin-bottom: 6px; }
.bk-chosen-alt { padding-left: 15px; }

/* "45 minutes, shown in [ Perth · GMT+8 ]" — a label and a control on one
   line. As a block of inline children the select sat below the text: a 32px
   control cannot share a 20.8px line box and stay on it. A flex row aligns
   the two on their centres and lets the whole thing wrap as a unit. */
.bk-tzline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; margin: 0 0 14px;
}
.bk-tzline .bk-zone-note { flex-basis: 100%; margin-top: 0; }
