/* The rounded, quiet look of the customer client (customer-client/src/lib/design.ts),
   as in page-zonestaffing.tag: rounded-xl white surfaces with a gray-200 edge and
   shadow-sm, rounded-lg rows and controls, fully rounded pills, and the brand green
   #2F4538 as the one accent.

   Used by the booking page (booking-form) and the rebook page (rebook). Every rule is
   scoped under .bk, the root class of both: booking.css is shared by many pages, and
   checkmark, autocomplete, emailinput, phoneinput and datepicker-new are used elsewhere
   too, so they are restyled here, inside .bk, rather than in their own files. */
.bk {
  text-align: left;
  color: #1f2937;
  font-size: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.bk a {
  color: #2F4538;
  text-decoration: underline;
}

/* Cards */
.bk-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  padding: 24px;
  margin-bottom: 24px;
}
.bk-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.bk-step {
  flex: none;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 9999px;
  background: #E9F1ED;
  color: #2F4538;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.bk-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  color: #1f2937;
}
.bk-card-sub {
  margin: -2px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.bk-group-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #4b5563;
}
.bk-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.bk-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #6b7280;
}
.bk-muted {
  color: #9ca3af;
}

/* Bolig / Ejendom */
.bk-seg {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 20px;
  background: #f3f4f6;
  border-radius: 9999px;
}
.bk .bk-seg button,
.bk .bk-seg button:hover {
  background: #fff;
  color: #1f2937;
  border: 0;
  border-radius: 9999px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  transition: background-color .15s, color .15s;
}
.bk .bk-seg button.inactive {
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}
.bk .bk-seg button.inactive:hover {
  background: transparent;
  color: #1f2937;
}
.bk .bk-seg button:focus {
  outline: none;
}
.bk .bk-seg button:focus-visible {
  box-shadow: 0 0 0 3px rgba(47, 69, 56, .25);
}

/* Ydelser as selectable rows. The checkmark's label fills the row, so the whole row
   toggles it. The price sits outside the checkmark, laid over the label's right end:
   content yielded into checkmark is evaluated in the checkmark's own context, where
   the parent tag's prices and formatNumber are not defined. */
.bk-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bk-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bk-service {
  position: relative;
}
.bk-service-extra {
  margin-top: 16px;
}
.bk .bk-service checkmark {
  display: block;
  height: 100%;
}
.bk .bk-service .checkmark {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 11px 110px 11px 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1f2937;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.bk .bk-service .checkmark:hover {
  border-color: #d1d5db;
}
.bk .bk-service .checkmark:has(input:checked) {
  border-color: #7BA78E;
  background: #F6F9F7;
}
.bk-service-note {
  display: block;
  font-size: 12px;
  color: #6b7280;
}
.bk-service-price {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
  color: #4b5563;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bk-service-price.bk-muted {
  width: 80px;
  white-space: normal;
  text-align: right;
  line-height: 16px;
  color: #9ca3af;
}
.bk-info {
  margin-left: 4px;
  font-size: 13px;
  color: #9ca3af;
}
.bk-opgange .form-control {
  width: 140px;
}

/* Checkbox box, for the ydelser and the terms */
.bk .checkmark .mark {
  left: 14px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  transition: background-color .15s, border-color .15s;
}
.bk .checkmark:hover input ~ .mark {
  background: #fff;
  border-color: #9ca3af;
}
.bk .checkmark input:checked ~ .mark {
  background: #2F4538;
  border-color: #2F4538;
}
.bk .checkmark .mark:after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-width: 0 2px 2px 0;
}
.bk .checkmark input:focus-visible ~ .mark {
  box-shadow: 0 0 0 3px rgba(47, 69, 56, .25);
}
.bk .bk-terms {
  display: block;
  margin-top: 4px;
}
.bk .bk-terms .checkmark {
  display: block;
  margin: 0;
  padding-left: 30px;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: #4b5563;
}
.bk .bk-terms .checkmark .mark {
  left: 0;
  top: 1px;
  margin-top: 0;
}

/* Fields. Labels sit above their input; phoneinput and emailinput lay theirs out
   side by side with the Bootstrap grid, which bk-stack undoes. */
.bk .form-group {
  margin-bottom: 16px;
}
.bk .form-group.bk-last {
  margin-bottom: 0;
}
.bk-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.bk .bk-label,
.bk .bk-stack .control-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}
.bk-optional {
  font-weight: 400;
  color: #9ca3af;
}
.bk .bk-stack {
  display: block;
}
.bk .bk-stack .row {
  margin: 0;
}
.bk .bk-stack .row > [class*="col-sm-"] {
  float: none;
  width: auto;
  padding: 0;
}
.bk .bk-stack p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b91c1c;
}
.bk .form-control {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  color: #1f2937;
}
.bk textarea.form-control {
  height: auto;
}
.bk .form-control:focus {
  outline: none;
  border-color: #2F4538;
  box-shadow: 0 0 0 3px rgba(47, 69, 56, .15);
}
/* Bootstrap squares the inner corners of an input group. The autocomplete input is
   followed by its dropdown, so it is not :last-child and loses its outer corners too. */
.bk .input-group input.form-control:not(:first-child) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.bk .input-group .form-control:focus {
  z-index: 3;
}
.bk .input-group-addon {
  min-width: 40px;
  background: #f9fafb;
  border-color: #d1d5db;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  color: #6b7280;
}
.bk .help-block {
  margin: 4px 0 0;
  font-size: 12px;
}
.bk .has-error .form-control,
.bk .has-error .input-group-addon {
  border-color: #fca5a5;
}
.bk .has-error .input-group-addon {
  background: #fef2f2;
  color: #b91c1c;
}
.bk .has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.bk .has-error .help-block,
.bk .has-error .control-label {
  color: #b91c1c;
}

/* Autocomplete suggestions */
.bk .dropdown-menu {
  margin-top: 4px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}
.bk .dropdown-menu li {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.bk .dropdown-menu li:hover {
  background: #F6F9F7;
}

/* Tidspunkt */
.bk-notice {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 8px;
  padding: 12px 14px;
}
.bk .bk-notice a {
  color: #9a3412;
}
.bk-empty {
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  color: #6b7280;
  text-align: center;
  padding: 40px 16px;
}
.bk-empty-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  color: #d1d5db;
}
.bk-time {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  align-items: start;
}
.bk-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}
.bk-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.bk-day {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px 14px;
}
.bk-day-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}
.bk-day-title::first-letter {
  text-transform: uppercase;
}
.bk-day-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bk .bk-slot {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.bk .bk-slot:hover {
  border-color: #2F4538;
  background: #F6F9F7;
}
.bk .bk-slot.bk-slot-active {
  border-color: #2F4538;
  background: #2F4538;
  color: #fff;
}

/* Calendar (datepicker-new / flatpickr) */
.bk .flatpickr-calendar {
  background: transparent;
  box-shadow: none;
}
.bk .flatpickr-day {
  border-radius: 9999px;
}
.bk .flatpickr-day.date-available {
  background: #E9F1ED;
  border-color: transparent;
  color: #1f2937;
}
.bk .flatpickr-day.date-available:hover {
  background: #D0E1D8;
}
.bk .flatpickr-day.today {
  background: transparent;
  border: 1px solid #9ca3af;
}
.bk .flatpickr-day.flatpickr-disabled,
.bk .flatpickr-day.flatpickr-disabled:hover,
.bk .flatpickr-day.flatpickr-weekend,
.bk .flatpickr-day.flatpickr-weekend:hover {
  background: transparent;
  color: #d1d5db;
}
.bk .flatpickr-day.selected,
.bk .flatpickr-day.selected:hover {
  background: #2F4538;
  border-color: #2F4538;
  color: #fff;
}

/* Two cards side by side: the address section and the map of the address */
.bk-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.bk-row2 > .bk-card {
  margin-bottom: 0;
}
.bk-map-card {
  position: relative;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
}
.bk-map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #f9fafb;
}
.bk .bk-map-pin {
  border: 3px solid #fff;
  border-radius: 9999px;
  background: #2F4538;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
/* Leaflet's controls, in the design's style. booking.css underlines links on hover and
   .bk colours them green, neither of which suits the map. */
.bk .leaflet-bar {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.bk .leaflet-bar a,
.bk .leaflet-bar a:hover {
  color: #1f2937;
  text-decoration: none;
}
.bk .leaflet-bar a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.bk .leaflet-bar a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.bk .leaflet-control-attribution,
.bk .leaflet-control-attribution a {
  font-size: 10px;
  color: #6b7280;
  text-decoration: none;
}

/* Submit row and buttons */
.bk-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.bk-submit-hint {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}
.bk .bk-btn-primary {
  flex: none;
  padding: 10px 28px;
  border: 1px solid #2F4538;
  border-radius: 9999px;
  background: #2F4538;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s, opacity .15s;
}
.bk .bk-btn-primary:hover {
  background: #23342A;
}
.bk .bk-btn-primary:disabled {
  background: #2F4538;
  color: #fff;
  opacity: .4;
  cursor: not-allowed;
}

.bk .bk-btn-ghost,
.bk .bk-btn-danger {
  flex: none;
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .15s, border-color .15s;
}
.bk .bk-btn-ghost:hover {
  background: #f3f4f6;
}
.bk .bk-btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
}
.bk .bk-btn-danger:hover {
  background: #fef2f2;
}

/* Rebook: the current appointment */
.bk-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin: 0;
}
.bk-summary dt {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}
.bk-summary dd {
  margin: 0;
  color: #1f2937;
}
.bk-summary dd::first-letter {
  text-transform: uppercase;
}
.bk-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk-list li {
  margin-bottom: 4px;
}
.bk-list .fa {
  margin-right: 8px;
  color: #57856B;
}
.bk-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border: 1px solid #D0E1D8;
  border-radius: 9999px;
  background: #F6F9F7;
  color: #2F4538;
  font-size: 12px;
  font-weight: 500;
}
.bk-card-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.bk-page-actions {
  margin-bottom: 24px;
}

/* Rebook: the "Ændre ydelser" dialog (rebook.tag positions and animates it) */
.bk .rbmodal-overlay {
  background: rgba(17, 24, 39, .4);
}
.bk .rbmodal {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}
.bk .rbmodal .bk-pair {
  grid-template-columns: 1fr;
}
.bk-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.bk-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}
.bk .bk-modal-close {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
}
.bk .bk-modal-close:hover {
  background: transparent;
  color: #1f2937;
}
.bk-modal-body {
  padding: 16px 20px;
}
.bk-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* Rebook: the cancel confirmation (modalconfirm, a Bootstrap modal) */
.bk modalconfirm .modal-content {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}
.bk modalconfirm .modal-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.bk modalconfirm .modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}
.bk modalconfirm .modal-header .close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  opacity: 1;
}
.bk modalconfirm .modal-body {
  padding: 20px;
}
.bk modalconfirm .modal-body img {
  width: 48px;
  margin-bottom: 12px;
}
.bk modalconfirm .modal-body h4 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #1f2937;
}
.bk modalconfirm .modal-footer {
  padding: 12px 20px 20px;
  border-top: 0;
}
.bk modalconfirm .modal-footer .btn {
  padding: 8px 18px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.bk modalconfirm .modal-footer .btn:hover {
  background: #f3f4f6;
}
.bk modalconfirm .modal-footer .btn:last-child {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}
.bk modalconfirm .modal-footer .btn:last-child:hover {
  background: #991b1b;
}

@media (max-width: 767px) {
  .bk-time,
  .bk-pair,
  .bk-row2 {
    grid-template-columns: 1fr;
  }
  .bk-map-card {
    min-height: 0;
    height: 220px;
  }
  .bk-calendar {
    justify-self: center;
  }
}
@media (max-width: 600px) {
  .bk-card {
    padding: 16px;
  }
  .bk-grid2,
  .bk-summary {
    grid-template-columns: 1fr;
  }
  .bk-summary {
    gap: 2px;
  }
  .bk-summary dd {
    margin-bottom: 10px;
  }
  .bk-submit {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .bk-submit-hint {
    text-align: center;
  }
}
