/* Zoho Forms - page-specific design.
   Base colour is the product's own green, sampled from the official icon. Zoho's other three
   brand colours appear as the three destinations a submission can take, which is the page's
   actual argument, not decoration.

   Every class here is scoped to .fm-page and prefixed fm-, so nothing leaks to another product
   page and no other product page can reach in. */

.fm-page {
  --fm: #079948;
  --fm-d: #05702f;
  --fm-l: #e8f6ee;
  --fm-ink: #12251b;
}

/* ---------------------------------------------------------------------- hero -- */
.fm-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 92% 0%, color-mix(in srgb, var(--fm) 12%, transparent), transparent 60%),
    linear-gradient(180deg, var(--fm-l), var(--white));
  border-block-end: 1px solid color-mix(in srgb, var(--fm) 16%, var(--line));
}
.fm-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.fm-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--fm) 30%, var(--line));
  border-radius: 999px;
  font-weight: 700; color: var(--fm-d); font-size: .9rem;
  margin-block-end: 18px;
}
.fm-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.15; margin: 0 0 14px; color: var(--fm-ink);
}
.fm-hero .lede { max-width: 60ch; margin-block-end: 26px; }
.fm-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* the hero form: fields settle in, then the submit pulses and three destinations light up */
.fm-hero-vis { position: relative; }
.fm-sheet {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--fm) 22%, var(--line));
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--fm) 60%, transparent);
  display: grid; gap: 10px;
}
.fm-row { display: block; border-radius: 6px; }
.fm-row-lbl { height: 9px; width: 38%; background: color-mix(in srgb, var(--fm) 34%, #dfe6e2); }
.fm-row-lbl.fm-row-s { width: 26%; }
.fm-row-in { height: 30px; background: #f2f5f3; border: 1px solid var(--line); border-radius: 8px; }
.fm-row-in.fm-row-tall { height: 56px; }
.fm-send {
  margin-block-start: 6px; height: 38px; width: 132px; border-radius: 9px;
  background: var(--fm); display: block;
}
.fm-out {
  display: flex; gap: 8px; justify-content: center; margin-block-start: 14px; flex-wrap: wrap;
}
.fm-out b {
  font-size: .85rem; font-weight: 700; color: var(--white);
  padding: 7px 14px; border-radius: 999px; letter-spacing: .01em;
}
.fm-out-1 { background: var(--zoho-blue); }
.fm-out-2 { background: var(--zoho-green); }
.fm-out-3 { background: var(--zoho-yellow); color: #43310a; }

@media (prefers-reduced-motion: no-preference) {
  .fm-sheet .fm-row { animation: fm-in .5s ease-out both; }
  .fm-sheet .fm-row:nth-child(1) { animation-delay: .05s }
  .fm-sheet .fm-row:nth-child(2) { animation-delay: .12s }
  .fm-sheet .fm-row:nth-child(3) { animation-delay: .19s }
  .fm-sheet .fm-row:nth-child(4) { animation-delay: .26s }
  .fm-sheet .fm-row:nth-child(5) { animation-delay: .33s }
  .fm-sheet .fm-row:nth-child(6) { animation-delay: .40s }
  .fm-send { animation: fm-in .5s .5s ease-out both, fm-pulse 2.8s 1.1s ease-in-out infinite; }
  .fm-out b { animation: fm-pop .5s ease-out both; }
  .fm-out-1 { animation-delay: 1.25s } .fm-out-2 { animation-delay: 1.45s } .fm-out-3 { animation-delay: 1.65s }
}
@keyframes fm-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes fm-pop { from { opacity: 0; transform: scale(.8) } to { opacity: 1; transform: none } }
@keyframes fm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fm) 45%, transparent) }
  50%      { box-shadow: 0 0 0 12px color-mix(in srgb, var(--fm) 0%, transparent) }
}

/* --------------------------------------------------------------- drop-off meter -- */
.fm-cost { padding: clamp(48px, 7vw, 84px) 0; }
.fm-cost h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.fm-cost .lede { max-width: 78ch; }

.fm-meter {
  margin-block-start: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 20px 50px -38px rgba(12, 32, 22, .6);
}
.fm-meter-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-block-end: 20px;
}
.fm-fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; flex: 1 1 380px; }
.fm-f {
  font-size: .84rem; font-weight: 600;
  padding: 5px 11px; border-radius: 7px;
  border: 1px dashed var(--line); color: #9aa5a0; background: transparent;
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.fm-f.is-on {
  background: var(--fm-l); color: var(--fm-d);
  border: 1px solid color-mix(in srgb, var(--fm) 34%, var(--line));
  border-style: solid; transform: translateY(-1px);
}
.fm-replay {
  flex: 0 0 auto;
  font: inherit; font-weight: 700; font-size: .88rem;
  color: var(--fm-d); background: var(--white);
  border: 1px solid color-mix(in srgb, var(--fm) 40%, var(--line));
  border-radius: 9px; padding: 8px 15px; cursor: pointer;
}
.fm-replay:hover { background: var(--fm-l); }

.fm-dots {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 6px;
  margin-block-end: 20px;
}
.fm-dots i {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--fm);
  transition: background .5s ease, opacity .5s ease, transform .5s ease;
}
.fm-dots i.is-off { background: #dfe4e1; opacity: .55; transform: scale(.62); }

.fm-read { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.fm-read-n { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.fm-read-n b {
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--fm-d);
  font-variant-numeric: tabular-nums;
}
.fm-read-n span { color: var(--muted); font-size: .95rem; }
.fm-read-t { margin: 0; font-weight: 600; color: var(--ink); }
.fm-cost-foot { margin-block-start: 20px; color: var(--muted); max-width: 82ch; font-size: .96rem; }

/* -------------------------------------------------------------------- router -- */
.fm-after {
  padding: clamp(48px, 7vw, 84px) 0;
  background: linear-gradient(180deg, var(--white), var(--fm-l));
  border-block: 1px solid color-mix(in srgb, var(--fm) 14%, var(--line));
}
.fm-after h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.fm-router { margin-block-start: 26px; }
.fm-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 18px; }
.fm-pick button {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 11px 18px; border-radius: 11px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.fm-pick button[aria-selected="true"] {
  background: var(--fm); color: var(--white); border-color: var(--fm);
}
.fm-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(18px, 3vw, 28px);
}
.fm-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: fmf; }
.fm-flow li {
  display: grid; gap: 3px;
  padding-inline-start: 46px; position: relative;
  counter-increment: fmf;
}
.fm-flow li::before {
  content: counter(fmf);
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem;
  color: var(--white); background: var(--fm);
}
.fm-flow li:nth-child(2)::before { background: var(--zoho-blue); }
.fm-flow li:nth-child(3)::before { background: var(--zoho-yellow); color: #43310a; }
.fm-flow b { font-size: 1.02rem; color: var(--ink); }
.fm-flow span { color: var(--muted); }
.fm-panel-note {
  margin: 18px 0 0; padding-block-start: 16px;
  border-block-start: 1px solid var(--line);
  color: var(--muted); font-size: .95rem;
}

/* -------------------------------------------------------------------- layers -- */
.fm-guard { padding: clamp(48px, 7vw, 84px) 0; }
.fm-guard h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.fm-layers {
  margin-block-start: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.fm-layer {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px 22px;
}
.fm-layer-n {
  position: absolute; inset-block-start: -14px; inset-inline-start: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: var(--white);
  background: var(--fm);
  box-shadow: 0 0 0 4px var(--white);
}
.fm-layers .fm-layer:nth-child(2) .fm-layer-n { background: var(--zoho-blue); }
.fm-layers .fm-layer:nth-child(3) .fm-layer-n { background: var(--zoho-yellow); color: #43310a; }
.fm-layer h3 { margin: 4px 0 8px; font-size: 1.08rem; }
.fm-layer p { margin: 0; color: var(--muted); }

/* ----------------------------------------------------------------------- law -- */
.fm-law {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--fm-l);
  border-block: 1px solid color-mix(in srgb, var(--fm) 16%, var(--line));
}
.fm-law-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(22px, 4vw, 46px); align-items: start;
}
.fm-law h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.fm-must { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.fm-must li {
  background: var(--white); border: 1px solid color-mix(in srgb, var(--fm) 20%, var(--line));
  border-radius: 11px; padding: 13px 16px; color: var(--muted);
}
.fm-must b { color: var(--fm-d); }
.fm-law-side {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.fm-law-side p { margin: 0 0 16px; color: var(--muted); }
.fm-law-side strong { color: var(--ink); display: block; margin-block-end: 6px; }

/* --------------------------------------------------------------------- build -- */
.fm-build { padding: clamp(48px, 7vw, 84px) 0; }
.fm-build h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 24px; }
.fm-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
  counter-reset: fms;
}
.fm-step {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 18px 18px; counter-increment: fms;
}
.fm-step b {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 1.04rem; color: var(--ink); margin-block-end: 6px;
}
.fm-step b::before {
  content: counter(fms, decimal-leading-zero);
  font-size: .82rem; font-weight: 800; color: var(--fm);
  font-variant-numeric: tabular-nums;
}
.fm-step p { margin: 0; color: var(--muted); font-size: .96rem; }
.fm-build-cta {
  margin-block-start: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: var(--fm-l);
  border: 1px solid color-mix(in srgb, var(--fm) 22%, var(--line));
  border-radius: 14px; padding: 20px 22px;
}
.fm-build-cta p { margin: 0; color: var(--fm-ink); max-width: 62ch; }

/* ----------------------------------------------------------------------- faq -- */
.fm-faq { padding: 0 0 clamp(48px, 7vw, 84px); }
.fm-faq h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* --------------------------------------------------------------------- close -- */
.fm-close { padding: 0 0 clamp(48px, 7vw, 84px); }
.fm-close-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
  border-radius: 20px;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(135deg, var(--fm-d), color-mix(in srgb, var(--fm) 55%, #06301c));
}
.fm-close-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.fm-close-box .lede { color: color-mix(in srgb, var(--white) 86%, transparent); margin: 0; max-width: 58ch; }

/* -------------------------------------------------------------------- narrow -- */
@media (max-width: 900px) {
  .fm-hero-in, .fm-law-in { grid-template-columns: 1fr; }
  .fm-hero-vis { max-width: 420px; }
}
@media (max-width: 560px) {
  .fm-dots { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  /* The head turns into a column here, which makes flex-basis a HEIGHT - the chip row was
     rendering 380px tall. Reset the flex shorthand, do not just change the direction. */
  .fm-meter-head { flex-direction: column; align-items: stretch; }
  .fm-fields { flex: 0 0 auto; }
  .fm-replay { align-self: flex-start; }
  .fm-pick button { flex: 1 1 100%; }
}
