/* ===================== Ajanvarausmodaali ===================== */
.bkm {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(12px, 4vh, 56px) 16px;
  overflow-y: auto;
}
.bkm__scrim {
  position: fixed; inset: 0; border: 0; cursor: pointer;
  background: rgba(10, 22, 40, .55); backdrop-filter: blur(3px);
  animation: bkmFade .18s ease;
}
@keyframes bkmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bkmRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.bkm__panel {
  position: relative; z-index: 1; width: 100%; max-width: 540px;
  background: #fff; border-radius: 20px; padding: 30px clamp(20px, 4vw, 34px) 26px;
  box-shadow: 0 30px 80px rgba(10, 22, 40, .35);
  animation: bkmRise .22s cubic-bezier(.2, .8, .2, 1);
  font-family: var(--body, system-ui, sans-serif);
}
.bkm__close {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #f1f5f9; color: #475569; font-size: 16px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.bkm__close:hover { background: #e2e8f0; }

.bkm__head { margin-bottom: 18px; }
.bkm__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--navy, #22321f);
  background: var(--brand-soft, #e9f0e8); padding: 5px 12px; border-radius: 999px;
}
.bkm__head h2 {
  font-family: var(--head, system-ui); font-weight: 800;
  font-size: clamp(22px, 4vw, 27px); color: var(--navy, #22321f);
  margin: 12px 0 6px;
}
.bkm__sub { color: var(--muted, #607080); font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ── Yhteenveto ── */
.bkm__summary {
  background: var(--brand-softer, #f3f7f2); border: 1px solid var(--brand-soft, #e9f0e8);
  border-radius: 14px; padding: 15px 17px; margin-bottom: 20px;
}
.bkm__sumHead {
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand, #40633e); margin-bottom: 10px;
}
.bkm__lines { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bkm__lines li { display: flex; justify-content: space-between; font-size: 14px; color: var(--navy, #22321f); }
.bkm__lines li b { font-weight: 700; }
.bkm__empty { font-size: 13.5px; color: var(--muted, #607080); margin: 0 0 12px; }
.bkm__sumTotals { border-top: 1px dashed var(--brand-soft, #e9f0e8); padding-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.bkm__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted, #607080); }
.bkm__row b { color: var(--navy, #22321f); font-weight: 700; }
.bkm__row--accent { font-size: 15px; margin-top: 3px; }
.bkm__row--accent span { color: var(--navy, #22321f); font-weight: 600; }
.bkm__row--accent b { color: var(--brand, #40633e); font-weight: 800; }

/* ── Lomake ── */
.bkm__form { display: flex; flex-direction: column; gap: 13px; }
.bkm__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.bkm__grid2--73 { grid-template-columns: 3fr 1fr; }
.bkm__field { display: flex; flex-direction: column; gap: 6px; }
.bkm__field > span { font-size: 13px; font-weight: 700; color: var(--navy, #22321f); }
.bkm__field input, .bkm__field select, .bkm__field textarea {
  font: inherit; font-size: 15px; color: var(--navy, #22321f);
  border: 1.5px solid #dce3ee; border-radius: 11px; padding: 11px 13px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%; resize: vertical;
}
.bkm__field input:focus, .bkm__field select:focus, .bkm__field textarea:focus {
  border-color: var(--brand, #40633e); box-shadow: 0 0 0 3px var(--brand-soft, #e9f0e8);
}
.bkm__field input::placeholder, .bkm__field textarea::placeholder { color: #9aa7b8; }

.bkm__zipWarn { font-size: 12px; font-weight: 600; color: #b45309; margin-top: 3px; }

.bkm__err {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 10px; padding: 9px 13px; font-size: 13.5px; font-weight: 600;
}
.bkm__fineprint { text-align: center; font-size: 12.5px; color: var(--muted, #607080); margin: 4px 0 0; }
.bkm__fineprint--pay { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; }
.bkm__contacts { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.bkm__contactLink { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted, #607080); text-decoration: none; transition: color .15s; }
.bkm__contactLink:hover { color: var(--brand, #40633e); }

/* ── Kiitossivu ── */
.bkm__done { text-align: center; padding: 8px 0 4px; }
.bkm__doneIc {
  width: 70px; height: 70px; margin: 4px auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #dcfce7; color: #16a34a;
}
.bkm__done h2 { font-family: var(--head, system-ui); font-weight: 800; font-size: 25px; color: var(--navy, #22321f); margin: 0 0 8px; }
.bkm__callRow { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bkm__callBtn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }

/* ── Toivepäivä: kuukausikalenteri ── */
.bkm__cal { border: 1.5px solid #dce3ee; border-radius: 12px; padding: 12px 12px 14px; background: #fff; }
.bkm__calHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bkm__calMonth { font-family: var(--head, system-ui); font-weight: 800; color: var(--navy, #22321f); font-size: 15px; text-transform: capitalize; }
.bkm__calNav {
  width: 30px; height: 30px; border: 1px solid #dce3ee; background: #fff; border-radius: 8px;
  cursor: pointer; font-size: 18px; line-height: 1; color: var(--navy, #22321f); transition: background .12s, border-color .12s;
}
.bkm__calNav:hover:not(:disabled) { background: var(--brand-soft, #e9f0e8); border-color: var(--brand, #40633e); }
.bkm__calNav:disabled { opacity: .35; cursor: default; }
.bkm__calGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bkm__calWd { margin-bottom: 4px; }
.bkm__calWdCell { text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; padding: 2px 0; }
.bkm__calCell {
  aspect-ratio: 1; border: 0; background: #f4f7fb; border-radius: 9px; font: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--navy, #22321f); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.bkm__calCell:hover:not(:disabled):not(.is-sel) { background: var(--brand-soft, #e9f0e8); }
.bkm__calCell.is-we { color: #94a3b8; }
.bkm__calCell.is-sel { background: var(--brand, #40633e); color: #fff; font-weight: 800; }
.bkm__calCell.is-past { background: transparent; color: #cbd5e1; cursor: default; }
.bkm__calCell--empty { background: transparent; cursor: default; }

/* ── Toiveaika: vedettävä aikaikkuna ── */
.bkm__time { margin-top: 2px; }
.bkm__timeVal { text-align: center; font-family: var(--head, system-ui); font-weight: 800; font-size: 19px; color: var(--brand, #40633e); margin-bottom: 10px; }
.bkm__slider { position: relative; height: 36px; touch-action: none; cursor: pointer; user-select: none; }
.bkm__sliderRail { position: absolute; top: 50%; left: 0; right: 0; height: 6px; transform: translateY(-50%); background: #e2e8f0; border-radius: 999px; }
.bkm__sliderFill { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); background: var(--brand, #40633e); border-radius: 999px; }
.bkm__thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brand, #40633e); box-shadow: 0 2px 6px rgba(34,50,31,.25);
  cursor: grab; touch-action: none;
}
.bkm__thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.12); }
.bkm__thumb:focus-visible { outline: 2px solid var(--brand, #40633e); outline-offset: 2px; }
.bkm__timeMarks { display: flex; justify-content: space-between; font-size: 10.5px; color: #94a3b8; margin-top: 1px; padding: 0 3px; }
.bkm__timeHint { text-align: center; font-size: 11.5px; color: #94a3b8; margin-top: 9px; }

/* ── Toiveaika-huomautus ── */
.bkm__wishNote {
  background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 11px;
  padding: 10px 13px; font-size: 12.5px; line-height: 1.5; color: #92400e;
}
.bkm__wishNote b { color: #78350f; }

/* ── Kiitossivun toiveaika ── */
.bkm__doneSlot {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px;
  background: var(--brand-soft, #e9f0e8); border: 1px solid var(--brand-soft, #e9f0e8);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--navy, #22321f);
}
.bkm__doneSlot b { font-weight: 800; }

@media (max-width: 480px) {
  .bkm__grid2 { grid-template-columns: 1fr; }
  .bkm__grid2--73 { grid-template-columns: 3fr 1fr; }
  .bkm__panel { padding: 26px 18px 22px; border-radius: 16px; }
}
