/* ============================================
   BOOK NIJO — Booking / Contact page
   Editorial, matches legal-page + nyfw system
   ============================================ */

/* --- HERO --- */
.bk-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(150px, 20vh, 220px) var(--gutter) clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.bk-hero__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  color: var(--mute-strong);
}
.bk-hero__head .rule { max-width: 320px; }
.bk-hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 152px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.bk-hero__title em { font-style: italic; font-weight: 400; color: var(--mute-strong); }
[data-type-mode="anton"] .bk-hero__title { text-transform: uppercase; font-weight: 400; }
[data-type-mode="anton"] .bk-hero__title em { font-style: normal; }
.bk-hero__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 62ch;
}

/* --- LAYOUT: sidebar + form --- */
.bk-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) var(--section-y);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
}

/* Sidebar */
.bk-side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}
.bk-side__block { display: flex; flex-direction: column; gap: 14px; }
.bk-side__h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.bk-side__list { display: flex; flex-direction: column; gap: 10px; }
.bk-side__item {
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.bk-side__item strong { color: var(--bone); font-weight: 500; display: block; margin-bottom: 2px; }
.bk-side__contact a {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s;
}
.bk-side__contact a:hover { border-color: var(--bone); }
.bk-side__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute-strong);
  max-width: 34ch;
}

/* --- FORM --- */
.bk-form {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.5vw, 44px);
}
.bk-form__section {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
}
.bk-form__section-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 28px);
}
.bk-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.bk-field { display: flex; flex-direction: column; gap: 10px; }
.bk-field--full { grid-column: 1 / -1; }
.bk-field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-strong);
}
.bk-field label .req { color: var(--kani-red); margin-left: 4px; }

.bk-field input,
.bk-field select,
.bk-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--f-body, inherit);
  font-size: 16px;
  padding: 12px 2px;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}
.bk-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: var(--mute); opacity: 1; }
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--bone);
}
.bk-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9e5df' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px;
  padding-right: 26px;
}
.bk-field select option { background: var(--ink); color: var(--bone); }

/* honeypot */
.bk-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Submit row */
.bk-submit {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.bk-submit__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bk-submit__btn:disabled { opacity: 0.5; cursor: default; }
.bk-submit__hint {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.bk-submit__hint.is-error { color: var(--kani-red); }

.bk-spin {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: var(--ink);
  animation: bkSpin 0.7s linear infinite;
  display: none;
}
.is-loading .bk-spin { display: inline-block; }
.is-loading .bk-submit__label { display: none; }
@keyframes bkSpin { to { transform: rotate(360deg); } }

/* Success state — replaces form */
.bk-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(40px, 5vw, 64px) 0;
}
.bk-success.is-on { display: flex; }
.bk-success__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bk-success__icon svg { width: 22px; height: 22px; color: var(--bone); }
.bk-success__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}
[data-type-mode="anton"] .bk-success__title { text-transform: uppercase; font-weight: 400; }
.bk-success__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
  max-width: 52ch;
}
.bk-form.is-hidden { display: none; }

/* --- TOAST (page-local, reuse global toast styling if present) --- */
.bk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bone);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 2px;
  transform: translateX(-50%) translateY(140%);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.bk-toast.is-on { transform: translateX(-50%) translateY(0); }
.bk-toast svg { width: 18px; height: 18px; flex: none; }
.bk-toast span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); }

@media (max-width: 900px) {
  .bk-main { grid-template-columns: 1fr; gap: 40px; }
  .bk-side { position: static; }
}
@media (max-width: 640px) {
  .bk-grid, .bk-grid--3 { grid-template-columns: 1fr; }
}
