/* =======================================================================
   booking.css — Wohli's Café Buchungswidget
   Design tokens: espresso #2C1A0E · terracotta #D6653F · cream #F5EFE6
   bone #EDE5D8 · paper #FAF7F2 · mist #9E9085 · charcoal #3A2E28
   moss #5A6A52
   ======================================================================= */

/* ── Outer container ─────────────────────────────────────────────────── */
.bk-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #3A2E28;
  background: #FAF7F2;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  padding: 28px;
  box-sizing: border-box;
}

/* ── Step indicator ──────────────────────────────────────────────────── */
.bk-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 4px;
}

.bk-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9E9085;
  white-space: nowrap;
}

.bk-step-item.active {
  color: #2C1A0E;
  font-weight: 600;
}

.bk-step-item.done {
  color: #5A6A52;
}

.bk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: transparent;
}

.bk-step-item.active .bk-step-num {
  background: #D6653F;
  border-color: #D6653F;
  color: #fff;
}

.bk-step-item.done .bk-step-num {
  background: #5A6A52;
  border-color: #5A6A52;
  color: #fff;
}

.bk-step-label {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.bk-step-sep {
  margin: 0 8px;
  color: #EDE5D8;
  font-size: 14px;
}

/* ── Month navigation ────────────────────────────────────────────────── */
.bk-months-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bk-months-nav span {
  font-size: 15px;
  font-weight: 600;
  color: #2C1A0E;
}

.bk-nav-btn {
  background: #EDE5D8;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  color: #3A2E28;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}

.bk-nav-btn:hover:not(:disabled) {
  background: #D6653F;
  color: #fff;
}

.bk-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Two-month calendar grid ─────────────────────────────────────────── */
.bk-months-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .bk-months-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Single month block ──────────────────────────────────────────────── */
.bk-month {
  background: #fff;
  border: 1px solid #EDE5D8;
  border-radius: 8px;
  padding: 16px;
}

.bk-month-title {
  font-size: 13px;
  font-weight: 600;
  color: #2C1A0E;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

/* ── Weekday headers ─────────────────────────────────────────────────── */
.bk-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.bk-cal-header div {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9E9085;
  padding: 4px 0;
}

/* ── Day grid ────────────────────────────────────────────────────────── */
.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* ── Day cell ────────────────────────────────────────────────────────── */
.bk-day {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  cursor: default;
  transition: background 0.1s, color 0.1s;
  position: relative;
  user-select: none;
  color: #3A2E28;
}

@media (max-width: 768px) {
  .bk-day {
    height: 30px;
    font-size: 12px;
  }
}

.bk-day:hover:not(.disabled):not(.other-month) {
  background: rgba(214, 101, 63, 0.15);
}

/* Disabled: past + booked */
.bk-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

/* In-range highlight */
.bk-day.in-range {
  background: rgba(214, 101, 63, 0.12);
  border-radius: 0;
}

/* Selected start */
.bk-day.sel-start {
  background: #D6653F;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
}

/* Selected end */
.bk-day.sel-end {
  background: #D6653F;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
}

/* Today indicator */
.bk-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D6653F;
}

.bk-day.sel-start.today::after,
.bk-day.sel-end.today::after {
  background: rgba(255, 255, 255, 0.7);
}

/* Empty cells for other-month */
.bk-day.other-month {
  visibility: hidden;
  pointer-events: none;
}

/* ── Price box ───────────────────────────────────────────────────────── */
.bk-price-box {
  background: #fff;
  border: 1px solid #EDE5D8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
}

.bk-price-dates {
  font-size: 13px;
  font-weight: 600;
  color: #2C1A0E;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EDE5D8;
}

.bk-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #9E9085;
  border-bottom: 1px solid #F5EFE6;
}

.bk-price-row span:last-child {
  color: #3A2E28;
  font-weight: 500;
}

.bk-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-top: 8px;
  background: #2C1A0E;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #F5EFE6;
}

/* ── Form section ────────────────────────────────────────────────────── */
.bk-form-section {
  margin-top: 20px;
}

.bk-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.bk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.bk-label {
  font-size: 12px;
  font-weight: 600;
  color: #3A2E28;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Form inputs ─────────────────────────────────────────────────────── */
.bk-input,
.bk-select,
.bk-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #EDE5D8;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #2C1A0E;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.bk-input:focus,
.bk-select:focus,
.bk-textarea:focus {
  border-color: #D6653F;
  box-shadow: 0 0 0 3px rgba(214, 101, 63, 0.12);
}

.bk-input::placeholder,
.bk-textarea::placeholder {
  color: #9E9085;
}

.bk-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.bk-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ── Checkbox rows ───────────────────────────────────────────────────── */
.bk-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #3A2E28;
  cursor: pointer;
  line-height: 1.5;
}

.bk-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #D6653F;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── DSGVO consent ───────────────────────────────────────────────────── */
.bk-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #9E9085;
  line-height: 1.6;
  margin: 16px 0;
  cursor: pointer;
}

.bk-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #D6653F;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bk-consent a {
  color: #D6653F;
  text-decoration: none;
}

.bk-consent a:hover {
  text-decoration: underline;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.bk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #D6653F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.bk-btn-primary:hover:not(:disabled) {
  background: #c25535;
}

.bk-btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.bk-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: transparent;
  color: #3A2E28;
  border: 1.5px solid #EDE5D8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bk-btn-secondary:hover {
  border-color: #3A2E28;
  background: #F5EFE6;
}

/* ── Success screen ──────────────────────────────────────────────────── */
.bk-success {
  text-align: center;
  padding: 32px 16px;
}

.bk-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #5A6A52;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.bk-success h3 {
  font-size: 22px;
  color: #2C1A0E;
  margin: 0 0 12px;
}

.bk-success p {
  font-size: 14px;
  color: #9E9085;
  line-height: 1.6;
  margin: 0 auto 8px;
  max-width: 460px;
}

.bk-success-ref {
  background: #FAF7F2;
  border: 1px solid #EDE5D8;
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-block;
  margin: 0 auto 20px;
  font-size: 13px;
  color: #9E9085;
}

.bk-success-ref strong {
  display: block;
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  color: #2C1A0E;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.bk-success a {
  color: #D6653F;
  text-decoration: none;
}

.bk-success a:hover {
  text-decoration: underline;
}

/* ── Error message ───────────────────────────────────────────────────── */
.bk-error-msg {
  padding: 10px 14px;
  background: rgba(214, 101, 63, 0.1);
  border: 1px solid rgba(214, 101, 63, 0.3);
  border-radius: 6px;
  color: #c25535;
  font-size: 13px;
  margin-top: 12px;
}
