/* Book-a-demo modal — shared across index.html and pricing.html */

.bd-overlay {
  position: fixed; inset: 0;
  background: oklch(0.18 0.01 80 / 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.bd-overlay.open { display: flex; opacity: 1; }

.bd-modal {
  background: var(--paper);
  border-radius: 16px;
  width: 100%; max-width: 480px;
  padding: 32px;
  box-shadow: 0 30px 80px -20px oklch(0.18 0.01 80 / 0.4);
  transform: translateY(8px);
  transition: transform .18s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.bd-overlay.open .bd-modal { transform: translateY(0); }

.bd-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.bd-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}
.bd-title em { font-style: italic; }
.bd-sub {
  font-size: 13px; color: var(--ink-2);
  margin: 6px 0 0;
  font-family: var(--sans);
}

.bd-close {
  background: none; border: none;
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .12s ease, color .12s ease;
}
.bd-close:hover { background: var(--paper-2); color: var(--ink); }
.bd-close svg { width: 16px; height: 16px; }

.bd-form { display: flex; flex-direction: column; gap: 14px; }
.bd-form.hide { display: none; }

.bd-row { display: flex; flex-direction: column; gap: 6px; }
.bd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bd-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bd-label .req { color: var(--accent); margin-left: 2px; }

.bd-input, .bd-select, .bd-textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
  width: 100%;
}
.bd-input:focus, .bd-select:focus, .bd-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.bd-textarea {
  resize: vertical; min-height: 72px;
  font-family: var(--sans);
  line-height: 1.5;
}
.bd-select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.bd-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.bd-fine {
  font-size: 12px; color: var(--ink-3);
  margin-right: auto;
}

.bd-submit {
  height: 44px; padding: 0 20px;
  border-radius: 10px;
  background: var(--accent); color: white;
  border: none; cursor: pointer;
  font-family: var(--sans);
  font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s ease, transform .12s ease;
}
.bd-submit:hover { background: color-mix(in oklch, var(--accent), black 8%); transform: translateY(-1px); }
.bd-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bd-submit svg { width: 13px; height: 13px; }

.bd-success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.bd-success.show { display: block; }
.bd-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.bd-success .check svg { width: 28px; height: 28px; }
.bd-success h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  margin: 0 0 6px; color: var(--ink);
}
.bd-success p { color: var(--ink-2); margin: 0; font-size: 14px; }

@media (max-width: 520px) {
  .bd-modal { padding: 24px 20px; }
  .bd-title { font-size: 24px; }
  .bd-grid-2 { grid-template-columns: 1fr; }
}
