/*
*  Form-wide block styles
*/

/* Popup Styles */
body.fade-out .main-content__inner.container {
  z-index: 100;
}

span.popup__close {
  position: absolute;
  right: 20px;
  background: unset;
  width: 30px;
  height: 30px;
  top: 15px;
  z-index: 1000;
  cursor: pointer;
}

input#outside-checkbox:checked ~ span:before {
  content: '\f147';
  color: #fff;
  position: absolute;
  font-size: 25px;
  font-family: dashicons;
  left: -3px;
  top: 1px;
}

a.link__terms {
  text-decoration: underline;
  margin-top: 3px;
  display: block;
}

input#user-agree {
  display: none;
}

.agree-btn {
  position: relative;
  margin: 1rem 0;
}

span.terms-checkbox-text {
  cursor: pointer;
}

span.popup__close:before {
  content: '\f335';
  font-family: 'dashicons';
  font-size: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #70958b;
}

input#outside-checkbox {
  display: none;
}

.agree-btn::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  background: #70958b;
  top: 5px;
}

body.fade-out {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.popup-form.active > div {
  position: relative;
  top: 0;
}
.popup-back.active {
  content: '';
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 100;
  left: 0;
  top: 0;
  background: rgba(236, 236, 236, 0.8);
}
.popup-form {
  display: none;
}

.popup-form.active {
  display: block;
  position: fixed;
  top: calc(50% - 210px);
  left: calc(50% - 500px);
  z-index: 9999;
}

.wide-form__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6rem 9.5rem;
}

.wide-form__inner > div {
  width: 50%;
}

.wide-form__right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 310px;
  min-height: 310px;
}

p.wide-form__desc {
  width: 70%;
  padding-top: 6.5rem;
}

.main-message {
  display: none;
}

.alert.alert-warning {
  display: block;
  padding: 0 0 10px;
  font-size: 16px;
  color: red;
}

.alert.alert-success {
  font-size: 16px;
}
.alert.alert-danger {
  padding-bottom: 10px;
  color: red;
}
/* ------------------------ */

@media screen and (max-width: 850px) {
  .wide-form__inner {
    padding: 6rem 3.5rem;
  }
  .popup-form.active {
    left: 0;
  }
}

@media screen and (max-width: 550px) {
  .wide-form__inner > div {
    width: 100%;
    max-width: unset;
  }
  .wide-form__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 3rem 3rem;
  }
  p.wide-form__desc {
    width: 70%;
    padding: 0.5rem 0 3rem 0;
  }
  form#wide-form {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .popup-form.active {
    display: block;
    position: fixed;
    top: 10%;
    left: 0;
    padding: 10px;
  }

  .popup-form .wide-form button[type='submit'] {
    top: 0 !important;
  }
}
