/* ============================================================
   Easy Go Boat Trip — Booking Modal
   ============================================================ */

/* ── Overlay ── */
#bk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 35, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bkFadeIn 0.2s ease;
}
@keyframes bkFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Modal ── */
#bk-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: bkSlideUp 0.25s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
@keyframes bkSlideUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }

/* ── Close ── */
#bk-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border: none;
  background: rgba(11,45,78,0.07);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy, #0b2d4e);
  transition: background 0.15s;
  z-index: 2;
}
#bk-close:hover { background: rgba(11,45,78,0.14); }

/* ── Header ── */
#bk-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid #eef0f3;
  background: #f8fafc;
  flex-shrink: 0;
}
#bk-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy, #0b2d4e);
  margin: 0 0 1rem;
  padding-right: 2.5rem;
}

/* ── Steps indicator ── */
#bk-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
#bk-steps::-webkit-scrollbar { display: none; }
.bk-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.bk-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.bk-step-lbl {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.bk-step.active .bk-step-num {
  background: var(--azure, #1b9cd8);
  color: #fff;
}
.bk-step.active .bk-step-lbl { color: var(--navy, #0b2d4e); font-weight: 600; }
.bk-step.done .bk-step-num { background: #10b981; color: #fff; }
.bk-step.done .bk-step-lbl { color: #10b981; }
.bk-step-line {
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* ── Body (scrollable) ── */
#bk-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
}
.bk-step-body { display: flex; flex-direction: column; gap: 0; }

/* ── Labels & inputs ── */
.bk-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy, #0b2d4e);
  margin: 0 0 0.5rem;
}
.bk-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #dce3ec;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--navy, #0b2d4e);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  font-family: inherit;
}
.bk-input:focus { border-color: var(--azure, #1b9cd8); }
.bk-input.error { border-color: #ef4444; }
textarea.bk-input { resize: vertical; min-height: 80px; }
.bk-error { color: #ef4444; font-size: 0.8rem; margin: 0.25rem 0 0; }
.bk-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.bk-field label { font-size: 0.82rem; font-weight: 600; color: #64748b; }
.bk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Tour cards ── */
.bk-tour-cards { display: flex; flex-direction: column; gap: 0.65rem; }
.bk-tour-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1.5px solid #dce3ec;
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.bk-tour-card:hover { border-color: var(--azure, #1b9cd8); background: #f0f9ff; }
.bk-tour-card.selected { border-color: var(--azure, #1b9cd8); background: #e0f2fe; }
.bk-tour-card img {
  width: 64px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.bk-tour-card-body { display: flex; flex-direction: column; gap: 0.2rem; }
.bk-tour-card strong { font-size: 0.9rem; color: var(--navy, #0b2d4e); }
.bk-price { font-size: 0.88rem; color: var(--azure, #1b9cd8); font-weight: 600; }
.bk-price small { font-weight: 400; color: #64748b; }

/* ── Time buttons ── */
.bk-times { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.bk-time-btn {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid #dce3ec;
  border-radius: 100px;
  background: #fff;
  font-size: 0.9rem; font-weight: 600;
  color: var(--navy, #0b2d4e);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bk-time-btn:hover { border-color: var(--azure, #1b9cd8); background: #f0f9ff; }
.bk-time-btn.selected { border-color: var(--azure, #1b9cd8); background: var(--azure, #1b9cd8); color: #fff; }

/* ── Passenger counter ── */
.bk-num-people {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
}
.bk-counter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.bk-cnt-btn {
  width: 32px; height: 32px;
  border: 1.5px solid #dce3ec;
  border-radius: 50%;
  background: #fff;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy, #0b2d4e);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.bk-cnt-btn:hover { background: #e0f2fe; border-color: var(--azure, #1b9cd8); }
#bk-cnt-val { font-size: 1.1rem; font-weight: 700; color: var(--navy, #0b2d4e); min-width: 24px; text-align: center; }
.bk-cnt-range { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; }

/* ── Passenger forms ── */
.bk-passenger {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fafbfc;
}
.bk-passenger-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--azure, #1b9cd8);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Summary ── */
.bk-summary h3.bk-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #0b2d4e);
  margin: 0 0 1rem;
}
.bk-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.bk-summary-table td { padding: 0.35rem 0; }
.bk-summary-table td:first-child { color: #64748b; width: 40%; }
.bk-pax-list {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.bk-pax-list table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.bk-pax-list th { color: #94a3b8; font-weight: 600; text-align: left; padding: 0 0 0.4rem; border-bottom: 1px solid #e2e8f0; }
.bk-pax-list td { padding: 0.3rem 0; color: var(--navy, #0b2d4e); }
.bk-pax-list td:first-child { color: #94a3b8; width: 24px; }

/* ── Price box ── */
.bk-price-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}
.bk-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.3rem 0;
}
.bk-price-row.total { font-size: 1rem; font-weight: 700; color: var(--navy, #0b2d4e); border-bottom: 1px solid #bae6fd; padding-bottom: 0.6rem; margin-bottom: 0.3rem; }
.bk-price-row.deposit span:last-child { color: var(--azure, #1b9cd8); font-weight: 700; }
.bk-price-row.balance { color: #64748b; }

/* ── Pay buttons ── */
.bk-pay-btns { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.9rem; }
.bk-btn-pay {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 100px;
  background: var(--azure, #1b9cd8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.15s, transform 0.1s;
}
.bk-btn-pay:hover { background: #1589c0; transform: translateY(-1px); }
.bk-btn-pay.secondary { background: #fff; color: var(--navy, #0b2d4e); border: 1.5px solid #dce3ec; }
.bk-btn-pay.secondary:hover { border-color: var(--navy, #0b2d4e); background: #f8fafc; }
.bk-btn-wa {
  width: 100%;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid #dce3ec;
  border-radius: 100px;
  background: #fff;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: border-color 0.15s;
}
.bk-btn-wa svg { color: #25D366; }
.bk-btn-wa:hover { border-color: #25D366; color: #15803d; }

/* ── Trust ── */
.bk-trust {
  display: flex;
  gap: 1rem;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

/* ── Footer (Back/Next) ── */
#bk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef0f3;
  background: #f8fafc;
  flex-shrink: 0;
  flex-grow: 0;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(11,45,78,0.04);
  z-index: 2;
}
.bk-btn-ghost {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid #dce3ec;
  border-radius: 100px;
  background: #fff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.bk-btn-ghost:hover { border-color: var(--navy, #0b2d4e); color: var(--navy, #0b2d4e); }
.bk-btn-primary {
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 100px;
  background: var(--azure, #1b9cd8);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  margin-left: auto;
}
.bk-btn-primary:hover:not(:disabled) { background: #1589c0; transform: translateY(-1px); }
.bk-btn-primary:disabled { cursor: not-allowed; }

/* ── Notice ── */
.bk-notice {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.bk-notice.warning { background: #fef9c3; border: 1px solid #fde047; color: #713f12; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #bk-modal { border-radius: 18px 18px 0 0; max-height: 95vh; }
  #bk-overlay { align-items: flex-end; padding: 0; }
  .bk-row2 { grid-template-columns: 1fr; }
  #bk-steps { gap: 0; }
  .bk-step-lbl { display: none; }
  .bk-step.active .bk-step-lbl { display: inline; }
  #bk-header { padding: 1.2rem 1.2rem 0; }
  #bk-body { padding: 1.2rem; }
  #bk-footer { padding: 0.9rem 1.2rem; }
  .bk-num-people { flex-wrap: wrap; }
}

/* ── Consent checkboxes (terms & privacy) ── */
.bk-consent {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bk-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.5;
}
.bk-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #1b9cd8;
  cursor: pointer;
}
.bk-consent-row a {
  color: #1b9cd8;
  font-weight: 600;
  text-decoration: underline;
}
.bk-consent-row a:hover {
  color: #0e7bb0;
}
