/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
	font-size: 14.5px;
	font-family: 'Open Sans', sans-serif;
	color: #45463E;
	background-color: #ffffff;
	background-image: url(../images/leafie.jpg);
	background-repeat: no-repeat;
	background-attachment: fixed;

}

a {
  color: #2c97de;
  text-decoration: none;
}

/* [Object] Modal
 * =============================== */
.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0,0,0, .9);
  transition: opacity .25s ease;
}

.modal__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.modal-state {
  display: none;
}

.modal-state:checked + .modal {
  opacity: 1;
  visibility: visible;
}

.modal-state:checked + .modal .modal__inner {
  top: 0;
}

.modal__inner {
  transition: top .25s ease;
  position: absolute;
  top: -20%;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  margin: auto;
  overflow: auto;
  background: #fff;
  border-radius: 5px;
  padding: 1em 2em;
  height: 50%;
}

.modal__close {
  position: absolute;
  right: 1em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
  background: #aaa;
}

.modal__close:before {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
	
  .modal__inner {
    width: 90%;
    height: 90%;
    box-sizing: border-box;
  }
}

	/*--------------------------
FONTS
---------------------------*/

@font-face {
    font-family: 'accord_sfregular';
    src: url('accord_sf-webfont.eot');
    src: url('accord_sf-webfont.eot?#iefix') format('embedded-opentype'),
         url('accord_sf-webfont.woff') format('woff'),
         url('accord_sf-webfont.ttf') format('truetype'),
         url('accord_sf-webfont.svg#accord_sfregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'mergeregular';
    src: url('merge-webfont.eot');
    src: url('merge-webfont.eot?#iefix') format('embedded-opentype'),
         url('merge-webfont.woff') format('woff'),
         url('merge-webfont.ttf') format('truetype'),
         url('merge-webfont.svg#mergeregular') format('svg');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'hanseatregular';
    src: url('hanseat-webfont.eot');
    src: url('hanseat-webfont.eot?#iefix') format('embedded-opentype'),
         url('hanseat-webfont.woff') format('woff'),
         url('hanseat-webfont.ttf') format('truetype'),
         url('hanseat-webfont.svg#hanseatregular') format('svg');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'GnuolaneRgRegular';
    src: url('gnuolane_rg-webfont.eot');
    src: url('gnuolane_rg-webfont.eot?#iefix') format('embedded-opentype'),
         url('gnuolane_rg-webfont.woff') format('woff'),
         url('gnuolane_rg-webfont.ttf') format('truetype'),
         url('gnuolane_rg-webfont.svg#GnuolaneRgRegular') format('svg');
    font-weight: normal;
    font-style: normal;}
	
@font-face {
    font-family: 'bebas_neueregular';
    src: url('bebasneue-webfont.eot');
    src: url('bebasneue-webfont.eot?#iefix') format('embedded-opentype'),
         url('bebasneue-webfont.woff') format('woff'),
         url('bebasneue-webfont.ttf') format('truetype'),
         url('bebasneue-webfont.svg#bebas_neueregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'dagobertregular';
    src: url('dagobert-webfont.eot');
    src: url('dagobert-webfont.eot?#iefix') format('embedded-opentype'),
         url('dagobert-webfont.woff') format('woff'),
         url('dagobert-webfont.ttf') format('truetype'),
         url('dagobert-webfont.svg#dagobertregular') format('svg');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'candelabook';
    src: url('candelabook-webfont.eot');
    src: url('candelabook-webfont.eot?#iefix') format('embedded-opentype'),
         url('candelabook-webfont.woff') format('woff'),
         url('candelabook-webfont.ttf') format('truetype'),
         url('candelabook-webfont.svg#candelabook') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'shantiregular';
    src: url('shanti-regular-webfont.eot');
    src: url('shanti-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('shanti-regular-webfont.woff') format('woff'),
         url('shanti-regular-webfont.ttf') format('truetype'),
         url('shanti-regular-webfont.svg#shantiregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'pointersregular';
    src: url('pointers-webfont.eot');
    src: url('pointers-webfont.eot?#iefix') format('embedded-opentype'),
         url('pointers-webfont.woff') format('woff'),
         url('pointers-webfont.ttf') format('truetype'),
         url('pointers-webfont.svg#pointersregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* -------------------------------- 

Form

-------------------------------- */
.cd-form {
  width: 90%;
  max-width: 600px;
  margin: 4em auto;
}
.cd-form::after {
  clear: both;
  content: "";
  display: table;
}
.cd-form fieldset {
  margin: 24px 0;
}
.cd-form legend {
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: 1px solid #ecf0f1;
}
.cd-form div {
  /* form element wrapper */
  position: relative;
  margin: 20px 0;
}
.cd-form h4, .cd-form .cd-label {
  font-size: 1.3rem;
  color: #707065;
  margin-bottom: 10px;
}
.cd-form h44, .cd-form .cd-label {
  font-size: 13.5px;
  font-family: 'mergeregular';
  color: #707065;
  margin-bottom: 10px;
}
.cd-form .cd-label {
  display: block;
}
.cd-form input, .cd-form textarea, .cd-form select, .cd-form label {
	font-family: 'mergeregular';
	font-size: 13.5px;
	color: #45463E;
	text-transform: capitalize;
}
.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form textarea,
.cd-form select,
.cd-form legend {
  display: block;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
}
.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form textarea,
.cd-form select {
  /* general style for input elements */
  padding: 12px;
  border: 1px solid #D8D7D6;
  background-color: #ffffff;
  border-radius: .25em;
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.08);
}
.cd-form input[type="text"]:focus,
.cd-form input[type="email"]:focus,
.cd-form textarea:focus,
.cd-form select:focus {
	outline: none;
	box-shadow: 0 0 0px rgba(44, 151, 222, 0.2);
	border-top-color: #B6C6AE;
	border-right-color: #B6C6AE;
	border-bottom-color: #B6C6AE;
	border-left-color: #B6C6AE;
}
.cd-form .cd-select {
  /* select element wapper */
  position: relative;
}
.cd-form .cd-select::after {
  /* arrow icon for select element */
  content: '';
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 50%;
  margin-top: -8px;
  display: block;
  width: 16px;
  height: 16px;
  background: url("../images/cd-icon-arrow.svg") no-repeat center center;
  pointer-events: none;
}
.cd-form select {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.cd-form select::-ms-expand {
  display: none;
}
.cd-form .cd-form-list {
  margin-top: 16px;
}
.cd-form .cd-form-list::after {
  clear: both;
  content: "";
  display: table;
}
.cd-form .cd-form-list li {
  /* wrapper for radio and checkbox input types */
  display: inline-block;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0 26px 16px 0;
  float: left;
}
.cd-form input[type=radio],
.cd-form input[type=checkbox] {
  /* hide original check and radio buttons */
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  opacity: 0;
  z-index: 2;
}
.cd-form input[type="radio"] + label,
.cd-form input[type="checkbox"] + label {
  padding-left: 24px;
}
.cd-form input[type="radio"] + label::before,
.cd-form input[type="radio"] + label::after,
.cd-form input[type="checkbox"] + label::before,
.cd-form input[type="checkbox"] + label::after {
  /* custom radio and check boxes */
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
}
.cd-form input[type="radio"] + label::before,
.cd-form input[type="checkbox"] + label::before {
  border: 1px solid #cfd9db;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}
.cd-form input[type="radio"] + label::before,
.cd-form input[type="radio"] + label::after {
  border-radius: 50%;
}
.cd-form input[type="checkbox"] + label::before,
.cd-form input[type="checkbox"] + label::after {
  border-radius: .25em;
}
.cd-form input[type="radio"] + label::after,
.cd-form input[type="checkbox"] + label::after {
  background-color: #EEE758;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0px rgba(44, 151, 222, 0.4);
  display: none;
}
.cd-form input[type="radio"] + label::after {
  /* custom image for radio button */
  background-image: url("../images/cd-icon-radio.svg");
}
.cd-form input[type="checkbox"] + label::after {
  /* custom image for checkbox */
  background-image: url("../images/cd-icon-check.svg");
}
.cd-form input[type="radio"]:focus + label::before,
.cd-form input[type="checkbox"]:focus + label::before {
  /* add focus effect for radio and check buttons */
  box-shadow: 0 0 5px rgba(44, 151, 222, 0.6);
}
.cd-form input[type="radio"]:checked + label::after,
.cd-form input[type="checkbox"]:checked + label::after {
  display: block;
}
.cd-form input[type="radio"]:checked + label::before,
.cd-form input[type="radio"]:checked + label::after,
.cd-form input[type="checkbox"]:checked + label::before,
.cd-form input[type="checkbox"]:checked + label::after {
  -webkit-animation: cd-bounce 0.3s;
  -moz-animation: cd-bounce 0.3s;
  animation: cd-bounce 0.3s;
}
.cd-form textarea {
  min-height: 160px;
  resize: vertical;
  overflow: auto;
}
.cd-form input[type="submit"] {
	/* button style */
  border: none;
	border-radius: .25em;
	padding: 16px 20px;
	color: #595742;
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	float: right;
	cursor: pointer;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
	appearance: none;
	background-color: #EEE758;
}
.no-touch .cd-form input[type="submit"]:hover {
  background: #E9DF23;
}
.cd-form input[type="submit"]:focus {
	outline: none;
	background-color: #E9DF23;
}
.cd-form input[type="submit"]:active {
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
}
.cd-form [required] {
  background: url("../images/cd-required.svg") no-repeat top right;
}
.cd-form .error-message p {
  background: #F7D17E;
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: .25em;
  padding: 16px;
}
.cd-form .error {
  border-color: #F7D17E !important;
}
@media only screen and (min-width: 600px) {
  .cd-form div {
    /* form element wrapper */
    margin: 32px 0;
  }
  .cd-form legend + div {
    /* reduce margin-top for first form element after the legend */
    margin-top: 20px;
  }
  .cd-form h4, .cd-form .cd-label {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .cd-form input[type="text"],
  .cd-form input[type="email"],
  .cd-form textarea,
  .cd-form select {
    padding: 16px;
  }
}

@-webkit-keyframes cd-bounce {
  0%, 100% {
    -webkit-transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.8);
  }
}
@-moz-keyframes cd-bounce {
  0%, 100% {
    -moz-transform: scale(1);
  }
  50% {
    -moz-transform: scale(0.8);
  }
}
@keyframes cd-bounce {
  0%, 100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
  }
}
/* -------------------------------- 

Custom icons

-------------------------------- */
.cd-form .icon input, .cd-form .icon select, .cd-form .icon textarea {
  padding-left: 54px !important;
}
.cd-form .user {
  background: url("../images/cd-icon-user.svg") no-repeat 16px center;
}
.cd-form [required].user {
  background: url("../images/cd-icon-user.svg") no-repeat 16px center, url("../images/cd-required.svg") no-repeat top right;
}
.cd-form .company {
  background: url("../images/cd-icon-company.svg") no-repeat 16px center;
}
.cd-form [required].company {
  background: url("../images/cd-icon-company.svg") no-repeat 16px center, url("../images/cd-required.svg") no-repeat top right;
}
.cd-form .email {
  background: url("../images/cd-icon-email.svg") no-repeat 16px center;
}
.cd-form [required].email {
  background: url("../images/cd-icon-email.svg") no-repeat 16px center, url("../images/cd-required.svg") no-repeat top right;
}
.cd-form .budget {
  background: url("../images/cd-icon-budget.svg") no-repeat 16px center;
}
.cd-form .message {
  background: url("../images/cd-icon-message.svg") no-repeat 16px 16px;
}
.cd-form [required].message {
  background: url("../images/cd-icon-message.svg") no-repeat 16px 16px, url("../images/cd-required.svg") no-repeat top right;
}

/* -------------------------------- 

FLoating labels 

-------------------------------- */
.js .floating-labels div {
  margin: 28px 0;
}
.js .floating-labels .cd-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 1.6rem;
  cursor: text;
  -webkit-transition: top 0.2s, left 0.2s, font-size 0.2s;
  -moz-transition: top 0.2s, left 0.2s, font-size 0.2s;
  transition: top 0.2s, left 0.2s, font-size 0.2s;
}
.js .floating-labels .icon .cd-label {
  left: 56px;
}
.js .floating-labels .cd-label.float {
  /* move label out the input field */
  font-size: 1.2rem;
  top: -16px;
  left: 0 !important;
}
@media only screen and (min-width: 600px) {
  .js .floating-labels legend + div {
    /* reduce margin-top for first form element after the legend */
    margin-top: 16px;
  }
  .js .floating-labels .cd-label {
    top: 20px;
  }
}
