/* מחשבון דמי ניהול – styles. Reuses the shared tool visual language
   (guide-container, stage, custom-upload, faq-item, tool-conversion-*)
   and adds the fee-comparison specific pieces. */

.tool-page-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}
.tool-page-layout__main {
  flex: 1 1 auto;
  min-width: 0;
}
.tool-page-layout__ad {
  flex: 0 0 300px;
  position: sticky;
  top: 20px;
}
@media (max-width: 900px) {
  .tool-page-layout {
    display: block;
  }
  .tool-page-layout__ad {
    display: none;
  }
}

.guide-container {
  max-width: 820px;
  margin: 0 auto;
}
.tool-lead {
  font-size: 1.08em;
  line-height: 1.7;
  color: #333;
}
.tool-byline {
  color: #777;
  font-size: 0.9em;
  margin-top: -4px;
}

.stage {
  background: #fff;
  border: 1px solid #ece7f5;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: 0 2px 10px rgba(107, 63, 160, 0.05);
}
.stage h2 {
  font-size: 1.25em;
  margin: 18px 0 8px;
  color: #4a2a75;
}
.stage h2:first-child {
  margin-top: 0;
}
.step {
  position: relative;
  padding-inline-start: 26px;
  margin: 8px 0;
  line-height: 1.6;
  color: #444;
}
.step::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: #6b3fa0;
  font-weight: bold;
}

/* ---- Global inputs row ---- */
.fees-field-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.fees-field-row .fees-field {
  min-width: 0;
}
@media (max-width: 640px) {
  .fees-field-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fees-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fees-field label {
  font-size: 0.88em;
  font-weight: 600;
  color: #555;
}
.fees-field input,
.fees-field select {
  padding: 9px 11px;
  border: 1px solid #d5cde6;
  border-radius: 9px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
}
.fees-field input:focus,
.fees-field select:focus {
  outline: none;
  border-color: #6b3fa0;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.12);
}
.fees-hint {
  font-size: 0.85em;
  color: #888;
  margin: 10px 0 0;
}

/* ---- Scenario editor ---- */
.scenario-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.scenario-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  border: 1px solid #e2dcf0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #faf8ff;
}
.scenario-card--current {
  border-color: #6b3fa0;
  background: #f3eefc;
}
.scenario-card .scenario-badge {
  align-self: center;
  flex: 0 0 auto;
}
.scenario-card .scenario-field--name {
  flex: 1 1 160px;
}
.scenario-card .scenario-field {
  margin-bottom: 0;
}
.scenario-badge {
  font-size: 0.78em;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #6b3fa0;
  color: #fff;
}
.scenario-badge--alt {
  background: #e9e2f7;
  color: #4a2a75;
}
.scenario-remove {
  border: none;
  background: transparent;
  color: #b04a4a;
  font-size: 1em;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  align-self: center;
  margin-inline-start: auto;
}
.scenario-remove:hover {
  background: #fbe9e9;
}
.scenario-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 9px;
}
.scenario-field label {
  font-size: 0.82em;
  color: #666;
  font-weight: 600;
}
.scenario-field input {
  padding: 7px 9px;
  border: 1px solid #d5cde6;
  border-radius: 8px;
  font-size: 0.95em;
  font-family: inherit;
}
.scenario-field input:focus {
  outline: none;
  border-color: #6b3fa0;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1);
}
.scenario-fees {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.scenario-fees .scenario-field {
  flex: 0 0 130px;
}
.scenario-warning {
  flex-basis: 100%;
  display: none;
  font-size: 0.78em;
  color: #b8620c;
  background: #fff6ea;
  border-radius: 7px;
  padding: 6px 8px;
  margin: 4px 0 0;
  line-height: 1.4;
}

.scenario-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.custom-upload {
  background: #6b3fa0;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.custom-upload:hover {
  background: #593489;
}
.scenario-reset-btn {
  background: transparent;
  color: #6b3fa0;
  border: 1px solid #cfc2e6;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.95em;
  cursor: pointer;
  font-family: inherit;
}
.scenario-reset-btn:hover {
  background: #f3eefc;
}

.fees-calc-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #6b3fa0, #8a5fc0);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 11px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}
.fees-calc-btn:hover {
  filter: brightness(1.05);
}

/* ---- Results ---- */
.fees-results {
  margin-top: 22px;
}
.best-plan-callout {
  background: #eef7f1;
  border: 1px solid #cfe8da;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1.12em;
  line-height: 1.6;
  color: #21503b;
  text-align: center;
  margin-bottom: 18px;
}
.fees-result-table-wrapper {
  overflow-x: auto;
}
.fees-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  min-width: 560px;
}
.fees-result-table th,
.fees-result-table td {
  padding: 11px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.fees-result-table thead th {
  background: #f3eefc;
  color: #4a2a75;
  font-weight: 700;
}
.fees-result-table .row-current {
  background: #faf8ff;
  font-weight: 600;
}
.scenario-name-cell {
  text-align: start;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-inline-end: 7px;
  vertical-align: middle;
}
.diff-pos {
  color: #2f9e6f;
  font-weight: 700;
}
.diff-neg {
  color: #c0504d;
  font-weight: 700;
}

.chart-container {
  position: relative;
  height: 340px;
  margin: 22px 0 10px;
}
.fees-disclaimer {
  font-size: 0.82em;
  color: #999;
  text-align: center;
  margin: 10px 0 18px;
  line-height: 1.5;
}

/* ---- Conversion banner (shared look with other tools) ---- */
.tool-conversion-banner {
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  margin: 14px 0;
}
.tool-conversion-banner--primary {
  background: #f3eefc;
  border: 1px solid #ddd0f0;
}
.tool-conversion-banner__title {
  font-weight: 700;
  font-size: 1.1em;
  color: #4a2a75;
  margin: 0 0 6px;
}
.tool-conversion-banner__text {
  color: #555;
  margin: 0 0 12px;
  line-height: 1.6;
}
.tool-conversion-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.tool-conversion-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
}
.tool-conversion-btn--primary {
  background: #6b3fa0;
  color: #fff;
}
.tool-conversion-btn--primary:hover {
  background: #593489;
}

/* ---- SEO content + FAQ ---- */
.fees-info,
.fees-faq {
  margin: 2rem 0;
  line-height: 1.75;
  color: #333;
}
.fees-info h2,
.fees-faq h2 {
  color: #4a2a75;
}
.fees-info h3 {
  color: #593489;
  margin-top: 1.4rem;
}
.fees-info__list {
  padding-inline-start: 22px;
}
.fees-info__list li {
  margin: 6px 0;
}
.faq-list {
  margin-top: 12px;
}
.faq-item {
  border: 1px solid #ece7f5;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}
.faq-summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: #4a2a75;
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] .faq-summary {
  border-bottom: 1px solid #f0ecf8;
}
.faq-answer {
  padding: 12px 16px;
  color: #444;
}
.faq-answer p {
  margin: 0;
}
