.overlay {
  display: none;
  position: fixed;
  background: #000000CB;
  height: 100vh;
  width: 100vw;

  top: 0;
}

.modal {
  background: #364258;
  border-radius: 8px;
  box-shadow: 4px 12px 25px, -4px -12px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 160px;
  width: 370px;
  margin: 0 auto;
  padding: 24px;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal-title {
  color: #FFF;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.modal-close {
  color: #FFF;
  font-size: 40px;
  position: absolute;
  right: 8px;
  top: -12px;
}

.modal-close:hover {
  cursor: pointer;
}

.modal-title::after {
  content: '';
  background: #FFF;
  border-radius: 2px;
  display: block;
  height: 4px;
  margin: 4px auto;
  width: 48px;
}

.modal button,
.modal input,
.modal textarea {
  margin: 12px 5%;
  padding: 12px 16px;
  width: 90%;
}

.modal p {
  color: #FFF;
  margin-top: 8px;
  text-align: center;
}

.modal.white {
  background-color: #FFFFFF;
  background-image: url(../imgs/balance-l.svg), url(../imgs/modal_bg.png);
  background-position: center left, bottom right;
  background-repeat: no-repeat, no-repeat;
  padding: 100px 350px 100px 50px;
  align-items: start;
}

.modal.white .modal-close {
  color: #29303F;
}

.modal.white h4 {
  margin: 40px 0;
}

.modal.white button {
  width: auto;
  padding: 16px 42px;
}

#consult,
#consultation,
#thanks,
#solutions,
#before-exit {
  display: none;
}

#solutions {
  width: 90%;
  height: 90%;
  padding: 4px;
}

#solutions .modal-title {
  margin: 24px 12px 0;
}

#solutions .modal-img {
  height: 100%;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#before-exit {
  width: 50%;
}