*,
*::before,
*::after {
  box-sizing: border-box;
}

:host {
  --color-text-body: #4c4d52;
  --color-neutral-800: #434347;
  --color-neutral-400: #83858d;
  --color-neutral-500: #686a72;
  --color-neutral-200: #ceced3;
  --color-neutral-100: #e5e5e8;
  --color-neutral-50: #f5f5f6;
  --color-green-600: #21984b;
  --color-green-400: #64d78c;
  --color-green-300: #8ee7ad;
  --color-blue-600: #2243ee;
  --color-satin-50: #f6f5f1;
  --color-red-700: #be1011;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

.assistive-txt {
  font-size: 0.75rem;
  color: var(--color-neutral-800);
  margin-top: 0.5rem;
}

.overflow-hidden {
  overflow: hidden;
}

.heading-5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
  line-height: 1.4;
}

.heading-4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: black;
  line-height: 1.4;
}

.heading-3 {
  font-size: 2.25rem;
  font-weight: 600;
  color: black;
  line-height: 1.4;
}

.heading-1 {
  font-size: 3rem;
  font-weight: 600;
  color: black;
  line-height: 1.4;
}

.weight-600 {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-18 {
  font-size: 1.125rem;
}

.text-14 {
  font-size: 0.875rem;
}

.text-12 {
  font-size: 0.75rem;
}

.flex-v-center-top {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.flex-h-left-center {
  display: flex;
  justify-content: start;
  align-items: center;
}

.flex-h-left-stretch {
  display: flex;
  justify-content: start;
  align-items: stretch;
}

.flex-h-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-h-between-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.flex-v-left-top {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.gap-8 {
  gap: 0.5rem;
}

.gap-10 {
  gap: 0.625rem;
}

.gap-16 {
  gap: 1rem;
}

.gap-20 {
  gap: 1.25rem;
}

.gap-24 {
  gap: 1.5rem;
}

.gap-32 {
  gap: 2rem;
}

.gap-40 {
  gap: 2.5rem;
}

.gap-64 {
  gap: 3rem;
}

.padding-24 {
  padding: 1.5rem;
}

.padding-bottom-32 {
  padding-bottom: 2rem;
}

.calculator-slider_container {
  height: 100%;
  width: 100%;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
}

.width-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .is-mobile-vertical {
    flex-direction: column;
  }

  .is-mobile-horizontal-top-between {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }

  .is-mobile-align-left {
    align-items: start;
  }

  .calculator-slider_container {
    padding: 1.5rem 1.25rem;
  }

  .heading-4 {
    font-size: 1.25rem;
  }

  .heading-3 {
    font-size: 1.75rem;
  }

  .mobile-gap-12 {
    gap: 0.75rem;
  }

  .mobile-gap-32 {
    gap: 2rem;
  }

  .mobile-text-12 {
    font-size: 0.75rem;
  }

  .mobile-text-14 {
    font-size: 0.875rem;
  }

  .mobile-stretch {
    width: 100%;
  }
}

.button {
  border-radius: 32px;
  padding: 16px 24px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 300ms ease;
  height: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.button--primary {
  background: var(--color-green-400);
  border: 1.5px solid var(--color-green-600);
  box-shadow: inset 0px 4px 4px 0px #ffffff40;
}

.button--primary:hover {
  background: var(--color-green-300);
}

.button--primary:disabled {
  background: var(--color-neutral-200);
  border: 1.5px solid var(--color-neutral-200);
  color: var(--color-neutral-500);
  cursor: not-allowed;
  box-shadow: none;
}

.button--primary:disabled:hover {
  background: var(--color-neutral-200);
}

.button--secondary {
  background: white;
  border: 1.5px solid black;
  box-shadow: none;
}

.button--secondary:hover {
  border-color: var(--color-green-600);
}

.button--secondary:disabled {
  background: var(--color-neutral-50);
  border: 1.5px solid var(--color-neutral-500);
  color: var(--color-neutral-500);
  cursor: not-allowed;
}

.button--secondary:disabled:hover {
  border-color: var(--color-neutral-500);
  background: var(--color-neutral-50);
}

.button--full-width {
  width: 100%;
}

.input-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1rem;
  border: 1px solid #83858d;
  border-radius: 12px;
  background: white;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input-field:hover {
  box-shadow: 0px 4px 12px 0px #00000026;
}

.input-field:focus-within {
  border-color: var(--color-blue-600);
}

.input-field:has(.input-field__input:disabled) {
  background: var(--color-neutral-100);
}

.input-field__label {
  font-size: 0.75rem;
  color: var(--color-text-body);
}

.input-field__row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-between;
  gap: 8px;
}

.input-field__input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 500;
  color: black;
  width: 100%;
  padding: 0;
}

.input-field__input:disabled {
  color: var(--color-neutral-500);
  cursor: not-allowed;
}

.input-field__input::placeholder {
  color: #111;
  opacity: 1;
}

.input-field__suffix {
  font-size: 0.875rem;
  line-height: 1;
  color: var(--color-text-body);
  flex-shrink: 0;
}

.input-field:has(.input-field__input:disabled) .input-field__suffix {
  color: var(--color-text-body);
}

.input-field__input::-webkit-outer-spin-button,
.input-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-field__input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.radio-group__option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-group__option span {
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* radio base */
.radio-group__option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #000;
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* inner dot */
.radio-group__option input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  background-color: #000;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* checked state */
.radio-group__option input[type="radio"]:checked::before {
  transform: scale(1);
}

/* hover (only when enabled) */
.radio-group__option:hover input[type="radio"]:not(:disabled) {
  border-color: var(--color-neutral-800);
}

.radio-group__option:hover input[type="radio"]:not(:disabled)::before {
  background-color: var(--color-neutral-800);
}

.radio-group__option:hover input[type="radio"]:not(:disabled) + span {
  color: var(--color-neutral-800);
}

/* disabled state */
.radio-group__option input[type="radio"]:disabled {
  border-color: var(--color-neutral-500);
  background-color: var(--color-neutral-50);
  cursor: not-allowed;
}

.radio-group__option input[type="radio"]:disabled::before {
  background-color: var(--color-neutral-500);
}

.radio-group__option input[type="radio"]:disabled + span {
  color: var(--color-neutral-500);
  cursor: not-allowed;
}

/* disable pointer on whole label */
.radio-group__option:has(input[type="radio"]:disabled) {
  cursor: not-allowed;
}

.economic-security-calculator {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.economic-security-calculator_summary {
  width: 100%;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 24px;
  max-width: 35.875rem;
}

.economic-security-calculator_summary-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-neutral-100);
}

@media (max-width: 992px) {
  .economic-security-calculator_summary {
    max-width: none;
  }

  .economic-security-calculator_summary {
    padding: 1.5rem 1.25rem;
  }
}

