/* TDS Calculator */
.tds-page {
  padding-top: 24px;
  padding-bottom: 48px;
  background: #f4f6f8;
}

.tds-calc {
  max-width: 720px;
  margin: 0 auto;
}

.tds-fy-pill {
  text-align: center;
  display: table;
  margin: 0 auto 24px;
  padding: 10px 28px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
}

.tds-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.tds-recipient-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.tds-recipient-bar__label {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.tds-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin: 0;
}

.tds-radio input {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
  cursor: pointer;
}

.tds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.tds-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.tds-field--full {
  margin-bottom: 24px;
}

.tds-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}

.tds-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.tds-field--full select.tds-input {
  min-height: 44px;
}

.tds-form__actions {
  margin-top: 8px;
}

.tds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.tds-btn--primary {
  background: #22c55e;
  color: #fff;
}

.tds-btn--primary:hover {
  background: #16a34a;
  color: #fff;
}

.tds-btn--block {
  width: 100%;
  margin-top: 20px;
}

/* Result card */
.tds-result {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 32px 32px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.tds-result__back {
  position: absolute;
  left: 20px;
  top: 16px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 8px;
}

.tds-result__back:hover {
  color: #22c55e;
}

.tds-result__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 12px;
}

.tds-result__amount {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #22c55e;
  margin: 0 0 24px;
}

.tds-result__rule {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.tds-result__rule strong {
  color: #0f172a;
}

.tds-disclaimer {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 640px) {
  .tds-grid-2 {
    grid-template-columns: 1fr;
  }

  .tds-recipient-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
