/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* fonts */
@font-face {
  font-family: 'Gilroy-Regular';
  src: url('../fonts/Gilroy-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy-Bold';
  src: url('../fonts/Gilroy-Bold.ttf');
  font-weight: normal;
  font-style: normal;
}

/* main styles */
* {
  box-sizing: border-box;
}
body {
  position: relative;
  font-family: 'Gilroy-Regular';
  color: #020203;
  width: 100%;
  background-color: #fff;
}

strong {
  font-family: 'Gilroy-Bold';
}

sup {
  position: relative;
  top: -6px;
  font-size: 0.6em;
}

img {
  display: block;
  max-width: 100%;
}

.clearfix {
  display: block;
  clear: both;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  width: 100%;
  background-color: #204131;
  padding: 35px 0;
  margin-bottom: 30px;
}

header > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header > div a {
  margin-left: 100px;
}
header .leoLogoTop {
  margin-right: 100px;
}

/* form */
.formContainer .grayBox {
  width: 100%;
  background-color: #f5f3ef;
  padding-left: 100px;
  background-image: url(../images/formBg.png);
  background-repeat: no-repeat;
  background-size: 397px 490px;
  background-position: top 150px right;
}

.formContainer h2 {
  font-family: 'Gilroy-Bold';
  font-size: 48px;
  padding: 50px 0;
}

.formContainer form {
  width: 100%;
}

.formContainer form .row {
  display: flex;
  align-items: center;
  max-width: 50%;
  margin-bottom: 35px;
}

.formContainer form .labelCol {
  flex: 1 1 30%;
  margin-right: 30px;
}
.formContainer form .inputCol {
  flex: 1 1 70%;
}

.formContainer form .labelCol label {
  display: block;
  font-size: 24px;
  color: #68a17c;
  text-align: right;
}

.formContainer form input:not([type='checkbox']):not([type='submit']),
.formContainer form select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  outline: none;
  resize: vertical;
  font-size: 20px;
  box-shadow: 2px 3px 4px 2px #e4e4e4;
}
.formContainer form input::placeholder,
.formContainer form select::placeholder,
.formContainer form select,
.formContainer form select option[disabled] {
  color: #edece9;
}

.formContainer form select option {
  color: #020203;
}

.formContainer form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  white-space: nowrap;
}
.specSelect {
  position: relative;
}
.specSelect select {
  display: none;
}
.specSelect .select-selected:after {
  position: absolute;
  content: "";
  top: 11px;
  right: 14px;
  width: 32px;
  height: 29px;
  background-image: url(../images/selectArrow.png);
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform-origin: center;
  -moz-transform-origin: center;
  -ms-transform-origin: center;
  -o-transform-origin: center;
  transform-origin: center;
}
.specSelect .select-selected.select-arrow-active:after {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-transform-origin: center;
  -moz-transform-origin: center;
  -ms-transform-origin: center;
  -o-transform-origin: center;
  transform-origin: center;
}
.specSelect .select-selected::before {
  position: absolute;
  content: "";
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 60px;
  width: 2px;
  height: 80%;
  background-color: #68a17c;
}
.specSelect .select-items div,
.select-selected {
  font-size: 20px;
  color: #edece9;
  padding: 12px;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
  color: #020203;
}
.specSelect .select-selected {
  height: 47px;
  border-radius: 4px;
  box-shadow: 2px 3px 4px 2px #e4e4e4;
  color: #edece9;
}
.specSelect .select-items {
  position: absolute;
  background-color: #fff;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 2px 3px 4px 2px #e4e4e4;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.specSelect .select-hide {
  display: none;
}
.specSelect .select-items div:hover, .specSelect .same-as-selected {
  background-color: #e4e4e4;
  color: #020203;
}
.specSelect .select-selected.select-arrow-active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.formContainer p {
  font-size: 18px;
  line-height: 21px;
  margin: 70px 100px 35px 0;
}

.boxCheckboxAll {
  display: flex;
  flex-direction: column;
}

.boxCheckboxAll [type="checkbox"]:not(:checked),
.boxCheckboxAll [type="checkbox"]:checked {
  position: absolute;
  left: 0;
  opacity: 0;
}
.boxCheckboxAll [type="checkbox"]:not(:checked) + label,
.boxCheckboxAll [type="checkbox"]:checked + label {
  display: block;
  position: relative;
  font-size: 18px;
  line-height: 21px;
  cursor: pointer;
  padding-left: 60px;
}
/* checkbox aspect */
.boxCheckboxAll [type="checkbox"]:not(:checked) + label:before,
.boxCheckboxAll [type="checkbox"]:checked + label:before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 30px; 
  height: 30px;
  border: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
/* checked mark aspect */
.boxCheckboxAll [type="checkbox"]:not(:checked) + label:after,
.boxCheckboxAll [type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 27px;
  height: 25px;
  background-image: url(../images/checkbox.png);
  background-repeat: no-repeat;
  background-size: contain;
  transition: all .2s;
}
/* checked mark aspect changes */
.boxCheckboxAll [type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
.boxCheckboxAll [type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}
/* disabled checkbox */
.boxCheckboxAll [type="checkbox"]:disabled:not(:checked) + label:before,
.boxCheckboxAll [type="checkbox"]:disabled:checked + label:before {
  box-shadow: none;
  border-color: #bbb;
  background-color: #ddd;
}
.boxCheckboxAll [type="checkbox"]:disabled:checked + label:after {
  color: #999;
}
.boxCheckboxAll [type="checkbox"]:disabled + label {
  color: #aaa;
}

.boxCheckboxAll .boxCheckbox {
  position: relative;
  margin-bottom: 30px;
  margin-right: 100px;
}

.whiteSpace {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row;
  width: 100%;
  background-color: #fff;
  padding: 50px 100px;
}

.whiteSpace input[type="submit"] {
  width: 470px;
  height: 100px;
  background-color: #eaaa00;
  font-family: 'Gilroy-Bold';
  font-size: 48px;
  color: #fff;
  border: none;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  margin-right: 30px;
}

.bottomBox {
  background-color: #f5f3ef;
  padding: 30px 100px;
}
.bottomBox h3 {
  font-family: 'Gilroy-Bold';
  font-size: 24px;
  color: #68a17c;
  margin-bottom: 20px;
}
.bottomBox p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 21px;
}
.bottomBox p a {
  color: #020203;
  text-decoration: none;
}

.bottomBox .readMore {
  font-size: 24px;
  color: #68a17c;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 0;
}

.bottomBox .hiddenBox {
  overflow: hidden;
  height: 0;
}

.bottomBox .hiddenBox.showMoreBox {
  height: 100%;
}

/* footer */
footer {
  width: 100%;
  background-color: #204131;
  padding: 35px 0;
  margin-top: 30px;
}

footer p {
  font-size: 18px;
  line-height: 21px;
  color: #fff;
  margin-left: 100px;
}

/* popup */
.popupReg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(32,65,49,0.5);
  z-index: 999;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  display: none;
}

.popupReg .popupRegContent {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  -o-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  width: 790px;
  height: 430px;
  background-color: #fff;
  border-radius: 50px;
}

.popupReg .popupRegContent #closePopup {
  position: absolute;
  top: 35px;
  right: 35px;
  cursor: pointer;
}

.popupReg .popupRegContent p {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  -o-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  font-size: 48px;
  color: #020203;
  text-align: center;
  line-height: 59px;
}


@media only screen and (max-width: 1199px) {
  header > div a,
  footer p {
    margin-left: 30px;
  }
  header .leoLogoTop,
  .formContainer p,
  .boxCheckboxAll .boxCheckbox {
    margin-right: 30px;
  }
  .formContainer .grayBox,
  .whiteSpace,
  .bottomBox {
    padding-left: 30px;
  }
  .whiteSpace,
  .bottomBox {
    padding-right: 30px;
  }
}

@media only screen and (max-width: 991px) {
  header {
    padding: 20px 0;
  }
  header > div a {
    width: 191px;
  }
  header .leoLogoTop {
    width: 60px;
  }
  .formContainer h2 {
    font-size: 36px;
    padding: 25px 0;
  }
  .formContainer .grayBox {
    background-size: 135px 166px;
    background-position: top 190px right;
  }
  .formContainer form .row {
    max-width: 80%;
    margin-bottom: 20px;
  }
  .whiteSpace input[type="submit"] {
    width: 261px;
    height: 61px;
    font-size: 32px;
  }
  .whiteSpace .leoLogoForm {
    width: 351px;
  }
  .bottomBox .readMore {
    font-size: 20px;
  }
  .popupReg .popupRegContent {
    width: 690px;
    height: 390px;
  }
  .popupReg .popupRegContent p {
    font-size: 42px;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    padding: 0;
  }
  header {
    padding: 20px 0;
    margin-bottom: 15px;
  }
  header > div a {
    width: 171px;
    margin-left: 15px;
  }
  header .leoLogoTop {
    margin-right: 15px;
  }
  .formContainer .grayBox {
    padding: 0;
    background-image: none;
  }
  .formContainer h2 {
    font-size: 32px;
    padding: 20px 0;
    text-align: center;
  }
  .formContainer form .row {
    max-width: 100%;
    flex-direction: column;
    padding: 0 15px;
  }
  .formContainer form .labelCol,
  .formContainer form .inputCol {
    width: 100%;
  }
  .formContainer form .labelCol {
    margin-right: 0;
    margin-bottom: 13px;
  }
  .formContainer form .labelCol label {
    text-align: center;
  }
  .formContainer p {
    margin: 20px 15px;
  }
  .boxCheckboxAll {
    padding: 0 15px;
  }
  .boxCheckboxAll .boxCheckbox {
    margin: 0 0 20px 0;
  }
  .boxCheckboxAll [type="checkbox"]:not(:checked) + label,
  .boxCheckboxAll [type="checkbox"]:checked + label {
    padding-left: 50px;
  }
  .specSelect .select-selected:after {
    top: 15px;
    width: 20px;
    height: 18px;
  }
  .specSelect .select-selected::before {
    right: 50px;
  }
  .whiteSpace {
    flex-direction: column;
    padding: 30px 15px;
  }
  .whiteSpace input[type="submit"] {
    margin-right: 0;
    margin-bottom: 30px;
  }
  .bottomBox {
    padding: 15px;
  }
  footer {
    margin-top: 15px;
    padding: 15px;
  }
  footer p {
    margin-left: 0;
  }
  .popupReg .popupRegContent {
    left: 0;
    transform: translate(0,-50%);
    width: 95%;
    height: 390px;
    margin: 0 15px;
  }
  .popupReg .popupRegContent p {
    font-size: 42px;
  }
  .popupReg .popupRegContent #closePopup {
    top: auto;
    right: auto;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media only screen and (max-width: 475px) {
  .popupReg .popupRegContent {
    width: 90%;
  }
}

.error {
  color: #ff0000;
  margin: 5px 0;
}
