form {
  font-size: 0;
}

form p.heading {
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}

label {
  display: block;
  margin-bottom: 0;
  background-color: #298fd0;
  color: #ffffff;
  padding: 0 .5rem;
}

input,
textarea,
select {
  margin-bottom: 1rem;
  background-color: #298FD0;
  background-color: transparent;
  border: 1px solid #298FD0;
  border-bottom: 2px solid #298FD0;
  border-radius: 0;
  color: #646464;
  font: normal normal 16px/1.4em 'Lato';
}

select {
  cursor: pointer;
}

textarea {
  min-height: 8em;
}

input:focus,
textarea:focus,
select:focus {
  border: 1px solid #298FD0;
  border-bottom: 2px solid #298FD0;
}

input.invalid,
input.invalid:focus,
textarea.invalid,
textarea.invalid:focus,
select.invalid,
select.invalid:focus {
  border-bottom-color: #dd0000;
}

.g-recaptcha > div {
  margin: auto;
}

input[type="submit"] {
  display: block;
  background-color: #F68E4B;
  color: #ffffff;
  padding: .5rem 1rem;
  text-transform: uppercase;
  font: normal bold 18px/1.2em 'Neutra Text';
  letter-spacing:1px;
}

p.error {
  color: #D00;
}

/*input[type="submit"] {
  background-color: transparent;
  border: 2px solid #F68E4B;
  color: #2389ca;
}*/

/* Radios */

ul.radios input[type="radio"] + label {
  background-color: transparent;
  color: #646464;
}

/* Checkboxes */

.checkboxes {
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  background-color: #298FD0;
  background-color: transparent;
  border: 1px solid #298FD0;
  border-bottom: 2px solid #298FD0;
  border-radius: 0;
  font-size: 0;
}

.checkboxes > li,
.radios > li {
  margin-bottom: .5rem;
}

.checkboxes > li:last-of-type,
.radios > li:last-of-type {
  margin-bottom: 0;
}

.checkboxes > li :last-child,
.radios > li :last-child {
  margin-bottom: 0;
}


.checkboxes > li:last-of-type {
  margin-bottom: 0;
}

.checkboxes label {
  display: inline-block;
  background-color: transparent;
  color: #646464;
}

.checkboxes > li > p {
  margin-bottom: 0;
  margin-top: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.checkboxes > li:first-of-type p {
  margin-top: 0;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  padding-left: 2rem;
  cursor: pointer;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
  content: "";
  display: block;
  position: absolute;
  top: 4px;
  left: 0;
  height: 1em;
  width: 1em ;
  background: #FFF;
  border: 1px solid #646464;
  box-shadow: inset 0px 0px 0px 1.5px #FFF;
  border-radius: 0;
  transition: background 0.3s;
}

input[type="radio"] + label:before {
  border-radius: 100%;
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
  background-color: #F68E4B;
}

form div.half {
  display: inline-block;
  width: calc(50% - .5rem);
}

form div.half + div.half {
  margin-left: 1rem;
}

form hr {
  margin-top: .5rem;
}

/********************************
* Request A Quote
*********************************/

form[name="xREQUEST_A_QUOTE"] textarea[name="xTELL_US_ABOUT_YOUR_PROJECT"] {
  height: 505px;
}

form[name="xREQUEST_A_QUOTE"] .checkboxes > li {
  margin-bottom: 11px;
}

form[name="xREQUEST_A_QUOTE"] .checkboxes > li:last-of-type {
  margin-bottom: 0;
}

form[name="xREQUEST_A_QUOTE"] input[type="submit"] {
  margin-top: 1rem;
}

/********************************
* Out Of Office Email Actions
*********************************/

form[name="xOUT_OF_OFFICE_EMAIL_ACTIONS"] input[type="radio"] + label {
  margin-bottom: 1rem;
}

form[name="xOUT_OF_OFFICE_EMAIL_ACTIONS"] :last-child {
  margin-bottom: 0;
}

/********************************
* Pay Online
**********************************/

form[name="xPAY_ONLINE"] textarea[name="xCOMMENTS"] {
  height: 241px;
}
/* Invoice */

form[name="xPAY_ONLINE"] #invoices-target .invoice + .invoice {
  padding-top: 1rem;
  border-top: 4px dotted #e6e6e6;
}

form[name="xPAY_ONLINE"] .invoices-wrapper {
  position: relative;
  height: 422px;
}

form[name="xPAY_ONLINE"] #invoices-target {
  position: relative;
}

form[name="xPAY_ONLINE"] #invoices-target a[data-action="add-invoice"] i.fa {
  position: absolute;
  bottom: 50%;
  right: 0;
  transform: translate(50%, 50%);
  font-size: 30px;
}

form[name="xPAY_ONLINE"] .expiration-date select {
  display: inline-block;
  width: 50%;
}

form[name="xPAY_ONLINE"] div.info-box {
  /*position: absolute;*/
  padding: 1rem;
  bottom: 2.5rem;
  margin: auto;
  left: 0;
  right: 0;
/*  width: calc(100% - 3rem);*/
  background-color: #298FD0;
}

form[name="xPAY_ONLINE"] div.info-box p {
  color: #fff;
}

form[name="xPAY_ONLINE"] div.info-box p#total-price {
  text-align: center;
  font-size: 18px;
}

@media (max-width: 960px) {
  form[name="xPAY_ONLINE"] .invoices-wrapper {
    height: auto;
  }

  form[name="xPAY_ONLINE"] div.info-box {
    position: relative;
    padding: 1rem;
    bottom: 0;
    width: 100%;
  }
}