/* The Book a demo form on /contact/. */
.nd-book__split > .nd-book__side { justify-content: flex-start !important; }
.nd-book__side h2 { margin: 0 0 1.25rem; }
.nd-book__side .nd-checks { margin-bottom: 2rem !important; }
.nd-book__email { margin-top: auto !important; }
.nd-book__email h3 { margin-top: 0.9rem !important; }
.nd-book { position: relative; scroll-margin-top: 6rem; }
.nd-book__msg { display: grid; gap: 0.2rem; margin-bottom: 1.25rem; padding: 0.95rem 1.1rem; border-radius: 12px; font-size: 0.9375rem; }
.nd-book__msg[hidden] { display: none; }
.nd-book__msg b { color: inherit; font-weight: 600; }
.nd-book__msg--ok { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(134, 239, 172, 0.35); color: #bbf7d0; }
.nd-book__msg--err { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(251, 191, 36, 0.4); color: #fde68a; }
.nd-book__msg a { color: inherit; text-decoration: underline; }

.nd-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--nd-frame); border-radius: 16px; background: linear-gradient(180deg, #0b0b0e, #060608); box-shadow: 0 30px 80px -40px rgba(11, 87, 227, 0.5); }
.nd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nd-field { display: grid; gap: 0.4rem; margin: 0; }
.nd-field > span { color: var(--nd-fg-2); font-size: 0.8125rem; font-weight: 500; }
.nd-field > span em { font-style: normal; color: #71717a; font-weight: 400; margin-left: 0.3rem; }
.nd-field input, .nd-field select, .nd-field textarea {
	width: 100%; box-sizing: border-box; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--nd-line-2);
	background: #0f0f12; color: var(--nd-fg); font: inherit; font-size: 0.9375rem; line-height: 1.4; transition: border-color 0.15s, box-shadow 0.15s;
}
.nd-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; padding-right: 2.4rem; }
.nd-field textarea { resize: vertical; min-height: 6rem; }
.nd-field input::placeholder, .nd-field textarea::placeholder { color: #52525b; }
.nd-field input:focus, .nd-field select:focus, .nd-field textarea:focus { outline: none; border-color: #3b7bff; box-shadow: 0 0 0 3px rgba(59, 123, 255, 0.25); }
.nd-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nd-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.25rem; }
.nd-form__foot p { margin: 0 !important; font-size: 0.8125rem !important; max-width: 30ch; }
.nd-form__btn {
	padding: 0.8rem 1.4rem; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.9375rem; font-weight: 600; color: #fff;
	background: var(--nd-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(11, 87, 227, 0.9), 0 10px 30px -10px var(--nd-glow);
}
.nd-form__btn:hover { background: var(--nd-blue-hover); }
.nd-form__btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .nd-form__row { grid-template-columns: 1fr; } .nd-form__btn { width: 100%; } }

/* On phones the form comes first; the explanation follows. */
@media (max-width: 900px) { .nd-book__split > .nd-book { order: -1; } .nd-book__split > .nd-book__side { border-top: 1px solid var(--nd-frame); border-bottom: 0 !important; } }

/* ---------- Modern dropdowns (assets/select.js), shadcn-style ---------- */
.nd-sel { position: relative; }
.nd-sel__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.nd-sel__btn {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 46px;
	padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--nd-line-2); background: #0f0f12; color: var(--nd-fg);
	font: inherit; font-size: 0.9375rem; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.nd-sel__btn:hover { border-color: #3f3f46; background: #121216; }
.nd-sel__btn:focus-visible, .nd-sel.is-open .nd-sel__btn { outline: none; border-color: #3b7bff; box-shadow: 0 0 0 3px rgba(59, 123, 255, 0.25); }
.nd-sel__btn.is-empty .nd-sel__val { color: #71717a; }
.nd-sel__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-sel__chev { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #a1a1aa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nd-sel__list {
	position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(340px, 86vw); margin: 0; padding: 4px; list-style: none; box-sizing: border-box;
	max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
	background: rgba(12, 12, 15, 0.98); border: 1px solid var(--nd-line-2); border-radius: 12px;
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 60px -30px rgba(11, 87, 227, 0.45);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); outline: none;
	scrollbar-width: thin; scrollbar-color: #3f3f46 transparent;
}
.nd-sel.is-up .nd-sel__list { top: auto; bottom: calc(100% + 6px); }
.nd-sel__list[hidden] { display: none; }
.nd-motion .nd-sel.is-open .nd-sel__list { animation: nd-sel-in 0.14s var(--nd-ease) both; transform-origin: top center; }
.nd-motion .nd-sel.is-open.is-up .nd-sel__list { transform-origin: bottom center; }
@keyframes nd-sel-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.nd-sel__list [role=option] {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.65rem; border-radius: 8px;
	color: var(--nd-fg-2); font-size: 0.9rem; line-height: 1.35; cursor: pointer; user-select: none;
}
.nd-sel__list [role=option].is-placeholder { color: #71717a; }
.nd-sel__list [role=option].is-active { background: #1b1b20; color: #fff; }
.nd-sel__list [role=option][aria-selected=true] { color: #fff; }
.nd-sel__check { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: #6ea0ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.nd-sel__list [role=option][aria-selected=true] .nd-sel__check { opacity: 1; }
.nd-sel__list [role=option].is-placeholder .nd-sel__check { display: none; }

/* Contact page: call and email rows in the side card. */
.nd-contact { list-style: none; margin: 0.25rem 0 0.75rem !important; padding: 0 !important; display: grid; gap: 0.5rem; }
.nd-contact a { display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--nd-frame); background: #0a0a0c; text-decoration: none; transition: border-color 0.15s; }
.nd-contact a:hover { border-color: rgba(110, 160, 255, 0.5); }
.nd-contact small { font-family: var(--wp--preset--font-family--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nd-muted); }
.nd-contact b { color: var(--nd-fg); font-weight: 550; font-size: 1rem; overflow-wrap: anywhere; }
