@font-face {
  font-family: Graphik;
  src: url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.eot);
  src: local("Graphik"), local("Graphik"), url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.eot#iefix) format("embedded-opentype"), url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.woff2) format("woff2"), url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.woff) format("woff"), url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.ttf) format("truetype"), url(/themes/custom/paychex2/fonts/graphik/Graphik-Regular-Web.svg#Graphik-Regular-Web) format("svg");
  font-style: normal;
  font-weight: 400;
  text-rendering: optimizeLegibility
}
@font-face {
  font-family: 'Graphik-Bold';
  src: url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.eot");
  /* IE9 Compat Modes */
  src: local("Graphik"), local("Graphik"), url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.eot?#iefix") format("embedded-opentype"), url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.woff2") format("woff2"), url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.woff") format("woff"), url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.ttf") format("truetype"), url("/themes/custom/paychex2/fonts/graphik/Graphik-Bold-Web.svg#Graphik-Light-Web") format("svg");
  /* Legacy iOS */
  font-style: normal;
  font-weight: 300;
  text-rendering: optimizeLegibility; }
@font-face {
  font-family: PublicoHeadline-Roman;
  src: url("https://pages.paychex.com/rs/715-YZO-232/images/PublicoHeadline-Roman-Web.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  text-rendering: optimizeLegibility;
  font-display: swap;
}
body{
  padding: 0;
  margin: 0;
  background: #eddcc6;
  display: flex;
}

input, select {
  width: 100%;
  max-width: 100%;
  border: solid 1px #999;
  padding: .3rem .1rem;
}

form {
  border: solid 2px #eddcc6;
  padding: 1rem;
  background-color: white;
  max-width: 50%;
}

h1 {
  text-align: center;
}

h2 {
  font-size: 1.05rem;
}

h3 {
  font-size: 1rem;
}
p {
  font-family: Graphik-regular, sans-serif;
  line-height: 1.5rem;
}

div.js-form-type-webform-markup {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
#edit-submit {
  cursor: pointer;
  font-family: "Graphik-medium",Helvetica,sans-serif;
  padding: 12px 16px;
  line-height: 1.5;
  transition: all 0.25s ease-in-out;
  background: #0059A2;
  color: #fff;
  box-shadow: 0 1px 5px 0 #00000055;
  font-size: 1.125rem;
  border-radius: 5px;
}
#edit-submit:hover {
  background-color: #0059A2bb;
}
img {
  max-width: 100%;
}
.body-content {
  background-color: white;
  padding: 1.5rem;
}

.body-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-checkbox {
  margin: 0 auto 0 1rem;
  width: auto;
}

.description {
  display: none;
}

.required {
  border-left: solid 3px red;
}

.hidden-date {
  display: none;
}

/* JR - background for Mechanics Bank form */
#webform-submission-mechanics-bank-request-form-add-form {
  background-color: #f2e9db !important;
}

@media only screen and (min-width: 769px) {

  body {
    display: flex;
    justify-content: center;
  }

  main{
    max-width: 1280px;
    display: flex;
    flex-direction: column;
  }

  header {
    width: 100%;
  }

  input, select {
    width: 100%;
    margin: 0;
  }

  textarea {
    width: 100%;
  }

  footer {
    width: 100%;
    text-align: center;
  }

  .body-section {
    display: flex;
  flex-direction: row;
    width: 100%;
  }

  .body-section .body-content {
    width: 60%;
  }

  #webform-submission-template-referral-form-add-form {
    width: 40%;
    max-width: 100%;
  }

  .js-form-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .js-form-item input, .payx-select {
    width: 50%;
    margin: .25rem 0;
  }

  .payx-select {
   width: 51.5%;
  }

  .form-item-comments {
    align-items: flex-start;
  }

  .form-textarea-wrapper {
    max-width: 50%;
    margin-right: .5rem;
  }
  #edit-customer-approves {
    margin: 0 auto 0 1rem;
    width: auto;
  }

}
