#form.alimony-form-section {
  padding-bottom: 0 !important;
}

#alimony-result {
  margin: 16px 0 0;
  padding: 0 !important;
}

#alimony-result + .sv-article {
  padding-top: 24px !important;
}

#alimony-result .sv-total {
  gap: 9px;
  padding: clamp(18px, 4vw, 30px) clamp(14px, 5vw, 36px);
  border: 1px solid #d9cde7;
  background: linear-gradient(145deg, #fffaf0, #eee6f7 75%);
  box-shadow: 0 16px 32px -22px #5f487c;
}

#alimony-result .sv-total-label {
  max-width: 32ch;
  color: #49385d;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0.02em;
}

#alimony-result .sv-total-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 6vw, 52px);
  font-variant-numeric: tabular-nums;
  color: #49305e;
}

#alimony-result .sv-total-hint {
  padding: 7px 12px;
  border: 1px solid #dec783;
  border-radius: 18px;
  color: #604800;
  background: #fff2ce;
  overflow-wrap: anywhere;
  max-width: 100%;
}

#alimony-tax-hint {
  margin: 14px 0 0;
}

#alimony-tax-details {
  margin-top: 10px;
}

#alimony-tax-details summary {
  width: fit-content;
  padding: 8px 0;
  color: var(--th-deep);
  font-weight: 700;
  cursor: pointer;
}

#alimony-tax-fields {
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

#alimony-calc {
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--th-hi), var(--th) 45%, var(--th-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 30px -12px var(--th-glow);
}

#alimony-calc:hover {
  background: linear-gradient(120deg, var(--th), var(--th-deep));
}

#alimony-calc:focus-visible {
  outline: 2px solid var(--th-deep);
  outline-offset: 3px;
}

#alimony-form .sv-select-trigger:hover,
#alimony-form .sv-select-trigger:focus-visible,
#alimony-form .sv-select[data-open="true"] .sv-select-trigger {
  border-color: var(--th);
  box-shadow: 0 0 0 3px var(--th-soft);
}

#alimony-form .sv-select-caret {
  color: var(--th-deep);
}

#alimony-form .sv-select-menu {
  border-color: var(--th-soft);
}

#alimony-form .sv-select-option.is-focused {
  background: var(--th-soft);
  color: var(--th-deep);
}

#alimony-form .sv-select-option[aria-selected="true"] {
  background: var(--th-deep);
  color: #fff;
}

.alimony-result-guide {
  color: #49385d;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alimony-guide {
  margin-top: 0;
}

.alimony-guide h2:not(:first-child) {
  margin-top: 26px !important;
}

.alimony-guide h2[id] {
  scroll-margin-top: 88px;
}

.alimony-guide-table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  color: #49385d;
  font-size: clamp(13px, 3.5vw, 16px);
}

.alimony-guide-table caption {
  padding: 0 0 8px;
  font-weight: 700;
  text-align: left;
}

.alimony-guide-table th,
.alimony-guide-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--th-soft);
  text-align: left;
}

.alimony-guide-table thead {
  background: var(--th-soft);
}

.alimony-guide p.alimony-back {
  margin-top: 16px !important;
}
