/* =========================================================
   Formulaire de capture — book Hamidou (lecture / téléchargement)
   Conforme à la maquette Figma "Desktop - 5"
   ========================================================= */

/* Page autonome : pas de header fixe ici */
body:has(.book-form-page) {
  padding-top: 0;
}

.book-form-page {
  width: 100%;
}

.book-form-section {
  position: relative;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 24px 60px;
  background: linear-gradient(172.33deg,
    rgb(232, 245, 225) 1.09%,
    rgb(239, 227, 210) 47.74%,
    rgb(221, 233, 245) 100.12%);
}

/* Bouton fermer (X) en haut à gauche */
.book-close {
  position: absolute;
  top: 23px;
  left: 32px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 15px;
  color: #000;
  background: transparent;
  transition: all 0.2s ease;
}

.book-close:hover {
  background: #000;
  color: #fff;
}

.book-form-wrapper {
  width: 100%;
  max-width: 543px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.book-form-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 471px;
  text-align: center;
}

.book-form-eyebrow {
  color: #f90;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.book-form-lead {
  color: #4c5a6f;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Carte blanche du formulaire */
.book-form-card {
  width: 100%;
  background: #fff;
  border-radius: 25px;
  padding: 40px 33px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 60px rgba(23, 39, 53, 0.08);
}

.book-form-cover {
  width: 141px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.book-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.book-form-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

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

.book-label {
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 12px;
}

.book-input {
  height: 46px;
  width: 100%;
  padding: 0 20px;
  border-radius: 30px;
  border: 1px solid #ebe3db;
  background: #f6f4f2;
  color: #1d252b;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.book-input::placeholder {
  color: #a9a39b;
}

.book-input:focus {
  outline: none;
  border-color: #f90;
}

.book-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234C5A6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
}

/* Consentement */
.book-consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
  cursor: pointer;
}

.book-consent-input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1px solid #ebe3db;
  background: #f6f4f2;
  accent-color: #f90;
  cursor: pointer;
}

.book-consent span {
  color: #4c5a6f;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* Bouton submit */
.book-submit {
  margin-top: 10px;
  height: 46px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: none;
  border-radius: 30px;
  background: #f90;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.book-submit:hover {
  background: #e68a00;
}

.book-submit svg {
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .book-form-section {
    padding: 80px 16px 40px;
  }

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

  .book-close {
    left: 16px;
  }
}
