/* Book a service — layered navy form with light 3D depth. */
body.book {
  cursor: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
}
body.book a { text-decoration: none; }
body.book button { cursor: pointer; }

.book-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.book-bar__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
}
.book-bar__nav a {
  color: rgba(255, 255, 255, 0.72);
}
.book-bar__nav a:hover { color: #fff; }
.book-bar__cta {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.book-bar__cta:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.book-stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px 72px;
  perspective: 1400px;
  overflow: hidden;
}

.book-orb {
  position: absolute;
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  border-radius: 50%;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 35% 30%, rgba(29, 78, 216, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(56, 189, 248, 0.12), transparent 50%);
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow:
    inset 0 0 60px rgba(29, 78, 216, 0.2),
    0 0 80px rgba(29, 78, 216, 0.15);
  pointer-events: none;
  z-index: 0;
}
.book-orb::before,
.book-orb::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.14);
}
.book-orb::after {
  inset: 28%;
  border-color: rgba(96, 165, 250, 0.22);
  transform: rotateX(68deg);
}

.book-shell {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-head {
  text-align: left;
  margin-bottom: 22px;
}
.book-head h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.book-head p {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  max-width: 42ch;
}

.book-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  list-style: none;
}
.book-progress li {
  display: flex;
  align-items: center;
  flex: 1;
}
.book-progress li:last-child { flex: 0; }
.book-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.book-progress__line {
  flex: 1;
  height: 2px;
  margin: 0 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.book-progress__line i {
  display: block;
  height: 100%;
  width: 0;
  background: #1d4ed8;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-progress li.is-done .book-progress__dot,
.book-progress li.is-active .book-progress__dot {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.25);
}
.book-progress li.is-done .book-progress__line i { width: 100%; }

.book-card {
  position: relative;
  border-radius: 20px;
  padding: 28px 24px 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.06);
}

.book-step { display: none; }
.book-step.is-active {
  display: block;
  animation: book-step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.book-step__title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.service-option {
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 14px 42px;
  text-align: left;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  transform: translateZ(12px);
}
.service-option:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 58, 138, 0.35);
}
.service-option:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
.service-option.is-selected {
  border-color: #1d4ed8;
  background: rgba(29, 78, 216, 0.28);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.25);
  transform: translateZ(20px) translateY(-1px);
}
.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-option__mark {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.service-option.is-selected .service-option__mark {
  border-color: #93c5fd;
  background: #1d4ed8;
  box-shadow: inset 0 0 0 3px rgba(2, 6, 23, 0.85);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.field--row .field { margin-bottom: 14px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.field .req { color: #93c5fd; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.28);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #93c5fd 50%),
    linear-gradient(135deg, #93c5fd 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #f87171;
}
.field__error {
  font-size: 12px;
  color: #fca5a5;
  min-height: 1.1em;
}
.field-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -6px;
  margin-bottom: 12px;
}

.review-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.review-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.review-list dt,
.review-list .k {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.review-list .v {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  word-break: break-word;
  white-space: pre-wrap;
}

.book-nav [hidden],
.book-step[hidden],
.book-success[hidden],
.book-form [hidden] {
  display: none !important;
}

.book-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}
.book-nav .pill {
  min-width: 110px;
  justify-content: center;
  height: 42px;
}
.book-nav .pill--primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  margin-left: auto;
}
.book-nav .pill--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.book-nav .pill--primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.book-nav .pill:active { transform: scale(0.98); }

.book-success {
  display: none;
  text-align: center;
  padding: 28px 12px 12px;
}
.book-success.is-visible { display: block; animation: book-step-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.book-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 22px;
  color: #93c5fd;
}
.book-success h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.book-success p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.book-form-error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 13px;
}
.book-form-error.is-visible { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.book-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.book-foot a { color: rgba(255, 255, 255, 0.7); }
.book-foot a:hover { color: #fff; }
.book-foot__copy { margin-left: auto; }

@keyframes book-step-in {
  from { opacity: 0; transform: translateY(12px) translateZ(0); }
  to { opacity: 1; transform: translateY(0) translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  .book-shell,
  .book-card,
  .service-option,
  .book-progress__dot,
  .book-progress__line i,
  .book-step.is-active,
  .book-success.is-visible {
    animation: none !important;
    transition: none !important;
  }
  .book-card { transform: none; }
  .service-option,
  .service-option.is-selected { transform: none; }
}

@media (max-width: 640px) {
  .book-bar { padding: 12px 16px; }
  .book-bar__nav a:not(.pill) { display: none; }
  .book-stage { padding: 28px 14px 56px; }
  .book-card {
    padding: 20px 16px 16px;
    transform: none;
    border-radius: 16px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .review-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .book-nav .pill { min-width: 0; flex: 1; }
  .book-foot__copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-transparency: reduce) {
  .book-card {
    background: #0b1224;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
