/* Book a demo modal — shared across legal/marketing pages */
.bd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'DM Sans', sans-serif;
  cursor: auto;
}
.bd-modal,
.bd-modal * {
  cursor: auto !important;
}
.bd-modal input,
.bd-modal textarea {
  cursor: text !important;
  caret-color: #ffffff;
}
.bd-modal button,
.bd-modal a,
.bd-modal [data-bd-close],
.bd-modal .bd-backdrop {
  cursor: pointer !important;
}
.bd-modal.is-open {
  display: flex;
}
.bd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  opacity: 0;
  animation: bdFadeIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.bd-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #14141c 0%, #0e0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 60px 120px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: bdDialogIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) 60ms forwards;
  color: #ffffff;
}
.bd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 200ms, color 200ms, transform 200ms;
}
.bd-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.05);
}
.bd-close svg {
  width: 16px;
  height: 16px;
}
.bd-header {
  margin-bottom: 22px;
}
.bd-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.bd-eye-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  animation: bdEyePulse 2.5s ease-in-out infinite;
}
@keyframes bdEyePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.bd-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 8px;
}
.bd-header p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.bd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bd-modal .bd-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bd-modal .bd-optional {
  font-weight: 400;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
  margin-left: 2px;
}
.bd-field input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.bd-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}
.bd-field input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.bd-field input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.bd-field input.is-error {
  border-color: rgba(255, 80, 80, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 80, 80, 0.08);
}
.bd-submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, #e8e8ec 100%);
  color: #0a0a12;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 250ms;
}
.bd-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.2);
}
.bd-submit:active {
  transform: translateY(0);
}
.bd-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.bd-fine {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}
.bd-success {
  text-align: center;
  padding: 14px 0 0;
}
.bd-success .bd-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #ffffff;
  animation: bdCheckIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bd-success .bd-check svg {
  width: 28px;
  height: 28px;
}
.bd-success h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #ffffff;
}
.bd-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 22px;
  line-height: 1.5;
}
.bd-close-success {
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
}
.bd-close-success:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
@keyframes bdFadeIn {
  to {
    opacity: 1;
  }
}
@keyframes bdDialogIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes bdCheckIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 520px) {
  .bd-dialog {
    padding: 30px 22px 22px;
    border-radius: 14px;
  }
  .bd-header h3 {
    font-size: 22px;
  }
}
body.bd-no-scroll {
  overflow: hidden;
}
