/* Interest form — matches BookCover / CercaLabs palette */
:root {
  --mint: #e8f4ee;
  --forest: #1c4332;
  --teal: #2a9d72;
  --teal-h: #238c62;
  --gold: #c08020;
  --slate: #4b6358;
  --muted: #7a9488;
  --border: #c8e0d4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.interest-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
  background: var(--mint);
  color: var(--forest);
  line-height: 1.6;
}

.interest-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.interest-back {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 24px;
}
.interest-back:hover {
  text-decoration: underline;
}

.interest-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(28, 67, 50, 0.1);
  border-top: 4px solid var(--teal);
}

.interest-card h1 {
  font-family: "Nunito", sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.interest-card .sub {
  font-size: 15px;
  color: var(--slate);
  margin: 0 0 28px;
}

.interest-field {
  margin-bottom: 18px;
}

.interest-field label {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}

.interest-field label .req {
  color: var(--gold);
}

.interest-field input,
.interest-field select,
.interest-field textarea {
  width: 100%;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
}

.interest-field input:focus,
.interest-field select:focus,
.interest-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 114, 0.15);
}

.interest-field textarea {
  min-height: 120px;
  resize: vertical;
}

.interest-submit {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.interest-submit:hover:not(:disabled) {
  background: var(--teal-h);
}

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

body.interest-no-scroll {
  overflow: hidden;
}

/* Full-screen loading */
.interest-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 67, 50, 0.45);
  backdrop-filter: blur(4px);
}

.interest-loading-overlay[hidden] {
  display: none;
}

.interest-loading-inner {
  text-align: center;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(28, 67, 50, 0.2);
}

.interest-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: interest-spin 0.75s linear infinite;
}

@keyframes interest-spin {
  to {
    transform: rotate(360deg);
  }
}

.interest-loading-text {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--forest);
}

/* Result modal */
.interest-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 42, 31, 0.55);
  backdrop-filter: blur(3px);
}

.interest-modal-backdrop[hidden] {
  display: none;
}

.interest-modal {
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(28, 67, 50, 0.25);
  border-top: 4px solid var(--teal);
}

.interest-modal-backdrop.is-error .interest-modal {
  border-top-color: #c53030;
}

.interest-modal-title {
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--forest);
  letter-spacing: -0.3px;
}

.interest-modal-body {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
}

.interest-modal-redirect {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.interest-modal-redirect[hidden] {
  display: none;
}

.interest-modal-dismiss {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.interest-modal-dismiss:hover {
  background: var(--teal-h);
}

.interest-modal-dismiss[hidden] {
  display: none;
}
