.book-page {
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
}

.book-layout {
  display: flex;
  gap: 16px;
  height: calc(100dvh - 32px);
}

.book-left {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.book-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-right {
  flex: 0 0 50%;
  min-width: 0;
}

.book-card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(239, 231, 210, 0.08);
  background: #0d0d0d;
  padding: 56px 78px;
  display: flex;
  flex-direction: column;
}

.book-card-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 0 44px;
  font-family: "Forum", serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-soft);
}

.book-card-title::before,
.book-card-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(239, 231, 210, 0.18);
}

.book-card-title::before {
  left: 0;
}

.book-card-title::after {
  right: 0;
}

.book-intro {
  max-width: 470px;
  margin: 0 auto 48px;
  text-align: center;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(239, 231, 210, 0.68);
}

.book-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.book-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-field label {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(239, 231, 210, 0.74);
}

.book-field input,
.book-field select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(239, 231, 210, 0.08);
  background: rgba(17, 17, 17, 0.9);
  color: var(--text-soft);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.book-field input::placeholder,
.book-field select {
  color: rgba(239, 231, 210, 0.45);
}

.book-field input:focus,
.book-field select:focus {
  border-color: rgba(239, 231, 210, 0.22);
  background: rgba(20, 20, 20, 0.95);
}

.book-submit-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.book-submit {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(239, 231, 210, 0.08);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.9);
  color: var(--text-soft);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-submit:hover {
  background: #1e1e1e;
  color: #efe6d2;
  border-color: #4e4c47;
}

/* tablet */
@media (min-width: 810px) and (max-width: 1279px) {
  .book-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 32px);
  }

  .book-left {
    min-height: 560px;
  }

  .book-card {
    padding: 48px;
    min-height: 760px;
  }
}

/* mobile */
@media (max-width: 809px) {
  .book-page {
    height: auto;
    min-height: 100dvh;
    padding: 12px;
    overflow: visible;
  }

  .book-layout {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }

  .book-left {
    height: 420px;
  }

  .book-card {
    padding: 28px 20px 24px;
  }

  .book-card-title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .book-intro {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .book-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .book-field input,
  .book-field select,
  .book-submit {
    height: 52px;
  }
}

.book-field input.is-error,
.book-field select.is-error {
  border-color: #c94b4b;
}

.field-error {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #c94b4b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.book-intro a {
    font-family: "Satoshi", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(239, 231, 210, 0.86);
    text-decoration: none;
    text-align: right;
}