/* ------------------------------------------------------------------
   /features/forms

   Loaded after feature-page.css, integrations.css, email-triage.css and
   sms-whatsapp.css, which supply the hero, jump pills, bands, steps, cards
   and the shared artwork pieces (`ix-`, `et-`, `sw-`). This file holds only
   the forms artwork, drawn in HTML: everything here carries an `fm-` prefix.
   ------------------------------------------------------------------ */

.fm-hero-inner {
  grid-template-columns: minmax(0, 1fr) 420px;
}

/* ---------- A form as the client sees it ---------- */

.fm-hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 0 34px;
}

.fm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fm-form-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.fm-progress {
  height: 6px;
  border-radius: 99px;
  background: #edeae2;
  overflow: hidden;
}

.fm-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--green);
}

.fm-question {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-question-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
}

.fm-question-revealed {
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.fm-choice {
  display: flex;
  gap: 8px;
}

.fm-choice span {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(34, 54, 60, 0.15);
  font-size: 0.82rem;
  color: var(--primary);
}

.fm-choice .fm-choice-on {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.fm-input {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 54, 60, 0.15);
  font-size: 0.86rem;
  color: var(--primary);
  background: #fbfaf7;
}

.fm-input-prefilled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.fm-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--accent-soft, rgba(162, 185, 100, 0.16));
  color: var(--accent-ink, #5d7230);
  font-size: 0.82rem;
  font-weight: 600;
}

.fm-submit {
  align-self: flex-end;
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
}

/* The floats sit where the form has empty space: beside Submit, and the card's top-right corner */
.fm-hero-art .sw-float-a {
  left: -26px;
  top: auto;
  bottom: 40px;
}

.fm-hero-art .sw-float-b {
  right: -18px;
  bottom: auto;
  top: -4px;
}

/* ---------- The email a client gets ---------- */

.fm-email-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fm-email-body {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--primary);
}

.fm-email-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
}

.fm-email-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: #f3f1ec;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- Reviewing answers onto the record ---------- */

.fm-review {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--primary);
}

.fm-review th {
  padding: 0 8px 8px 0;
  text-align: left;
  font-weight: 600;
  color: var(--gray, #6b7b80);
}

.fm-review td {
  padding: 10px 8px 10px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  vertical-align: top;
}

.fm-old {
  color: var(--gray, #6b7b80);
  text-decoration: line-through;
}

.fm-new {
  font-weight: 600;
}

.fm-accepted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d7230;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- An exported form ---------- */

.fm-export {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.fm-doc {
  background: white;
  border-radius: 6px;
  padding: 26px 26px 20px;
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.14);
  border-top: 6px solid var(--accent, var(--purple));
  color: var(--primary);
}

.fm-doc-brand {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink, #6d5a8a);
}

.fm-doc-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.fm-doc-sub {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--gray, #6b7b80);
}

.fm-doc-section {
  margin: 12px 0 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.fm-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.8rem;
}

.fm-doc-row span:first-child {
  font-weight: 600;
}

.fm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fm-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 26px rgba(34, 54, 60, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.fm-action-primary {
  background: var(--green);
  color: white;
}

/* ---------- Where it helps ---------- */

.fm-helps {
  padding: 88px 0;
  background: white;
  scroll-margin-top: var(--header-height);
}

/* Six cards: two rows of three rather than four and an orphaned two */
@media (min-width: 900px) {
  .fm-helps .et-shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- The walkthrough video ---------- */

/* The shared band colours go by position (nth-of-type), so any section added above them flips every band after
   it. This page sets each one by id instead: white and beige alternating from the At a glance panel down. */
.feature-snapshot-wrap {
  padding: 48px 0;
  background: white;
}

#problem,
#build,
#record,
#sent {
  background: var(--bg);
}

#how,
#client,
#export,
#helps {
  background: white;
}

/* Sits in the problem band, under its text and pain tiles */
.fm-problem-video {
  max-width: 960px;
  margin-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .fm-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fm-hero-art .sw-float-a {
    left: 0;
  }

  .fm-hero-art .sw-float-b {
    right: 0;
    top: -26px;
  }

  .fm-doc {
    padding: 20px 18px 16px;
  }

  .fm-doc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
