@media (max-width: 768px) {
  .hidden-mob {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hidden-desk {
    display: none !important;
  }
}

.layout {
  padding: 2rem;
  background-color: #f8f8f8;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 768px) {
  .layout {
    height: auto;
    padding: 3rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 1rem;
  overflow: unset;
}
.grid > * {
  height: auto;
  padding: 0;
  background-color: transparent;
  color: #000;
  border: none !important;
  margin-top: 0 !important;
}
.grid > *:hover {
  background-color: transparent;
}
.grid > *:first-child {
  background-color: transparent;
}

.questions {
  grid-area: 1/1/2/8;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chart {
  grid-area: 1/8/2/13;
}

.radio-row {
  display: flex;
  gap: 2rem;
  margin: 0;
}
.radio-row::before {
  display: none;
}
.radio-row > * {
  padding-top: 0;
}

.layout-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .layout-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
  }
}
.layout-grid__left {
  grid-column-start: 1;
  grid-column-end: 13;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h2.heading {
  margin: 0 0 2rem 0;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.radio-group input {
  margin: 0;
}
.radio-group label {
  margin: 0;
}

.input {
  border: 1px solid #ddd;
  width: 100%;
  padding: 0.75rem;
}
.input[type=date] {
  line-height: normal;
}

label {
  font-size: 15px;
}

.icp-row {
  display: flex;
  flex-direction: column;
  grid-column-gap: 0.25rem;
  position: relative;
}
@media (min-width: 768px) {
  .icp-row {
    display: grid;
    grid-template-columns: 220px auto;
    grid-column-gap: 2rem;
  }
}
@media (min-width: 900px) {
  .icp-row {
    grid-column-gap: 4rem;
  }
}

.icp-form-group {
  position: relative;
}

.icp-form-group-label {
  font-weight: bold;
  font-size: 15px;
}
.icp-form-group-label--required::after {
  content: "*";
  color: #ef4444;
  margin-left: 0.25rem;
}

.customSelectWrap {
  background-color: #ffffff;
}
.customSelectWrap .customSelect {
  position: absolute !important;
  background-color: transparent !important;
  pointer-events: none !important;
}

.react-select__control {
  border: 1px solid transparent;
  height: 40px !important;
}
.react-select__control--is-focused {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.react-select__control:disabled {
  border: 1px solid red;
}
.react-select__input-container {
  height: 40px !important;
}
.react-select__value-container {
  padding: 0 1.25rem;
}
.react-select__single-value {
  max-width: 88% !important;
}
.react-select__menu-list {
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}
.react-select__option {
  padding: 0.25rem 1rem;
  transition: all 0.2s ease-in-out;
}
.react-select__option:hover {
  background-color: #fafafa;
  cursor: pointer;
}
.react-select__indicators {
  transform: translateX(-50px);
}

.icp-tooltip-span {
  display: flex;
  gap: 0.5rem;
}
.icp-tooltip-span--centered {
  justify-content: center;
}
.icp-tooltip-span p {
  margin: 0;
}

.react-select--is-disabled {
  background-color: #eee;
  cursor: not-allowed;
}

.ipc-tooltip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  transform: translate(3px, 3px);
}
.ipc-tooltip svg {
  color: #4066b2;
}

.tooltip {
  max-width: 20rem;
}

.ip-modal {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  min-height: 0;
  display: none;
}
.ip-modal--open {
  pointer-events: auto;
  opacity: 1;
  min-height: 100%;
  display: flex;
}
.ip-modal__inner {
  width: 94%;
  max-width: 500px;
  height: auto;
  background-color: #f8f8f8;
  border-radius: 0.25rem;
}
.ip-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.25rem;
  padding-left: 2rem;
}
.ip-modal__header-title {
  font-weight: bold;
  color: #233366;
}
.ip-modal__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ip-modal__footer {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}
.ip-modal__success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.ip-modal__error {
  text-align: right;
  font-weight: bold;
  color: #a94442;
}
.ip-modal__required-disclaimer {
  margin: 0;
  font-size: 12px;
}
.ip-modal__required-disclaimer::before {
  content: "*";
  color: #ef4444;
  margin-right: 0.25rem;
}
.ip-modal__privacy {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 12px;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .footer {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin-top: 0;
  }
}

.button {
  color: #fff;
  background-color: #4066b2;
  border-color: #395b9f;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid rgba(0, 0, 0, 0);
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  user-select: none;
}
.button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
.button:hover {
  color: #fff;
  background-color: #33518c;
  border-color: #294172;
}
.button--transparent, .button--transparent:hover {
  background-color: transparent;
  border-color: transparent;
  color: #000000;
}
.button--transparent svg, .button--transparent:hover svg {
  color: #000000;
  width: 20px;
  height: 20px;
}
.button--bordered {
  background-color: transparent;
  border-color: #4066b2;
  color: #4066b2;
}
.button--bordered:hover {
  background-color: #4066b2;
  color: #fff;
}

.output-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.output-wrapper__grid-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.output-wrapper__grid-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .output-wrapper__grid-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
.output-wrapper__grid-col--center {
  display: flex;
  justify-content: center;
}

.output-sumbmit {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  align-self: flex-start;
}
.output-sumbmit__error {
  color: #ef4444;
  font-size: 14px;
  font-weight: bold;
  margin-top: 0.5rem;
}

.output {
  display: flex;
  flex-direction: column;
  overflow: unset;
  top: 0;
  left: 0;
  background-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50%);
  transition: all 0.3s ease-in-out;
  background-color: #f8f8f8;
  width: 100%;
  max-width: 1220px;
  margin: 2rem auto 0 auto;
  height: 0;
  display: none;
}
.output--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  height: auto;
  margin-bottom: 1rem;
  display: block;
}
.output__results h2:not(:first-child) {
  margin-top: 3rem;
}
.output__results-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .output__results-block {
    gap: 3rem;
  }
}
.output__results-block--upper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .output__results-block--upper {
    gap: 2rem;
  }
}
.output__results-block--upper .icp-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
}
.output__button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .output__button-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}
.output__other-options {
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .output__other-options {
    margin-top: 3rem;
  }
}
.output__info {
  overflow: hidden;
}
.output__info--open {
  display: block;
}
.output__info-inner {
  border-radius: 0;
  vertical-align: middle;
  line-height: 23px;
  transition: background 0.2s;
  background-color: #e6e9f4;
  border-color: #cdd8e9;
  color: #31708f;
  padding: 2rem;
  margin-bottom: 2rem;
}
.output__other-options-header {
  display: flex;
  gap: 1rem;
}
.output__other-options-header button {
  flex-grow: 0;
  height: 40px;
  width: 40px;
}
.output__other-options-header svg {
  width: 2rem;
  height: 2rem;
}
.output__other-options-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  background-color: #ffffff;
  padding: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .output__other-options-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 2rem;
    grid-row-gap: 1rem;
    padding: 3rem;
    margin-bottom: 0;
  }
}
.output__other-options-grid-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
@media (min-width: 768px) {
  .output__other-options-grid-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
}
.output__other-options-grid-col--highlighted {
  background-color: #e6e9f4;
}
@media (min-width: 768px) {
  .output__chart {
    transform: translateY(-0.6rem);
  }
}
@media (min-width: 768px) {
  .output__chart .chart__chart {
    display: block;
    height: 440px;
    margin-top: 9.2rem;
  }
}
.output__chart .chart__chart--open {
  display: block;
  height: 400px;
  margin-top: 2rem;
}

.chart__toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .chart__toggle-button {
    display: none;
  }
}
.chart__toggle-button svg {
  width: 20px;
  height: 20px;
}
.chart__chart {
  display: none;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .chart__chart {
    display: block;
  }
}
.chart__chart--open {
  display: block;
}
.chart__chart .recharts-surface {
  overflow: initial;
}

.input-wrapper .chart {
  height: 100%;
}
@media (min-width: 768px) {
  .input-wrapper .chart__chart {
    display: block;
    height: 100%;
  }
}
.input-wrapper .chart__chart--open {
  display: block;
  height: 500px;
  margin-top: 2rem;
}

.disclaimer {
  margin-top: 2rem;
  display: none;
}
.disclaimer--open {
  display: block;
}
.disclaimer h5,
.disclaimer p {
  margin: 0;
}
.disclaimer h5 {
  color: #039;
}
.disclaimer__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.disclaimer__block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edit-button {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border-color: #2167ae;
  background-color: #2167ae;
  display: flex;
}
.edit-button svg {
  color: #ffffff;
  cursor: pointer;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #e6e9f4;
  border: 2px solid #cdd8e9;
  padding: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .breakdown {
    align-self: center;
  }
}
.breakdown__title {
  font-size: 2rem;
  margin: 0;
}
.breakdown__item {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0;
}
.breakdown__block {
  display: flex;
  justify-content: flex-end;
}

.icp-text-center {
  text-align: center;
  justify-content: center;
}