/* Task #1550763: Inline email capture — settlement detail pages
 * Owns: .sr-iec-* styles for mid-page and bottom inline forms
 * Does NOT own: exit-intent popup, footer subscribe form, quiz
 */

/* ── Shared wrapper ────────────────────────────────────────────────────────── */
.sr-iec-wrap {
  background: #fff;
  border: 1.5px solid #e2e8e4;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Eyebrow ────────────────────────────────────────────────────────────────── */
.sr-iec-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #2d6a4f);
  margin: 0 0 6px;
}

/* ── Heading ─────────────────────────────────────────────────────────────────── */
.sr-iec-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a2e22;
  margin: 0 0 4px;
  line-height: 1.25;
}

/* ── Subtext ─────────────────────────────────────────────────────────────────── */
.sr-iec-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5a6b60;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── Form row ────────────────────────────────────────────────────────────────── */
.sr-iec-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.sr-iec-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1a2e22;
  background: #f7faf8;
  border: 1.5px solid #c8d9ce;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.sr-iec-input:focus {
  border-color: var(--primary, #2d6a4f);
  background: #fff;
}

.sr-iec-input::placeholder {
  color: #96afa3;
}

.sr-iec-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary, #2d6a4f);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sr-iec-btn:hover:not(:disabled) {
  background: #235a41;
}

.sr-iec-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── Trust line ──────────────────────────────────────────────────────────────── */
.sr-iec-trust {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: #96afa3;
  margin: 8px 0 0;
}

/* ── Success state ───────────────────────────────────────────────────────────── */
.sr-iec-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #eaf4ee;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #235a41;
}

.sr-iec-success-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Bottom variant — slightly more compact ──────────────────────────────────── */
.sr-iec-wrap--bottom {
  background: linear-gradient(135deg, #f0f8f3 0%, #e8f4ed 100%);
  border-color: #b8d9c4;
  margin: 40px 0 24px;
}

.sr-iec-wrap--bottom .sr-iec-heading {
  font-size: 18px;
}

/* ── Mobile: stack vertically ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sr-iec-wrap {
    padding: 18px 16px;
    margin: 20px 0;
  }

  .sr-iec-form {
    flex-direction: column;
    gap: 8px;
  }

  .sr-iec-input,
  .sr-iec-btn {
    width: 100%;
    flex: unset;
    min-width: unset;
  }

  .sr-iec-btn {
    justify-content: center;
  }

  .sr-iec-heading {
    font-size: 18px;
  }
}

@media (max-width: 375px) {
  .sr-iec-wrap {
    padding: 16px 14px;
  }

  .sr-iec-heading {
    font-size: 17px;
  }
}
