/* Income Tax Calculator — multi-step wizard */
.calc-hero--compact {
  padding: 28px 0 24px;
}

.itc-page {
  padding-top: 24px;
  padding-bottom: 48px;
  background: #f4f6f8;
}

.itc-wizard {
  max-width: 920px;
  margin: 0 auto;
}

.itc-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.itc-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  border-top: 4px solid transparent;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.itc-tab.is-active {
  border-top-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.itc-tab.is-done {
  border-top-color: #86efac;
}

.itc-tab__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.itc-tab__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
}

.itc-panel {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px 24px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.itc-panel__badge {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.itc-panel__title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 auto 24px;
  padding: 8px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: table;
  max-width: 100%;
}

.itc-panel__body {
  padding-top: 8px;
  padding-left: 48px;
}

.itc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.itc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.itc-req {
  color: #dc2626;
}

.itc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.itc-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.itc-slider-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 1.2fr) 140px;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.itc-slider-row__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.itc-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  cursor: help;
}

.itc-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #22c55e 0%, #22c55e var(--itc-pct, 0%), #e2e8f0 var(--itc-pct, 0%), #e2e8f0 100%);
  border-radius: 999px;
  outline: none;
}

.itc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.itc-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.itc-money-input {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.itc-money-input__sym {
  padding: 10px 10px 10px 12px;
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
}

.itc-money-input__field {
  flex: 1;
  border: none;
  padding: 10px 12px 10px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22c55e;
  text-align: right;
  min-width: 0;
}

.itc-money-input__field:focus {
  outline: none;
}

.itc-panel__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 8px;
}

.itc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.itc-btn--primary {
  background: #22c55e;
  color: #fff;
}

.itc-btn--primary:hover {
  background: #16a34a;
  color: #fff;
}

.itc-btn--secondary {
  background: #1e3a5f;
  color: #fff;
}

.itc-btn--secondary:hover {
  background: #0f2744;
  color: #fff;
}

/* Results */
.itc-results {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.itc-results__title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 28px;
}

.itc-result-block {
  margin-bottom: 24px;
}

.itc-result-block__heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #334155;
}

.itc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.itc-table th,
.itc-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: right;
}

.itc-table th:first-child,
.itc-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #334155;
}

.itc-table--compare thead th {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}

.itc-table--compare thead th small {
  font-weight: 600;
  opacity: 0.85;
}

.itc-table tr.itc-row-total td {
  font-weight: 800;
  background: #f8fafc;
}

.itc-table tr.itc-row-tax-total td {
  font-weight: 800;
  color: #16a34a;
  background: #f0fdf4;
}

.itc-results__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.itc-disclaimer {
  max-width: 920px;
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 768px) {
  .itc-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .itc-grid-2 {
    grid-template-columns: 1fr;
  }

  .itc-slider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .itc-panel__body {
    padding-left: 0;
    padding-top: 40px;
  }

  .itc-table--compare {
    display: block;
    overflow-x: auto;
  }
}
