.costCalculator.costCalculator--panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.setupHK__accordion__body .accordion-content > .costCalculator.costCalculator--panel {
  padding-left: 78px;
}

.costCalculator.costCalculator--panel.is-collapsed .costCalculator__sheet {
  display: none;
}

.costCalculator.costCalculator--panel:not(.is-collapsed) .costCalculator__launch {
  display: none;
}

.costCalculator.costCalculator--panel .costCalculator__launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7271d;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.costCalculator.costCalculator--panel .costCalculator__launchIcon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.costCalculator.costCalculator--panel .costCalculator__sheet {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px 40px 40px;
  background: #fff;
}

.costCalculator.costCalculator--panel .costCalculator__calculator {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.costCalculator.costCalculator--panel .costCalculator__header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-right: 110px;
}

.costCalculator.costCalculator--panel .costCalculator__title {
  margin: 0;
  padding: 12px 0;
  color: #d7271d;
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.costCalculator.costCalculator--panel .costCalculator__intro {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .costCalculator__dismiss {
  position: absolute;
  top: 12px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #d7271d;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.costCalculator.costCalculator--panel .costCalculator__dismissIcon {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid #d7271d;
  border-radius: 50%;
}

.costCalculator.costCalculator--panel .costCalculator__dismissIcon::before,
.costCalculator.costCalculator--panel .costCalculator__dismissIcon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 12px;
  border-top: 2px solid #d7271d;
}

.costCalculator.costCalculator--panel .costCalculator__dismissIcon::before {
  transform: rotate(45deg);
}

.costCalculator.costCalculator--panel .costCalculator__dismissIcon::after {
  transform: rotate(-45deg);
}

.costCalculator.costCalculator--panel .form-cost-estimation-calculator {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.costCalculator.costCalculator--panel .form-cost-estimation-calculator > .row {
  --bs-gutter-x: 26px;
  margin-bottom: 0;
}

.costCalculator.costCalculator--panel .costCalculator__group {
  margin-bottom: 0;
}

.costCalculator.costCalculator--panel .label-field {
  margin-bottom: 0;
  padding: 4px 0;
  color: #d7271d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .input-control,
.costCalculator.costCalculator--panel .select2-container .select-control.select2-selection--single {
  min-height: 62px;
  border-color: #8d9091;
  background: #fff;
  font-size: 20px;
}

.costCalculator.costCalculator--panel .input-control::placeholder {
  color: #aaadae;
}

.costCalculator.costCalculator--panel .input-control:disabled {
  background: #eeefef;
}

.costCalculator.costCalculator--panel .select2-container .select-control.select2-selection--single {
  display: flex;
  align-items: center;
  padding: 12px 56px 12px 12px;
}

.costCalculator.costCalculator--panel .select2-container .select2-selection__rendered,
.costCalculator.costCalculator--panel .select2-container .select2-selection__placeholder {
  font-size: 20px;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .select2-container .select2-selection__placeholder {
  color: #aaadae;
}

.costCalculator.costCalculator--panel .select2-container.select2-container--disabled .select-control.select2-selection--single {
  background: #eeefef;
}

.costCalculator.costCalculator--panel .unit-input {
  color: #000;
  font-size: 20px;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .costCalculator__calculator__addStaff {
  width: auto;
  margin: 0;
  color: #000;
  font-size: 20px;
  line-height: 1.5;
  grid-template-columns: 32px 1fr;
}

.costCalculator.costCalculator--panel .costCalculator__calculator__addStaff img {
  width: 32px;
  height: 32px;
}

.costCalculator.costCalculator--panel .costCalculator__remarks,
.costCalculator.costCalculator--panel .costCalculator__checkbox {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .costCalculator__action {
  margin: 14px 0 0;
  text-align: left;
}

/* Full report download form: spacing between the fields, the PDPA text, the consent checkboxes and the button. */
.costCalculator.costCalculator--panel .form-download-breakdown .costCalculator__group {
  margin-bottom: 24px;
}

.costCalculator.costCalculator--panel .form-download-breakdown .costCalculator__remarks {
  margin: 4px 0 40px;
  line-height: 1.6;
}

.costCalculator.costCalculator--panel .form-download-breakdown .costCalculator__checkbox {
  margin: 0 0 32px;
  line-height: 1.6;
}

.costCalculator.costCalculator--panel .form-download-breakdown .costCalculator__action {
  /* 32px from the last checkbox's margin + 16px = 48px above the button. */
  margin-top: 16px;
}

.costCalculator.costCalculator--panel .costCalculator__action .button {
  min-width: 200px;
  height: 67px;
  padding: 12px 40px;
  border: 1px solid #d7271d;
  font-size: 28px;
  font-weight: 400;
  line-height: 35px;
}

.costCalculator.costCalculator--panel .costCalculator__footnote {
  color: #000;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .costCalculator__footnote p {
  margin: 0;
}

/* Data source / disclaimer below the download button. styles.css gives these lines a
   negative bottom margin, which makes them overlap. */
.costCalculator.costCalculator--panel .costCalculator__result__dataSource {
  margin-top: 24px;
  text-align: center;
}

.costCalculator.costCalculator--panel .costCalculator__result__dataSource p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
}

.costCalculator.costCalculator--panel .costCalculator__result__dataSource p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .setupHK__accordion__body .accordion-content > .costCalculator.costCalculator--panel {
    padding-left: calc(24px + 4.5px + 12px);
  }

  .costCalculator.costCalculator--panel .costCalculator__sheet {
    padding: 16px;
  }

  .costCalculator.costCalculator--panel .costCalculator__intro {
    font-size: 16px;
  }

  .costCalculator.costCalculator--panel .costCalculator__header {
    padding-right: 0;
  }

  .costCalculator.costCalculator--panel .costCalculator__dismiss {
    position: static;
    align-self: flex-end;
  }

  .costCalculator.costCalculator--panel .costCalculator__action .button {
    width: 100%;
  }
}
