.credit-points-page {
  padding-left: 20px;
}

.credit-points-updated {
  float: left;
}

.credit-points-intro,
.credit-points-explanation {
  max-width: 780px;
  line-height: 1.65;
}

.credit-points-intro {
  font-size: 1.08em;
}

.credit-points-calculator {
  box-sizing: border-box;
  max-width: 800px;
  margin: 24px 0;
  padding: 18px;
  background: #f5faef;
  border: 1px solid #91bd69;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(63, 127, 0, 0.12);
}

.credit-points-calculator h2 {
  margin-top: 0;
}

.credit-points-profile-grid,
.credit-points-children-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
}

.credit-points-field {
  min-width: 0;
}

.credit-points-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-weight: 700;
  line-height: 1.35;
}

.credit-points-field-points {
  flex: 0 1 auto;
  color: #4f7510;
  font-size: 0.78em;
  font-weight: 700;
  text-align: left;
}

.credit-points-field-note {
  margin: 8px 0 0;
  color: #5e6c5a;
  font-size: 12px;
  line-height: 1.4;
}

.credit-points-field input,
.credit-points-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #1b1b1b;
  background: #fff;
  border: 1px solid #9a9a9a;
  border-radius: 5px;
  font-size: 16px;
}

.credit-points-field input:focus,
.credit-points-field select:focus {
  border-color: #3f7f00;
  box-shadow: 0 0 0 2px rgba(63, 127, 0, 0.18);
  outline: none;
}

.credit-points-input-with-unit {
  display: flex;
  align-items: stretch;
  gap: 6px;
  direction: rtl;
}

.credit-points-input-with-unit input {
  flex: 1 1 auto;
  min-width: 0;
}

.credit-points-unit {
  display: flex;
  box-sizing: border-box;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #315923;
  background: #e8f2df;
  border: 1px solid #91bd69;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.credit-points-children {
  margin: 18px 0 0;
  padding: 14px 15px 16px;
  border: 1px solid #d4e2cd;
  border-radius: 7px;
}

.credit-points-children legend {
  padding: 0 6px;
  font-weight: 700;
}

.credit-points-children legend span {
  color: #5d6d58;
  font-size: 0.9em;
  font-weight: 400;
}

.credit-points-assumption {
  margin: 16px 0 12px;
  color: #4e5b4a;
  font-size: 0.94em;
  line-height: 1.55;
}

.credit-points-submit {
  min-height: 44px;
  padding: 10px 22px;
  color: #fff;
  background: #468db4;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(34, 79, 105, 0.2);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.credit-points-submit:hover,
.credit-points-submit:focus {
  background: #326f92;
}

.credit-points-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.credit-points-results {
  max-width: 800px;
  margin: 22px 0 28px;
}

.credit-points-placeholder,
.credit-points-loading,
.credit-points-error {
  padding: 12px 14px;
  line-height: 1.55;
}

.credit-points-placeholder,
.credit-points-loading {
  background: #f7f7f7;
  border-right: 4px solid #818181;
}

.credit-points-error {
  color: #7a1111;
  background: #fff0f0;
  border: 1px solid #b43d3d;
  border-radius: 5px;
  font-weight: 700;
}

.credit-points-explanation h2 {
  margin-top: 22px;
}

.credit-points-explanation a {
  color: #4f7510;
  font-weight: 700;
}

.credit-points-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  color: #36542f;
  font-weight: 700;
  line-height: 1.45;
}

.credit-points-check .credit-points-field-points {
  margin-right: auto;
  white-space: nowrap;
}

.credit-points-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #3f7f00;
}

.credit-points-advanced {
  margin-top: 18px;
  border: 1px solid #c8dcc0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.credit-points-advanced summary {
  padding: 12px 14px;
  color: #2e6326;
  cursor: pointer;
  font-family: Arial, arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  list-style-position: inside;
}

.credit-points-advanced[open] summary {
  border-bottom: 1px solid #d4e2cd;
}

.credit-points-advanced-note {
  margin: 12px 14px 0;
  color: #566b50;
  font-size: 0.92em;
  line-height: 1.5;
}

.credit-points-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
  padding: 14px;
}

.credit-points-field small {
  display: block;
  margin-top: 5px;
  color: #5e6c5a;
  font-size: 12px;
  line-height: 1.4;
}

.credit-points-breakdown {
  padding-top: 18px;
}

.credit-points-breakdown .salary-result-card__group dl > div {
  align-items: flex-start;
  padding: 7px 0;
}

.credit-points-threshold {
  box-sizing: border-box;
  width: 100%;
  max-width: 280px;
  margin: 12px 0 0;
  margin-right: auto;
  margin-left: auto;
  padding: 10px 12px;
  background: #eef7e8;
  border: 1px solid #b8d59f;
  border-right: 3px solid #4f8b2b;
  border-radius: 6px;
}

.credit-points-threshold__main {
  display: block;
  text-align: center;
}

.credit-points-threshold__main span {
  display: block;
  color: #315923;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.35;
}

.credit-points-threshold__main strong {
  display: block;
  margin-top: 3px;
  color: #24551c;
  font-size: 1.05em;
  line-height: 1.25;
  white-space: normal;
}

.credit-points-threshold__details {
  margin-top: 4px;
}

.credit-points-threshold__details summary {
  text-align: center;
  color: #56714c;
  cursor: pointer;
  font-family: Arial, arial, sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.3;
  list-style-position: inside;
}

.credit-points-threshold__details p {
  margin: 5px 0 0;
  color: #52634d;
  font-size: 0.8em;
  line-height: 1.4;
}

@media (max-width: 780px) {
  .credit-points-page {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .credit-points-updated {
    float: none;
  }

  .credit-points-profile-grid,
  .credit-points-children-grid,
  .credit-points-advanced-grid {
    grid-template-columns: 1fr;
  }

  .credit-points-calculator {
    padding: 14px;
  }

  .credit-points-submit {
    width: 100%;
  }

  .credit-points-field label {
    align-items: flex-start;
  }

  .credit-points-field-points {
    max-width: 52%;
    line-height: 1.25;
  }

  .credit-points-check {
    flex-wrap: wrap;
  }

  .credit-points-check .credit-points-field-points {
    margin-right: 26px;
  }

  .credit-points-threshold {
    max-width: 280px;
  }
}
