.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  label {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.25rem;
  }
  input,
  textarea {
    background-color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: black;
    border: 2px solid #82aba3;
    width: 100%;
  }
}

.inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.radios {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.radios .form-group > label {
  font-weight: 700;
  margin-bottom: 1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  input {
    width: 1.5rem;
  }
}
.radio-label > span {
  font-family: "Open Sans", sans-serif;
}

.flex-2 {
  flex: 2;
}
.flex-4 {
  flex: 4;
}

#user-info-submit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  .optional {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    margin-left: 0.75rem;
  }
  .char-counter {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
  }
}

.checkbox-label {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  input {
    width: 1.5rem;
  }
  input {
    width: auto;
  }
  a {
    text-decoration: underline;
    font-weight: 600;
    color: #145d4d;
  }
}

#user-info-submit-form .checkbox-label {
  padding: 0.5rem 0rem;
}

.calculation-results-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  clip-path: polygon(0 0, calc(100% - 65px) 0, 100% 65px, 100% 100%, 0 100%);
}

.calculation-results-header-title {
  padding: 1rem 3rem;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  line-height: 1;
  font-size: 1.25rem;
  @media (max-width: 1023px) {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}

.calculation-results-header .results-summary {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 3rem;
  clip-path: polygon(3rem 0, 100% 0, 100% 100%, 0 100%, 0 3rem);
  @media (max-width: 1023px) {
    padding: 1rem 2.5rem;
    clip-path: polygon(2.5rem 0, 100% 0, 100% 100%, 0 100%, 0 2.5rem);
  }
}

.calculation-results-header .results-summary .summary-card h4 {
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  font-size: 2rem;
  line-height: 1.25;
  @media (max-width: 1023px) {
    font-size: 1.25rem;
  }
}
.calculation-results-header .results-summary .summary-card .price-display {
  font-weight: 800;
  font-family: "Open Sans", sans-serif;
  font-size: 2.5rem;
  line-height: 1.25;
  @media (max-width: 1023px) {
    font-size: 2rem;
  }
}

.results-table-container {
  padding: 1.5rem 1.5rem 3.5rem;
  background-color: white;
  color: black;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 3rem 100%, 0 calc(100% - 3rem));
  @media (max-width: 1023px) {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 100%,
      2.5rem 100%,
      0 calc(100% - 2.5rem)
    );
  }
}

.results-breakdown-table-description {
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 1.25rem;
}

.results-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.results-breakdown-table th {
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  &:first-child {
    padding-left: 1rem;
  }
  &:last-child {
    padding-right: 1rem;
    border-right: none;
  }
}

.results-breakdown-table tr:nth-child(odd) {
  background-color: #eef3f2;
}
.results-breakdown-table tr:nth-child(even) {
  background-color: #d8e0de;
}

.results-breakdown-table td {
  font-size: 0.875rem;
  line-height: 1.25;
  font-family: "Open Sans", sans-serif;
  padding: 0.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  .vat-rate {
    font-size: 0.875rem;
    font-family: "Open Sans", sans-serif;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 1rem;
  }
  &:first-child {
    padding-left: 1rem;
  }
  &:last-child {
    padding-right: 1rem;
    border-right: none;
  }
  &.indented {
    padding-left: 2.5rem;
  }
}

.results-breakdown-table tfoot tr.total-row {
  background-color: #f1b971;
}

.results-breakdown-table tfoot tr td {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.user-info-form {
  max-width: 544px;
  margin: 0 auto;
}

.pdf-sent-success {
  background-color: white;
  color: black;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2.5rem;
  h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #145d4d;
    line-height: 1;
    margin-bottom: 1rem;
  }
}

.pdf-sent-success .success-message {
  text-align: center;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.results-disclaimer {
  font-size: 0.875rem;
  font-style: italic;
  font-family: "Open Sans", sans-serif;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.25;
  p {
    margin-bottom: 0.5rem;
  }
}

.field-error {
  font-size: 0.75rem;
  font-family: "Open Sans", sans-serif;
  color: var(--color-red-700);
  margin-top: 0.5rem;
  position: absolute;
  bottom: -1.3rem;
  left: 0;
  right: 0;
}

.mobile-category-card {
  background-color: #eef3f2;
  overflow: hidden;
  &:first-child {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
  }
  &:nth-child(odd) {
    background-color: #eef3f2;
  }
}

.mobile-category-card:nth-child(even) {
  background-color: #d8e0de;
}

.mobile-category-card .mobile-card-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
}

.mobile-category-card.mobile-child .mobile-card-header {
  padding-left: 2rem;
}

.mobile-category-card .mobile-card-content {
  padding: 0rem 1rem 0.75rem;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
  .vat-rate {
    font-size: 0.875rem;
    font-family: "Open Sans", sans-serif;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 1rem;
  }
}

.mobile-card-row:last-child {
  margin-bottom: 0;
}

.mobile-card-label {
  font-size: 0.875rem;
}

.mobile-card-value {
  font-weight: 400;
}

/* Mobile total card */
.mobile-total-card {
  background-color: #f1b971;
  padding: 0.75rem 1rem;
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.mobile-total-label {
  font-weight: 700;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.mobile-total-values {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
}

.mobile-total-label-small {
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
}

.mobile-total-value {
  font-weight: 700;
  font-size: 1rem;
}
