/* MnemoBooks inline signup — v1.0.0 */

.mb-signup {
  width: 100%;
  padding: 3rem 1.25rem;
  box-sizing: border-box;
}

.mb-signup__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.mb-signup__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy, #1E2D50);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.mb-signup__subcopy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted, #5A5A6E);
  margin: 0 0 1.5rem;
}

.mb-signup__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mb-signup__label {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mb-signup__row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.mb-signup__email {
  flex: 1 1 auto;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(30, 45, 80, 0.2);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark, #1A1A2E);
  min-width: 0;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mb-signup__email:focus {
  border-color: var(--red, #C23B22);
  box-shadow: 0 0 0 3px rgba(194, 59, 34, 0.15);
}

.mb-signup__btn {
  flex: 0 0 auto;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: var(--red, #C23B22);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.mb-signup__btn:hover { background: var(--red-hover, #A83020); }
.mb-signup__btn:active { transform: translateY(1px); }
.mb-signup__btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.mb-signup__consent {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #5A5A6E);
  margin: 0.9rem auto 0;
  max-width: 520px;
}

.mb-signup__consent a {
  color: var(--text-muted, #5A5A6E);
  text-decoration: underline;
}

.mb-signup__status {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
  min-height: 1.2em;
  color: var(--red, #C23B22);
}

.mb-signup__status--ok {
  color: #1f6f4a;
}

.mb-signup__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mb-signup__success {
  background: rgba(30, 45, 80, 0.04);
  border: 1px solid rgba(30, 45, 80, 0.1);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  margin: 0 auto;
  max-width: 520px;
}

.mb-signup__success-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  color: var(--navy, #1E2D50);
  margin: 0;
  font-weight: 500;
}

/* Homepage placement: sits between showcase and final CTA, slightly richer bg */
.mb-signup--homepage {
  background: var(--cream, #F5F0DC);
  padding: 4rem 1.25rem;
}

/* Blog footer placement: minimal, matches single.php content width */
.mb-signup--blog-footer {
  background: rgba(30, 45, 80, 0.03);
  border-top: 1px solid rgba(30, 45, 80, 0.08);
  border-bottom: 1px solid rgba(30, 45, 80, 0.08);
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.25rem;
}

/* /books/ overview placement: sits before footer */
.mb-signup--books-overview {
  background: rgba(30, 45, 80, 0.04);
  padding: 3rem 1.25rem 3.5rem;
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .mb-signup__row {
    flex-direction: column;
  }
  .mb-signup__btn {
    width: 100%;
  }
}
