/*
 * Vertical center
 * (see https://codepen.io/dimbslmh/full/mKfCc)
 ***********************************************/
.modal {
  text-align: center;
}
.modal-backdrop {
  background: rgba(0, 0, 0, 0.1);
}
.modal-backdrop.in {
  opacity: 0.9;
}
@media screen and (min-width: 768px) {
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
}
.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
/*
 * Modal custom styling
 ***************************/
/* title */
.modal-body p {
  font-size: 17px;
}
.modal-body form {
  margin-top: 10px;
}
.modal-body form label {
  color: #1D2939;
}
@media screen and (max-width: 768px) {
  .modal-body form label {
    padding: 0 15px;
  }
}
.modal-body form .form-control {
  height: 39px;
  line-height: 39px;
  border: none;
  max-width: 410px;
}
.modal-body form input[type="submit"] {
  margin-top: 24px;
  color: #1D2939;
  border-color: #1D2939;
}
.modal-body form input[type="submit"]:hover {
  background-color: #1D2939;
  color: white;
}
.modal-body form .pull-right {
  float: none !important;
}
.modal-body form .form-group:last-child {
  text-align: center;
}
@media screen and (min-width: 768px) {
  .modal-body form .form-group .col-sm-9 {
    text-align: left;
  }
  .modal-body form .form-group .checkbox {
    text-align: left;
  }
}
/*
.modal-background-yellow {
  background-color: @brand-yellow;
}

.modal-background-grey {
  background-color: @gray-lighter;
}

.modal-background-blue {
  background-color: @brand-ice;
}
*/
.modal-background-variant1 {
  background-color: #7db23e !important;
}
.modal-background-variant1 h1,
.modal-background-variant1 h2,
.modal-background-variant1 h3,
.modal-background-variant1 h4,
.modal-background-variant1 h5,
.modal-background-variant1 h6,
.modal-background-variant1 p {
  color: white;
}
.modal-background-variant1 .close {
  background: #1d1d1b !important;
}
.modal-background-variant1 .btn.btn-default {
  border-color: white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 35px;
}
.modal-background-variant1 .btn.btn-default:hover {
  background-color: white;
  color: #0098e2;
}
.modal-content {
  border: 0;
  border-radius: 5px;
  box-shadow: 3px 3px 20px rgba(75, 75, 75, 0.4);
  background: #ffffff url('/base/Extensions/FagModal/Images/BG_Popup.png') no-repeat;
  background-position: bottom;
}
.modal-content.modal-background-blue {
  background: white;
}
.modal-body {
  padding: 34px 38px 0 34px;
  /* fix .container classes coming from gridelements */
}
@media screen and (max-width: 768px) {
  .modal-body {
    padding: 24px 28px;
  }
}
.modal-body h2 {
  margin-top: 42px;
  font-size: 42px;
  color: #0098e2;
}
@media (max-width: 767px) {
  .modal-body h2 {
    font-size: 32px;
  }
}
.modal-body h4 {
  font-weight: bold;
}
.modal-body .action-link {
  margin-top: 47px;
}
@media screen and (max-width: 768px) {
  .modal-body .action-link {
    margin-top: 17px;
  }
}
.modal-body .container {
  width: 100%;
  padding: 0;
  margin: 0;
}
.modal-body .close {
  position: absolute;
  width: 1em;
  top: 0;
  right: 0;
  background: #eead00;
  z-index: 99999;
  opacity: 1;
  color: white;
  height: 35px;
  width: 35px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
  transition: all 0.1s ease-in;
}
.modal-body .close:hover {
  background-color: #BF8C00;
}
.modal-body .close:before {
  content: '';
  border: 1px solid white;
  position: absolute;
  right: 5.5px;
  width: 23px;
  transform: rotate(45deg);
}
.modal-body .close:after {
  content: '';
  border: 1px solid white;
  position: absolute;
  right: 5.5px;
  width: 23px;
  transform: rotate(-45deg);
}
/*
 * Sizes of the modals
 ***************************/
.modal-sm {
  width: 90%;
  max-width: 361px;
}
.modal-sm .modal-body {
  border-radius: 5px;
  padding: 34px 38px 27px 34px;
}
.modal-sm .modal-body .btn-primary {
  background: transparent;
  text-decoration: none;
}
.modal-sm .modal-body .btn-primary:hover {
  color: #7eb23f !important;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .modal-sm .modal-body .close {
    top: 0;
    right: 0;
    height: 29px;
    width: 29px;
  }
  .modal-sm .modal-body .close:before {
    width: 14px;
    top: 13px;
    right: 7px;
  }
  .modal-sm .modal-body .close:after {
    width: 14px;
    top: 13px;
    right: 7px;
  }
}
.modal-md {
  width: 90%;
  max-width: 570px;
}
@media screen and (max-width: 768px) {
  .modal-md .modal-body .close {
    top: 0;
    right: 0;
    height: 29px;
    width: 29px;
  }
  .modal-md .modal-body .close:before {
    width: 14px;
    top: 13px;
    right: 7px;
  }
  .modal-md .modal-body .close:after {
    width: 14px;
    top: 13px;
    right: 7px;
  }
}
.modal-lg {
  width: 90%;
  max-width: 733px;
}
.modal-lg .modal-body .container .row div div h1,
.modal-lg .modal-body .container .row div div h2,
.modal-lg .modal-body .container .row div div h3,
.modal-lg .modal-body .container .row div div h4,
.modal-lg .modal-body .container .row div div h4,
.modal-lg .modal-body .container .row div div h6 {
  margin-bottom: 15px;
}
.modal-lg .modal-body {
  padding: 30px 109px 100px 109px;
}
@media screen and (max-width: 768px) {
  .modal-lg .modal-body {
    padding: 0px 15px 70px;
  }
}
@media screen and (max-width: 768px) {
  .modal-lg .modal-body .close {
    top: 0;
    right: 0;
    height: 29px;
    width: 29px;
  }
  .modal-lg .modal-body .close:before {
    width: 14px;
    top: 13px;
    right: 7px;
  }
  .modal-lg .modal-body .close:after {
    width: 14px;
    top: 13px;
    right: 7px;
  }
}
/*
 * Modal with a teaserbox as CE
 ***************************/
.teaserbox-modal {
  margin-bottom: -70px;
}
.teaserbox-modal h2 {
  font-size: 50px;
  margin-top: 30px;
  letter-spacing: 2.33px;
  font-weight: bold;
  margin-bottom: 0;
  color: #fff;
  font-family: 'DaxMedium', Arial, sans-serif;
}
@media (max-width: 767px) {
  .teaserbox-modal h2 {
    font-size: 30px;
  }
}
.teaserbox-modal h3 {
  font-size: 50px;
  letter-spacing: 2.33px;
  color: #fff;
  text-align: right;
  font-family: 'DaxRegular', Arial, "Helvetica Neue", Helvetica, sans-serif;
  margin: 0;
}
@media (max-width: 767px) {
  .teaserbox-modal h3 {
    font-size: 20px;
  }
}
.teaserbox-modal .teaserbox-modal__background {
  background-size: cover;
  background-position: center;
  height: 330px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-top: -30px;
  margin-left: -109px;
  margin-right: -109px;
  max-height: 330px;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px) {
  .teaserbox-modal .teaserbox-modal__background {
    margin-top: 0;
    margin-left: -15px;
    margin-right: -15px;
    max-height: 190px;
    padding: 0 15px;
  }
}
.teaserbox-modal .teaserbox-modal__body {
  font-family: 'DaxMedium', Arial, sans-serif;
  color: #0098e2;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.85px;
  margin-left: -53px;
  margin-right: -53px;
  margin-top: 35px;
}
@media (max-width: 767px) {
  .teaserbox-modal .teaserbox-modal__body {
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
  }
}
.teaserbox-modal .action-link {
  margin-top: 30px;
}
.teaserbox-modal .variantBig .btn {
  width: auto;
}
.teaserbox-modal .content {
  padding: 24px 30px;
}
.teaserbox-modal .content .btn.btn-primary {
  background: transparent;
  color: #1D2939;
  border-color: #1D2939;
}
.teaserbox-modal .content .btn.btn-primary:hover {
  background-color: #1D2939;
  color: white;
}
@media screen and (max-width: 768px) {
  .teaserbox-modal .content {
    padding: 30px 0 0 0;
  }
}
.teaserbox-modal .content .btn {
  width: auto !important;
}
