/*
 * Interest registration form — shared by the modal on before-you-decide.html
 * and the inline form on upcoming-batch.html. Uses the campaign palette tokens
 * declared in campaign-before-you-decide.css, so load that first.
 */

/* --- Fields (shared) ----------------------------------------------------- */

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

.interest-fields .field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text, #26221E);
  margin-bottom: 7px;
}

.interest-fields .field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text, #26221E);
  background: var(--bg, #FCFAF3);
  border: 1px solid var(--surface-line, #E1D7C0);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.interest-fields .field input:focus {
  outline: none;
  border-color: var(--teal, #8F3E47);
  box-shadow: 0 0 0 3px var(--teal-dim, #F0DEE0);
}

.interest-form .form-error {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-dim, #F0E2C4);
  color: var(--amber, #A9772F);
  font-size: 14px;
  line-height: 1.5;
}

.interest-form .submit-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.interest-form .submit-note {
  font-size: 13px;
  color: var(--muted-dim, #857D70);
}

.interest-success {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--radius, 18px);
  background: var(--teal-dim, #F0DEE0);
  color: var(--teal, #8F3E47);
}

.interest-success h3 {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin: 0 0 6px;
  color: inherit;
}

.interest-success p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: inherit;
}

/* --- Modal shell (before-you-decide.html) --------------------------------- */

/* Doubled selector so it outranks .campaign-page, which the shell also carries
   (it needs that class for the .btn styles inside). */
.interest-modal.interest-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 34, 30, 0.45);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

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

.interest-panel {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: auto;
  background: var(--surface, #FCF9F1);
  border: 1px solid var(--surface-line, #E1D7C0);
  border-radius: var(--radius, 18px);
  box-shadow: 0 30px 70px -25px rgba(38, 34, 30, 0.45);
  padding: clamp(22px, 4vw, 34px);
  color: var(--text, #26221E);
}

.interest-panel .interest-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #5C554B);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.interest-panel .interest-close:hover {
  background: var(--surface-2, #F3ECDB);
  color: var(--text, #26221E);
}

.interest-panel .interest-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber, #A9772F);
}

.interest-panel h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(21px, 3.5vw, 25px);
  line-height: 1.2;
  margin: 10px 0 8px;
  color: var(--text, #26221E);
}

.interest-panel .interest-lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted, #5C554B);
  margin: 0 0 20px;
}

.interest-panel .interest-privacy {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-dim, #857D70);
}

@media (max-width: 520px) {
  .interest-modal {
    padding: 12px;
  }
  .interest-form .submit-row .btn {
    width: 100%;
  }
}
