.book-wrap { max-width: 640px; }

.book-card { padding: 28px; }

.book-form { display: grid; gap: 18px; }

.book-form .field-row,
.book-form .service-tiles { margin-bottom: 0; }

.book-form .field input,
.book-form .field select,
.book-form .field textarea {
  min-height: 46px;
  padding: 11px 12px;
  font-size: 0.95rem;
  background: var(--paper);
}

.book-form .field textarea { min-height: 84px; }


.book-form .field input:focus,
.book-form .field select:focus,
.book-form .field textarea:focus { border-color: var(--green-600); }

.book-form .field input.is-invalid,
.book-form .field select.is-invalid,
.book-form .field textarea.is-invalid { border-color: var(--danger-border); }

.field-hint {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.field-hint.is-ok { color: var(--green-700); }
.field-hint.is-warn { color: var(--danger-text); }

.book-more {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.book-more summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--label);
}

.book-more[open] summary { margin-bottom: 14px; }

.book-more-fields { display: grid; gap: 18px; }

.book-captcha:empty { display: none; }

.book-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 0.9rem;
}

.book-error[hidden] { display: none; }
.book-error a { color: inherit; font-weight: 600; text-decoration: underline; }

.book-note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.book-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.book-card[hidden] { display: none; }

@media (max-width: 720px) {
  .book-card { padding: 20px; }
  .book-form .field-row.keep { grid-template-columns: 1fr 1fr; }
  .book-form .service-tiles.three { grid-template-columns: repeat(3, 1fr); }
}

.datepick { position: relative; }

.datepick-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.datepick-trigger:focus-visible,
.datepick-trigger[aria-expanded="true"] { border-color: var(--green-600); outline: none; }
.datepick-trigger.is-invalid { border-color: var(--danger-border); }

.datepick-label.is-placeholder { color: var(--muted); }

.datepick-icon {
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.datepick-pop {
  position: fixed;
  z-index: 60;
  width: 288px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.datepick-pop[hidden] { display: none; }

.datepick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.datepick-title { font-size: 0.92rem; font-weight: 600; }

.datepick-nav {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.datepick-nav:hover { background: var(--paper-dim); }

.datepick-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.datepick-dow {
  padding: 4px 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.datepick-day {
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
}

.datepick-day:hover:not(:disabled) { background: var(--paper-dim); }
.datepick-day:focus-visible { border-color: var(--green-600); outline: none; }
.datepick-day.is-today { border-color: var(--line); font-weight: 700; }
.datepick-day.is-selected { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.datepick-day:disabled { color: var(--muted); opacity: 0.4; cursor: not-allowed; }

.datepick-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.datepick-link {
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--green-700);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.datepick-link:disabled { color: var(--muted); opacity: 0.5; cursor: not-allowed; }
