/* ==========================================================================
   INTEGRATED, CUSTOM SOLUTIONS («راهکارهای یکپارچه و اختصاصی», integrated.html)
   Four screens on wide windows: what such a solution is; the two words explained and who the route is
   for; how the work goes, in four steps; the form to ask for a consultation, with a slim footer under
   it. On a phone the same parts follow each other in one column. (Markup: build_fa.py integrated();
   the form's sending: assets/js/fa-form.js.)
   ========================================================================== */

/* ---------- the opening ---------- */
.integ .lede { max-width: 860px; margin-top: clamp(16px, 3.4vh, 30px); font-size: clamp(16.5px, min(1.45vw, 2.6vh), 21px); line-height: 2; color: var(--on-navy); }
.integ .actions { margin-top: clamp(20px, 4vh, 36px); }

/* ---------- the two words, and who the route is for ---------- */
.means__grid { display: grid; gap: 16px; width: 100%; max-width: 1340px; margin: 0 auto; }
.mean, .fit { display: grid; align-content: start; gap: 14px; padding: 26px 22px 28px; border-radius: 26px; }
.mean { background: var(--white); border: 1px solid var(--line-dark); box-shadow: 0 40px 70px -56px rgba(14, 49, 121, 0.6); }
.mean__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--mist); }
.mean__icon svg { width: 28px; height: 28px; }
.mean h3 { font-size: clamp(26px, 6.4vw, 36px); line-height: 1.3; color: var(--navy); }
.mean p { font-size: 16px; line-height: 2.05; color: #3d4147; }
.fit { background: var(--navy); color: var(--mist); }
.fit h3 { font-size: 21px; line-height: 1.5; color: var(--white); }
.fit ul { display: grid; gap: 14px; }
.fit li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.9; color: var(--on-navy); }
.fit li svg { width: 26px; height: 26px; margin-top: 2px; padding: 5px; border-radius: 50%; background: rgba(125, 162, 234, 0.3); color: var(--white); }

/* ---------- how the work goes: four steps along one line ---------- */
.steps__row { position: relative; z-index: 1; display: grid; gap: 14px; width: 100%; max-width: 1340px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(226, 231, 234, 0.04); }
.step__n { font-size: 54px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(125, 162, 234, 0.85); }
.step h3 { font-size: 21px; line-height: 1.5; color: var(--white); }
.step p { font-size: 15.5px; line-height: 1.95; color: var(--on-navy); }

/* ---------- the request: a few words beside the form ---------- */
.request { position: relative; padding: 70px var(--gutter) 64px; }
.request__inner { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; gap: 28px; }
.request__side { display: grid; gap: 14px; align-content: center; min-width: 0; }
.request__side h2 { font-size: clamp(30px, 8vw, 46px); line-height: 1.3; color: var(--navy); }
.request__side p { font-size: 17px; line-height: 2; max-width: 460px; }
.request__direct { display: grid; justify-items: start; gap: 4px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.request__direct small { font-size: 13.5px; color: var(--graphite); }
.request__direct a { font-size: 19px; font-weight: 500; color: var(--navy); }
.request__direct a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.rform { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 20px 26px; border-radius: 28px; background: var(--white); border: 1px solid var(--line-dark); box-shadow: 0 50px 90px -60px rgba(14, 49, 121, 0.7); }
.rform__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.fld { display: grid; gap: 7px; min-width: 0; }
.fld > span { font-size: 14.5px; font-weight: 500; line-height: 1.6; color: var(--navy); }
.fld > span small { font-size: 12.5px; font-weight: 400; color: var(--graphite); }
.fld input, .fld textarea { width: 100%; min-width: 0; height: 54px; padding: 0 16px; border-radius: 15px; border: 1px solid rgba(14, 49, 121, 0.18); background: #f5f7fa; color: var(--black); font: inherit; font-size: 16px; line-height: 1.7;
  -webkit-appearance: none; appearance: none; transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s; }
.fld textarea { height: auto; min-height: 128px; padding: 13px 16px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: rgba(14, 49, 121, 0.34); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(78, 114, 184, 0.18); }
/* a phone number or an email address reads left to right, from the start of its line */
.fld .ltr-field { direction: ltr; text-align: start; }
[dir="rtl"] .fld .ltr-field { text-align: right; }
.fld.is-bad input, .fld.is-bad textarea { border-color: #b3261e; background: #fdf4f3; }
.fld__err { font-size: 13px; line-height: 1.5; color: #b3261e; }
.rform__end { display: grid; gap: 12px; justify-items: start; margin-top: 4px; }
.rform__end .btn { width: 100%; justify-content: center; }
.rform__end .btn[disabled] { opacity: 0.6; pointer-events: none; }
.rform__end small { font-size: 13px; line-height: 1.7; color: var(--graphite); }
.rform__say { padding: 12px 16px; border-radius: 14px; background: #eef2f9; font-size: 14.5px; line-height: 1.8; color: var(--navy) !important; text-align: start; }
.rform__done { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 320px; text-align: center; color: var(--navy); }
.rform__done[hidden], .rform__say[hidden] { display: none; }
.rform__done b { font-size: 24px; line-height: 1.5; }
.rform__done > span:last-child { font-size: 16px; color: var(--graphite); }
.rform__ok { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); }
.rform__ok svg { width: 30px; height: 30px; }
.rform.is-done > :not(.rform__done) { display: none; }
.rform__done:focus { outline: none; }

/* ---------- Wide screens: each part one screen ---------- */
@media (min-width: 900.02px) {
  .means__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
  .mean, .fit { padding: clamp(22px, 4.2vh, 44px) clamp(22px, 2.3vw, 40px); gap: clamp(8px, 1.8vh, 18px); border-radius: 30px; }
  .mean__icon { width: clamp(46px, 6.6vh, 64px); height: clamp(46px, 6.6vh, 64px); }
  .mean h3 { font-size: clamp(26px, min(2.6vw, 4.6vh), 42px); }
  .mean p { font-size: clamp(14px, 1.95vh, 16.5px); line-height: 2; }
  .fit h3 { font-size: clamp(19px, min(1.6vw, 3vh), 25px); }
  .fit ul { gap: clamp(8px, 1.8vh, 16px); }
  .fit li { font-size: clamp(14px, 1.9vh, 16px); }
  .steps__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  /* the line the four steps stand on: from the first number to the last */
  .steps__row::before { content: ""; position: absolute; inset-inline: 0; top: clamp(50px, 8.2vh, 74px); height: 1px; background: linear-gradient(90deg, rgba(125, 162, 234, 0), rgba(125, 162, 234, 0.55) 12%, rgba(125, 162, 234, 0.55) 88%, rgba(125, 162, 234, 0)); }
  .step { padding: clamp(18px, 3.6vh, 34px) clamp(18px, 1.8vw, 30px) clamp(20px, 4vh, 38px); gap: clamp(6px, 1.4vh, 12px); background: rgba(14, 49, 121, 0.55); }
  .step__n { font-size: clamp(48px, 9vh, 84px); margin-bottom: clamp(4px, 1.4vh, 14px); }
  .step h3 { font-size: clamp(18px, min(1.6vw, 3vh), 25px); }
  .step p { font-size: clamp(14px, 1.9vh, 16px); }

  .request { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: grid; align-items: center; padding: calc(var(--header-h) + 2vh) var(--gutter) clamp(18px, 3.4vh, 40px); }
  .request__inner { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(34px, 6vw, 110px); }
  .request__side { gap: clamp(8px, 1.8vh, 18px); }
  .request__side h2 { font-size: clamp(28px, min(3.6vw, 5.6vh), 54px); }
  .request__side p { font-size: clamp(15px, 2.1vh, 18.5px); }
  .request__direct a { font-size: clamp(17px, 2.4vh, 21px); }
  .rform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.9vh, 18px) 16px; padding: clamp(20px, 4vh, 40px) clamp(22px, 2.6vw, 42px); border-radius: 32px; }
  .fld--wide, .rform__end, .rform__say, .rform__done { grid-column: 1 / -1; }
  .fld input { height: clamp(46px, 6.4vh, 56px); }
  .fld textarea { min-height: clamp(84px, 15vh, 150px); }
  .rform__end { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
  .rform__end .btn { width: auto; }
}
