/* ═══════════════════════════════════════════════════════════════
   Booking calendar + chat widget styles.
   Uses the design tokens already declared in index.html's :root,
   so both widgets inherit the site's palette automatically.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   BOOKING CALENDAR
   ───────────────────────────────────────────────────────────────── */
.bk-loading,
.bk-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.7;
}
.bk-empty strong { color: var(--text); display: inline-block; margin-bottom: 4px; }
.bk-empty a, .bk-loading a { color: var(--accent); }

.bk-step { margin-bottom: 30px; }
.bk-step__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Service cards */
.bk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}
.bk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.bk-card:hover { border-color: var(--text-3); transform: translateY(-1px); }
.bk-card.on {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(14,165,233,.12), var(--surface-2));
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.bk-card__name { font-size: .9375rem; font-weight: 600; color: var(--text); }
.bk-card__price { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.bk-card__meta { font-size: .75rem; color: var(--text-3); }
.bk-tag {
  position: absolute; top: -8px; right: 10px;
  background: var(--accent); color: #04121b;
  font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
}

.bk-alt { font-size: .8125rem; color: var(--text-3); margin-top: 12px; line-height: 1.6; }
.bk-link {
  color: var(--accent); background: none; border: none; padding: 0;
  font: inherit; text-decoration: underline; cursor: pointer;
}

/* Vehicle pills */
.bk-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-pill {
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: .875rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.bk-pill:hover { border-color: var(--text-3); color: var(--text); }
.bk-pill.on { background: var(--accent); border-color: var(--accent); color: #04121b; font-weight: 600; }

/* Estimate banner */
.bk-estimate {
  background: linear-gradient(135deg, rgba(14,165,233,.1), var(--surface-2));
  border: 1px solid rgba(14,165,233,.28);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 28px;
}
.bk-estimate__k {
  display: block;
  font-size: .6875rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3);
}
.bk-estimate__v {
  display: block;
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent); line-height: 1.15;
}
.bk-estimate__note {
  font-size: .75rem; color: var(--text-3); line-height: 1.6; margin-top: 6px;
}

/* Dates */
.bk-dates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.bk-date {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: .8125rem; color: var(--text);
  transition: all var(--transition);
}
.bk-date:hover { border-color: var(--text-3); }
.bk-date.on { background: var(--accent); border-color: var(--accent); color: #04121b; font-weight: 600; }
.bk-date small { font-size: .6875rem; color: var(--text-3); }
.bk-date.on small { color: rgba(4,18,27,.7); }

/* Times */
.bk-times { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bk-time {
  padding: 11px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: .875rem; color: var(--text);
  transition: all var(--transition);
}
.bk-time:hover { border-color: var(--accent); color: var(--accent); }
.bk-time.on { background: var(--accent); border-color: var(--accent); color: #04121b; font-weight: 600; }

.bk-hint { font-size: .75rem; color: var(--text-3); margin-top: 10px; }

.bk-summary {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: .875rem;
  color: var(--text-2);
  margin-bottom: 18px;
}
.bk-summary strong { color: var(--text); }
.bk-summary__price { color: var(--accent); font-weight: 600; }

/* Honeypot — visually gone, still focusable by scripts */
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-fineprint { text-align: center; font-size: .75rem; color: var(--text-3); margin-top: 14px; line-height: 1.6; }

.bk-msg { display: none; padding: 13px 16px; border-radius: 10px; font-size: .875rem; margin-top: 16px; }
.bk-msg.error { display: block; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.bk-msg.success { display: block; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* Success panel */
.bk-success { text-align: center; padding: 34px 22px; }
.bk-success__icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.4);
  color: #4ade80;
  font-size: 1.75rem; line-height: 56px;
}
.bk-success h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.bk-success__when { color: var(--accent); font-size: 1.0625rem; font-weight: 600; margin-bottom: 22px; }
.bk-success__rows {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 0 auto 20px; max-width: 340px; text-align: left;
}
.bk-success__rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 15px; background: var(--surface-2); font-size: .875rem;
}
.bk-success__rows span { color: var(--text-3); }
.bk-success__note {
  font-size: .8125rem; color: var(--text-3); line-height: 1.65;
  max-width: 400px; margin: 0 auto 8px;
}
.bk-success__note a { color: var(--accent); }

@media (max-width: 560px) {
  .bk-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .bk-dates { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}


/* ─────────────────────────────────────────────────────────────────
   CHAT WIDGET
   ───────────────────────────────────────────────────────────────── */
.sig-chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 20px;
  background: var(--accent); color: #04121b;
  border-radius: 100px;
  font-size: .875rem; font-weight: 600;
  box-shadow: 0 8px 28px rgba(14,165,233,.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity .2s;
}
.sig-chat-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(14,165,233,.45); }
.sig-chat-launch svg { width: 18px; height: 18px; }
.sig-chat-launch.hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.sig-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 901;
  width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100dvh - 40px);
  display: none; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  overflow: hidden;
}
.sig-chat.on { display: flex; animation: sigChatIn .22s cubic-bezier(.4,0,.2,1) both; }
@keyframes sigChatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.sig-chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.sig-chat__title { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; }
.sig-chat__sub { font-size: .75rem; color: var(--text-3); margin-top: 1px; }
.sig-chat__close { font-size: 1.5rem; line-height: 1; color: var(--text-3); padding: 0 4px; }
.sig-chat__close:hover { color: var(--text); }

.sig-chat__log {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}

.sig-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
}
.sig-msg--bot { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 5px; }
.sig-msg--user { align-self: flex-end; background: var(--accent); color: #04121b; font-weight: 500; border-bottom-right-radius: 5px; }
.sig-msg--warn { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }

.sig-typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.sig-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: sigBlink 1.2s infinite ease-in-out;
}
.sig-typing span:nth-child(2) { animation-delay: .18s; }
.sig-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes sigBlink { 0%,80%,100% { opacity:.25; transform: translateY(0); } 40% { opacity:1; transform: translateY(-3px); } }

.sig-chat__quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.sig-chat__quick button {
  padding: 6px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: .75rem; color: var(--text-2);
  transition: all var(--transition);
}
.sig-chat__quick button:hover { border-color: var(--accent); color: var(--accent); }

.sig-chat__form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--border);
}
.sig-chat__form textarea {
  flex: 1; resize: none;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--text);
  font-family: var(--font); font-size: .875rem; line-height: 1.5;
  max-height: 96px;
}
.sig-chat__form textarea:focus { outline: none; border-color: var(--accent); }
.sig-chat__form button[type=submit] {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  background: var(--accent); color: #04121b; border-radius: 11px;
  transition: filter var(--transition);
}
.sig-chat__form button[type=submit]:hover { filter: brightness(1.1); }
.sig-chat__form button[type=submit]:disabled { opacity: .5; cursor: not-allowed; }
.sig-chat__form svg { width: 17px; height: 17px; }

.sig-chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sig-chat__meta {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 0 16px 6px;
  font-size: .6875rem; color: var(--text-3);
}
.sig-chat__meta .low { color: var(--red); }
.sig-chat__privacy {
  padding: 0 16px 12px;
  font-size: .625rem; color: var(--text-3); opacity: .75; line-height: 1.5;
}

@media (max-width: 460px) {
  .sig-chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); }
  .sig-chat-launch { right: 14px; bottom: 14px; padding: 12px 17px; }
  .sig-chat-launch span { display: none; }
}
