/* ==== GLOBAL ==== */
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.wrap {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
}

/* ==== HEADER ==== */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #900;
}

header .muted {
  color: #555;
  font-size: 1.05rem;
}

/* ==== CARD BASE ==== */
.card {
  background: #f9f6f2;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* Prevent any image from blowing up a card */
.card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   AUTHOR SECTION — text must sit next to the photo
   ========================================================= */
.author-intro {
  padding: 1.5rem 1.75rem;
}

.author-flex {
  display: flex;
  align-items: flex-start;         /* keep tops aligned */
  gap: 1.25rem;                    /* space between photo and text */
  flex-wrap: nowrap;               /* keep on one line until breakpoint */
}

.author-photo {
  flex: 0 0 170px;                 /* fixed visual width for photo */
  width: 170px;                    /* ensures consistent sizing */
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.author-text {
  flex: 1 1 auto;                  /* text takes remaining width */
  min-width: 0;                    /* allow text to shrink properly */
}

.author-text h2 {
  margin: 0 0 0.5rem 0;
  color: #a00;
}

.author-text p {
  margin: 0 0 0.85rem 0;
  color: #444;
  font-size: 1rem;
}

/* Stack only on small screens */
@media (max-width: 680px) {
  .author-flex {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .author-photo {
    width: 180px;
  }
  .author-text {
    width: 100%;
  }
}

/* =========================================================
   MAIN TWO-COLUMN AREA (Form + Review on left, Book on right)
   ========================================================= */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* left / right */
  gap: 2rem;
}

.left-column, .right-column {
  min-width: 0;
}

/* Form section */
.left-column h2 {
  color: #a00;
  margin: 0 0 0.5rem 0;
}

.left-column .muted {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row {
  display: flex;
  gap: 1rem;
}

.row > div { flex: 1; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: #333;
}

input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

input:focus {
  border-color: #a00;
  outline: none;
  box-shadow: 0 0 3px rgba(170, 0, 0, 0.3);
}

.form-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.note.small {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin-top: 0.4rem;
}

/* Inline review block under the form, same container */
.inline-review {
  margin-top: 1.25rem;
  background: #f5f2ee;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.inline-review h3 {
  color: #a00;
  margin: 0 0 0.35rem 0;
  font-size: 1.2rem;
}

.inline-review p {
  color: #444;
  max-width: 520px;
  margin: 0.4rem auto 0.9rem;
}

/* Right column book display */
.book-cover-large {
  max-width: 420px;
  width: 80%;
  margin: 0 auto 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stack columns on smaller screens */
@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  .right-column {
    order: 2;
  }
  .left-column {
    order: 1;
  }
  .row { flex-direction: column; }
}

/* ==== BUTTONS ==== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  text-align: center;
  transition: background 0.25s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  min-width: 150px;
}

.btn.amazon { background-color: #ffb300; }
.btn.amazon:hover { background-color: #e0a000; transform: scale(1.05); }

.btn.audible { background-color: #ff7b00; }
.btn.audible:hover { background-color: #e46a00; transform: scale(1.05); }

.btn.submit { background-color: #b60000; }
.btn.submit:hover { background-color: #900; transform: scale(1.05); }

/* ==== FOOTER ==== */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

/* ==== DOWNLOAD PAGE TIDY (kept) ==== */
.download-section,
.downloads,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .download-section,
  .downloads,
  .download-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .download-section,
  .downloads,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-item,
.bonus-item {
  background: #f9f6f2;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.download-item h3,
.bonus-item h3 {
  margin: 0 0 0.6rem 0;
  color: #a00;
  font-size: 1.2rem;
}

.download-item img,
.bonus-item img,
.downloads img,
.download-grid img,
.download-section img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 0.8rem;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
