/* ==========================================================================
   Book a demo and Talk to sales — the popup those buttons open, and the same
   forms inline on /book-a-demo/ and /talk-to-sales/. Ported from the design's book-demo-modal.js, whose
   styles were injected at runtime; here they are a stylesheet.
   ========================================================================== */

@keyframes cbdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbdRise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

.cbd-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; background: rgba(17, 17, 26, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: cbdFade 160ms ease both; font-family: var(--font-sans, system-ui, sans-serif); }
.cbd-card { position: relative; width: 100%; max-width: 640px; margin: auto; background: var(--card, #fff); color: var(--text, #15151c); border: 1px solid var(--border, rgba(17, 17, 26, 0.08)); border-radius: 16px; box-shadow: 0 30px 80px rgba(17, 17, 26, 0.28), 0 6px 16px rgba(17, 17, 26, 0.12); animation: cbdRise 240ms cubic-bezier(0.22, 1, 0.36, 1) both; text-align: left; font-size: 16px; line-height: normal; }
.cbd-inline .cbd-card { margin: 0 auto; box-shadow: 0 12px 40px rgba(17, 17, 26, 0.10); animation: none; }
.cbd-head { padding: 32px 32px 0; }
.cbd-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.48px; text-transform: uppercase; color: var(--accent, #5b5bd6); margin: 0; }
.cbd-card .cbd-title { margin: 10px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; color: inherit; }
.cbd-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2, #4a4a55); }
.cbd-body { padding: 24px 32px 32px; }
.cbd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cbd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cbd-field.cbd-full { grid-column: 1 / -1; }
.cbd-label { font-size: 13px; font-weight: 500; color: var(--text, #15151c); }
.cbd-req { color: var(--accent, #5b5bd6); }
.cbd-input:not(#_), .cbd-textarea:not(#_) { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; color: var(--text, #15151c); background: var(--input, #fff); border: 1px solid var(--border-strong, rgba(17, 17, 26, 0.14)); border-radius: 12px; padding: 11px 13px; transition: border-color 150ms ease, box-shadow 150ms ease; outline: none; }
.cbd-textarea:not(#_) { min-height: 84px; resize: vertical; line-height: 1.5; }
.cbd-input:focus:not(#_), .cbd-textarea:focus:not(#_) { border-color: var(--accent, #5b5bd6); box-shadow: 0 0 0 3px var(--accent-ring, rgba(91, 91, 214, 0.25)); }
.cbd-input[aria-invalid="true"]:not(#_), .cbd-textarea[aria-invalid="true"]:not(#_) { border-color: #d64545; }
.cbd-select:not(#_) { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378788c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; cursor: pointer; }
.cbd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cbd-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong, rgba(17, 17, 26, 0.14)); background: var(--card, #fff); color: var(--text-2, #4a4a55); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.cbd-chip:hover { border-color: var(--accent, #5b5bd6); }
.cbd-chip[aria-pressed="true"] { background: var(--accent, #5b5bd6); border-color: var(--accent, #5b5bd6); color: var(--accent-on, #fff); }
.cbd-chip:focus-visible { outline: 3px solid var(--accent-ring, rgba(91, 91, 214, 0.25)); outline-offset: 2px; }
.cbd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cbd-error { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #c43c3c; }
.cbd-error:empty { display: none; }
.cbd-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.cbd-submit:not(#_) { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: none; border-radius: 12px; background: var(--accent, #5b5bd6); color: var(--accent-on, #fff); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter 150ms ease, transform 120ms ease, opacity 150ms ease; }
.cbd-submit:hover:not(#_) { filter: brightness(1.06); }
.cbd-submit:active:not(#_) { transform: scale(0.97); }
.cbd-submit[disabled]:not(#_) { opacity: 0.6; cursor: progress; }
.cbd-cancel { background: none; border: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-2, #4a4a55); cursor: pointer; padding: 8px 6px; }
.cbd-cancel:hover { color: var(--text, #15151c); }
.cbd-inline .cbd-cancel, .cbd-inline .cbd-close { display: none; }
.cbd-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: transparent; color: var(--text-3, #78788c); cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.cbd-close:hover { background: var(--nav-hover, rgba(17, 17, 26, 0.05)); color: var(--text, #15151c); }
.cbd-success { padding: 44px 32px 40px; text-align: center; }
.cbd-check { width: 52px; height: 52px; border-radius: 999px; background: var(--accent-soft, rgba(91, 91, 214, 0.12)); color: var(--accent, #5b5bd6); display: flex; align-items: center; justify-content: center; margin: 0 auto; }

@media (max-width: 560px) {
	.cbd-grid { grid-template-columns: 1fr; }
	.cbd-head { padding: 26px 22px 0; }
	.cbd-body { padding: 20px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.cbd-overlay, .cbd-card { animation: none; }
}
