/* Book download page — ai-agent-mastery-book */

.card--book {
  max-width: 960px;
}

.card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.75rem;
  align-items: stretch;
  background-color: #fff;
}

.book {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: #fff;
  min-height: 100%;
}

.book img {
  width: 100%;
  max-width: 300px;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background-color: #fff;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-button);
}

.checklist__icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
}

.form-section {
  width: 100%;
  background-color: #fff;
}

.download-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.field__icon img {
  width: 1.375rem;
  height: 1.375rem;
}

.field__input {
  width: 100%;
  height: 3.25rem;
  padding: 0 1.25rem 0 3.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-headline);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
  color: #a8a8a8;
}

.field__input:focus {
  border-color: var(--color-button);
  box-shadow: 0 0 0 3px rgba(0, 111, 222, 0.15);
}

.field__input:invalid:not(:placeholder-shown) {
  border-color: #d14343;
}

.submit-btn {
  width: 100%;
  height: 3.25rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-button);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: var(--color-button-hover);
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.consent {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-body);
}

.form-message {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.form-message--success {
  color: #1a7f4b;
}

.form-message--error {
  color: #c0392b;
}

@media (max-width: 768px) {
  .card__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book {
    order: -1;
    min-height: auto;
  }

  .book img {
    height: auto;
    max-height: 420px;
  }

  .content-column {
    gap: 1.5rem;
  }
}
