/* دستیار طرح توجیهی — واکنش‌گرا */

.page-feasibility {
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(85, 201, 195, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 30% at 0% 20%, rgba(232, 146, 10, 0.08), transparent 50%),
    var(--bg);
}

.fs-shell {
  padding: 1.25rem 0 3.5rem;
}

.fs-hero {
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.fs-hero__badge {
  display: inline-flex;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.fs-hero h1 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.4;
}

.fs-hero__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.fs-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0;
}

.fs-progress li {
  position: relative;
  padding: 0.7rem 0.75rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 4.4rem;
}

.fs-progress li.is-done {
  border-color: #3aada7;
  background: #f0fdfa;
}

.fs-progress li.is-current {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 146, 10, 0.18);
}

.fs-progress__n {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange-d);
}

.fs-progress__l {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.fs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.1rem;
  align-items: start;
}

.fs-panel,
.fs-side__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.fs-panel {
  padding: 1.15rem 1.15rem 1.3rem;
}

.fs-panel__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  color: var(--navy);
}

.fs-panel__head p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.fs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.fs-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fs-field--full {
  grid-column: 1 / -1;
}

.fs-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.fs-field input,
.fs-field select,
.fs-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fbfefe;
  color: var(--ink);
}

.fs-field textarea {
  min-height: 110px;
  resize: vertical;
}

.fs-field input:focus,
.fs-field select:focus,
.fs-field textarea:focus {
  outline: 2px solid rgba(10, 99, 99, 0.35);
  border-color: var(--navy-m);
}

.fs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.fs-actions .btn {
  min-height: 2.75rem;
}

.fs-error {
  margin: 0.8rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
}

.fs-side {
  display: grid;
  gap: 0.85rem;
}

.fs-side__card {
  padding: 1rem;
}

.fs-side__card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.fs-side__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.fs-price {
  margin-top: 0.7rem !important;
  color: var(--orange-d) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}

.fs-dl {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.fs-side__card--muted {
  background: #f7fbfb;
}

.fs-review {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.fs-review div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.fs-review dt {
  color: var(--muted);
}

.fs-review dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.product-tarh {
  display: grid;
  gap: 1.25rem;
}

.product-tarh__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1.4rem;
  padding: 1.4rem;
  background: linear-gradient(145deg, #003d3a 0%, #0a6363 55%, #146868 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-tarh__hero h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #fff;
}

.product-tarh__hero p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.product-tarh__price {
  margin: 0 0 1rem !important;
  font-weight: 800;
  color: #ffd89a !important;
  font-size: 1.05rem;
}

.product-tarh__media {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  min-height: 180px;
  overflow: hidden;
}

.product-tarh__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tarh__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-tarh__step {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.product-tarh__step strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.product-tarh__step span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.product-tarh__body {
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

@media (max-width: 980px) {
  .fs-progress {
    grid-template-columns: 1fr 1fr;
  }
  .fs-layout,
  .product-tarh__hero,
  .product-tarh__steps {
    grid-template-columns: 1fr;
  }
  .fs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fs-progress {
    grid-template-columns: 1fr;
  }
  .fs-progress li {
    min-height: 0;
  }
  .fs-actions .btn {
    width: 100%;
  }
}
