/* --------------------------------

.form-box

-------------------------------- */
input,
textarea,
.input,
textarea,
input[type="text"],
input[type="password"],
select {
  min-height: 35px;
}

form.customer_registration_form h2 label,
form.order_data_form h2 label {
  font-weight: 600;
}

html body #page .form-box  fieldset {
  margin: 24px 0;
}
html body #page .form-box  legend {
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: 1px solid #ecf0f1;
}
html body #page .form-box  div {
  /* .form-box element wrapper */
  position: relative;
  margin: 20px 0;
}
html body #page .form-box  h4, html body #page .form-box  .cd-label {
  font-size: 1.3rem;
  color: #94aab0;
  margin-bottom: 10px;
}

html #page form.customer_registration_form .form-box p,
html #page form.order_data_form .form-box p {
  display: block;
}

html #page form.customer_registration_form .col-h-l,
html #page form.customer_registration_form .col-h-r,
html #page form.order_data_form .col-h-l,
html #page form.order_data_form .col-h-r {
  /* !important - zpropadený style/style_dev.css šířku nastavují s '!important' */
  width: 50% !important;
  float: left;
  padding: 0px 16px;
  min-height: 72px;
}

html #page form.customer_registration_form .form-box .form-textarea,
html #page form.order_data_form .form-box .form-textarea {
  width: 100%;
}

html body #page .form-box  .cd-label {
  display: block;
}
html body #page .form-box  input, html body #page .form-box  textarea, html body #page .form-box  select, html body #page .form-box  label {
  font-family: "Open Sans", sans-serif;

  color: #2b3e51;
}
html body #page .form-box  input[type="text"],
html body #page .form-box  input[type="email"],
html body #page .form-box  textarea,
html body #page .form-box  select,
html body #page .form-box  legend {
  display: block;
  width: 100%;
}
html body #page .form-box  input[type="text"],
html body #page .form-box  input[type="email"],
html body #page .form-box  textarea,
html body #page .form-box  select {
  /* general style for input elements */
  border: 1px solid #cfd9db;
  background-color: #ffffff;
  border-radius: .25em;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}
html body #page .form-box  input[type="text"]:focus,
html body #page .form-box  input[type="email"]:focus,
html body #page .form-box  textarea:focus,
html body #page .form-box  select:focus {
  outline: none;
  border-color: #2c97de;
  box-shadow: 0 0 5px rgba(44, 151, 222, 0.2);
}
html body #page .form-box  .cd-select {
  /* select element wapper */
  position: relative;
}
html body #page .form-box  .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("../../icon/cd-icon-arrow.svg") no-repeat center center;
  pointer-events: none;
}
html body #page .form-box  select {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
html body #page .form-box  select::-ms-expand {
  display: none;
}
html body #page .form-box  html body #page .form-box -list {
  margin-top: 16px;
}
html body #page .form-box  html body #page .form-box -list::after {
  clear: both;
  content: "";
  display: table;
}
html body #page .form-box  html body #page .form-box -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;
}
html body #page .form-box  input[type=radio],
html body #page .form-box  input[type=checkbox],
html body #page .agree_condition input[type="checkbox"] {
  /* hide original check and radio buttons */
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  z-index: 2;
  display: none;
}
html body #page .form-box  input[type="radio"] + label,
html body #page .form-box  input[type="checkbox"] + label,
html body #page .agree_condition input[type="checkbox"] + label {
  padding-left: 24px;
}
html body #page .form-box  input[type="radio"] + label::before,
html body #page .form-box  input[type="radio"] + label::after,
html body #page .form-box  input[type="checkbox"] + label::before,
html body #page .form-box  input[type="checkbox"] + label::after,
html body #page .agree_condition input[type="checkbox"] + label::before,
html body #page .agree_condition 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;
}
html body #page .form-box  input[type="radio"] + label::before,
html body #page .form-box  input[type="checkbox"] + label::before,
html body #page .agree_condition input[type="checkbox"] + label::before {
  border: 1px solid #cfd9db;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}
html body #page .form-box  input[type="radio"] + label::before,
html body #page .form-box  input[type="radio"] + label::after {
  border-radius: 50%;
}
html body #page .form-box  input[type="checkbox"] + label::before,
html body #page .form-box  input[type="checkbox"] + label::after,
html body #page .agree_condition input[type="checkbox"] + label::before,
html body #page .agree_condition input[type="checkbox"] + label::after {
  border-radius: .25em;
}
html body #page .form-box  input[type="radio"] + label::after,
html body #page .form-box  input[type="checkbox"] + label::after,
html body #page .agree_condition input[type="checkbox"] + label::after {
  background-color: #2c97de;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 0 5px rgba(44, 151, 222, 0.4);
  display: none;
}
html body #page .form-box  input[type="radio"] + label::after {
  /* custom image for radio button */
  background-image: url("../../icon/cd-icon-radio.svg");
}
html body #page .form-box  input[type="checkbox"] + label::after,
html body #page .agree_condition  input[type="checkbox"] + label::after {
  /* custom image for checkbox */
  background-image: url("../../icon/cd-icon-check.svg");
}
html body #page .form-box  input[type="radio"]:focus + label::before,
html body #page .form-box  input[type="checkbox"]:focus + label::before,
html body #page .agree_condition 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);
}
html body #page .form-box  input[type="radio"]:checked + label::after,
html body #page .form-box  input[type="checkbox"]:checked + label::after,
html body #page .agree_condition input[type="checkbox"]:checked + label::after {
  display: block;
}
html body #page .form-box  input[type="radio"]:checked + label::before,
html body #page .form-box  input[type="radio"]:checked + label::after,
html body #page .form-box  input[type="checkbox"]:checked + label::before,
html body #page .form-box  input[type="checkbox"]:checked + label::after,
html body #page .agree_condition input[type="checkbox"]:checked + label::before,
html body #page .agree_condition input[type="checkbox"]:checked + label::after {
  -webkit-animation: cd-bounce 0.3s;
  -moz-animation: cd-bounce 0.3s;
  animation: cd-bounce 0.3s;
}
html body #page .form-box  textarea {
  min-height: 200px;
  resize: vertical;
  overflow: auto;
}

.no-touch html body #page .form-box  input[type="submit"]:hover {
  background: #42a2e1;
}
html body #page .form-box  input[type="submit"]:focus {
  outline: none;
  background: #2b3e51;
}
html body #page .form-box  [required] {
  background: url("../../icon/cd-required.svg") no-repeat top right;
}
html body #page .form-box  .error-message p {
  background: #e94b35;
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: .25em;
  padding: 16px;
}
html body #page .form-box  .error {
  border-color: #e94b35 !important;
}
@media only screen and (min-width: 600px) {
  html body #page .form-box  div {
    /* .form-box element wrapper */
    margin: 16px 0;
  }
  html body #page .form-box  legend + div {
    /* reduce margin-top for first .form-box element after the legend */
    margin-top: 20px;
  }
  html body #page .form-box  h4, html body #page .form-box  .cd-label {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  html body #page .form-box  input[type="text"],
  html body #page .form-box  input[type="email"],
  html body #page .form-box  textarea,
  html body #page .form-box  select {
    padding: 0px 0 0 8px;
    font-family: Arial, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    font-weight:300;
    font-size: 14px;
  }
}
/* --------------------------------

Custom icons

-------------------------------- */
html body #page .form-box  .icon input, html body #page .form-box  .icon select, html body #page .form-box  .icon textarea {
  padding-left: 54px !important;
}
html body #page .form-box  .user {
  background: url("../../icon/cd-icon-user.svg") no-repeat 16px center;
}
html body #page .form-box  [required].user {
  background: url("../../icon/cd-icon-user.svg") no-repeat 16px center, url("../../icon/cd-required.svg") no-repeat top right;
}
html body #page .form-box  .company {
  background: url("../../icon/cd-icon-company.svg") no-repeat 16px center;
}
html body #page .form-box  [required].company {
  background: url("../../icon/cd-icon-company.svg") no-repeat 16px center, url("../../icon/cd-required.svg") no-repeat top right;
}
html body #page .form-box  .email {
  background: url("../../icon/cd-icon-email.svg") no-repeat 16px center;
}
html body #page .form-box  [required].email {
  background: url("../../icon/cd-icon-email.svg") no-repeat 16px center, url("../../icon/cd-required.svg") no-repeat top right;
}
html body #page .form-box  .budget {
  background: url("../../icon/cd-icon-budget.svg") no-repeat 16px center;
}
html body #page .form-box  .message {
  background: url("../../icon/cd-icon-message.svg") no-repeat 16px 16px;
}
html body #page .form-box  [required].message {
  background: url("../../icon/cd-icon-message.svg") no-repeat 16px 16px, url("../../icon/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-box element after the legend */
    margin-top: 16px;
  }
  .js .floating-labels .cd-label {
    top: 20px;
  }
}

@media only screen and (max-width: 991px) {
  html #page form.customer_registration_form .col-h-l,
  html #page form.customer_registration_form .col-h-r,
  html #page form.order_data_form .col-h-l,
  html #page form.order_data_form .col-h-r {
    width: 100% !important;;
  }
}


input[type="text"]:disabled {
  background-color: rgba(0,0,0,0.05) !important;
}

html #boxNorm a {
  margin-top: 0;
}

